:root {
  --theme: #BD844C;
  --theme-2: #EF6CC2;
  --theme-3: #57437B;
  --header: #010F1C;
  --text: #55585B;
  --heading: #010F1C;
  --line: #E6E6E6;
  --bg: #F7F7F7;
  --footer: #F5F5F5;
  --white: #fff;
  --shadow: 0 10px 30px rgba(1, 15, 28, 0.08);
  --font: "Jost", sans-serif;
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--theme-3); color: #fff;
  padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { top: 12px; }

.topbar { background: var(--header); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 42px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--theme); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; min-height: 86px; }
.logo img { height: 58px; width: auto; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; position: relative; }
.header-search select, .header-search input { border: 0; background: transparent; height: 46px; padding: 0 14px; color: var(--heading); outline: none; }
.header-search select { max-width: 150px; border-right: 1px solid var(--line); }
.header-search input { flex: 1; min-width: 0; }
.header-search button { width: 48px; height: 46px; border: 0; background: var(--theme-3); color: #fff; cursor: pointer; }
.header-search button:hover { background: var(--header); }
.header-search .field-error { position: absolute; left: 0; top: 100%; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool {
  border: 0; background: transparent; display: flex; flex-direction: column; align-items: center;
  gap: 2px; color: var(--heading); cursor: pointer; position: relative; min-width: 54px; font-size: 12px;
}
.tool i { font-size: 20px; }
.tool .count {
  position: absolute; top: -4px; right: 6px; background: var(--theme); color: #fff; border-radius: 99px;
  min-width: 18px; height: 18px; font-style: normal; font-size: 11px; display: grid; place-items: center;
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--heading); }
.nav-wrap { border-top: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.cat-pill {
  background: var(--theme-3); color: #fff; min-width: 230px; height: 48px; display: inline-flex; align-items: center;
  gap: 10px; padding: 0 18px; font-weight: 500;
}
.cat-pill:hover { background: var(--header); color: #fff; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 18px; }
.nav-link { padding: 10px 14px; font-weight: 500; color: var(--heading); }
.nav-link.active, .nav-link:hover { color: var(--theme-3); }
.nav-drop { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 8px 0; display: none; z-index: 5;
}
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 16px; }
.nav-sub a:hover { background: var(--bg); color: var(--theme-3); }

.btn, .theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--theme);
  color: #fff; border: 0; min-height: 48px; padding: 0 22px; cursor: pointer; font-size: 16px; font-weight: 500;
}
.btn:hover { background: var(--header); color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); border: 1px solid var(--heading); }
.btn-ghost:hover { background: var(--theme-3); border-color: var(--theme-3); color: #fff; }
.btn-purple { background: var(--theme-3); }
.text-link { color: var(--theme-3); font-weight: 500; }
.text-link:hover { color: var(--theme); }
.text-btn { border: 0; background: transparent; color: #a33; cursor: pointer; }

.hero { padding: 22px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 250px 1fr 250px; gap: 18px; align-items: stretch; }
.cat-box { border: 1px solid var(--line); background: #fff; }
.cat-box h2 { margin: 0; background: var(--theme-3); color: #fff; font-size: 16px; font-weight: 500; padding: 16px 18px; display: flex; justify-content: space-between; }
.cat-box a { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--heading); }
.cat-box a:hover { color: var(--theme-3); background: #faf8fc; }
.hero-banner {
  min-height: 460px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center;
  padding: 40px;
}
.hero-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,15,28,.62), rgba(1,15,28,.12)); }
.hero-copy { position: relative; color: #fff; max-width: 440px; }
.hero-copy span { display: inline-block; margin-bottom: 10px; }
.hero-copy h1 { color: #fff; font-size: 52px; font-weight: 600; margin-bottom: 8px; }
.hero-copy p { font-size: 18px; }
.hero-side { display: grid; gap: 18px; }
.side-card { position: relative; min-height: 221px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.side-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(1,15,28,.72)); }
.side-card div { position: relative; }
.side-card strong { display: block; font-size: 18px; }

.features { padding: 28px 0; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: center; }
.feature i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(87,67,123,.1); color: var(--theme-3); font-size: 22px; flex: none; }
.feature h3 { font-size: 16px; margin: 0; }
.feature p { margin: 0; font-size: 14px; }

.section { padding: 28px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.section-title { font-size: 32px; }
.eyebrow { color: var(--theme); font-weight: 500; margin-bottom: 4px; letter-spacing: .02em; }

.circles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; text-align: center; }
.circles a img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; border: 6px solid #f3eef8; }
.circles h3 { font-size: 16px; }
.circles p { margin: 0; font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: #fff; border: 1px solid transparent; transition: .25s ease; }
.product-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.product-media { position: relative; background: var(--bg); overflow: hidden; aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 12px; padding: 4px 8px; z-index: 1; }
.badge-sale { background: var(--theme); }
.badge-hot { background: #d64545; }
.badge-new { background: var(--theme-3); }
.product-actions {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center;
  transform: translateY(12px); opacity: 0; transition: .25s ease;
}
.product-card:hover .product-actions, .product-card:focus-within .product-actions { opacity: 1; transform: none; }
.icon-btn, .add-btn { border: 0; cursor: pointer; background: #fff; color: var(--heading); height: 40px; }
.icon-btn { width: 40px; }
.add-btn { flex: 1; background: var(--theme-3); color: #fff; }
.add-btn:hover, .icon-btn:hover { background: var(--header); color: #fff; }
.product-info { padding: 14px 4px 18px; }
.pcat { color: var(--theme-3); font-size: 14px; }
.product-info h3 { font-size: 18px; font-weight: 500; }
.stars { color: var(--theme); font-size: 13px; display: flex; gap: 3px; align-items: center; }
.stars span { color: var(--text); margin-left: 6px; }
.price { font-weight: 600; color: var(--heading); margin: 6px 0 0; }
.price del { color: #999; font-weight: 400; margin-left: 8px; }

.promo-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 28px; }
.promo {
  min-height: 240px; background-size: cover; background-position: center; position: relative; padding: 28px; color: #fff;
  display: flex; align-items: flex-end;
}
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(87,67,123,.78), rgba(1,15,28,.15)); }
.promo div { position: relative; max-width: 320px; }
.promo h3 { color: #fff; font-size: 30px; }
.deal-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.timer { display: flex; gap: 8px; align-items: center; color: var(--theme-3); font-weight: 600; font-size: 22px; }
.timer span { background: var(--theme-3); color: #fff; min-width: 48px; text-align: center; padding: 6px 0; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mosaic .tall { grid-row: span 2; min-height: 420px; }
.banner-wide {
  margin: 28px 0; background: var(--theme-3); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; padding: 28px;
}
.banner-wide h2, .banner-wide p { color: #fff; }
.banner-wide img { width: 100%; height: 280px; object-fit: cover; }

.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 20px; }
.brand {
  border: 1px solid var(--line); min-height: 84px; display: grid; place-items: center; font-weight: 600; letter-spacing: .08em;
  color: var(--heading); text-transform: uppercase; font-size: 14px;
}

.newsletter { background: var(--theme-3); color: #fff; margin-top: 30px; }
.newsletter-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 36px 0; }
.newsletter h2 { color: #fff; font-size: 36px; }
.newsletter .eyebrow { color: #f3d7b0; }
.news-form { display: flex; gap: 0; min-width: min(460px, 100%); position: relative; flex-wrap: wrap; }
.news-form input, .footer-news input, .field input, .field textarea, .field select {
  border: 1px solid var(--line); height: 52px; padding: 0 14px; width: 100%; outline: none; background: #fff; color: var(--heading);
}
.news-form input { flex: 1; }
.news-form .btn { background: var(--theme); }
.field textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .news-form input:focus, .footer-news input:focus, .header-search input:focus { border-color: var(--theme-3); }
.invalid { border-color: #c0392b !important; }
.field-error { color: #c0392b; font-size: 13px; min-height: 0; margin: 4px 0 0; width: 100%; }
.newsletter .field-error, .newsletter .form-success { color: #ffe0e0; }
.form-success { color: #1e7a46; font-weight: 500; }

.site-footer { background: var(--footer); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 28px; }
.footer-logo img { height: 52px; background: #fff; padding: 4px; }
.footer-about { font-size: 15px; }
.footer-mail a:hover, .site-footer a:hover { color: var(--theme); }
.site-footer h3, .site-footer h4 { font-size: 20px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-news { display: flex; }
.footer-news input { border-right: 0; }
.footer-news button { border: 0; background: var(--theme-3); color: #fff; padding: 0 14px; cursor: pointer; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border: 1px solid #ccc; display: grid; place-items: center; color: var(--heading); }
.socials a:hover { background: var(--theme-3); color: #fff; border-color: var(--theme-3); }
.footer-bottom { border-top: 1px solid #e4e4e4; margin-top: 28px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 64px; }
.pay-notes { display: flex; gap: 8px; }
.pay-notes span { border: 1px solid #ccc; padding: 2px 8px; font-size: 12px; background: #fff; }

.page-banner { background: linear-gradient(100deg, var(--header), var(--theme-3)); color: #fff; padding: 48px 0; }
.page-banner h1, .banner-title { color: #fff; font-size: 42px; font-weight: 600; margin: 0; }
.page-banner a { color: #f3d7b0; }
.page-section { padding: 48px 0 20px; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6rem; font-size: 26px; }
.prose ul { padding-left: 18px; }
.narrow { max-width: 720px; }
.form-card, .summary, .filter-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--heading); font-weight: 500; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 6px; }

.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; }
.filter-card h2 { font-size: 18px; }
.filter-card button[data-cat] { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; cursor: pointer; display: flex; justify-content: space-between; color: var(--heading); }
.filter-card button.active, .filter-card button[data-cat]:hover { color: var(--theme-3); }
.shop-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.shop-tools select { height: 42px; border: 1px solid var(--line); padding: 0 10px; }

.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.gallery img { width: 100%; height: 460px; object-fit: cover; background: var(--bg); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: #fff; cursor: pointer; }
.thumbs button.active { border-color: var(--theme-3); }
.thumbs img { width: 84px; height: 72px; object-fit: cover; }
.price-lg { font-size: 28px; }
.buy-row { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button, .qty input { width: 40px; height: 42px; border: 0; text-align: center; background: #fff; }
.qty button { cursor: pointer; }
.buy-notes { padding-left: 18px; }
.product-copy { margin-top: 36px; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; }
.spec th { width: 34%; color: var(--heading); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: #fff; border: 1px solid var(--line); }
.blog-media { position: relative; display: block; }
.blog-media img { width: 100%; height: 210px; object-fit: cover; }
.blog-media span { position: absolute; left: 12px; bottom: 12px; background: var(--theme-3); color: #fff; padding: 3px 8px; font-size: 13px; }
.blog-body { padding: 16px; }
.meta { color: #888; font-size: 14px; }
.article { max-width: 820px; margin: 0 auto; }
.article-hero { width: 100%; height: 420px; object-fit: cover; margin: 12px 0 20px; }
.about-grid, .contact-grid, .cart-layout, .split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.value { background: var(--bg); padding: 18px; }
.value i { color: var(--theme-3); font-size: 22px; }
.cart-row, .mini-row { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img, .mini-row img { width: 84px; height: 72px; object-fit: cover; }
.mini-row { grid-template-columns: 72px 1fr; }
.summary p, .mini-total { display: flex; justify-content: space-between; }
.sum-total { font-size: 18px; color: var(--heading); }
.summary .btn, .mini-actions .btn { width: 100%; margin-top: 8px; }
.mini-actions { display: grid; gap: 8px; margin-top: 12px; }
.empty-note, .empty-block { padding: 12px 0 20px; }
.thanks { background: #f6f1ea; border: 1px solid var(--theme); padding: 28px; }
.thanks h2 { color: var(--theme-3); }

.drawer[hidden], .modal[hidden] { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(1,15,28,.45); z-index: 60; }
.drawer-panel, .modal-card {
  position: fixed; z-index: 70; background: #fff; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  padding: 22px; overflow: auto; box-shadow: var(--shadow);
}
.modal-card { top: 50%; right: 50%; transform: translate(50%, -50%); height: auto; width: min(860px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-grid img { width: 100%; height: 320px; object-fit: cover; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--header);
  color: #fff; padding: 12px 16px; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 0; background: var(--theme-3); color: #fff;
  cursor: pointer; opacity: 0; pointer-events: none;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.mobile-nav { display: grid; gap: 6px; margin-top: 20px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--heading); }

@media (max-width: 1100px) {
  .hero-grid, .product-grid, .feature-row { grid-template-columns: 1fr 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .circles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .blog-grid, .about-grid, .contact-grid, .cart-layout, .split, .product-hero, .shop-layout, .banner-wide { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .gallery img, .article-hero { height: 300px; }
}
@media (max-width: 780px) {
  .header-main { grid-template-columns: 1fr auto; }
  .header-main .header-search { display: none; }
  .mobile-search { display: flex; margin-top: 12px; }
  .main-nav, .cat-pill { display: none; }
  .menu-toggle { display: inline-flex; }
  .tool span { display: none; }
  .hero-banner { min-height: 360px; }
  .hero-copy h1, .page-banner h1, .newsletter h2 { font-size: 34px; }
  .product-grid, .feature-row, .circles, .promo-row, .mosaic, .value-grid, .quick-grid { grid-template-columns: 1fr; }
  .mosaic .tall { grid-row: auto; min-height: 240px; }
  .newsletter-inner, .footer-bottom-inner, .topbar-inner, .deal-head { flex-direction: column; align-items: flex-start; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .product-actions { opacity: 1; transform: none; }
  .logo img { height: 46px; }
}
