@import url("fonts-face.css");

:root {
  --ink: #111111;
  --muted: rgba(0,0,0,.55);
  --line: #e8e8e8;
  --wash: #f4f4f2;
  --white: #ffffff;
  --max: 1180px;
  --header-h: 82px;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-head: "Yeseva One", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: #555; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-weight: 600; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 16px; z-index: 10000; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 32px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: #333; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; cursor: pointer; color: inherit; padding: 6px; font-size: 1.2rem; }

.announce { text-align: center; font-size: .75rem; letter-spacing: .08em; padding: 10px 16px; background: var(--wash); color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 800; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: var(--header-h);
}
.logo { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); letter-spacing: .02em; }
.logo:hover { color: var(--ink); opacity: .7; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #111; margin: 5px 0; }
.nav-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.nav-menu a[aria-current="page"], .nav-menu a:hover { color: #888; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.header-tools a, .header-tools button {
  color: var(--ink); background: none; border: 0; cursor: pointer; padding: 4px;
  width: 32px; height: 32px; display: grid; place-items: center; position: relative;
}
.header-tools svg { width: 20px; height: 20px; display: block; }
.cart-count {
  position: absolute; top: -4px; right: -6px;
  background: #111; color: #fff; border-radius: 99px;
  font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

.search-panel {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,.45); align-items: flex-start; justify-content: center; padding-top: 12vh;
}
body.search-open .search-panel { display: flex; }
.search-panel form { background: #fff; width: min(640px, 92%); padding: 20px; display: flex; gap: 8px; }
.search-panel input { flex: 1; border: 1px solid var(--line); padding: 12px 14px; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw);
  background: #fff; z-index: 1300; transform: translateX(100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
}
body.cart-open .cart-drawer { transform: none; }
.cart-backdrop, .filters-backdrop, .qv-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1250;
}
body.cart-open .cart-backdrop,
body.filters-open .filters-backdrop,
body.qv-open .qv-backdrop { display: block; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.mini-cart { padding: 16px 20px; overflow: auto; flex: 1; }
.mini-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-row img { width: 64px; height: 64px; object-fit: contain; background: var(--wash); }
.mini-sub { display: flex; justify-content: space-between; margin: 16px 0; color: var(--ink); }
.empty-note { color: var(--muted); }

.hero {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center;
  min-height: min(82vh, 720px); background: var(--wash);
}
.hero-visual { overflow: hidden; }
.hero-copy { padding: 64px 8vw 64px max(24px, calc((100vw - var(--max)) / 2)); }
.hero-copy p { max-width: 360px; }
.hero-visual { height: 100%; min-height: 420px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 88px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; object-fit: cover; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }

.feature-product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--wash); padding: 48px; }
.feature-product img { width: 100%; object-fit: contain; background: transparent; }

.reviews { text-align: center; }
.review-card { max-width: 640px; margin: 0 auto; }
.stars { color: #111; letter-spacing: 3px; margin-bottom: 12px; }
.who { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; color: var(--ink); }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; padding: 48px 0; border-top: 1px solid var(--line); }
.trust h4 { margin-bottom: .3em; }
.care { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
.product-card .thumb {
  position: relative; display: block; background: var(--wash); overflow: hidden; margin-bottom: 14px;
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #111; color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px;
}
.card-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; transform: translateY(100%); transition: transform .2s ease;
}
.product-card:hover .card-actions { transform: none; }
.card-actions .mini-add, .card-actions .quick-view {
  flex: 1; text-align: center; padding: 12px 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  background: #111; color: #fff; border: 0; cursor: pointer;
}
.card-actions .quick-view { background: #333; display: block; }
.product-card .title { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.product-card .price { margin-top: 4px; color: var(--ink); }
.product-card .price del { color: #999; margin-right: 8px; }
.product-card .price ins { text-decoration: none; }

.page-hero { padding: 48px 0 8px; text-align: center; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-bottom: 80px; }
.filters h3 { font-size: .95rem; margin: 0 0 10px; }
.filter-block { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-block a { display: block; padding: 4px 0; color: var(--ink); }
.filter-block a.is-active { font-weight: 700; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.shop-toolbar select { border: 1px solid var(--line); padding: 8px 10px; background: #fff; }
.filter-toggle { display: none; }
.filters .drawer-head .icon-btn { display: none; }

.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 40px 0 80px; align-items: start; }
.product-gallery { background: var(--wash); }
.product-gallery img { width: 100%; object-fit: contain; }
.product-info .price { font-size: 1.25rem; color: var(--ink); margin: 8px 0 16px; }
.product-info .price del { color: #999; margin-right: 8px; font-size: 1rem; }
.buy-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.qty { width: 84px; border: 1px solid var(--line); padding: 12px; }
.meta-line { font-size: .9rem; margin-top: 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 8px; vertical-align: middle; color: var(--ink); }
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img { width: 72px; height: 72px; object-fit: contain; background: var(--wash); }
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; }
.totals, .order-box { background: var(--wash); padding: 24px; }
.order-row, .total-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label span, .field-label { display: block; font-size: .82rem; color: var(--ink); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
  width: 100%; border: 1px solid var(--line); padding: 12px 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.note { background: var(--wash); padding: 16px 18px; margin: 16px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.qv { display: none; position: fixed; inset: 0; z-index: 1400; place-items: center; padding: 20px; }
body.qv-open .qv { display: grid; }
.qv-card { background: #fff; width: min(860px, 96%); display: grid; grid-template-columns: 1fr 1fr; max-height: 90vh; overflow: auto; position: relative; z-index: 2; }
.qv-card img { width: 100%; object-fit: contain; background: var(--wash); }
.qv-body { padding: 28px; }
.qv-close { position: absolute; top: 8px; right: 10px; z-index: 3; background: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--muted); padding: 3px 0; }
.footer-grid a:hover { color: var(--ink); }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: clamp(4rem, 10vw, 8rem); margin: 0; }

@media (max-width: 992px) {
  .header-inner { display: grid; grid-template-columns: 44px minmax(0,1fr) 80px; }
  .logo { grid-column: 2; justify-self: center; }
  nav { grid-column: 1; grid-row: 1; }
  .header-tools { grid-column: 3; }
  .header-tools a[href="account.html"] { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; padding: 16px 24px 24px; gap: 14px;
    border-bottom: 1px solid var(--line); z-index: 20;
  }
  body.nav-open .nav-menu { display: flex; }
  .hero, .split, .feature-product, .shop-layout, .product-layout, .two-col, .contact-grid, .care, .qv-card, .values {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding: 40px 24px; min-width: 0; }
  .hero h1 { font-size: 2.15rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 88vw);
    background: #fff; z-index: 1300; padding: 20px; overflow: auto;
    transform: translateX(-100%); transition: transform .28s ease;
  }
  body.filters-open .filters { transform: none; }
  .filters .drawer-head .icon-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .trust, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .feature-product { padding: 24px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .container { width: min(100% - 28px, var(--max)); }
}
@media (hover: none) {
  .card-actions { transform: none; }
  .card-actions .quick-view { display: none; }
}
