/* Плиткин — storefront theme on top of Oscar's Bootstrap 4 styles.
   Warm showroom palette: sand backgrounds, deep green ink, terracotta accent. */

:root {
  --ink: #1d2b27;
  --ink-2: #3b4843;
  --muted: #6d7671;
  --line: #e5dfd4;
  --line-2: #d6cfc2;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --sand: #efe8dc;
  --accent: #c4572f;
  --accent-2: #a9451f;
  --green: #2e7d5b;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 43, 39, .06), 0 8px 24px rgba(29, 43, 39, .06);
  --shadow-lg: 0 18px 50px rgba(29, 43, 39, .16);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
a { color: var(--ink); }
a:hover { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; margin: 0; }
h3 { font-size: 17px; line-height: 1.3; }
img { max-width: 100%; }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 17px; color: var(--ink-2); font-weight: 400; max-width: 760px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button--lg { padding: 15px 26px; font-size: 16px; }
.button--dark { background: var(--ink); color: #fff; }
.button--dark:hover { background: #0f1917; color: #fff; }
.button--accent { background: var(--accent); color: #fff; }
.button--accent:hover { background: var(--accent-2); color: #fff; }
.button--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand); }

/* Bootstrap buttons used on account/checkout pages, re-skinned */
.btn { border-radius: 999px; font-weight: 700; padding: .55rem 1.2rem; }
.btn-primary, .btn-success { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus, .btn-success:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-secondary, .btn-info { background: var(--ink); border-color: var(--ink); }
.btn-outline-secondary { color: var(--ink); border-color: var(--line-2); }
.btn-lg { padding: .8rem 1.6rem; }
.form-control { border-radius: 10px; border-color: var(--line-2); min-height: 44px; }
.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 43, 39, .1); }
.card { border-radius: var(--radius); border-color: var(--line); }
.table { background: var(--surface); }
.alert { border-radius: var(--radius-sm); }

/* ---------- top bars ---------- */
.notice { background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; }
.topbar { background: var(--ink); color: #cfd6d2; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item .i { width: 15px; height: 15px; }
.topbar__links { display: flex; gap: 18px; margin-left: auto; }
.topbar a { color: #e9eeeb; }
.topbar a:hover { color: #fff; }
.topbar__phone { font-weight: 800; color: #fff !important; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.burger { display: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; height: 34px; }
.logo__mark i { border-radius: 4px; background: var(--ink); }
.logo__mark i:nth-child(2), .logo__mark i:nth-child(3) { background: var(--accent); }
.logo__text { font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: 4px; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__mark i:nth-child(1), .logo--light .logo__mark i:nth-child(4) { background: #fff; }
.logo--light small { color: #aab5b0; }

.catalog-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.catalog-btn:hover, .catalog-btn[aria-expanded="true"] { background: var(--accent); }

.search { flex: 1; display: flex; position: relative; min-width: 0; }
.search input {
  width: 100%; height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 52px 0 16px;
  font: inherit; background: var(--bg); transition: border-color .15s, background .15s;
}
.search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.header-action .i { width: 24px; height: 24px; color: var(--ink); }
.header-action:hover { background: var(--sand); color: var(--ink); }
.header-action--cart span { font-weight: 800; color: var(--ink); }
.badge-count { position: absolute; top: 0; right: 8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; line-height: 19px; text-align: center; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav__inner::-webkit-scrollbar { display: none; }
.mainnav a { padding: 12px 14px; font-weight: 700; font-size: 14.5px; white-space: nowrap; color: var(--ink-2); border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.mainnav a.mainnav__hl { color: var(--accent); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 140px); overflow: auto; }
.mega__inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 32px; padding-top: 28px; padding-bottom: 32px; }
.mega__col { display: flex; flex-direction: column; gap: 6px; }
.mega__col a { color: var(--ink-2); font-size: 14.5px; }
.mega__col a:hover { color: var(--accent); }
.mega__title { font-weight: 800; font-size: 15.5px; color: var(--ink) !important; margin-bottom: 4px; }
.mega__col--rooms, .mega__col--promo { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; }

/* ---------- page scaffolding ---------- */
.site-main { min-height: 60vh; }
.page { padding-top: 22px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink-2); }
.page-head { margin-bottom: 22px; }
.page-head--banner {
  position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; padding: 44px 40px 28px; color: #fff;
  background: linear-gradient(90deg, rgba(20, 30, 27, .82) 0%, rgba(20, 30, 27, .55) 45%, rgba(20, 30, 27, .1) 100%), var(--banner) center/cover;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
}
.page-head--banner h1, .page-head--banner .lead { color: #fff; }
.page-head--banner .lead { opacity: .9; }
.page-head--banner .chip { background: rgba(255, 255, 255, .92); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--active { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.chip .i { width: 14px; height: 14px; }
.chip--reset { background: none; border-color: transparent; color: var(--accent); }

/* ---------- product card ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-grid > li { display: flex; }
.product-grid--row, .block .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.tile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.tile-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.tile-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.tile-card__alt { opacity: 0; }
.tile-card:hover .tile-card__alt { opacity: 1; }
.tile-card:hover .tile-card__media img { transform: scale(1.03); }
.tile-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.tag--sale { background: var(--accent); color: #fff; }
.tag--hit { background: var(--ink); color: #fff; }
.tile-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tile-card__meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 4px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tile-card__title a { color: var(--ink); }
.tile-card__title a:hover { color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__main { font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.price__main small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.price__main--xl { font-size: 36px; }
.price__main--xl small { font-size: 18px; }
.price__old { color: var(--muted); font-size: 15px; }
.price__pack { font-size: 13px; color: var(--muted); }
.tile-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 0; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--out { color: var(--muted); }
.tile-card__buy { margin: 0; }
.btn-cart { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.btn-cart:hover { background: var(--accent); }
.btn-cart.is-added { background: var(--green); }

/* ---------- listing & filters ---------- */
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; scrollbar-width: thin; }
.filters__head { display: none; }
.facet { border-bottom: 1px solid var(--line); padding: 12px 0; }
.facet:last-of-type { border-bottom: 0; }
.facet summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.facet[open] summary::after { transform: rotate(-135deg); }
.facet__items { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.facet__items--scroll { max-height: 240px; overflow: auto; }
.facet__items--chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.facet__items--chips .check { border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 13px; }
.facet__items--chips .check span, .facet__items--chips .check em { display: none; }
.facet__items--chips .check:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; margin: 0; font-weight: 500; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; background: #fff; }
.check input:checked + span { background: var(--ink); border-color: var(--ink); }
.check input:checked + span::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; }
.check.is-empty { opacity: .45; }
.price-range { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.price-range input { width: 100%; min-width: 0; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 10px; font: inherit; }
.price-range input:focus { outline: none; border-color: var(--ink); }
.filters__actions { position: sticky; bottom: -18px; background: #fff; padding: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.filters__actions .button { width: 100%; }
.filters-backdrop { display: none; }

.results__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.results__count { color: var(--muted); font-weight: 600; }
.filters-toggle { display: none; }
.sort { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { border: 1.5px solid var(--line-2); border-radius: 10px; height: 40px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.empty .i { width: 40px; height: 40px; color: var(--muted); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.pdp__gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 84px; height: 84px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--sand); }
.gallery-thumbs button.is-active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.pdp__title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 18px; }
.pdp__facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pdp__facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.pdp__facts b { font-size: 15px; }
.pdp__facts span { font-size: 12px; color: var(--muted); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 24px; box-shadow: var(--shadow); }
.buybox__price { margin-bottom: 18px; }
.buybox__price .price__old { margin-left: 10px; font-size: 18px; }
.buybox__form { display: flex; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }
.buybox__form .button { flex: 1; min-width: 200px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px; background: #fff; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--sand); }
.qty input { width: 56px; text-align: center; border: 0; font: inherit; font-weight: 800; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty__unit { padding: 0 12px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.calc { background: var(--bg); border-radius: 14px; padding: 16px; }
.calc__title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.calc__title .i { color: var(--accent); }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0; }
.calc input, .calc select { height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); background: #fff; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--ink); }
.calc__result { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc__result div { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.calc__result span { font-size: 12px; color: var(--muted); font-weight: 600; }
.calc__result b { font-size: 16px; }
.calc__result .is-accent { background: var(--ink); color: #fff; }
.calc__result .is-accent span { color: #b9c3be; }
.alert-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.alert-form input { flex: 1; min-width: 180px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; font: inherit; }
.pdp__perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pdp__perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.pdp__perks .i { color: var(--accent); }
.buybox .btn-wishlist, .buybox form[action*="wishlists"] .btn { margin-top: 6px; }

.pdp-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 56px; }
.pdp-tabs h2 { margin-bottom: 16px; }
.specs { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 45% 55%; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs div:nth-child(even) { background: #fbf9f5; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-weight: 500; }
.specs dd { margin: 0; font-weight: 700; }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 780px; }
.prose h2 { font-size: 24px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.2em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose img { border-radius: var(--radius); margin: .6em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--ink); font-weight: 600; }
.prose--page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }

.shelf { margin-top: 56px; }
.shelf--soft { background: var(--sand); border-radius: calc(var(--radius) + 6px); padding: 28px; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.shelf__head a, .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.shelf__head a .i, .more .i { width: 18px; height: 18px; }

/* ---------- home ---------- */
.hero { position: relative; }
.hero__slide { display: none; background-color: var(--sand); background-image: linear-gradient(90deg, rgba(247, 244, 238, .96) 0%, rgba(247, 244, 238, .72) 36%, rgba(247, 244, 238, 0) 62%), var(--hero-img); background-size: cover; background-position: center; }
.hero__slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.hero__inner { min-height: clamp(380px, 52vw, 560px); display: flex; align-items: center; }
.hero__card { max-width: 540px; padding: 40px 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 18px; }
.hero__sub { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 460px; }
.hero__dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(29, 43, 39, .3); cursor: pointer; padding: 0; transition: width .2s; }
.hero__dots button.is-active { width: 28px; background: var(--ink); }

.block { margin-top: 64px; }
.block__head { margin-bottom: 22px; }
.block__head p { color: var(--muted); margin: 8px 0 0; max-width: 640px; }
.block__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.rooms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.room { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room:hover img { transform: scale(1.05); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(15, 22, 20, .75) 100%); }
.room__name { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 17px; line-height: 1.2; }

.sections { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.section-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; height: 100%; transition: box-shadow .2s, border-color .2s; }
.section-card:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.section-card__img { width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; background: var(--sand); }
.section-card__img img { width: 100%; height: 100%; object-fit: cover; }
.section-card__text { display: flex; flex-direction: column; gap: 4px; }
.section-card__text b { font-size: 16px; }
.section-card__text small { color: var(--muted); font-size: 13px; line-height: 1.4; }

.designs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.design { position: relative; min-height: 170px; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); overflow: hidden; }
.design b { font-size: 21px; letter-spacing: -.02em; }
.design span { font-size: 14px; color: var(--ink-2); }
.design:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.design--1 { background: radial-gradient(120% 80% at 90% 0%, #fff 0, transparent 60%), repeating-linear-gradient(115deg, #eceae6 0 18px, #f6f5f2 18px 40px, #d9d6d0 40px 41px, #f3f1ed 41px 70px); }
.design--2 { background: repeating-linear-gradient(0deg, #c9a57a 0 22px, #b88f63 22px 24px, #d0ae86 24px 48px, #bf976b 48px 50px); color: #2a1d12; }
.design--2 span, .design--3 span { color: rgba(0, 0, 0, .7); }
.design--3 { background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .06) 0 2px, transparent 3px) 0 0 / 22px 22px, linear-gradient(135deg, #b8b5b0, #9c9994); }
.design--4 { background: conic-gradient(from 45deg at 50% 50%, #1e4f7a 0 25%, #f1ebe0 0 50%, #c9803f 0 75%, #f1ebe0 0) 0 0 / 56px 56px; }
.design--4 b, .design--4 span { background: #fff; padding: 2px 8px; border-radius: 6px; width: fit-content; }
.design--4 span { margin-top: 4px; }

.calc-promo { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 8px); padding: 44px; }
.calc-promo h2 { color: #fff; margin-bottom: 12px; }
.calc-promo p { color: #c3ccc8; margin: 0; font-size: 16px; }
.calc-promo__demo { display: grid; gap: 10px; }
.calc-promo__demo div { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 14px 18px; }
.calc-promo__demo span { color: #aab5b0; font-weight: 600; }
.calc-promo__demo b { font-size: 20px; }
.calc-promo__demo .is-accent { background: var(--accent); }
.calc-promo__demo .is-accent span { color: #ffe3d8; }

.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 16px 18px 20px; }
.post-card__body h3 { margin: 6px 0 8px; font-size: 18px; }
.post-card__body h3 a { color: var(--ink); }
.post-card__body h3 a:hover { color: var(--accent); }
.post-card__body p { color: var(--muted); margin: 0; font-size: 14.5px; }
.post-card__meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.post-card__meta a { color: var(--accent); }
.article { max-width: 820px; margin: 0 auto; }
.article__head { margin-bottom: 24px; }
.article__head h1 { margin: 10px 0 14px; font-size: clamp(28px, 3.6vw, 44px); }
.article__cover { width: 100%; border-radius: calc(var(--radius) + 4px); margin-bottom: 28px; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { max-width: none; font-size: 17px; }

.brands__row { display: flex; flex-wrap: wrap; gap: 10px; }
.brands__row a { padding: 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; font-size: 16px; color: var(--ink-2); letter-spacing: -.01em; }
.brands__row a:hover { border-color: var(--ink); color: var(--ink); }
.seo-text { margin-top: 56px; color: var(--muted); font-size: 15px; }
.seo-text h2 { font-size: 22px; color: var(--ink); }

/* contacts & map */
.contacts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 28px; }
.contacts__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contacts__card p { display: flex; flex-direction: column; margin: 0 0 14px; }
.contacts__card b { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ymap { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: var(--sand); position: relative; }
.ymap__canvas { display: block; width: 100%; height: 440px; border: 0; }
.ymap--compact .ymap__canvas { height: 220px; }
.ymap__route { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c3ccc8; margin-top: 80px; padding: 48px 0 28px; font-size: 14.5px; }
.site-footer a { color: #e3e9e6; }
.site-footer a:hover { color: #fff; }
.footer-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-perks div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.footer-perks .i { grid-row: span 2; width: 34px; height: 34px; color: var(--accent); }
.footer-perks b { color: #fff; }
.footer-perks span { font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding: 36px 0; }
.footer-cols h4 { font-size: 15px; margin: 0 0 12px; }
.footer-cols h4 a { color: #fff; }
.footer-cols > div { display: flex; flex-direction: column; gap: 7px; }
.footer-brand p { margin: 14px 0 6px; }
.footer-phone { font-size: 20px; font-weight: 800; color: #fff !important; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 13px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-size: 12.5px; color: #8f9a95; }

/* ---------- Oscar pages (basket, checkout, account) ---------- */
#content_inner .basket-title, #content_inner .basket-items { background: #fff; border-radius: var(--radius-sm); }
#content_inner .basket-items { border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
#content_inner .basket-items img { border-radius: 10px; }
#content_inner .price_color { font-weight: 800; color: var(--ink); }
#content_inner .sub-header h2, #content_inner .sub-header h3 { font-size: 20px; }
.nav-checkout { border-radius: var(--radius-sm); overflow: hidden; }
.nav-tabs .nav-link.active { font-weight: 700; }
.page-header { border: 0; }
.basket-line-area { display: block; font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--row, .block .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .header-action span { display: none; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 16px; }
  .topbar__item, .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .site-header__inner { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .burger { display: inline-flex; order: 0; }
  .logo { order: 1; margin-right: auto; }
  .logo__text small { display: none; }
  .header-actions { order: 2; }
  .catalog-btn { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .search input { height: 44px; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .25s; }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; position: sticky; top: -6px; background: #fff; z-index: 1; font-size: 18px; }
  .filters-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(15, 22, 20, .45); z-index: 70; }
  .filters-toggle { display: inline-flex; }
  .sort span { display: none; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .pdp__gallery { position: static; }
  .pdp__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .designs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-promo { grid-template-columns: 1fr; padding: 28px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-perks { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .hero__slide { background-image: linear-gradient(180deg, rgba(247, 244, 238, .1) 0%, rgba(247, 244, 238, .9) 55%, rgba(247, 244, 238, .98) 100%), var(--hero-img); }
  .hero__inner { align-items: flex-end; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .product-grid, .product-grid--row, .block .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-card__body { padding: 10px 12px 12px; }
  .price__main { font-size: 18px; }
  .price__main--xl { font-size: 30px; }
  .tile-card__title { font-size: 14px; }
  .btn-cart { width: 40px; height: 40px; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-perks { grid-template-columns: 1fr; }
  .calc__row, .calc__result { grid-template-columns: 1fr; }
  .buybox { padding: 18px; }
  .page-head--banner { padding: 28px 20px 20px; }
  .shelf--soft { padding: 18px; }
  .header-action { padding: 6px; }
}

/* Oscar basket / checkout polish */
.breadcrumb { background: none; padding: 0; margin-bottom: 14px; font-size: 13px; }
.breadcrumb-item a { color: var(--muted); }
#content_inner .basket-items .input-group { flex-wrap: nowrap; max-width: 220px; }
#content_inner .basket-items input[type="number"] { min-width: 72px; text-align: center; font-weight: 800; }
#content_inner .basket-items .btn { padding: .45rem .9rem; }
.page-head--banner .chip--active { background: var(--accent); border-color: var(--accent); }

/* Checkout */
.checkout-header { background: #fff; border-bottom: 1px solid var(--line); }
.checkout-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.checkout-header__secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); margin-left: auto; }
.checkout-header__phone { display: flex; flex-direction: column; font-weight: 800; text-align: right; }
.checkout-header__phone small { font-weight: 600; color: var(--muted); font-size: 12px; }
.checkout-page { max-width: 1100px; }
.checkout-page .sub-header h1 { margin: 24px 0 16px; }
.nav-checkout { background: #fff !important; border: 1px solid var(--line); border-radius: 999px !important; padding: 6px !important; margin-top: 24px; }
.nav-checkout .navbar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; width: 100%; }
.nav-checkout .nav-item { flex: 1; text-align: center; }
.nav-checkout .nav-link, .nav-checkout .navbar-text { display: block; padding: 10px 12px !important; border-radius: 999px; color: var(--muted) !important; font-weight: 700; font-size: 14px; }
.nav-checkout .nav-link .fas { display: none; }
.nav-checkout .active .navbar-text, .nav-checkout .active .nav-link { background: var(--ink); color: #fff !important; }
.nav-checkout .visited .nav-link, .nav-checkout .previous .nav-link { color: var(--ink) !important; }
.checkout-page .card, .checkout-page .well, .checkout-page .bg-light { background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius); }
.checkout-page label { font-weight: 600; font-size: 14px; }
.checkout-page .shipping-method, .checkout-page .shipping-methods .card { border-radius: var(--radius); }
.checkout-footer { padding: 32px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .checkout-header__secure { display: none; }
  .nav-checkout { border-radius: var(--radius) !important; }
  .nav-checkout .nav-item { flex-basis: 45%; }
}

/* ---- mobile polish ---- */
@media (max-width: 980px) {
  .notice { font-size: 12px; padding: 6px 12px; }
  .mainnav { transition: max-height .2s ease, opacity .2s ease; max-height: 60px; overflow: hidden; }
  body.is-scrolled .mainnav { max-height: 0; opacity: 0; border-top-color: transparent; }
  .results__bar { flex-wrap: nowrap; gap: 8px; }
  .results__count { display: none; }
  .sort { margin-left: auto; min-width: 0; }
  .sort select { max-width: 190px; }
}

/* Wishlist control (Oscar partial) styled as a quiet link-button with a heart */
.buybox .btn-wishlist { display: block; margin-top: 4px; }
.buybox .btn-wishlist .btn, .buybox form.btn-wishlist .btn {
  background: none; border: 0; padding: 6px 0; font-size: 14.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
}
.buybox .btn-wishlist .btn::before { content: "♡"; font-size: 18px; color: var(--accent); line-height: 1; }
.buybox .btn-wishlist .btn:hover { color: var(--accent); }
.buybox .btn-wishlist .dropdown-toggle::after { display: none; }
.buybox form[action*="remove"] { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.buybox form[action*="remove"] span { float: none !important; }
.buybox form[action*="remove"] .btn { float: none !important; background: none; border: 0; color: var(--accent); padding: 0; }

@media (max-width: 640px) {
  .buybox__form .button { flex-basis: 100%; }
  .buybox__form .qty { flex: 1; justify-content: space-between; }
}
