:root {
  --blue-dark:    #0F2247;
  --blue-primary: #1D3E7C;
  --blue-light:   #EEF2F9;
  --gold:         #D4A72C;
  --gold-dark:    #AD8620;
  --white:        #FFFFFF;
  --text-dark:    #1C2536;
  --text-muted:   #64708A;
  --border:       #E4E8F0;
  --shadow:       0 4px 20px rgba(15, 34, 71, 0.06);
  --radius:       10px;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--blue-light);
  background-image: radial-gradient(rgba(29, 62, 124, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: drift 30s ease-in-out infinite alternate;
}
body::before {
  width: 640px;
  height: 640px;
  top: -180px;
  right: -220px;
  background: radial-gradient(circle, rgba(212, 167, 44, 0.35), transparent 70%);
}
body::after {
  width: 580px;
  height: 580px;
  bottom: -200px;
  left: -220px;
  background: radial-gradient(circle, rgba(29, 62, 124, 0.35), transparent 70%);
  animation-delay: -15s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, 40px) scale(1.1); }
  100% { transform: translate(30px, -30px) scale(0.94); }
}

a { text-decoration: none; color: inherit; }
h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.2px;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  background: var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.logo span {
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.search-bar button {
  border: none;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-bar button:hover { background: var(--gold-dark); }

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(15, 34, 71, 0.22);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
.search-results-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item img,
.search-result-noimg {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--blue-light);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-result-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-primary);
  white-space: nowrap;
}
.search-empty {
  padding: 18px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  gap: 22px;
}
.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  border-color: var(--gold);
}

/* ── Carousel ───────────────────────────────────────────── */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  height: 460px;
  background: var(--blue-dark);
}

.carousel-slide .slide-text {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 64px;
  color: var(--white);
}
.carousel-slide .slide-category {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.carousel-slide .slide-name {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.carousel-slide .slide-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 30px;
}
.carousel-slide .slide-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.carousel-slide:hover .slide-cta {
  background: var(--gold-dark);
  transform: translateX(3px);
}

.carousel-slide .slide-photo {
  flex: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  padding: 36px;
}

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel-dots .dot.active {
  background: var(--gold);
  width: 26px;
}

@media (max-width: 720px) {
  .carousel-slide { flex-direction: column; height: auto; }
  .carousel-slide .slide-text { padding: 40px 28px; align-items: center; text-align: center; }
  .carousel-slide .slide-photo { height: 240px; }
}

/* ── Categories ─────────────────────────────────────────── */

.categories {
  max-width: 1280px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 20px;
}

/* Bento pattern: a featured tile plus one wide tile for rhythm.
   Deliberately no row-spanning tiles alongside 1-row neighbors —
   that combination leaves a reserved-but-empty row in the grid track. */
.category-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.category-card:nth-child(8) { grid-column: span 2; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .category-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .category-card:nth-child(8) { grid-column: span 1; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card:nth-child(1) { grid-column: span 1; }
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.category-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 14px 32px rgba(18, 41, 92, 0.18);
}
.category-card .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.category-card:hover .photo { transform: scale(1.09); }
.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,41,92,0.70) 0%, rgba(18,41,92,0.20) 50%, rgba(18,41,92,0.0) 75%);
  transition: background 0.25s;
}
.category-card:hover .overlay {
  background: linear-gradient(to top, rgba(18,41,92,0.78) 0%, rgba(18,41,92,0.38) 60%, rgba(18,41,92,0.08) 100%);
}
.category-card .name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.category-card:nth-child(1) .name { font-size: 1.5rem; }
.category-card .shop-now {
  position: absolute;
  left: 16px;
  bottom: -22px;
  z-index: 1;
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s, bottom 0.25s;
}
.category-card:hover .name { bottom: 40px; transition: bottom 0.25s; }
.category-card:hover .shop-now {
  bottom: 16px;
  opacity: 1;
}

/* ── About ──────────────────────────────────────────────── */

.about {
  background: var(--blue-light);
  padding: 56px 24px;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h2 { text-align: left; }
.about-text .section-sub { text-align: left; margin-bottom: 16px; }
.about-text p:last-child {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Services ───────────────────────────────────────────── */

.services {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-primary);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--blue-primary);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Contact ────────────────────────────────────────────── */

.contact-section {
  background: var(--blue-light);
  padding: 56px 24px;
  text-align: center;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  text-align: left;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 50%;
  margin-bottom: 12px;
  color: var(--blue-primary);
}
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h4 {
  color: var(--blue-dark);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-card a {
  color: var(--blue-primary);
  font-weight: 600;
}
.contact-card a:hover { text-decoration: underline; }
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hours-table td {
  padding: 4px 0;
  color: var(--text-muted);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text-dark);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
}
.footer-links h4, .footer-contact h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-links a, .footer-contact p {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
}
.footer-legal-links {
  text-align: center;
  font-size: 0.78rem;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-legal-links a { color: rgba(255,255,255,0.6); }
.footer-legal-links a:hover { color: #fff; }

.footer-credits {
  text-align: center;
  font-size: 0.72rem;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: rgba(255,255,255,0.4);
}
.footer-credits span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: rgba(255,255,255,0.25);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 720px) {
  .header-inner { row-gap: 12px; }
  .logo { order: 1; }
  .cart-icon { order: 2; margin-left: auto; }
  .search-wrap { order: 3; flex: 0 0 100%; min-width: 0; }
  .main-nav { order: 4; flex: 0 0 100%; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .main-nav a { padding: 6px 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-text h2, .about-text .section-sub { text-align: center; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .about-stats .stat { flex: 1; min-width: 120px; justify-content: center; }
  .product-detail { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .product-cta,
  .product-actions .product-cta-secondary { width: 100%; }
  .qty-stepper button { width: 40px; height: 40px; font-size: 1.15rem; }
  .cart-remove { padding: 6px 10px; font-size: 1.4rem; }
  .page-btn { width: 40px; height: 40px; }
  .form-field input,
  .form-field textarea,
  .search-bar input { font-size: 16px; }
  .radio-row { flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.6rem; }
  .categories { margin: 48px auto; }
  .carousel-slide .slide-text { padding: 32px 20px; }
  .carousel-slide .slide-name { font-size: 1.7rem; margin-bottom: 14px; }
  .carousel-slide .slide-price { margin-bottom: 20px; }
  .category-card .name { font-size: 0.95rem; }
  .category-card:nth-child(1) .name { font-size: 1.2rem; }
}

/* ── Legal pages (Terms, Privacy, Returns, Security) ──────────── */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-page h2 { text-align: left; }
.legal-page .section-sub { text-align: left; margin-bottom: 8px; }
.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.legal-page h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 32px 0 10px;
}
.legal-page p {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-page ul {
  margin: 0 0 12px 20px;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--blue-primary); text-decoration: underline; }

/* ── Search results page ────────────────────────────────────── */

.search-results-page {
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 24px;
}
.search-results-page h2 { text-align: left; }
.search-results-page .section-sub { text-align: left; margin-bottom: 32px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.result-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-primary);
}
.result-card-photo {
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  padding: 10px;
}
.result-card-body { padding: 14px 16px; }
.result-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-primary);
  margin-bottom: 6px;
}
.result-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.result-card-price {
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.95rem;
}
.results-empty {
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
}

.results-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-btn.active,
.page-btn:hover {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-primary);
  border-top: 1px solid var(--border);
}
.search-view-all:hover { background: var(--blue-light); }

/* ── Product detail page ────────────────────────────────────── */

.product-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
  min-height: 300px;
}
.product-loading,
.product-not-found {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
}
.product-not-found h2 {
  font-family: var(--font-serif);
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-photo {
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.product-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.product-back:hover { color: var(--blue-primary); }
.product-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 12px;
}
.product-stock {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.product-stock.in-stock { background: #E7F5EC; color: #1B7A4A; }
.product-stock.out-stock { background: #FDECEC; color: #B91C1C; }
.product-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.product-cta {
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--radius);
}
.product-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  text-align: center;
}
.product-cta:hover { background: var(--blue-dark); }
.product-cta-secondary {
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  display: inline-block;
  text-align: center;
}
.product-cta-secondary:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* ── Quantity stepper (product page + cart) ────────────────────── */

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.product-qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: var(--blue-light);
  color: var(--blue-primary);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.qty-stepper button:hover { background: var(--border); }
.qty-stepper span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ── Barcode ────────────────────────────────────────────────────── */

.product-barcode {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-barcode svg { max-width: 220px; color: var(--text-dark); }

/* ── Cart icon (header) ────────────────────────────────────────── */

.cart-icon {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.cart-icon:hover { opacity: 1; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Cart page ──────────────────────────────────────────────────── */

.cart-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.cart-page h2 { text-align: left; margin-bottom: 28px; }

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.cart-empty p { margin-bottom: 20px; }

.cart-line {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: var(--blue-light);
  background-size: cover;
  background-position: center;
}
.cart-line-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.cart-line-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.cart-line-total {
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.92rem;
  min-width: 80px;
  text-align: right;
}
.cart-remove {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.cart-remove:hover { color: #B91C1C; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cart-continue:hover { color: var(--blue-primary); }

/* ── Checkout page ──────────────────────────────────────────────── */

.checkout-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.checkout-page h2 { text-align: left; }
.checkout-note { text-align: left; margin-bottom: 32px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}
.form-field input,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--blue-light);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 1px;
}
.radio-row {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.checkout-submit {
  margin-top: 8px;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.checkout-sidebar {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.checkout-sidebar h4 {
  font-family: var(--font-serif);
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-dark);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
}

.checkout-success {
  text-align: center;
  padding: 80px 0;
}
.checkout-success h2 {
  margin-bottom: 12px;
}
.checkout-success p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }
  .cart-line-photo { width: 56px; height: 56px; flex-shrink: 0; }
  .cart-line-info { flex: 1 1 140px; min-width: 0; }
  .cart-line-total { margin-left: auto; }
  .cart-summary,
  .checkout-sidebar { position: static; }
}
