/* =========================================================
   NT FIT GEARS — Frontend Stylesheet
   ========================================================= */

:root {
  --primary: #ED5F2A;
  --primary-dark: #D24E1F;
  --dark: #1a1a1a;
  --dark-soft: #2a2a2a;
  --text: #2b2b2b;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --bg-peach: #FCE6D8;
  --bg-gray: #DCDCDC;
  --bg-soft: #ECE9E6;
  --line: #e6e6e6;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,.10);

  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 56px 0; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { background: #f2f2f2; }
.btn-pill { border-radius: 999px; }
.btn-arrow { font-size: 12px; line-height: 1; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo-img-footer {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: 6px;
  /* Logo has dark text — on dark footer add a subtle white plate via filter alternative */
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Legacy fallback (kept for `about-logo` text in About section) */
.brand-mark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--primary);
  display: inline-block;
}
.brand-mark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  vertical-align: super;
  margin: 0 1px;
}
.brand-name {
  font-weight: 700;
  font-size: 10px;
  color: var(--dark);
  letter-spacing: 1.5px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #f0f0f0;
}
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-right { justify-content: flex-end; }

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.is-active { background: var(--dark); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  color: var(--dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: #f4f4f4; }
.cart-btn { color: var(--dark); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger { display: none; width: 36px; height: 36px; background: none; border: 0; padding: 8px; }
.hamburger span { display: block; height: 2px; background: var(--dark); margin: 4px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #6b6b6b, #4a4a4a);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 540px;
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero-content p {
  font-size: 14px;
  margin-bottom: 24px;
  opacity: .95;
  max-width: 440px;
}

/* ---------- Find By Category ---------- */
.cat-slider-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
}
.slider-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.slider-arrow:hover { background: #f0f0f0; }

.cat-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cat-slider::-webkit-scrollbar { display: none; }

.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: #999;
  transition: transform .25s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55));
}
.cat-green { background: #2f4a2e; }
.cat-brown { background: #5a3f33; }
.cat-gold  { background: #b8862c; }
.cat-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--white);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .5px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c9c9c9;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.is-active { background: var(--dark); transform: scale(1.1); }

/* ---------- Latest Product ---------- */
.section-latest .latest-wrap {
  background: var(--bg-peach);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.product-grid {
  display: grid;
  gap: 20px;
}
.product-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: rgba(255,255,255,.4);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #efe0d2, #d9c5b2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  min-height: 2.6em;
}
.product-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
}

/* ---------- Best Seller ---------- */
.bestseller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bestseller-card {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items: stretch;
  min-height: 200px;
}
.bestseller-text {
  display: flex;
  flex-direction: column;
}
.bestseller-text h3 { font-size: 17px; margin-bottom: 8px; }
.bestseller-text p {
  font-size: 12px;
  color: var(--text);
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.5;
}
.bestseller-text .btn {
  align-self: flex-start;
  font-size: 11px;
  padding: 7px 14px;
}
.bestseller-image {
  background: #c5c5c5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.bestseller-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- New Arrivals ---------- */
.arrivals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.arrival-card {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #8c8c8c;
}
.arrival-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.arrival-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55));
}
.arrival-pill {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--dark);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}
.arrival-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: 20px;
}
.arrival-overlay h3 { font-size: 28px; margin-bottom: 8px; }
.arrival-overlay p { font-size: 13px; max-width: 320px; margin: 0 0 16px; }

/* ---------- About ---------- */
.about-section { padding: 56px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image {
  background: #6b6b6b;
  min-height: 360px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content {
  background: var(--dark);
  color: var(--white);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
}
.about-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 2px;
}
.about-logo .brand-mark-text {
  font-weight: 800;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: 1px;
}
.about-logo .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: super;
}
.about-logo .brand-name { color: var(--white); font-size: 11px; }

.feature-list { display: flex; flex-direction: column; gap: 16px; font-size: 12.5px; }
.feature-list li {
  position: relative;
  padding-left: 14px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
}
.feature-list strong { display: block; color: var(--primary); font-weight: 600; margin-bottom: 3px; font-size: 13px; }
.feature-list span { color: #d8d8d8; line-height: 1.5; }

.about-story h2 { font-size: 18px; margin-bottom: 12px; }
.about-story p { font-size: 12.5px; color: #d8d8d8; margin: 0 0 10px; line-height: 1.6; }

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}
.testimonial-title { margin-bottom: 18px; }
.testimonial-quote {
  font-style: italic;
  color: var(--text);
  font-size: 14px;
  max-width: 640px;
  margin: 0 auto 22px;
}
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #c9c9c9;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; color: #ccc; }
.form-field input,
.form-field textarea {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--white);
  padding: 9px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--white); }
.form-field textarea { resize: vertical; min-height: 90px; }

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 6px;
}

.contact-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.contact-deco svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0f0f;
  color: #e5e5e5;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h4 {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 8px; font-size: 12.5px; }
.footer-col ul li a { color: #cfcfcf; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li a.is-active { color: var(--primary); }

.brand-footer { color: var(--white); margin-bottom: 14px; display: inline-flex; }
.brand-footer .brand-name { color: var(--white); }

.footer-tag {
  font-size: 12px;
  color: #c9c9c9;
  margin: 0 0 14px;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.socials a:hover { opacity: .85; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.contact-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.contact-list li span { font-size: 12px; color: #cfcfcf; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 16px 0;
  text-align: center;
  font-size: 11.5px;
  color: #c5c5c5;
}
.footer-bottom a { color: var(--primary); }

/* ============================================================
   PAGE: Product Detail / Cart / Checkout
   ============================================================ */

.page-crumb {
  background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
  color: var(--white);
  padding: 36px 0 28px;
}
.page-crumb .page-title { font-size: 30px; margin-bottom: 6px; }
.page-crumb p { margin: 0; font-size: 13px; color: #cfcfcf; }
.page-crumb a { color: var(--primary); }

/* ---------- Product Detail ---------- */
.product-detail { padding: 40px 0; }
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.pd-gallery {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.pd-gallery img.main { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pd-thumbs { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; }
.pd-thumbs img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
}
.pd-thumbs img.is-active { border-color: var(--primary); }

.pd-info h1 { font-size: 28px; margin-bottom: 8px; color: var(--text); }
.pd-cat { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.pd-price { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.pd-price .original { font-size: 16px; color: #999; text-decoration: line-through; margin-right: 8px; font-weight: 500; }
.pd-desc { font-size: 14px; color: var(--text); margin-bottom: 22px; line-height: 1.6; }
.pd-stock { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
.pd-stock.in { background: #d1fae5; color: #065f46; }
.pd-stock.out { background: #fee2e2; color: #991b1b; }

.pd-variations { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pd-var-row { display: flex; flex-direction: column; gap: 6px; }
.pd-var-row label { font-size: 13px; font-weight: 500; color: var(--text); }
.pd-var-row select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  font-family: inherit;
}

.pd-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-input button {
  width: 36px; height: 40px;
  border: 0;
  background: var(--white);
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}
.qty-input button:hover { background: #f5f5f5; }
.qty-input input {
  width: 50px; height: 40px;
  border: 0; text-align: center;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.pd-actions .btn { padding: 12px 28px; font-size: 14px; }

.pd-meta { font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 16px; }
.pd-meta p { margin: 4px 0; }

/* ---------- Cart Page ---------- */
.cart-section { padding: 40px 0 60px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.cart-items {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .ci-img { width: 80px; height: 80px; background: var(--bg-soft); border-radius: 8px; overflow: hidden; }
.cart-row .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .ci-name { font-size: 14px; font-weight: 500; color: var(--text); }
.cart-row .ci-attrs { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cart-row .ci-price { font-size: 14px; color: var(--text); font-weight: 600; min-width: 70px; text-align: right; }
.cart-row .ci-remove { background: none; border: 0; color: #c33; cursor: pointer; font-size: 18px; padding: 6px 10px; }
.cart-row .ci-remove:hover { color: #900; }

.cart-summary {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 { font-size: 17px; margin-bottom: 18px; }
.cart-summary .sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--text); }
.cart-summary .sum-row.total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
}
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 16px; padding: 12px; font-size: 14px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}
.cart-empty p { color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Checkout Page ---------- */
.checkout-section { padding: 40px 0 60px; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}
.co-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
}
.co-card h3 { font-size: 16px; margin-bottom: 18px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-grid .full { grid-column: 1 / -1; }
.co-field { display: flex; flex-direction: column; gap: 5px; }
.co-field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.co-field input, .co-field select, .co-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { border-color: var(--primary); }

.co-summary { position: sticky; top: 90px; }
.co-summary .co-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.co-summary .co-item:last-of-type { border-bottom: 0; }
.co-summary .co-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.co-summary .co-item .name { flex: 1; }
.co-summary .co-item .qty { color: var(--text-muted); font-size: 12px; }

.co-totals { margin-top: 14px; }
.co-totals .sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.co-totals .sum-row.total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
}

.coupon-row { display: flex; gap: 8px; margin-bottom: 8px; }
.coupon-row input { flex: 1; }
.coupon-row button { padding: 8px 14px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-options label {
  display: flex; gap: 10px; align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.payment-options label:has(input:checked) { border-color: var(--primary); background: #fff7f3; }
.payment-options small { color: var(--text-muted); display: block; font-size: 11px; margin-top: 2px; }

#stripeCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  background: var(--white);
}
.place-order-btn { width: 100%; justify-content: center; padding: 14px; font-size: 14px; margin-top: 12px; }
.checkout-msg { padding: 12px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.checkout-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.checkout-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ============================================================
   RESPONSIVE — Tablet (≤992px), Mobile (≤768px), Small (≤480px)
   ============================================================ */

/* --- Tablet & below --- */
@media (max-width: 992px) {
  /* Header: hamburger menu */
  .header-grid {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 64px;
  }
  .brand-logo-img { height: 42px; }
  .nav-left, .nav-right {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    z-index: 99;
    gap: 8px;
  }
  .nav-left.open, .nav-right.open { display: flex; }
  .nav-link { padding: 10px 14px; }
  .hamburger { display: block; }

  /* Hero */
  .hero { min-height: 460px; }

  /* Page sections */
  .section { padding: 44px 0; }
  .section-title { font-size: 20px; margin-bottom: 22px; }

  /* Product grids */
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Sections that go single-column */
  .bestseller-grid { grid-template-columns: 1fr; gap: 14px; }
  .arrivals-grid { grid-template-columns: 1fr; gap: 14px; }
  .arrival-card { aspect-ratio: 16/10; }
  .about-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-deco { order: -1; max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Category slider: 2 per view */
  .cat-slider { grid-auto-columns: calc((100% - 16px) / 2); }

  /* Detail / Cart / Checkout */
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; gap: 18px; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; gap: 18px; }
  .co-summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 18px; }
  .shop-sidebar { position: static; }
}

/* --- Mobile (phone) --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Page crumb */
  .page-crumb { padding: 24px 0 20px; }
  .page-crumb .page-title { font-size: 24px; }

  /* Hero */
  .hero { min-height: 400px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 13px; }

  /* Grids */
  .product-grid-3, .product-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section-latest .latest-wrap { padding: 14px; }

  /* Best seller card image smaller */
  .bestseller-card { grid-template-columns: 1fr 90px; padding: 14px; min-height: 0; }
  .bestseller-text h3 { font-size: 15px; }
  .bestseller-text p { font-size: 11px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Category slider: 1.5 cards visible (peek next) */
  .cat-slider { grid-auto-columns: 80%; }
  .cat-name { font-size: 18px; }
  .slider-arrow { display: none; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Product Detail */
  .pd-info h1 { font-size: 22px; }
  .pd-price { font-size: 22px; }
  .pd-actions { flex-wrap: wrap; }
  .pd-actions .btn { flex: 1; min-width: 160px; }

  /* Cart — restack row to 2 lines for mobile */
  .cart-row {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty price";
    gap: 10px;
    padding: 12px;
    align-items: start;
  }
  .cart-row .ci-img { grid-area: img; width: 70px; height: 70px; }
  .cart-row > div:nth-child(2) { grid-area: info; }
  .cart-row .qty-input { grid-area: qty; justify-self: start; }
  .cart-row .ci-price { grid-area: price; justify-self: end; align-self: end; }
  .cart-row .ci-remove { grid-area: remove; justify-self: end; padding: 0; }

  /* Checkout */
  .co-card { padding: 18px; }
  .co-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .co-card h3 { font-size: 14px; margin-bottom: 14px; }

  /* About story text smaller */
  .about-story h2 { font-size: 16px; }
  .about-story p { font-size: 12px; }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; line-height: 1.15; }
  .hero-content p { font-size: 12px; }
  .hero .btn { padding: 9px 18px; font-size: 12px; }

  /* Grids stay 2 columns but tighter */
  .product-grid-3, .product-grid-4, .shop-grid { gap: 10px; }
  .product-card { padding: 10px; }
  .product-name { font-size: 12px; min-height: 2.4em; }
  .product-price { font-size: 12px; margin-bottom: 8px; }
  .product-card .btn { padding: 7px 14px; font-size: 11px; }

  /* Best seller image even smaller */
  .bestseller-card { grid-template-columns: 1fr 70px; }
  .bestseller-image { min-height: 100px; }

  /* Category slider one card per view */
  .cat-slider { grid-auto-columns: 92%; }
  .cat-card { aspect-ratio: 16/10; }
  .cat-name { font-size: 16px; bottom: 14px; }

  /* Brand smaller in header */
  .brand-logo-img { height: 36px; }

  /* Page crumb */
  .page-crumb .page-title { font-size: 20px; }

  /* Product detail */
  .pd-info h1 { font-size: 19px; }
  .pd-thumbs img { width: 52px; height: 52px; }

  /* Cart on tiny screens */
  .cart-row { padding: 10px; gap: 8px; }
  .cart-row .ci-img { width: 60px; height: 60px; }
  .cart-row .ci-name { font-size: 12px; }
  .cart-row .ci-price { font-size: 12px; }

  /* Checkout 1-col fields */
  .co-grid { grid-template-columns: 1fr; }
  .co-card { padding: 14px; }

  /* About content padding tighter */
  .about-content { padding: 18px; gap: 14px; }

  /* Testimonial smaller */
  .testimonial-card { padding: 24px 16px; }
  .testimonial-quote { font-size: 13px; }

  /* Contact form */
  .contact-section { padding: 36px 0; }

  /* Footer */
  .footer-bottom { font-size: 10px; padding: 12px 0; }
}
