@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; } }
