/* nozgn Coffee — Shared Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
  font-size: 14px;
}
a { color: #333; text-decoration: none; }
a:hover { color: #FF6B00; }
img { max-width: 100%; display: block; }

/* Top Bar */
.top-bar {
  background: #232f3e;
  color: #fff;
  font-size: 12px;
  padding: 6px 20px;
  text-align: center;
}
.top-bar span { margin: 0 12px; }

/* Header / Nav */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}
.logo span { color: #FF6B00; }
.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}
.nav-links a:hover { border-bottom: 2px solid #FF6B00; }
.cart-icon { font-size: 18px; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  padding: 40px 20px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.hero-img img {
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}
.hero-text {
  flex: 1;
  min-width: 280px;
}
.hero-text h1 {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-price {
  font-size: 18px;
  margin-bottom: 8px;
}
.hero-price .old { text-decoration: line-through; color: #999; margin-right: 10px; }
.hero-price .new { color: #FF6B00; font-size: 36px; font-weight: 700; }
.hero-savings {
  background: #FF6B00;
  color: #fff;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: #FF6B00; color: #fff; }
.btn-secondary { background: #fff; color: #FF6B00; border: 2px solid #FF6B00; }
.btn-block { display: block; width: 100%; }

/* Trust Badges */
.trust-bar {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-item {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.product-card img {
  height: 180px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.product-card .name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price { margin-bottom: 10px; }
.product-card .price .old {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-right: 6px;
}
.product-card .price .new {
  color: #FF6B00;
  font-size: 20px;
  font-weight: 700;
}
.product-card .rating {
  color: #FFA41C;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 24px;
}
.why-card .icon { font-size: 36px; margin-bottom: 12px; }
.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #666; }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}
.review-card .stars { color: #FFA41C; margin-bottom: 8px; }
.review-card .verified {
  color: #007600;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.review-card .text { font-size: 13px; color: #555; margin-bottom: 8px; }
.review-card .author { font-size: 12px; color: #999; }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #FF6B00; }

/* Product Detail */
.product-detail {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.product-gallery {
  flex: 1;
  min-width: 300px;
}
.main-image {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.main-image img {
  max-height: 400px;
  margin: 0 auto;
  object-fit: contain;
}
.thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
}
.thumbnails img:hover { border-color: #FF6B00; }

.product-info {
  flex: 1;
  min-width: 300px;
}
.product-info h1 {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.product-rating .stars { color: #FFA41C; }
.product-price {
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.product-price .old {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
  margin-right: 10px;
}
.product-price .new {
  color: #FF6B00;
  font-size: 32px;
  font-weight: 700;
}
.product-price .savings {
  display: block;
  color: #007600;
  font-size: 13px;
  margin-top: 4px;
}
.stock-status {
  color: #007600;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}
.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.quantity-row label { font-weight: 500; }
.quantity-row select {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #555;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* Product Description / Specs */
.product-section {
  margin-top: 40px;
}
.product-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF6B00;
}
.product-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.product-section li { margin-bottom: 6px; font-size: 14px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: left;
}
.spec-table th {
  background: #f8f8f8;
  width: 30%;
  font-weight: 600;
}

/* Reviews Section */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.review-item:last-child { border-bottom: none; }
.review-item .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.review-item .reviewer { font-weight: 600; font-size: 14px; }
.review-item .review-stars { color: #FFA41C; font-size: 13px; }
.review-item .review-date { font-size: 12px; color: #999; }
.review-item .review-verified {
  color: #007600;
  font-size: 12px;
  font-weight: 600;
}
.review-item .review-text { font-size: 14px; color: #444; margin-top: 4px; }

/* Related Products */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h1 {
  font-size: 26px;
  margin-bottom: 20px;
}
.policy-content h2 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.policy-content p, .policy-content li {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.policy-content ul { padding-left: 20px; }
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #f8f8f8;
  font-size: 14px;
}
.faq-item .faq-answer {
  padding: 14px 16px;
  font-size: 14px;
  color: #555;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.contact-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.contact-card .icon { font-size: 32px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #555; }

/* Footer */
footer {
  background: #232f3e;
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #ccc; font-size: 13px; }
.footer-col a:hover { color: #FF6B00; }
.footer-col p { font-size: 13px; margin-bottom: 6px; }
.payment-icons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.payment-icons span {
  background: #fff;
  color: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid #3a4553;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

/* PayPal Button Container */
.paypal-container {
  margin-top: 12px;
  min-height: 50px;
}

/* Coming Soon */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
}
.coming-soon h2 { font-size: 28px; margin-bottom: 12px; }
.coming-soon p { color: #666; font-size: 16px; }

/* Cart Count Badge */
.cart-count {
  display: inline-block;
  background: #FF6B00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  vertical-align: top;
  margin-left: 2px;
}

/* Cart Sidebar */
#cart-sidebar {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
#cart-sidebar.open {
  visibility: visible;
  pointer-events: auto;
}
.cart-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
#cart-sidebar.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -2px 0 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
#cart-sidebar.open .cart-panel { transform: translateX(0); }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}
.cart-header h3 { font-size: 18px; margin: 0; }
.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.cart-close:hover { color: #FF6B00; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  color: #FF6B00;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: #FF6B00; color: #FF6B00; }
.qty-val {
  font-size: 13px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  text-decoration: underline;
}
.cart-item-remove:hover { color: #FF6B00; }
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cart-subtotal-price { color: #FF6B00; }
.cart-shipping-note {
  font-size: 12px;
  color: #007600;
  margin-bottom: 12px;
}
.cart-footer .btn { margin-bottom: 8px; }

/* Checkout Modal */
#checkout-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
}
#checkout-modal.open {
  visibility: visible;
  pointer-events: auto;
}
.checkout-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.2s;
}
#checkout-modal.open .checkout-overlay { opacity: 1; }
.checkout-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 420px;
  max-width: 92vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
#checkout-modal.open .checkout-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}
.checkout-header h3 { font-size: 18px; margin: 0; }
.checkout-body {
  padding: 24px 20px;
}
.checkout-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}
.checkout-success {
  padding: 40px 20px;
  text-align: center;
}
.checkout-success .success-icon { font-size: 48px; margin-bottom: 16px; }
.checkout-success h3 { font-size: 22px; margin-bottom: 8px; color: #007600; }
.checkout-success p { font-size: 14px; color: #555; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; text-align: center; }
  .nav-links { justify-content: center; }
  .hero-text h1 { font-size: 22px; }
  .hero-price .new { font-size: 28px; }
  .product-detail { flex-direction: column; }
  .product-info h1 { font-size: 18px; }
  .product-price .new { font-size: 26px; }
  .btn-row { flex-direction: column; }
  .top-bar span { display: block; margin: 2px 0; }
}
