/* ===== VESTRA — Fashion Store ===== */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #ececec;
  --accent: #111111;
  --accent-soft: #f5f3f0;
  --sale: #b23a2e;
  --radius: 4px;
  --maxw: 1240px;
  --font: "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Announcement bar ===== */
.announce {
  background: var(--fg);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 12px;
}

/* ===== Header ===== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-icons { display: flex; gap: 20px; align-items: center; }
.nav-icons button {
  background: none; border: none; cursor: pointer;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg); position: relative;
}
.cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--fg); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px;
  border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: #efe9e2;
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-copy { display: flex; align-items: center; padding: 60px clamp(24px, 5vw, 80px); }
.hero-inner { max-width: 520px; }
.hero-media { position: relative; background: #e4ddd3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { height: 420px; order: -1; }
  .hero-copy { padding: 44px 24px; }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 400; line-height: 1.05; margin-bottom: 20px;
}
.hero p { font-size: 16px; color: #3a3a3a; margin-bottom: 30px; max-width: 420px; }

.btn {
  display: inline-block;
  background: var(--fg); color: #fff;
  padding: 14px 34px; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--fg); cursor: pointer;
  transition: all .2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.light { background: #fff; color: var(--fg); border-color: #fff; }
.btn.outline { background: transparent; color: var(--fg); }
.btn.outline:hover, .btn.outline.active { background: var(--fg); color: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ===== Section headings ===== */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
}

/* ===== Marquee categories ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius); display: flex;
  align-items: flex-end; padding: 26px;
  color: #fff; background-size: cover; background-position: center;
}
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.5));
}
.cat span { position: relative; z-index: 2; font-family: var(--serif); font-size: 24px; }
.cat:nth-child(1){ background-image: linear-gradient(135deg,#c9b8a8,#8a7b6c); }
.cat:nth-child(2){ background-image: linear-gradient(135deg,#a8b5c9,#6c7a8a); }
.cat:nth-child(3){ background-image: linear-gradient(135deg,#c9a8b5,#8a6c7a); }

/* ===== Product grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
.card { position: relative; }
.card .media {
  position: relative; aspect-ratio: 3/4;
  background: var(--accent-soft); overflow: hidden;
  border-radius: var(--radius); margin-bottom: 14px;
}
.card .media .swatch {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; color: rgba(0,0,0,.28);
  letter-spacing: .1em;
  transition: transform .5s ease;
}
.card:hover .media .swatch { transform: scale(1.05); }
.card .media .pimg { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sale); color: #fff;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
}
.card .quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(8px);
  transition: all .25s; z-index: 2;
}
.card:hover .quick { opacity: 1; transform: translateY(0); }
.card h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.card .price { font-size: 14px; color: var(--fg); }
.card .price .was { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.card .price .now { color: var(--sale); }
.card .stars { color: #d4a017; font-size: 12px; margin-top: 4px; letter-spacing: 2px; }

/* ===== Split banner ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.split .copy {
  background: var(--accent-soft);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px;
}
.split .copy h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin-bottom: 16px; }
.split .copy p { color: var(--muted); margin-bottom: 26px; max-width: 380px; }
.split .visual { background: linear-gradient(135deg,#d8cfc4,#b3a595); }

/* ===== Marquee strip ===== */
.strip {
  background: var(--fg); color: #fff; overflow: hidden;
  padding: 16px 0; white-space: nowrap;
}
.strip .track { display: inline-block; animation: scroll 24s linear infinite; }
.strip span { font-family: var(--serif); font-size: 22px; margin: 0 30px; opacity: .85; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.feature .ic { font-size: 26px; margin-bottom: 12px; }
.feature h4 { font-size: 14px; margin-bottom: 6px; letter-spacing: .04em; }
.feature p { font-size: 13px; color: var(--muted); }

/* ===== Newsletter ===== */
.news { background: var(--accent-soft); text-align: center; }
.news form { display: flex; max-width: 460px; margin: 24px auto 0; gap: 0; }
.news input {
  flex: 1; padding: 14px 16px; border: 1px solid var(--line);
  border-right: none; font-size: 14px; outline: none; background: #fff;
}
.news button { border: none; }

/* ===== Footer ===== */
footer.site { background: var(--fg); color: #cfcfcf; padding: 60px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer p { font-size: 13px; line-height: 1.7; }
footer h5 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul li a { font-size: 13px; color: #b8b8b8; transition: color .2s; }
footer ul li a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #2a2a2a; margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #888;
}

/* ===== Cart drawer ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 400px; max-width: 90vw; background: #fff;
  z-index: 100; transform: translateX(100%);
  transition: transform .3s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.drawer-head button { background: none; border: none; font-size: 22px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 24px; }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 15px; }
.line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.line .thumb { aspect-ratio: 3/4; background: var(--accent-soft); border-radius: 3px; overflow: hidden;
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); color:rgba(0,0,0,.25); font-size:13px;}
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line h4 { font-size: 13px; margin-bottom: 4px; }
.line .meta { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 6px; }
.qty button { width: 26px; height: 26px; border: none; background: none; cursor: pointer; font-size: 15px; }
.qty span { width: 30px; text-align: center; font-size: 13px; }
.line .remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.empty-cart { text-align: center; color: var(--muted); padding: 60px 0; }

/* ===== Page header (inner pages) ===== */
.page-head { background: var(--accent-soft); padding: 56px 0; text-align: center; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,5vw,46px); }
.breadcrumb { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }

/* ===== Legal / policy pages ===== */
.legal { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 34px 0 12px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: #3a3a3a; font-size: 15px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }

/* Business information block (shown on every policy page) */
.biz-box {
  border: 2px solid var(--fg);
  background: #fff;
  border-radius: 8px;
  padding: 32px 34px;
  margin: 48px 0 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.biz-box::before {
  content: ""; position: absolute; top: -2px; left: -2px; right: -2px;
  height: 6px; background: var(--fg); border-radius: 8px 8px 0 0;
}
.biz-box h2 {
  font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 6px 0 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.biz-grid > div { display: flex; flex-direction: column; }
.biz-grid span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.biz-grid strong { font-size: 15px; font-weight: 700; color: var(--fg); }
.biz-grid a { color: var(--fg); text-decoration: underline; font-weight: 700; }
.biz-grid .full { grid-column: 1 / -1; }
.biz-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: #333; line-height: 1.7; }
@media (max-width: 600px) { .biz-grid { grid-template-columns: 1fr; } .biz-box { padding: 24px; } }

/* ===== Product page ===== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
.pdp .gallery { aspect-ratio: 3/4; background: var(--accent-soft); border-radius: var(--radius); overflow: hidden;
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:26px; color:rgba(0,0,0,.25);}
.pdp .gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { width: 66px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; cursor: pointer; background: var(--accent-soft); transition: border-color .15s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.active, .thumb-btn:hover { border-color: var(--fg); }
.pdp h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-bottom: 10px; }
.pdp .price { font-size: 22px; margin-bottom: 20px; }
.pdp .price .was { color: var(--muted); text-decoration: line-through; margin-right: 10px; font-size: 18px;}
.pdp .price .now { color: var(--sale); }
.pdp .desc { color: #444; margin-bottom: 26px; }
.opt-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.sizes { display: flex; gap: 8px; }
.sizes button {
  min-width: 46px; height: 40px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; transition: all .15s;
}
.sizes button.active, .sizes button:hover { border-color: var(--fg); background: var(--fg); color: #fff; }
.pdp-actions { display: flex; gap: 12px; margin: 26px 0; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 16px 0; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; }
.accordion details[open] summary::after { content: "–"; }
.accordion .content { padding-bottom: 16px; color: #555; font-size: 14px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; }
.contact-grid label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.contact-grid input, .contact-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; font-family: var(--font);
}
.contact-info p { margin-bottom: 14px; color: #444; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: #fff; padding: 14px 24px; font-size: 14px;
  border-radius: 4px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  .cats { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .pdp, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2,1fr); gap: 18px 12px; }
  .features, .foot-grid { grid-template-columns: 1fr; }
  .news form { flex-direction: column; }
  .news input { border-right: 1px solid var(--line); }
}
