@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --bg: #f8f7f4;
  --surface: #fff;
  --text: #151515;
  --muted: #777;
  --line: #e5e3df;
  --accent: #111;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--bg); color: var(--text); }
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }

.announcement {
  background: #111; color: #fff; text-align: center; padding: 9px 16px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.header {
  height: 76px; background: rgba(255,255,255,.94); backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 5vw;
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.05em; }
.logo span { font-weight: 400; }
.desktop-nav { display: flex; gap: 34px; font-size: 13px; }
.desktop-nav a:hover, .footer-links a:hover { opacity: .55; }
.header-actions { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; background: transparent; font-size: 21px; position: relative; }
.cart-btn b {
  position: absolute; right: 0; top: 0; background: #111; color: #fff; border-radius: 50%;
  min-width: 16px; height: 16px; padding: 0 4px; font-size: 9px; display: grid; place-items: center;
}
.search-bar { display: none; padding: 12px 5vw; background: #fff; border-bottom: 1px solid var(--line); }
.search-bar.open { display: block; }
.search-bar input {
  width: 100%; border: 0; outline: 0; background: #f5f4f1; padding: 15px 18px; border-radius: 10px;
}

.hero {
  min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #ece9e2;
}
.hero-copy { padding: 8vw 5vw; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(54px, 7vw, 100px); line-height: .88; letter-spacing: -.065em; max-width: 700px; }
.hero h1 em { font-family: "Playfair Display", serif; font-weight: 600; }
.hero-copy > p:not(.eyebrow) { max-width: 430px; margin: 28px 0; color: #65635f; line-height: 1.7; }
.primary-btn {
  width: fit-content; display: inline-flex; align-items: center; justify-content: center; gap: 25px;
  background: #111; color: #fff; padding: 16px 21px; font-size: 12px; font-weight: 700;
  transition: transform .2s, background .2s;
}
.primary-btn:hover { transform: translateY(-2px); background: #333; }
.primary-btn.full { width: 100%; }
.hero-art { position: relative; overflow: hidden; background: #d5d0c7; }
.hero-card {
  position: absolute; display: grid; place-items: center; text-align: center; font-weight: 700;
  letter-spacing: .05em; line-height: 1.05; box-shadow: 0 25px 70px rgba(0,0,0,.12);
}
.card-one { width: 45%; aspect-ratio: .72; right: 22%; top: 14%; background: #b7b0a4; font-size: clamp(22px, 3vw, 44px); transform: rotate(6deg); }
.card-two { width: 38%; aspect-ratio: .72; right: 9%; bottom: 8%; background: #eeeae2; font-size: clamp(14px, 2vw, 26px); transform: rotate(-9deg); }

.section { padding: 100px 5vw; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 35px; }
.section h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.05em; }
.sort-select { border: 1px solid var(--line); background: #fff; padding: 11px 14px; outline: 0; border-radius: 7px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { text-align: left; background: transparent; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.category-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.72); transition: transform .45s; }
.category-card:hover img { transform: scale(1.05); }
.category-card span { position: absolute; left: 22px; bottom: 30px; color: #fff; font-size: 25px; font-weight: 600; }
.category-card small { position: absolute; left: 22px; bottom: 14px; color: rgba(255,255,255,.75); font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
.product-image-wrap { position: relative; aspect-ratio: .78; overflow: hidden; background: #eee; cursor: pointer; }
.product-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.product-image-wrap:hover .product-image { transform: scale(1.035); }
.badge { position: absolute; z-index: 2; top: 13px; left: 13px; background: #fff; padding: 7px 9px; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.quick-add {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; font-size: 23px; box-shadow: 0 6px 25px rgba(0,0,0,.13); opacity: 0; transform: translateY(7px); transition: .25s;
}
.product-image-wrap:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-info { padding: 13px 2px; }
.product-category { color: #8a8884; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.product-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 9px; cursor: pointer; }
.price { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.price del { color: #999; font-size: 11px; }
.price span { color: #777; font-size: 9px; font-weight: 700; }
.active-filter { min-height: 32px; margin-top: -20px; margin-bottom: 18px; }
.active-filter button { background: #111; color: #fff; border-radius: 20px; padding: 7px 12px; font-size: 10px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state div { font-size: 45px; margin-bottom: 10px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); margin-top: 7px; }

.promo { margin: 0 5vw 100px; padding: 70px 6vw; background: #e6e1d8; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.promo h2 { font-size: clamp(35px, 4.5vw, 62px); letter-spacing: -.06em; line-height: .95; }
.benefits { display: grid; }
.benefits div { display: flex; gap: 30px; padding: 19px 0; border-bottom: 1px solid rgba(0,0,0,.14); font-size: 13px; }
.benefits strong { font-size: 10px; color: #777; }
footer { background: #111; color: #fff; padding: 60px 5vw 28px; display: grid; grid-template-columns: 1fr auto; gap: 50px; }
footer .logo { color: #fff; }
.footer-brand p { color: #999; max-width: 340px; font-size: 12px; line-height: 1.6; margin-top: 15px; }
.footer-links { display: flex; gap: 25px; font-size: 12px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 20px; color: #777; font-size: 10px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; opacity: 0; visibility: hidden; transition: .25s; }
.overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; z-index: 50; right: 0; top: 0; width: min(430px, 100%); height: 100dvh;
  background: #fff; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; letter-spacing: -.04em; }
.close-btn, .modal-close { background: transparent; font-size: 28px; line-height: 1; }
.cart-items { padding: 15px 24px; overflow: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 75px 1fr 20px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 75px; height: 90px; object-fit: cover; }
.cart-item h4 { font-size: 12px; margin: 2px 0 7px; }
.cart-item p { font-size: 11px; color: #555; }
.qty { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.qty button { width: 24px; height: 24px; background: #f1f0ed; border-radius: 50%; }
.qty span { font-size: 11px; }
.remove-item { background: transparent; font-size: 18px; color: #888; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #777; }
.empty-icon { font-size: 45px; margin-bottom: 12px; }
.cart-empty h3 { color: #111; font-size: 17px; }
.cart-empty p { font-size: 12px; margin-top: 5px; }
.cart-footer { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-footer > p { color: #888; font-size: 10px; margin-bottom: 18px; }

.product-modal {
  position: fixed; z-index: 60; width: min(900px, calc(100% - 30px)); max-height: calc(100dvh - 30px);
  overflow: auto; left: 50%; top: 50%; transform: translate(-50%, -45%); opacity: 0; visibility: hidden;
  background: #fff; display: grid; grid-template-columns: 1fr 1fr; transition: .25s;
}
.product-modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-close { position: absolute; right: 15px; top: 15px; z-index: 3; }
.modal-image { min-height: 500px; background: #eee; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 70px 45px 45px; display: flex; flex-direction: column; justify-content: center; }
.modal-info h2 { font-size: clamp(28px, 4vw, 46px); line-height: .98; letter-spacing: -.05em; }
.modal-price { font-size: 18px; font-weight: 700; margin: 20px 0; }
.modal-price del { color: #999; font-size: 13px; margin-left: 8px; }
.modal-info > p:not(.eyebrow):not(.sku) { color: #777; font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.sku { font-size: 9px; color: #aaa; margin-bottom: 25px; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: #111; color: #fff; padding: 12px 18px; font-size: 11px; opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .header { height: 64px; padding: 0 18px; }
  .desktop-nav { display: none; }
  .announcement { font-size: 8px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 70px 20px 55px; }
  .hero-art { height: 350px; }
  .section { padding: 65px 18px; }
  .section-head { align-items: start; flex-direction: column; }
  .sort-select { width: 100%; }
  .category-grid { gap: 8px; }
  .category-card span { left: 14px; bottom: 25px; font-size: 18px; }
  .category-card small { left: 14px; bottom: 12px; }
  .product-grid { gap: 22px 9px; }
  .quick-add { opacity: 1; transform: none; width: 36px; height: 36px; }
  .product-info h3 { font-size: 12px; }
  .promo { margin: 0 18px 65px; padding: 45px 25px; }
  footer { padding: 45px 18px 25px; grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .copyright { grid-column: 1; }
  .product-modal { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); }
  .modal-image { min-height: 350px; height: 48vh; }
  .modal-info { padding: 35px 25px 25px; }
}
