/* ============================================================
   MODELINE — Shared Styles (main.css)
   Loaded by every page. Contains ONLY styles used on 2+ pages.
   Page-specific styles live in their own css/<page>.css file.
   ============================================================ */

/* === 1. CSS VARIABLES === */
:root {
  --gold: #b8860b;
  --gold-light: #d4a017;
  --gold-pale: #f5e6c0;
  --cream: #faf6ee;
  --parchment: #f0e8d5;
  --bark: #8b6914;
  --espresso: #2c1a08;
  --ink: #1a1208;
  --warm-gray: #7a6f63;
  --border: #d9c99a;
}

/* === 2. RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', Georgia, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

.page-shell {
  position: relative;
  width: 100%;
}

/* === 3. TOPBAR === */
.topbar {
  background: var(--espresso);
  color: var(--gold-pale);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* === 4. NAVIGATION === */
nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 18px;
}

.nav-logo {
  flex: 0 0 auto;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 2px;
}

.nav-logo span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--espresso);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 0 0 auto;
}

.nav-actions a {
  color: var(--espresso);
  text-decoration: none;
  font-size: 13px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-actions a:hover {
  color: var(--gold);
}

.cart-btn {
  background: var(--espresso);
  color: var(--gold-pale) !important;
  padding: 9px 22px;
  border-radius: 1px;
  position: relative;
}

.cart-btn:hover {
  background: var(--bark);
}

/* Desktop cart badge */
.desktop-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

/* Mobile cart badge (icon mode) */
.basket-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  display: none;
}

.nav-action-text {
  display: inline;
}

.cart-count-badge {
  display: none;
}

/* === 5. MOBILE HAMBURGER & MENU === */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-hamburger:hover {
  border-color: var(--gold);
  background: var(--parchment);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: 14px;
  justify-content: center;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--espresso);
  transition: background 0.2s;
}

.nav-hamburger:hover .hamburger-icon span {
  background: var(--gold);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 12px 60px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links li:last-child {
  border-bottom: none;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--espresso);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--gold);
}

/* === 6. SHARED LAYOUT: PAGE HERO & BREADCRUMB === */
/* Used by: Shop, About, Contact, Cart */
.page-hero {
  background:
    linear-gradient(to bottom, rgba(28, 14, 4, 0.65), rgba(28, 14, 4, 0.58)),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center 40%/cover no-repeat;
  padding: 90px 60px 80px;
  text-align: center;
}

.breadcrumb {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(253, 248, 238, 0.55);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.breadcrumb a {
  color: rgba(253, 248, 238, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-pale);
}

.page-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 600;
  color: #fdf8ee;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.page-title span[id$="-title-em"],
.page-title span:not([id]) {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-style: italic;
  color: var(--gold-pale);
  font-weight: 300;
}

.page-subtitle {
  font-size: 17px;
  color: rgba(253, 248, 238, 0.70);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* === 7. GOLD RULE & INTRO STATEMENT === */
/* Used by: About, Contact */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 60px;
  margin: 56px 0 0;
}

.gold-rule::before,
.gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gold-rule-icon {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-statement {
  text-align: center;
  padding: 60px 60px 0;
  max-width: 860px;
  margin: 0 auto;
}

.intro-statement .eyebrow {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}

.intro-statement h2 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.intro-statement h2 span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--bark);
}

.intro-statement p {
  font-size: 18px;
  color: var(--warm-gray);
  font-style: italic;
  line-height: 1.8;
}

/* === 8. ORNAMENT DIVIDER & SECTION HEADER === */
/* Used by: Home, Cart, About */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 60px 0;
  color: var(--gold);
  font-size: 18px;
}

.ornament-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}

.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--border));
}

.ornament-sym {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

.section-header {
  text-align: center;
  padding: 20px 60px 16px;
}

.section-eyebrow {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.1;
}

.section-title span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-style: italic;
  color: var(--bark);
}

.section-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* === 9. SHARED BUTTONS === */
.btn-primary,
.btn-ghost,
.btn-espresso {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  padding: 14px 38px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: #fdf8ee;
  border-color: rgba(253, 248, 238, 0.5);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.1);
}

.btn-espresso {
  background: var(--espresso);
  color: var(--gold-pale);
  border-color: var(--espresso);
}

.btn-espresso:hover {
  background: var(--bark);
  border-color: var(--bark);
}

/* === 10. PRODUCT CARD (shared: Home, Shop, Product related grid) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--parchment);
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.88);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 0;
  left: auto;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  text-transform: uppercase;
  background: var(--espresso);
  color: var(--gold-pale);
}

.product-badge.sale       { background: #7a1a0a; }
.product-badge.new-badge  { background: var(--bark); }
.product-badge.limited    { background: #5a2d00; }
.product-badge.bestseller { background: var(--espresso); }

.product-quick {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 14, 4, 0.9);
  color: var(--gold-pale);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 13px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  z-index: 2;
}

.product-card:hover .product-quick {
  transform: translateY(0);
}

.product-content {
  display: contents;
}

.product-info {
  padding: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

.review-count {
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
}

.product-name {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-origin {
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
  margin-bottom: 10px;
}

.product-price {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  color: var(--bark);
  letter-spacing: 0.06em;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-old {
  text-decoration: line-through;
  color: var(--warm-gray);
  font-size: 13px;
}

.price-sale {
  color: #8b0000;
}

/* === 11. REVIEW CARD (shared: Home testimonials, About reviews) === */
.review-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  inset-inline-end: 22px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 72px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.review-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.review-body {
  font-size: 15px;
  color: var(--espresso);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 22px;
  padding-top: 8px;
}

.review-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  gap: 12px;
}

.reviewer-name {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--bark);
  text-transform: uppercase;
  font-weight: 600;
}

.reviewer-location {
  font-size: 13px;
  color: var(--warm-gray);
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.review-date {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Review form shared elements (used in About + Product page) */
.star-picker {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.star-picker span {
  font-size: 26px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
  user-select: none;
}

.star-picker span.lit {
  color: var(--gold);
}

/* Review submit success */
.review-success {
  text-align: center;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--gold);
}

.review-success p {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--espresso);
  font-style: italic;
}

.review-success span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}

/* === 12. TOAST NOTIFICATION (shared: Home, Shop, Cart) === */
.toast {
  position: fixed;
  top: 100px;
  inset-inline-end: 30px;
  background: var(--espresso);
  color: var(--gold-pale);
  padding: 16px 28px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 300;
  border: 1px solid var(--gold);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === 13. LOADING SPINNER === */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === 14. FOOTER === */
footer {
  background: var(--espresso);
  padding: 70px 60px 30px;
  color: rgba(253, 248, 238, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 20px;
  color: var(--gold-pale);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 134, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 13px;
  text-decoration: none;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.footer-socials a:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.12);
}

.footer-col-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-pale);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(253, 248, 238, 0.58);
  font-style: italic;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-pale);
}

.footer-bottom {
  border-top: 1px solid rgba(184, 134, 11, 0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 248, 238, 0.3);
}

.footer-credit {
  text-align: center;
  padding-top: 12px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-credit a {
  color: var(--gold-pale);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credit a:hover {
  color: #fff;
}

/* === 15. RESPONSIVE === */

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  nav {
    padding: 0 30px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ornament-divider,
  .section-header {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* 820px — tablet portrait: hamburger appears */
@media (max-width: 820px) {
  nav {
    justify-content: space-between;
  }

  .nav-logo {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 18px;
    white-space: nowrap;
  }

  .nav-logo span {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-inline-start: auto;
    order: 2;
  }

  .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  .nav-action-text {
    display: none;
  }

  .nav-actions .cart-btn {
    background: transparent !important;
    color: #000 !important;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions .cart-btn:hover {
    background: transparent !important;
  }

  .cart-count-badge {
    display: inline-flex;
    position: absolute;
    top: -6px;
    inset-inline-end: -10px;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--espresso);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
  }

  .desktop-cart-badge {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    order: 3;
  }

  .mobile-menu {
    padding: 12px 20px;
  }
}

/* 640px — large phones */
@media (max-width: 640px) {
  nav {
    padding: 0 20px;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .page-hero {
    padding: 50px 20px 40px;
  }

  .gold-rule {
    padding: 0 20px;
  }

  .intro-statement {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ornament-divider,
  .section-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-menu {
    padding: 12px 16px;
  }
}

/* 480px — small phones */
@media (max-width: 480px) {
  .topbar {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-name {
    font-size: 17px;
  }

  .product-price {
    font-size: 13px;
  }

  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-hamburger {
    width: 34px;
    height: 34px;
  }

  .mobile-nav-links a {
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 12px 0;
  }
}

/* === Very narrow viewports (foldables, < 360px) === */
@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}
