@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --light: #f0eeea;
  --border: #e8e5e0;
  --border-dark: #d0ccc5;
  --muted: #999490;
  --text: #1a1917;
  --text-mid: #4a4845;
  --brand: #1a1917;
  --accent: #8b6f5e;
  --gold: #c9a96e;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--text); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--sans); }
ul { list-style: none; }

/* ─── Utility ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }
.gold { color: var(--gold); }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.centered { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

/* ─── Navigation ─── */
.nav-wrap { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.nav-logo { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: .08em; }
.nav-logo span { font-style: italic; color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-actions a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); transition: color .2s; }
.nav-actions a:hover { color: var(--text); }
.cart-dot { position: relative; }
.cart-dot::after { content: attr(data-count); position: absolute; top: -8px; right: -10px; background: var(--text); color: white; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; }

/* ─── Hero ─── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.hero-img { overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 80px 72px; background: var(--off-white); }
.hero-eyebrow { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.hero-title { font-family: var(--serif); font-size: 56px; font-weight: 300; line-height: 1.1; margin-bottom: 24px; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 14px; color: var(--text-mid); line-height: 1.8; max-width: 360px; margin-bottom: 48px; }
.hero-ctas { display: flex; gap: 16px; align-items: center; }
.btn { display: inline-block; padding: 14px 36px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .2s; border: none; }
.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-dark); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost { background: none; border: none; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost::after { content: '→'; transition: transform .2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ─── Section Headers ─── */
.section-header { text-align: center; padding: 80px 40px 60px; }
.section-header .label { display: block; margin-bottom: 16px; }
.section-header h2 { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1.2; }
.section-header p { margin-top: 16px; color: var(--text-mid); font-size: 14px; max-width: 480px; margin-left: auto; margin-right: auto; }
.section-line { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.section-line h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; }

/* ─── Product Grid ─── */
.products-section { padding: 0 0 80px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.product-card { background: var(--white); overflow: hidden; cursor: pointer; }
.product-card-img { aspect-ratio: 3/4; overflow: hidden; background: var(--light); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; transition: background .3s; opacity: 0; }
.product-card:hover .product-card-overlay { background: rgba(0,0,0,.12); opacity: 1; }
.product-card-body { padding: 16px 20px 24px; }
.product-card-body .cat { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product-card-body .name { font-family: var(--serif); font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.product-card-body .price { font-size: 13px; color: var(--text-mid); }

/* ─── Editorial Feature ─── */
.editorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; margin: 2px 0; }
.editorial-img { overflow: hidden; background: var(--light); }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-content { display: flex; flex-direction: column; justify-content: center; padding: 80px; background: var(--off-white); }
.editorial-content .label { margin-bottom: 20px; }
.editorial-content h2 { font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1.15; margin-bottom: 24px; }
.editorial-content p { color: var(--text-mid); line-height: 1.9; margin-bottom: 40px; }
.editorial.reverse .editorial-img { order: 2; }
.editorial.reverse .editorial-content { order: 1; }

/* ─── Marquee ─── */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--off-white); }
.marquee-track { display: flex; gap: 64px; animation: marquee 24s linear infinite; white-space: nowrap; }
.marquee-track span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Stats ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; padding: 56px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 48px; font-weight: 300; line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ─── Full-width Banner ─── */
.banner { position: relative; height: 500px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 70%); display: flex; align-items: center; }
.banner-content { color: white; padding: 0 80px; max-width: 600px; }
.banner-content .label { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.banner-content h2 { font-family: var(--serif); font-size: 52px; font-weight: 300; line-height: 1.1; margin-bottom: 32px; }

/* ─── Newsletter ─── */
.newsletter { text-align: center; padding: 100px 40px; background: var(--off-white); border-top: 1px solid var(--border); }
.newsletter .label { margin-bottom: 16px; }
.newsletter h2 { font-family: var(--serif); font-size: 40px; font-weight: 300; margin-bottom: 16px; }
.newsletter p { color: var(--text-mid); margin-bottom: 40px; }
.newsletter-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; border: 1px solid var(--border-dark); }
.newsletter-form input { flex: 1; padding: 14px 20px; background: white; border: none; outline: none; font-size: 13px; color: var(--text); }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button { background: var(--text); color: white; border: none; padding: 14px 28px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ─── Footer ─── */
footer { background: var(--text); color: rgba(255,255,255,.7); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; max-width: 1280px; margin: 0 auto; padding: 0 40px 60px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand-logo { font-family: var(--serif); font-size: 24px; font-weight: 400; color: white; margin-bottom: 16px; letter-spacing: .06em; }
.footer-brand-logo span { font-style: italic; color: var(--gold); }
.footer-brand-desc { font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 28px 40px 0; }
.footer-bottom p { font-size: 12px; }

/* ─── Product Detail Page ─── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.product-gallery { background: var(--light); position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 80px 72px; }
.product-info .cat { margin-bottom: 16px; }
.product-info h1 { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1.15; margin-bottom: 16px; }
.product-info .price-display { font-size: 24px; font-family: var(--serif); color: var(--text-mid); margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 32px; }
.size-btn { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: white; font-size: 12px; cursor: pointer; transition: all .2s; }
.size-btn.active, .size-btn:hover { border-color: var(--text); background: var(--text); color: white; }
.product-desc { font-size: 14px; color: var(--text-mid); line-height: 1.9; margin-bottom: 40px; }
.add-to-cart-btn { width: 100%; padding: 18px; background: var(--text); color: white; border: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s; margin-bottom: 16px; }
.add-to-cart-btn:hover { background: #333; }
.product-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; display: flex; gap: 24px; }

/* ─── Cart Page ─── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 80px; padding: 80px 0 120px; }
.cart-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.cart-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cart-item-img { aspect-ratio: 3/4; overflow: hidden; background: var(--light); }
.cart-item-name { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.cart-item-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 16px; }
.cart-item-price { font-family: var(--serif); font-size: 20px; }
.order-summary { background: var(--off-white); padding: 40px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 100px; }
.order-summary h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 32px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: var(--text-mid); }
.summary-total { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--serif); font-size: 20px; margin-top: 8px; }
.checkout-form { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 32px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); background: white; outline: none; font-size: 13px; transition: border-color .2s; }
.form-group input:focus { border-color: var(--text); }

/* ─── Admin ─── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--text); color: white; padding: 40px 0; }
.admin-sidebar-logo { font-family: var(--serif); font-size: 20px; padding: 0 28px 40px; border-bottom: 1px solid rgba(255,255,255,.12); color: white; }
.admin-sidebar-logo span { font-style: italic; color: var(--gold); }
.admin-nav { padding: 24px 0; }
.admin-nav a { display: block; padding: 12px 28px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); transition: all .2s; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.08); }
.admin-main { background: var(--off-white); padding: 48px; overflow: auto; }
.admin-main h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 8px; }
.admin-main .admin-sub { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { background: white; padding: 28px; border: 1px solid var(--border); }
.stat-card .s-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.stat-card .s-val { font-family: var(--serif); font-size: 36px; font-weight: 300; }
.admin-table-wrap { background: white; border: 1px solid var(--border); overflow: hidden; }
.admin-table-header { padding: 20px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-table-header h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 14px 28px; border-bottom: 1px solid var(--border); font-weight: 400; background: var(--off-white); }
td { padding: 16px 28px; border-bottom: 1px solid var(--border); font-size: 13px; }
tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 4px 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.status-new { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-shipped { background: #dbeafe; color: #1e40af; }
.status-production { background: #ede9fe; color: #5b21b6; }
.admin-add-form { background: white; border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.admin-add-form h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-add-form input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); outline: none; font-size: 13px; background: var(--off-white); }
.admin-btn { padding: 10px 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer; }
.admin-btn-dark { background: var(--text); color: white; }
.admin-btn-ghost { background: transparent; border: 1px solid var(--border-dark); color: var(--text-mid); }

/* ─── Toast ─── */
.toast { position: fixed; bottom: 32px; right: 32px; background: var(--text); color: white; padding: 16px 24px; font-size: 13px; letter-spacing: .04em; z-index: 999; opacity: 0; transform: translateY(16px); transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { height: 60vw; }
  .hero-content { padding: 60px 40px; }
  .hero-title { font-size: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .editorial-img { height: 60vw; }
  .editorial-content { padding: 60px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; height: 80vw; }
  .product-info { padding: 48px 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-content { padding: 40px 24px; }
  .hero-title { font-size: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .banner-content { padding: 0 24px; }
  .banner-content h2 { font-size: 36px; }
  .section-header h2 { font-size: 30px; }
  .newsletter h2 { font-size: 30px; }
}

/* ─── Mobile Nav ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 64px 0 0 0; background: white; z-index: 99; padding: 48px 40px; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 28px; font-family: 'Cormorant Garamond', serif; font-weight: 300; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu a:last-child { border-bottom: none; }
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links { display: none !important; }
}

/* ─── Size Modal ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: white; width: 100%; max-width: 480px; padding: 40px; max-height: 90vh; overflow-y: auto; transform: translateY(40px); transition: transform .3s; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; margin-bottom: 24px; }

/* ─── Page header ─── */
.page-hero { padding: 80px 0 60px; background: var(--off-white); border-bottom: 1px solid var(--border); }
.page-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 300; line-height: 1.1; }
.page-hero p { color: var(--text-mid); line-height: 1.9; margin-top: 16px; }
@media (max-width: 1024px) { .page-hero .container { grid-template-columns: 1fr; } }

/* ─── Content blocks ─── */
.content-block { padding: 80px 0; border-bottom: 1px solid var(--border); }
.content-block:last-child { border-bottom: none; }
.content-block h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 400; margin-bottom: 24px; }
.content-block p { color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }
.content-block ul li { color: var(--text-mid); line-height: 1.9; padding-left: 16px; position: relative; margin-bottom: 8px; }
.content-block ul li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn { width: 100%; text-align: left; padding: 24px 0; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-family: 'Cormorant Garamond', serif; }
.accordion-btn::after { content: '+'; font-size: 20px; color: var(--muted); transition: transform .3s; }
.accordion-btn.open::after { content: '—'; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-body.open { max-height: 400px; }
.accordion-body p { color: var(--text-mid); line-height: 1.9; padding-bottom: 24px; }

/* ─── Bespoke form ─── */
.bespoke-form { background: var(--off-white); border: 1px solid var(--border); padding: 48px; }
.bespoke-form h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 400; margin-bottom: 8px; }
.bespoke-form .sub { color: var(--text-mid); margin-bottom: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ─── UI Polish Pass 2 ─── */
/* Smooth page transitions */
body { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Better product card hover */
.product-card { transition: transform .3s ease; }
.product-card:hover { z-index: 2; }
.product-card-img { transition: all .3s; }

/* Filter bar improvements */
.filter-bar { background: white; border-bottom: 1px solid var(--border); padding: 0; }

/* Nav active state */
.nav-links a.active { color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 2px; }

/* Improved hero on mobile */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { height: 70vw; min-height: 300px; }
  .hero-content { padding: 48px 24px; }
  .hero-title { font-size: 38px; }
  section[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  section[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .editorial { grid-template-columns: 1fr !important; }
  .editorial .editorial-img { height: 70vw; }
  .editorial .editorial-content { padding: 48px 24px !important; }
  .editorial.reverse .editorial-img { order: 0 !important; }
  .editorial.reverse .editorial-content { order: 1 !important; }
  #product-grid { grid-template-columns: repeat(2,1fr) !important; }
  .stats { grid-template-columns: repeat(2,1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
  .banner-content { padding: 0 24px !important; }
  .banner-content h2 { font-size: 36px !important; }
}
@media (max-width: 640px) {
  /* Base */
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; height: 56px; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 32px 16px 40px; }
  .hero-title { font-size: 28px; line-height: 1.2; }
  .hero-img { height: 55vw; }

  /* Section headings */
  .section-header h2 { font-size: 24px; }
  .section-header { padding: 32px 0 20px; }

  /* Shop */
  #product-grid { grid-template-columns: repeat(2,1fr) !important; }
  .product-card-img { height: 52vw; }
  .shop-filters { flex-direction: column; gap: 8px; }
  .shop-filter-bar { padding: 10px 0; overflow-x: auto; }
  .shop-filter-bar .container { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Product detail */
  .product-gallery { height: 72vw; }
  .product-info { padding: 28px 16px 100px; }
  .product-info h1 { font-size: 26px; }
  .product-info .price-display { font-size: 20px; margin-bottom: 24px; padding-bottom: 24px; }

  /* Cart / Checkout */
  .cart-layout { gap: 32px; padding: 32px 0 100px; }
  .order-summary { padding: 24px 16px; position: static; }
  .checkout-form { margin-top: 24px; padding-top: 20px; }
  .form-row { grid-template-columns: 1fr !important; display: grid !important; }

  /* Bespoke */
  .bespoke-form { padding: 24px 16px !important; }
  .page-hero .container { padding: 32px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer { padding: 48px 0 100px; }

  /* Stats / editorial */
  .stat-cards { grid-template-columns: repeat(2,1fr) !important; }
  .editorial-content { padding: 32px 16px; }
  .editorial-img { height: 55vw; }

  /* Newsletter */
  .newsletter { padding: 48px 16px; }
  .newsletter h2 { font-size: 26px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input { width: 100%; }
  .newsletter-form button { width: 100%; }

  /* Banner */
  .banner-content { padding: 0 16px; }
  .banner-content h2 { font-size: 28px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-post-content { padding: 0 16px; }
  .blog-post-content h1 { font-size: 26px; }

  /* Tracking */
  .track-card { padding: 24px 16px; }

  /* Bottom padding for bottom nav */
  main, .page-main { padding-bottom: 80px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

/* Better buttons */
.btn { border-radius: 0; }
.add-to-cart-btn { border-radius: 0; transition: background .2s; }

/* Image loading skeleton */
.product-card-img { background: var(--light); }

/* Section spacing consistency */
.products-section { padding: 0; }

/* ─── Mobile Bottom Nav ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-top: 1px solid var(--border);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 56px;
}
.mobile-bottom-nav li {
  flex: 1;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  text-decoration: none;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--text);
}
.mobile-bottom-nav .nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-bottom-nav .cart-badge {
  position: relative;
}
.mobile-bottom-nav .cart-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--text);
  color: white;
  font-size: 8px;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 3px;
}
/* Add bottom padding to body so content isn't hidden behind nav */
@media (max-width: 1024px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* hide top nav shop/cart links on mobile to avoid duplication */
  .nav-actions a:not(.cart-dot) { display: none; }
}

/* ─── Home Hero Redesign (Lustro-style) ─── */
.home-page .nav-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  z-index: 120;
}
.home-page .nav-logo,
.home-page .nav-links a,
.home-page .nav-actions a {
  color: #fff;
}
.home-page .hamburger span {
  background: #fff;
}
.home-page .nav-links a,
.home-page .nav-actions a { opacity: .95; }

.hero-lustro {
  position: relative;
  min-height: 92vh;
  display: block;
  overflow: hidden;
  background: #0f0f0f;
}
.hero-lustro .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-lustro .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.36) 55%, rgba(0,0,0,.52) 100%);
}
.hero-lustro .hero-shell {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: end;
  gap: 20px;
  padding: 120px 56px 56px;
}
.hero-script {
  font-family: var(--serif);
  font-style: italic;
  color: #fff;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: .01em;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-right-copy {
  color: #fff;
  max-width: 420px;
}
.hero-small {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,.92);
}
.hero-shop-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #111;
  padding: 14px 18px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}
.hero-shop-btn:hover { background: #f4f4f4; }

@media (max-width: 1024px) {
  .hero-lustro,
  .hero-lustro .hero-shell { min-height: 80vh; }
  .hero-lustro .hero-shell {
    grid-template-columns: 1fr;
    padding: 100px 22px 26px;
    gap: 16px;
  }
  .hero-small { font-size: 14px; }
  .hero-shop-btn { width: 100%; }
}

/* ─── Admin layout polish: sidebar-relative scrolling + top navbar ─── */
.admin-layout { align-items: start; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-main {
  min-width: 0;
  overflow-x: hidden;
}
@media (max-width: 1024px) {
  .admin-topbar {
    margin: -24px -24px 18px !important;
    padding: 12px 14px !important;
  }
}

/* ─── Admin Top Navbar ─── */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 0 28px;
  height: 52px;
  margin: -48px -48px 32px;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-topbar-logo {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
}
.admin-topbar-sep {
  color: var(--muted);
  font-size: 13px;
}
.admin-topbar-page {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
  letter-spacing: .04em;
}

.admin-topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.admin-topbar-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.admin-topbar-nav a:hover {
  color: var(--ink);
  background: var(--off-white);
}
.admin-topbar-nav a.active {
  color: var(--ink);
  background: var(--off-white);
  font-weight: 700;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.admin-topbar-action {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
}
.admin-topbar-action:hover { color: var(--ink); }
.admin-topbar-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-topbar-logout {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.admin-topbar-logout:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 900px) {
  .admin-topbar { margin: -24px -20px 20px; padding: 0 14px; }
  .admin-topbar-nav { display: none; }
  .admin-topbar-right .admin-topbar-user { display: none; }
}

/* ─── Admin topbar: breadcrumb-only revision ─── */
.admin-topbar {
  justify-content: space-between !important;
}
.admin-topbar-nav { display: none !important; }
.admin-topbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  display: inline-block;
}

/* ─── Admin: full-width topbar overhaul ─── */
body:has(.admin-topbar) { margin: 0; }

.admin-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 52px !important;
  z-index: 200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #fff !important;
  border-bottom: 1.5px solid var(--border) !important;
  padding: 0 24px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.04) !important;
}

/* Offset layout below fixed topbar */
.admin-layout {
  padding-top: 52px;
}
.admin-sidebar {
  position: fixed !important;
  top: 52px !important;
  left: 0 !important;
  height: calc(100vh - 52px) !important;
  overflow-y: auto;
}
.admin-main {
  margin-left: 200px; /* match sidebar width */
  min-height: calc(100vh - 52px);
  padding: 40px 48px;
}

/* Search bar */
.admin-topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  background: var(--off-white, #f8f7f5);
  border: 1.5px solid var(--border, #e8e5e0);
  border-radius: 6px;
  padding: 0 12px;
  height: 34px;
  color: var(--muted, #888);
}
.admin-topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--ink, #111);
  width: 100%;
  font-family: inherit;
}
.admin-topbar-search input::placeholder { color: var(--muted, #aaa); }

.admin-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 300;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.admin-search-results.open { display: block; }
.admin-search-result-item {
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-search-result-item:last-child { border-bottom: none; }
.admin-search-result-item:hover { background: var(--off-white); }
.admin-search-result-item .sr-type {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-topbar-search { max-width: 140px; }
  .admin-topbar-right .admin-topbar-user,
  .admin-topbar-right .admin-topbar-action,
  .admin-topbar-right .admin-topbar-divider { display: none; }
  .admin-topbar-right .admin-topbar-logout { font-size: 9px; padding: 3px 8px; }
  .admin-main { margin-left: 0 !important; padding: 16px 14px 80px !important; }
  .stat-cards { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  .dash-cols { grid-template-columns: 1fr !important; }
  #admin-mobile-nav { display: block !important; }
  .admin-sidebar { display: none !important; }
  /* Table overflow */
  .admin-table-wrap, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Forms */
  .admin-add-form { padding: 16px !important; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ─── Dashboard ─── */
.dash-kpi { cursor: pointer; transition: box-shadow .15s, transform .1s; }
.dash-kpi:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.dash-kpi-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

.dash-int-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.dash-int-row:last-child { border-bottom: none; }
.dash-int-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}
.dash-int-state { margin-left: auto; font-size: 11px; font-weight: 600; }

.admin-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
  opacity: .5;
}

@media (max-width: 900px) {
  .dash-cols { grid-template-columns: 1fr !important; }
}

/* ─── Admin layout: definitive fix ─── */
/* Topbar is fixed, sidebar is fixed — layout must be block, not grid */
.admin-layout {
  display: block !important;
  grid-template-columns: none !important;
  padding-top: 52px !important; /* topbar height */
}
.admin-sidebar {
  position: fixed !important;
  top: 52px !important;
  left: 0 !important;
  width: 200px !important;
  height: calc(100vh - 52px) !important;
  overflow-y: auto !important;
  z-index: 100 !important;
}
.admin-main {
  display: block !important;
  margin-left: 200px !important;
  padding: 40px 48px !important;
  min-height: calc(100vh - 52px) !important;
  width: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .admin-sidebar { display: none !important; }
  .admin-main { margin-left: 0 !important; padding: 20px 16px !important; }
}

/* ─── Search icon: match nav text color ─── */
.nav-search-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-mid) !important;
  display: flex;
  align-items: center;
  transition: opacity .15s;
}
.nav-search-btn:hover { opacity: .6; }

/* On homepage (transparent nav over hero) — icon is white */
.home-page .nav-search-btn { color: #fff !important; }

/* ─── Prevent FOUC (flash of unstyled content) ─── */
html { visibility: hidden; }
html.ready { visibility: visible; }
