:root {
  --bg-ivory: #faf7f2;
  --bg-white: #ffffff;
  --bg-sand: #f2ece1;
  --text-dark: #1c1917;
  --text-muted: #655e57;
  --gold-primary: #b58d3d;
  --gold-dark: #8a6a24;
  --border-light: #e6dfd3;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.narrow-container {
  max-width: 720px;
  margin: 0 auto;
}

.auth-container {
  max-width: 440px;
  margin: 0 auto;
}

.text-muted {
  color: var(--text-muted);
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 0.6rem 1.2rem;
  z-index: 1000;
}
.skip-to-content:focus {
  top: 0.75rem;
}

/* Announcement & Header */
.announcement-bar {
  background-color: var(--text-dark);
  color: var(--bg-ivory);
  text-align: center;
  padding: 0.55rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-dark);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
}
.icon-btn:hover {
  color: var(--gold-dark);
}

.cart-count {
  background-color: var(--gold-dark);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-white);
}
.btn-primary:hover {
  background-color: var(--gold-dark);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
}
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  width: 100%;
  padding: 0.65rem 1rem;
  margin-top: 0.75rem;
}
.btn-outline:hover {
  background: var(--text-dark);
  color: var(--bg-white);
}
.full-width {
  width: 100%;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: url('pictures/site/hero.webp');
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 15, 0.82) 0%, rgba(20, 17, 15, 0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 4rem 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.hero-content .eyebrow {
  color: #e6c67c;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections & Cards */
.section {
  padding: 4rem 0;
}
.surface-white {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-header {
  margin-bottom: 2rem;
}
.flex-between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
}
.view-all-link, .inline-link {
  color: var(--gold-dark);
  font-weight: 500;
}
.view-all-link:hover, .inline-link:hover {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.4rem;
}
.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-sand);
}
.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-name {
  padding: 0.9rem 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.85rem;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.product-img-link {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-sand);
}
.product-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  flex: 1;
}
.product-price {
  font-weight: 600;
  color: var(--text-muted);
}

/* Bridal & Features */
.bridal-banner-section {
  padding: 4.5rem 0;
  background: var(--bg-sand);
}
.bridal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.bridal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}
.bridal-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.feature-icon {
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.feature-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Catalog Pills */
.page-hero-head {
  margin-bottom: 1.75rem;
}
.collection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}
.pill {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 0.84rem;
  border-radius: 99px;
}
.pill.active, .pill:hover {
  background: var(--text-dark);
  color: var(--bg-white);
  border-color: var(--text-dark);
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.product-detail-img {
  border: 1px solid var(--border-light);
  background: var(--bg-white);
}
.product-detail-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.75rem 0 1.25rem;
}
.product-badges {
  list-style: none;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
}
.product-badges li + li {
  margin-top: 0.5rem;
}
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 3.5rem 0;
}

/* Forms & Policy */
.stacked-form {
  background: var(--bg-white);
  padding: 2rem;
  border: 1px solid var(--border-light);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea, .input-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
}
.policy-card {
  background: var(--bg-white);
  padding: 2rem;
  border: 1px solid var(--border-light);
  margin-top: 1.5rem;
}
.policy-card h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 1.25rem 0 0.5rem;
}
.policy-card h2:first-child {
  margin-top: 0;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
}
.cart-table th, .cart-table td {
  padding: 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.cart-summary-box {
  margin-top: 2rem;
  max-width: 380px;
  margin-left: auto;
  background: var(--bg-white);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

/* Newsletter & Footer */
.newsletter-section {
  padding: 4rem 0;
  text-align: center;
}
.newsletter-inner {
  max-width: 520px;
}
.newsletter-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.newsletter-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.input-group {
  display: flex;
  gap: 0.5rem;
}
.newsletter-feedback {
  margin-top: 0.75rem;
  color: var(--gold-dark);
  font-weight: 500;
}

.site-footer {
  background: var(--text-dark);
  color: var(--bg-ivory);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
}
.footer-tagline {
  color: rgba(250, 247, 242, 0.7);
}
.footer-heading {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e6c67c;
  margin-bottom: 0.8rem;
}
.footer-links-col ul {
  list-style: none;
}
.footer-links-col li + li {
  margin-top: 0.5rem;
}
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.6);
}

@media (max-width: 860px) {
  .mobile-menu-btn { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: none;
    padding: 1.25rem;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 1rem; }
  .bridal-grid, .features-grid, .footer-grid, .product-detail-layout, .form-row {
    grid-template-columns: 1fr;
  }
}
.flash-banner {
  background-color: #f2ece1;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Policy / info pages */
.policy-card p { margin-bottom: 0.9rem; }
.policy-card ul, .policy-card ol { margin: 0 0 1rem 1.25rem; }
.policy-card li { margin-bottom: 0.4rem; }
.policy-card a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.policy-card .cart-table { margin-top: 0.75rem; }
.faq-item { border-bottom: 1px solid var(--border-light); padding: 0.9rem 0; }
.faq-item:first-of-type { padding-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }
.faq-item p { margin: 0.6rem 0 0; color: var(--text-muted); }


/* ===== Product cards: badges, wishlist, sale prices ===== */
.product-media { position: relative; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 2px; background: var(--text-dark); color: #fff;
}
.product-media .badge { position: absolute; left: 0.6rem; top: 0.6rem; }
.product-media .badge + .badge { top: 2.1rem; }
.badge-sale { background: #8f1d1d; }
.badge-new { background: var(--gold-dark); }
.badge-soldout { background: #57534e; }
.wishlist-form { position: absolute; right: 0.6rem; top: 0.6rem; margin: 0; }
.wishlist-btn {
  background: rgba(255,255,255,0.92); border: 0; border-radius: 50%; width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dark);
}
.wishlist-btn:hover, .wishlist-btn.active { color: #8f1d1d; }
.price-was { color: var(--text-muted); font-weight: 400; margin-right: 0.35rem; }
.price-now { color: #8f1d1d; font-weight: 600; }
.low-stock { color: #8f1d1d; font-weight: 600; margin-bottom: 0.75rem; }

/* ===== Catalog filter bar + pagination ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-top: 1.25rem; }
.filter-bar label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; }
.filter-bar label.check { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 500; }
.filter-bar input[type="number"] { width: 6.5rem; }
.filter-bar select, .filter-bar input[type="number"] {
  padding: 0.5rem 0.6rem; border: 1px solid var(--border-light); background: var(--bg-white); font: inherit;
}
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 2.5rem 0 0; }
.pagination a, .pagination span {
  min-width: 2.4rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border-light); text-align: center;
  background: var(--bg-white); text-decoration: none;
}
.pagination .current { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.pagination .gap { border: 0; background: transparent; }

/* ===== Product page: gallery, reviews ===== */
.gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.gallery-thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; width: 64px; height: 64px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold-primary); }
.stars { color: var(--gold-dark); letter-spacing: 0.1em; }
.rating-line { margin-bottom: 0.5rem; }
.reviews-block .review { border-bottom: 1px solid var(--border-light); padding: 1rem 0; }
.reviews-block .review p { margin: 0.4rem 0 0; }

/* ===== Account / order tracking ===== */
.address-item { border-bottom: 1px solid var(--border-light); padding: 0.9rem 0; }
.address-actions { display: flex; gap: 1rem; }
.order-steps { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 1rem 0; flex-wrap: wrap; }
.order-steps li { flex: 1; min-width: 5.5rem; text-align: center; padding: 0.6rem 0.4rem; border-top: 4px solid var(--border-light); font-size: 0.85rem; color: var(--text-muted); }
.order-steps li.done { border-top-color: var(--gold-dark); color: var(--text-dark); font-weight: 600; }

/* ===== Footer social, WhatsApp, cookie banner ===== */
.social-links { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.social-links a { text-decoration: underline; text-underline-offset: 2px; }
.whatsapp-btn {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: #1f7a4d; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.whatsapp-btn:hover { background: #17603c; }
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 640px; margin: 0 auto;
  background: var(--bg-white); border: 1px solid var(--border-light); box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; flex: 1 1 260px; font-size: 0.9rem; }
.consent-banner a { text-decoration: underline; }

/* ===== Utilities ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .cart-table { min-width: 560px; }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ===== Accessibility: visible keyboard focus, reduced motion ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text-dark); outline-offset: 2px;
}
.btn-primary:focus-visible { outline-color: var(--gold-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Responsive additions ===== */
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; }
  .filter-bar label, .filter-bar .btn { flex: 1 1 45%; }
  .consent-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .whatsapp-btn { bottom: 5rem; }
}

/* WhatsApp action button */
.btn-whatsapp { background-color: #1f7a4d; color: #fff; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-whatsapp:hover { background-color: #17603c; color: #fff; }
.policy-card ol { margin: 0 0 1rem 1.25rem; }

/* =====================================================================
   MOBILE EXPERIENCE (phones & small tablets)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.nav-close, .nav-overlay, .nav-extra, .tabbar, .mobile-buy-bar, .filter-toggle { display: none; }
.hide-mobile { display: inline-flex; }

@media (max-width: 860px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .announcement-bar { font-size: 0.75rem; }
  .hide-mobile { display: none; }

  /* Header: menu button left, logo centred, search right */
  .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
  .brand-logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.5rem; }
  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; }

  /* Slide-out drawer */
  .main-nav {
    position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: min(84vw, 340px);
    background: var(--bg-white); border: 0; border-right: 1px solid var(--border-light);
    padding: 4rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); overflow-y: auto; z-index: 300;
    display: block; transform: translateX(-102%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 0 30px rgba(0,0,0,0.2);
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a, .nav-extra a { display: block; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--border-light); font-size: 1.05rem; }
  .nav-close {
    display: block; position: absolute; top: 0.6rem; right: 0.75rem; width: 44px; height: 44px;
    background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text-dark);
  }
  .nav-extra { display: block; list-style: none; margin: 1.5rem 0 0; padding: 0; }
  .nav-extra a { font-size: 0.95rem; color: var(--text-muted); }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 250; }
  .nav-overlay[hidden] { display: none; }
  body.nav-open { overflow: hidden; }

  /* Bottom tab bar */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--bg-white); border-top: 1px solid var(--border-light);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }
  .tabbar .tab {
    flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 56px; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  }
  .tabbar .tab.active { color: var(--gold-dark); }
  .tab-badge {
    position: absolute; top: 5px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--gold-dark); color: #fff; font-style: normal; font-size: 0.68rem; line-height: 18px; text-align: center;
  }

  /* Floating buttons sit above the tab bar */
  .whatsapp-btn { bottom: calc(76px + env(safe-area-inset-bottom)); right: 0.85rem; width: 3rem; height: 3rem; }
  .consent-banner { bottom: calc(68px + env(safe-area-inset-bottom)); }

  /* Hero & sections */
  .hero-section { min-height: 420px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .section-header.flex-between { flex-wrap: wrap; gap: 0.5rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Product grid: two columns, compact cards */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.7rem; }
  .product-title { font-size: 0.9rem; }
  .product-price { font-size: 0.9rem; }
  .product-info .btn { width: 100%; padding: 0.7rem 0.4rem; font-size: 0.8rem; text-align: center; }
  .wishlist-btn { width: 2.6rem; height: 2.6rem; }

  /* Catalog filters become a collapsible panel; pills scroll sideways */
  .collection-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; scrollbar-width: none; margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .collection-pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; white-space: nowrap; padding: 0.6rem 1rem; }
  .filter-toggle { display: block; width: 100%; margin-top: 1rem; }
  .filter-bar { display: none; background: var(--bg-white); border: 1px solid var(--border-light); padding: 1rem; margin-top: 0.75rem; }
  .filter-bar.open { display: flex; }
  .filter-bar label, .filter-bar .btn { flex: 1 1 45%; }
  .filter-bar select, .filter-bar input[type="number"] { width: 100%; min-height: 44px; }

  /* Product page */
  .product-detail-layout { gap: 1.25rem; }
  .gallery-thumb { width: 56px; height: 56px; }
  .product-detail-img img { width: 100%; }
  body:has(.mobile-buy-bar) { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  body:has(.mobile-buy-bar) .whatsapp-btn { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .mobile-buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 190; background: var(--bg-white);
    border-top: 1px solid var(--border-light); padding: 0.6rem 1rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }
  .mobile-buy-price { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-buy-price s { color: var(--text-muted); font-size: 0.8rem; }
  .mobile-buy-price strong { font-size: 1.1rem; }
  .mobile-buy-bar .btn { flex: 0 0 auto; padding: 0.85rem 1.4rem; }

  /* Cart table turns into stacked cards */
  .table-wrap .cart-table { min-width: 0; }
  .cart-table thead { position: absolute; left: -9999px; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border: 1px solid var(--border-light); background: var(--bg-white); margin-bottom: 0.9rem; padding: 0.5rem 0.9rem; }
  .cart-table td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; border: 0; text-align: right; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); text-align: left; }
  .cart-table td:first-child { display: block; text-align: left; border-bottom: 1px solid var(--border-light); padding-bottom: 0.7rem; }
  .cart-table td:first-child::before, .cart-table td[data-label=""]::before { content: none; }
  .cart-table input[type="number"] { width: 84px !important; min-height: 44px; }

  /* Forms: 16px text prevents iOS zoom-on-focus; big tap targets */
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
  input[type="search"], select, textarea { font-size: 16px; min-height: 46px; }
  textarea { min-height: 96px; }
  .btn { min-height: 46px; }
  .stacked-form .btn.full-width, .stacked-form .btn-primary { width: 100%; }
  .input-group { flex-direction: column; gap: 0.6rem; }
  .input-group .btn { width: 100%; }
  .order-steps li { min-width: 45%; }
  .pagination a, .pagination span { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
  .policy-card { padding: 1.25rem; }
  .policy-card table, .table-wrap { overflow-x: auto; display: block; }
  .footer-bottom { padding-bottom: 1rem; }
}

@media (max-width: 380px) {
  .product-title { font-size: 0.82rem; }
  .brand-logo { font-size: 1.3rem; }
  .category-grid { gap: 0.5rem; }
}

/* Landscape phones: keep the drawer usable */
@media (max-height: 480px) and (max-width: 860px) {
  .hero-section { min-height: 300px; }
  .tabbar .tab { min-height: 48px; }
}

@media (hover: none) {
  .product-card:hover, .btn:hover { transform: none; }
}
