:root{
  --bg:#f6f0e3;
  --paper:#fffaf0;

  --ink:#22160f;
  --ink2: rgba(34,22,15,.74);

  --gold:#b8862b;
  --gold2:#8d681f;

  --line: rgba(184,134,43,.28);
  --line2: rgba(34,22,15,.10);

  --shadow: 0 18px 60px rgba(34,22,15,.14);
  --shadow2: 0 10px 28px rgba(34,22,15,.10);

  --r:18px;
  --ease: cubic-bezier(.2,.8,.2,1);

  /* ☀ Светлая тема — орнамент */
  --ornament-opacity: .12;
  --ornament-url: url("./ornament_fon.jpg");
  --ornament-filter:
	sepia(1)
	saturate(60%)
	hue-rotate(-18deg)
	brightness(120%)
	contrast(90%);
}


body.theme-dark{
  --bg:#0d0b08;
  --paper: rgba(18, 14, 10, 0.86);

  --ink:#f5e9cf;
  --ink2: rgba(245,233,207,.82);

  --gold:#d6b15c;
  --gold2:#b88b33;

  --line: rgba(214,177,92,.28);
  --line2: rgba(214,177,92,.14);

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 28px rgba(0,0,0,.42);

  /* 🌙 ЭТАЛОННЫЙ ОРНАМЕНТ */
  --ornament-opacity: .06;
  --ornament-url: url("./ornament_fon.jpg");
  --ornament-filter:
	sepia(1)
	saturate(150%)
	hue-rotate(-18deg)
	brightness(90%)
	contrast(110%);
}


*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--ink);
  font-family:Georgia, "Times New Roman", serif;
  letter-spacing:.15px;
  background-color: var(--bg);
  transition: background .35s var(--ease), color .35s var(--ease);
  position:relative;
  z-index:0;
}


body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;

  background-image: var(--ornament-url);
  background-repeat: repeat;
  background-size: 620px auto;

  opacity: var(--ornament-opacity);
  transition: opacity .45s var(--ease);

  filter: var(--ornament-filter);

  z-index:0;
}


/* Лёгкая "бумажная" штриховка (без градиентов, SVG) */
body::after{
  display: none;
}
body.theme-dark::after{
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M-8 16 L16 -8 M0 64 L64 0 M48 80 L80 48' stroke='%23f5e9cf' stroke-opacity='0.16' stroke-width='2'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.wrap{
  width:min(1200px, calc(100% - 40px));
  margin:0 auto;
  padding: 18px 0 70px;
  position:relative;
  z-index:1;
}

/* ===== ЕДИНЫЙ ЛОГОТИПНЫЙ ТЕКСТ (шапка + hero) ===== */
.logo-text{
  font-family: serif;
  letter-spacing: .7px;
  line-height: 1;
  display: inline-block;
  color: var(--ink);
}
.logo-text sup{
  font-size: .55em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  color: var(--gold2);
}

/* ===== Header (эталонная структура) ===== */
header{
  position:sticky;
  top:0;
  z-index:10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(34,22,15,.06);
}
body.theme-dark header{
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.topbar{
  width:min(1200px, calc(100% - 40px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}

.logo{
  width:56px;
  height:56px;
  padding:8px;
  border-radius: 16px;
  border: 1px solid rgba(184,134,43,.35);
  background: #fff;
  box-shadow: 0 10px 26px rgba(34,22,15,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
  transform: translateY(1px);
}
body.theme-dark .logo{
  background: rgba(0,0,0,.22);
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.logo img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  filter: contrast(105%) saturate(105%);
}
body.theme-dark .logo img{
  filter: contrast(110%) saturate(110%);
}

.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  padding-top: 1px;
}
.brand-title .name{
  font-size: 26px;
}
.brand-title .tag{
  font-size: 14px;
  color: var(--ink2);
  margin-top: 3px;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  padding-right: 60px;
  position: relative;
}
.nav-row{
  display: contents;
}
.nav-row-top{
  display: contents;
}
.nav-row-bottom{
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
/* ===== Redesign step 4: reference-led home page ===== */
.brand-title{
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.brand-title:hover{
  border-bottom: 0;
}

.header-icon{
  color: var(--gold-strong);
  background: rgba(255,246,220,.045);
}

.header-cart{
  gap: 8px;
}

.home-hero{
  min-height: clamp(560px, calc(100svh - 140px), 680px);
  border-radius: 18px;
  background: #0b0a08;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

body:not(.theme-dark) .home-hero{
  background: #120f0b;
  color: #f4ead4;
}

.hero-window-bar{
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216,182,99,.15);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.hero-window-bar span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff695f;
}

.hero-window-bar span:nth-child(2){ background: #e7b04d; }
.hero-window-bar span:nth-child(3){ background: #64c46c; }

.home-hero .hero-inner{
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(260px, .5fr);
  align-items: end;
  gap: 28px;
  padding: 96px 36px 42px;
}

.home-hero .hero-visual{
  display: block !important;
  position: absolute;
  inset: 34px 0 0;
  z-index: -1;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0b0a08;
  box-shadow: none;
}

.home-hero .hero-visual-img{
  opacity: 1 !important;
  transform: none;
  filter: contrast(1.05) saturate(1.08);
  object-fit: cover;
  object-position: 67% 52%;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.home-hero .hero-visual::after{
  opacity: 1 !important;
  background:
    linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.92) 28%, rgba(11,10,8,.24) 58%, rgba(11,10,8,.68) 100%),
    linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,0) 28%, rgba(11,10,8,.2) 100%);
}

.home-hero::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 118px;
  bottom: 92px;
  z-index: 1;
  width: 74px;
  opacity: .34;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 1px 100% no-repeat,
    url("./ornament_fon.jpg") 50% 48% / 220px auto repeat;
  filter: sepia(1) saturate(180%) brightness(82%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero-copy{
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: 58px;
}

.hero-kicker,
.section-kicker{
  color: var(--gold-strong);
  font: 700 12px/1.2 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1{
  margin-top: 14px;
  color: #f4ead4;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: .98;
  max-width: 10ch;
  text-wrap: balance;
}

.home-hero h1 .logo-text{
  display: block;
  margin-bottom: 4px;
  color: #f4ead4;
  font-size: .52em;
}

.home-hero h1 .logo-text sup{
  color: var(--gold-strong);
}

.home-hero p{
  max-width: 470px;
  margin-top: 18px;
  color: rgba(244,234,212,.82);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta{
  min-width: 210px;
}

.hero-cta .icon{
  width: 18px;
  height: 18px;
}

.hero-cta-secondary{
  min-width: 140px;
  color: #f4ead4;
  border-color: rgba(216,182,99,.36);
  background: rgba(0,0,0,.18);
}

.hero-progress{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: rgba(244,234,212,.62);
  font: 700 12px/1 var(--font-ui);
}

.hero-progress span{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f4ead4;
}

.hero-progress span:nth-child(2){
  width: 34px;
  height: 1px;
  background: var(--gold-strong);
}

.hero-progress b,
.hero-progress i{
  font-style: normal;
  font-weight: 600;
}

.hero-spec-list{
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  width: min(310px, 100%);
  display: grid;
  gap: 18px;
  padding-left: 22px;
  border-left: 1px solid rgba(216,182,99,.32);
}

.hero-spec{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  color: #f4ead4;
}

.hero-spec__num{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,182,99,.38);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(0,0,0,.26);
  font: 800 13px/1 var(--font-ui);
}

.hero-spec .t{
  margin: 0;
  color: #f4ead4;
  font: 700 18px/1.18 var(--font-display);
}

.hero-spec .d{
  margin: 6px 0 0;
  color: rgba(244,234,212,.72);
  font-size: 13px;
  line-height: 1.5;
}

.home-benefits{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.benefit-item{
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--line2);
}

.benefit-item:last-child{
  border-right: 0;
}

.benefit-item .icon{
  width: 30px;
  height: 30px;
  color: var(--gold-strong);
}

.benefit-item b{
  display: block;
  color: var(--ink);
  font: 800 14px/1.2 var(--font-ui);
}

.benefit-item span{
  display: block;
  margin-top: 5px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
}

.catalog-section{
  position: relative;
}

.catalog-anchor{
  position: absolute;
  top: -96px;
}

.catalog-heading{
  align-items: end;
}

.catalog-heading h2{
  margin-top: 5px;
  font-size: clamp(28px, 3vw, 42px);
}

.catalog-see-all{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-strong);
  border-bottom: 0;
  font: 800 14px/1 var(--font-ui);
}

.catalog-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.catalog-filters{
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.catalog-filter{
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255,246,220,.045);
  color: var(--ink2);
  font: 700 13px/1.2 var(--font-ui);
  cursor: pointer;
}

.catalog-filter b{
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216,182,99,.14);
  color: var(--gold-strong);
  font-size: 12px;
}

.catalog-filter.active,
.catalog-filter:hover{
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(216,182,99,.13);
}

.catalog-counter{
  flex: 0 0 auto;
  color: var(--gold-strong);
  font: 800 13px/1 var(--font-ui);
}

.grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card{
  position: relative;
}

.card-link{
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.card .img{
  aspect-ratio: 4 / 5;
}

.card .body{
  padding: 12px 12px 14px;
  min-height: 132px;
}

.card .name{
  font-size: 16px;
  line-height: 1.22;
}

.card .sub{
  min-height: 32px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.card-badges{
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 56px);
  pointer-events: none;
}

.card-badges .badge-new{
  position: static;
  inset: auto;
  padding: 5px 8px;
  font-size: 10px;
}

.badge-hit,
body.theme-dark .badge-hit{
  background: linear-gradient(180deg, #f1d894, #bd8730);
}

.card-actions{
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: grid;
  gap: 6px;
}

.card-action{
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--gold-strong);
  background: color-mix(in srgb, var(--paper-solid) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.card-action:hover{
  color: #17110a;
}

.card-action.favorite.active{
  color: var(--gold-strong);
  background: rgba(216,182,99,.18);
}

.card-action.is-added{
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
}

.catalog-empty{
  grid-column: 1 / -1;
}

@media (max-width: 1180px){
  .grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px){
  .home-hero{
    min-height: 620px;
  }

  .home-hero .hero-inner{
    grid-template-columns: 1fr;
    align-items: end;
    padding: 86px 28px 28px;
  }

  .home-hero .hero-visual{
    display: block !important;
  }

  .home-hero .hero-visual-img{
    object-position: 64% 50%;
  }

  .hero-copy{
    max-width: 540px;
  }

  .hero-spec-list{
    justify-self: stretch;
    align-self: end;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-spec{
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    border: 1px solid rgba(216,182,99,.22);
    border-radius: var(--radius-panel);
    background: rgba(0,0,0,.24);
  }

  .hero-spec__num{
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .home-benefits{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-item:nth-child(2){
    border-right: 0;
  }
}

@media (max-width: 760px){
  header{
    position: sticky;
  }

  .topbar{
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }

  .brand-title{
    width: auto;
    min-width: 0;
    padding-right: 0;
  }

  .brand-title .name{
    font-size: 25px;
  }

  .brand-title .tag{
    display: none;
  }

  .nav{
    width: auto;
    margin-left: auto;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    gap: 6px;
  }

  .nav-row-top{
    display: none;
  }

  .nav-row-bottom{
    gap: 6px;
  }

  .header-icon{
    display: inline-flex;
  }

  .header-cart{
    min-width: 58px;
    width: 58px;
    font-size: 0;
    gap: 4px;
    padding: 0 8px;
  }

  .header-cart .pill{
    font-size: 12px;
  }

  .wrap{
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .home-hero{
    min-height: min(620px, calc(100svh - 88px));
    margin-top: 10px;
    border-radius: 18px;
  }

  .hero-window-bar{
    height: 28px;
    padding-left: 13px;
  }

  .hero-window-bar span{
    width: 7px;
    height: 7px;
  }

  .home-hero .hero-inner{
    padding: 72px 16px 16px;
    gap: 16px;
  }

  .home-hero .hero-visual{
    inset: 28px 0 0;
  }

  .home-hero .hero-visual-img{
    object-position: 60% 45%;
  }

  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.82) 42%, rgba(11,10,8,.18) 100%),
      linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.22) 34%, rgba(11,10,8,.06) 100%);
  }

  .home-hero::before{
    display: none;
  }

  .hero-copy{
    max-width: 285px;
    padding-left: 0;
    align-self: start;
  }

  .hero-kicker{
    max-width: 230px;
    font-size: 10px;
    line-height: 1.35;
  }

  .home-hero h1{
    max-width: 9ch;
    font-size: clamp(36px, 10vw, 48px);
  }

  .home-hero p{
    max-width: 270px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-actions{
    margin-top: 18px;
    gap: 9px;
  }

  .hero-cta{
    min-width: 172px;
  }

  .hero-cta-secondary{
    display: none;
  }

  .hero-progress{
    margin-top: 18px;
  }

  .hero-spec-list{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-spec{
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px 7px;
  }

  .hero-spec__num{
    width: 24px;
    height: 24px;
  }

  .hero-spec .t{
    font-size: 12px;
    font-family: var(--font-ui);
  }

  .hero-spec .d{
    display: none;
  }

  .home-benefits{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
  }

  .benefit-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 96px;
    padding: 11px 8px;
    text-align: center;
  }

  .benefit-item .icon{
    width: 24px;
    height: 24px;
  }

  .benefit-item b{
    font-size: 11px;
    line-height: 1.15;
  }

  .benefit-item span{
    display: none;
  }

  .catalog-heading{
    flex-direction: row;
    align-items: end;
  }

  .catalog-see-all{
    display: none;
  }

  .catalog-toolbar{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-filters{
    width: 100%;
  }

  .catalog-filter{
    max-width: 170px;
    min-height: 38px;
    white-space: nowrap;
  }

  .catalog-filter span{
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card .img{
    aspect-ratio: 4 / 5;
  }

  .card .body{
    min-height: 124px;
    padding: 9px;
  }

  .card .name{
    font-size: 14px;
  }

  .card .sub{
    min-height: 30px;
    font-size: 11px;
  }

  .card-actions{
    top: 7px;
    right: 7px;
    gap: 5px;
  }

  .card-action{
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .mobile-bottom-nav{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    min-height: 64px;
  }

  .mobile-bottom-nav__item{
    font-size: 10px;
    gap: 3px;
  }

  .mobile-bottom-nav__item.has-items,
  .mobile-bottom-nav__item[aria-current="page"],
  .mobile-bottom-nav__item:hover{
    color: var(--ink);
    background: rgba(216,182,99,.14);
  }
}

/* ===== Redesign step 4 final overrides: home page ===== */
.brand-title{
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.brand-title:hover{ border-bottom: 0; }

.header-icon{
  color: var(--gold-strong);
  background: rgba(255,246,220,.045);
}

.header-cart{ gap: 8px; }

.home-hero{
  min-height: clamp(560px, calc(100svh - 140px), 680px);
  border-radius: 18px;
  background: #0b0a08;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

body:not(.theme-dark) .home-hero{
  background: #120f0b;
  color: #f4ead4;
}

.hero-window-bar{
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216,182,99,.15);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.hero-window-bar span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff695f;
}

.hero-window-bar span:nth-child(2){ background: #e7b04d; }
.hero-window-bar span:nth-child(3){ background: #64c46c; }

.home-hero .hero-inner{
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(260px, .5fr);
  align-items: end;
  gap: 28px;
  padding: 96px 36px 42px;
}

.home-hero .hero-visual{
  display: block !important;
  position: absolute;
  inset: 34px 0 0;
  z-index: -1;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0b0a08;
  box-shadow: none;
}

.home-hero .hero-visual-img{
  opacity: 1 !important;
  transform: none;
  filter: contrast(1.05) saturate(1.08);
  object-fit: cover;
  object-position: 67% 52%;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.home-hero .hero-visual::after{
  opacity: 1 !important;
  background:
    linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.92) 28%, rgba(11,10,8,.24) 58%, rgba(11,10,8,.68) 100%),
    linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,0) 28%, rgba(11,10,8,.2) 100%);
}

.home-hero::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 118px;
  bottom: 92px;
  z-index: 1;
  width: 74px;
  opacity: .34;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 1px 100% no-repeat,
    url("./ornament_fon.jpg") 50% 48% / 220px auto repeat;
  filter: sepia(1) saturate(180%) brightness(82%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero-copy{
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: 58px;
}

.hero-kicker,
.section-kicker{
  color: var(--gold-strong);
  font: 700 12px/1.2 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1{
  margin-top: 14px;
  color: #f4ead4;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: .98;
  max-width: 10ch;
  text-wrap: balance;
}

.home-hero h1 .logo-text{
  display: block;
  margin-bottom: 4px;
  color: #f4ead4;
  font-size: .52em;
}

.home-hero h1 .logo-text sup{ color: var(--gold-strong); }

.home-hero p{
  max-width: 470px;
  margin-top: 18px;
  color: rgba(244,234,212,.82);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta{ min-width: 210px; }

.hero-cta .icon{
  width: 18px;
  height: 18px;
}

.hero-cta-secondary{
  min-width: 140px;
  color: #f4ead4;
  border-color: rgba(216,182,99,.36);
  background: rgba(0,0,0,.18);
}

.hero-progress{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: rgba(244,234,212,.62);
  font: 700 12px/1 var(--font-ui);
}

.hero-progress span{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f4ead4;
}

.hero-progress span:nth-child(2){
  width: 34px;
  height: 1px;
  background: var(--gold-strong);
}

.hero-progress b,
.hero-progress i{
  font-style: normal;
  font-weight: 600;
}

.hero-spec-list{
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  width: min(310px, 100%);
  display: grid;
  gap: 18px;
  padding-left: 22px;
  border-left: 1px solid rgba(216,182,99,.32);
}

.hero-spec{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  color: #f4ead4;
}

.hero-spec__num{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,182,99,.38);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(0,0,0,.26);
  font: 800 13px/1 var(--font-ui);
}

.hero-spec .t{
  margin: 0;
  color: #f4ead4;
  font: 700 18px/1.18 var(--font-display);
}

.hero-spec .d{
  margin: 6px 0 0;
  color: rgba(244,234,212,.72);
  font-size: 13px;
  line-height: 1.5;
}

.home-benefits{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.benefit-item{
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--line2);
}

.benefit-item:last-child{ border-right: 0; }

.benefit-item .icon{
  width: 30px;
  height: 30px;
  color: var(--gold-strong);
}

.benefit-item b{
  display: block;
  color: var(--ink);
  font: 800 14px/1.2 var(--font-ui);
}

.benefit-item span{
  display: block;
  margin-top: 5px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
}

.catalog-section{ position: relative; }

.catalog-anchor{
  position: absolute;
  top: -96px;
}

.catalog-heading{ align-items: end; }

.catalog-heading h2{
  margin-top: 5px;
  font-size: clamp(28px, 3vw, 42px);
}

.catalog-see-all{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-strong);
  border-bottom: 0;
  font: 800 14px/1 var(--font-ui);
}

.catalog-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.catalog-filters{
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.catalog-filter{
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255,246,220,.045);
  color: var(--ink2);
  font: 700 13px/1.2 var(--font-ui);
  cursor: pointer;
}

.catalog-filter b{
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216,182,99,.14);
  color: var(--gold-strong);
  font-size: 12px;
}

.catalog-filter.active,
.catalog-filter:hover{
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(216,182,99,.13);
}

.catalog-counter{
  flex: 0 0 auto;
  color: var(--gold-strong);
  font: 800 13px/1 var(--font-ui);
}

.grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card{ position: relative; }

.card-link{
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.card .img{ aspect-ratio: 4 / 5; }

.card .body{
  padding: 12px 12px 14px;
  min-height: 132px;
}

.card .name{
  font-size: 16px;
  line-height: 1.22;
}

.card .sub{
  min-height: 32px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.card-badges{
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 56px);
  pointer-events: none;
}

.card-badges .badge-new{
  position: static;
  inset: auto;
  padding: 5px 8px;
  font-size: 10px;
}

.badge-hit,
body.theme-dark .badge-hit{
  background: linear-gradient(180deg, #f1d894, #bd8730);
}

.card-actions{
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: grid;
  gap: 6px;
}

.card-action{
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--gold-strong);
  background: color-mix(in srgb, var(--paper-solid) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.card-action:hover{ color: #17110a; }

.card-action.favorite.active{
  color: var(--gold-strong);
  background: rgba(216,182,99,.18);
}

.card-action.is-added{
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
}

.catalog-empty{ grid-column: 1 / -1; }

@media (max-width: 1180px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1020px){
  .home-hero{ min-height: 620px; }

  .home-hero .hero-inner{
    grid-template-columns: 1fr;
    align-items: end;
    padding: 86px 28px 28px;
  }

  .home-hero .hero-visual{ display: block !important; }
  .home-hero .hero-visual-img{ object-position: 64% 50%; }
  .hero-copy{ max-width: 540px; }

  .hero-spec-list{
    justify-self: stretch;
    align-self: end;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-spec{
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    border: 1px solid rgba(216,182,99,.22);
    border-radius: var(--radius-panel);
    background: rgba(0,0,0,.24);
  }

  .hero-spec__num{
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .home-benefits{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-item:nth-child(2){ border-right: 0; }
}

@media (max-width: 760px){
  .topbar{
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }

  .brand-title{
    width: auto;
    min-width: 0;
    padding-right: 0;
  }

  .brand-title .name{ font-size: 25px; }
  .brand-title .tag{ display: none; }

  .nav{
    width: auto;
    margin-left: auto;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    gap: 6px;
  }

  .nav-row-top{ display: none; }
  .nav-row-bottom{ gap: 6px; }
  .header-icon{ display: inline-flex; }

  .header-cart{
    min-width: 58px;
    width: 58px;
    font-size: 0;
    gap: 4px;
    padding: 0 8px;
  }

  .header-cart .pill{ font-size: 12px; }
  .wrap{
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .home-hero{
    min-height: min(620px, calc(100svh - 88px));
    margin-top: 10px;
    border-radius: 18px;
  }

  .hero-window-bar{
    height: 28px;
    padding-left: 13px;
  }

  .hero-window-bar span{
    width: 7px;
    height: 7px;
  }

  .home-hero .hero-inner{
    padding: 72px 16px 16px;
    gap: 16px;
  }

  .home-hero .hero-visual{ inset: 28px 0 0; }
  .home-hero .hero-visual-img{ object-position: 60% 45%; }

  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.82) 42%, rgba(11,10,8,.18) 100%),
      linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.22) 34%, rgba(11,10,8,.06) 100%);
  }

  .home-hero::before{ display: none; }

  .hero-copy{
    max-width: 285px;
    padding-left: 0;
    align-self: start;
  }

  .hero-kicker{
    max-width: 230px;
    font-size: 10px;
    line-height: 1.35;
  }

  .home-hero h1{
    max-width: 9ch;
    font-size: clamp(36px, 10vw, 48px);
  }

  .home-hero p{
    max-width: 270px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-actions{
    margin-top: 18px;
    gap: 9px;
  }

  .hero-cta{ min-width: 172px; }
  .hero-cta-secondary{ display: none; }
  .hero-progress{ margin-top: 18px; }

  .hero-spec-list{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-spec{
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px 7px;
  }

  .hero-spec__num{
    width: 24px;
    height: 24px;
  }

  .hero-spec .t{
    font-size: 12px;
    font-family: var(--font-ui);
  }

  .hero-spec .d{ display: none; }

  .home-benefits{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
  }

  .benefit-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 96px;
    padding: 11px 8px;
    text-align: center;
  }

  .benefit-item .icon{
    width: 24px;
    height: 24px;
  }

  .benefit-item b{
    font-size: 11px;
    line-height: 1.15;
  }

  .benefit-item span{ display: none; }

  .catalog-heading{
    flex-direction: row;
    align-items: end;
  }

  .catalog-see-all{ display: none; }

  .catalog-toolbar{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-filters{ width: 100%; }

  .catalog-filter{
    max-width: 170px;
    min-height: 38px;
    white-space: nowrap;
  }

  .catalog-filter span{
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card .img{ aspect-ratio: 4 / 5; }

  .card .body{
    min-height: 124px;
    padding: 9px;
  }

  .card .name{ font-size: 14px; }

  .card .sub{
    min-height: 30px;
    font-size: 11px;
  }

  .card-actions{
    top: 7px;
    right: 7px;
    gap: 5px;
  }

  .card-action{
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .mobile-bottom-nav{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    min-height: 64px;
  }

  .mobile-bottom-nav__item{
    font-size: 10px;
    gap: 3px;
  }

  .mobile-bottom-nav__item.has-items,
  .mobile-bottom-nav__item[aria-current="page"],
  .mobile-bottom-nav__item:hover{
    color: var(--ink);
    background: rgba(216,182,99,.14);
  }
}

@media (max-width: 430px){
  .home-hero{ min-height: min(590px, calc(100svh - 84px)); }
  .home-hero .hero-inner{ padding: 66px 13px 13px; }
  .hero-copy{ max-width: 260px; }
  .home-hero h1{ font-size: clamp(32px, 9.6vw, 42px); }
  .home-hero p{
    max-width: 245px;
    font-size: 12px;
  }
  .hero-spec .t{ font-size: 11px; }
  .benefit-item{
    min-height: 86px;
    padding: 9px 5px;
  }
  .benefit-item b{ font-size: 10px; }
  .catalog-filter{ max-width: 150px; }
}

@media (max-width: 430px){
  .home-hero{
    min-height: min(590px, calc(100svh - 84px));
  }

  .home-hero .hero-inner{
    padding: 66px 13px 13px;
  }

  .hero-copy{
    max-width: 260px;
  }

  .home-hero h1{
    font-size: clamp(32px, 9.6vw, 42px);
  }

  .home-hero p{
    max-width: 245px;
    font-size: 12px;
  }

  .hero-spec .t{
    font-size: 11px;
  }

  .benefit-item{
    min-height: 86px;
    padding: 9px 5px;
  }

  .benefit-item b{
    font-size: 10px;
  }

  .catalog-filter{
    max-width: 150px;
  }
}

/* ===== Кнопки (структура эталона, палитра меняется переменными) ===== */
.btn{
  font-family: serif;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(184,134,43,.08), rgba(255,255,255,.92));
  border: 1px solid rgba(184,134,43,.32);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), border-color .14s var(--ease), background .14s var(--ease);
  box-shadow: 0 10px 22px rgba(34,22,15,.08);
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
  white-space: nowrap;
}
body.theme-dark .btn{
  background: linear-gradient(180deg, rgba(214,177,92,.18), rgba(0,0,0,.10));
  border-color: var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(184,134,43,.55);
  box-shadow: 0 14px 30px rgba(34,22,15,.12);
  background: linear-gradient(180deg, rgba(184,134,43,.12), rgba(255,255,255,.96));
}
body.theme-dark .btn:hover{
  border-color: rgba(214,177,92,.55);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(214,177,92,.26), rgba(0,0,0,.14));
}
.btn:active{ transform: translateY(0); }

.btn.primary{
  border-color: rgba(184,134,43,.45);
  background: linear-gradient(180deg, rgba(184,134,43,.16), rgba(255,255,255,.94));
}
body.theme-dark .btn.primary{
  border-color: rgba(214,177,92,.45);
  background: linear-gradient(180deg, rgba(214,177,92,.32), rgba(0,0,0,.16));
}

.btn.primary:hover{
  border-color: rgba(184,134,43,.62);
  background: linear-gradient(180deg, rgba(184,134,43,.20), rgba(255,255,255,.96));
}
body.theme-dark .btn.primary:hover{
  border-color: rgba(214,177,92,.62);
  background: linear-gradient(180deg, rgba(214,177,92,.40), rgba(0,0,0,.18));
}

/* Корзина: сигнал, когда не пустая */
.btn.has-items{
  background: linear-gradient(180deg, rgba(184,134,43,.30), rgba(255,255,255,.95));
  border-color: rgba(184,134,43,.75);
  box-shadow: 0 16px 36px rgba(184,134,43,.28);
}
body.theme-dark .btn.has-items{
  background: linear-gradient(180deg, rgba(214,177,92,.38), rgba(0,0,0,.16));
  border-color: rgba(214,177,92,.75);
  box-shadow: 0 16px 36px rgba(214,177,92,.14), 0 10px 30px rgba(0,0,0,.45);
}

.pill{
  display:inline-grid;
  place-items:center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(184,134,43,.14);
  border: 1px solid rgba(184,134,43,.45);
  font-size: 13px;
  color: var(--ink);
  transform-origin:center;
}
body.theme-dark .pill{
  background: rgba(127,42,26,.35);
  border-color: rgba(214,177,92,.28);
  color: var(--ink);
}
.pill.pulse{ animation: pulse .45s var(--ease); }
@keyframes pulse{ 0%{ transform: scale(1);} 40%{ transform: scale(1.18);} 100%{ transform: scale(1);} }

/* Кнопка темы (только добавили, структура остального не менялась) */
.btn.theme{
  min-width: 44px;
  justify-content:center;
  padding: 10px 12px;
}

/* ===== Hero (эталон) ===== */
.hero{
  margin-top: 22px;
  border: 1px solid rgba(184,134,43,.22);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
body.theme-dark .hero{
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.hero-inner{
  position:relative;
  z-index:1;
  padding: 22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items:stretch;
}
.hero h1{
  margin:0;
  font-family: serif;
  font-size: 40px;
  letter-spacing: .4px;
  line-height: 1.08;
  color: var(--ink);
}
#heroTitle{
  letter-spacing: 2.1px;
}
.hero h1 .logo-text{
  font-size: 40px;
  letter-spacing: .4px;
}

.hero p{
  margin: 10px 0 0;
  color: var(--ink2);
  font-size: 18px;
  line-height: 1.55;
  max-width: 76ch;
}

.hero-visual{
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(100px, 10vw, 180px);
  position: relative;
  border: 1px solid rgba(184,134,43,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  background: var(--paper);
  isolation: isolate;
}
body.theme-dark .hero-visual{
  border-color: rgba(214,177,92,.12);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.hero-visual-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;

  opacity: 0;
  transform: scale(1.02);
  filter: blur(10px) saturate(110%);

  transition:
    opacity .55s var(--ease),
    transform .85s var(--ease),
    filter .85s var(--ease);
  will-change: opacity, transform, filter;

  -webkit-mask-image: none;
  mask-image: none;
}
body.theme-dark .hero-visual-img-dark{
  opacity: 1;
  transform: scale(1);
  filter: none;
}
body:not(.theme-dark) .hero-visual-img-light{
  opacity: 1;
  transform: scale(1);
  filter: none;
}
.hero-visual::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
body.theme-dark .hero-visual-img{
  /* Stronger edge fade into background (dark theme only) */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,0) 100%);
}
body.theme-dark .hero-visual::after{
  opacity: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, var(--paper) 100%),
    linear-gradient(to right, var(--paper) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, var(--paper) 100%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, var(--paper) 100%);
}

.hero-card{
  border-radius: 16px;
  border: 1px solid rgba(184,134,43,.18);
  background: rgba(255, 250, 240, 0.95);
  padding: 14px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  gap: 10px;
}
body.theme-dark .hero-card{
  border-color: var(--line);
  background: rgba(0,0,0,.35);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.hero-card .row{ display:flex; gap:10px; align-items:flex-start; }
.sigil{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(184,134,43,.25);
  background: rgba(184,134,43,.08);
  flex: 0 0 auto;
}
body.theme-dark .sigil{
  border-color: rgba(214,177,92,.30);
  background: rgba(0,0,0,.22);
}

.hero-card .t{ font-size: 16px; margin:0; font-weight:700; }
.hero-card .d{ font-size: 15px; color: var(--ink2); margin: 4px 0 0; line-height: 1.45; }

/* ===== Sections (эталон) ===== */
section{ margin-top: 28px; }
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.section-title h2{
  margin:0;
  font-family: serif;
  font-size: 26px;
  letter-spacing: .3px;
  color: var(--ink);
}
.section-title .hint{ color: var(--ink2); font-size: 15px; }

a{
  color: var(--gold2);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,134,43,.32);
}
body.theme-dark a{
  border-bottom-color: rgba(214,177,92,.32);
  color: var(--gold2);
}
a:hover{
  border-bottom-color: rgba(184,134,43,.60);
}
body.theme-dark a:hover{
  border-bottom-color: rgba(214,177,92,.60);
}

/* ===== Catalog grid (эталон) ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card{
  border-radius: 16px;
  border: 1px solid rgba(184,134,43,.20);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 44px rgba(34,22,15,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  transition: transform .20s var(--ease), box-shadow .20s var(--ease), border-color .20s var(--ease);
  transform: translateZ(0);
  outline:none;
}
body.theme-dark .card{
  border-color: var(--line);
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.card:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 70px rgba(34,22,15,.14);
  border-color: rgba(184,134,43,.42);
}
body.theme-dark .card:hover{
  box-shadow: 0 22px 70px rgba(0,0,0,.48);
  border-color: rgba(214,177,92,.50);
}
.card:active{ transform: translateY(-2px) scale(1.01); }
.card:focus-visible{
  box-shadow: 0 0 0 3px rgba(184,134,43,.20), 0 18px 56px rgba(34,22,15,.14);
}
body.theme-dark .card:focus-visible{
  box-shadow: 0 0 0 3px rgba(214,177,92,.18), 0 18px 56px rgba(0,0,0,.48);
}

.card .img{
  aspect-ratio: 1/1;
  width:100%;
  overflow:hidden;
  position:relative;
  background: rgba(34,22,15,.05);
  border-bottom: 1px solid rgba(184,134,43,.16);
}
body.theme-dark .card .img{
  background: rgba(0,0,0,.22);
  border-bottom-color: rgba(214,177,92,.18);
}

.badge-new{
  position:absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ff4b4b, #c30000);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 26px rgba(195,0,0,.24), 0 2px 10px rgba(0,0,0,.14);
  pointer-events: none;
  user-select: none;
}
body.theme-dark .badge-new{
  box-shadow: 0 12px 32px rgba(195,0,0,.20), 0 2px 14px rgba(0,0,0,.42);
}
@media (max-width: 430px){
  .badge-new{
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

.card img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .25s var(--ease), filter .25s var(--ease);
  filter: contrast(104%) saturate(98%);
}
body.theme-dark .card img{
  filter: contrast(108%) saturate(105%);
}
.card:hover img{ transform: scale(1.06); filter: contrast(106%) saturate(110%); }

/* Out-of-stock cards stay visually the same as regular cards (only text label differs). */

.card .body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  min-height: 120px;
  flex: 1;
}
.card .name{
  margin:0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
.card .sub{
  margin:0;
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.35;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 6px;
  margin-top:auto;
  padding-top: 8px;
  border-top: 1px solid var(--line2);
  flex-wrap: nowrap;
}
.availability{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(184,134,43,.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15px;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
}
.availability.in-stock{
  color: #6b7b3a; /* khaki */
  border-color: rgba(107,123,58,.35);
  background: rgba(107,123,58,.10);
}
.availability.out-of-stock{
  color: #a61b1b;
  border-color: rgba(166,27,27,.28);
  background: rgba(166,27,27,.08);
}
body.theme-dark .availability.in-stock{
  color: #b8c77b;
  border-color: rgba(184,199,123,.35);
  background: rgba(184,199,123,.12);
}
body.theme-dark .availability.out-of-stock{
  color: #ff6b6b;
  border-color: rgba(255,107,107,.32);
  background: rgba(255,107,107,.10);
}
.price{
  font-size: 17px;
  color: var(--gold2);
  letter-spacing: .2px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.card.out-of-stock .price{
  display: none;
}

/* ===== Ошибка загрузки каталога (аккуратно) ===== */
.noteBox{
  margin-top:14px;
  color: var(--ink2);
  padding:12px;
  border-radius:16px;
  border: 1px dashed rgba(184,134,43,.35);
  background: rgba(184,134,43,.06);
}

.hl-yellow{
  color: #f1c40f;
  font-weight: 800;
}
body.theme-dark .hl-yellow{
  color: #f6d365;
}
body.theme-dark .noteBox{
  border-color: rgba(214,177,92,.25);
  background: rgba(0,0,0,.14);
  color: var(--ink2);
}
.formatting-hint ul{
  margin: 8px 0 0;
  padding-left: 20px;
}
.formatting-hint code{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  background: rgba(184,134,43,.12);
  padding: 0 4px;
  border-radius: 4px;
}

/* Checkout form (main site) */
.checkout-form .kv:first-child{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.checkout-form .kv{
  margin-top: 10px;
  padding-top: 10px;
  gap: 6px;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  color: var(--ink);
  font: inherit;
}
body.theme-dark .checkout-form input,
body.theme-dark .checkout-form select,
body.theme-dark .checkout-form textarea{
  background: rgba(0,0,0,.18);
  border-color: var(--line);
  color: var(--ink);
}
.checkout-form textarea{
  resize: vertical;
  min-height: 78px;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,134,43,.18);
}
body.theme-dark .checkout-form input:focus,
body.theme-dark .checkout-form select:focus,
body.theme-dark .checkout-form textarea:focus{
  box-shadow: 0 0 0 3px rgba(214,177,92,.18);
}

/* Better selects in dark theme (native dropdowns are limited, but option colors help in many browsers) */
select.btn,
.checkout-form select{
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
body.theme-dark select.btn,
body.theme-dark .checkout-form select{
  background: rgba(0,0,0,.35);
  color: var(--ink);
  color-scheme: dark;
}
body.theme-dark select.btn option,
body.theme-dark .checkout-form select option{
  background: #120e0a;
  color: #f5e9cf;
}

/* Ensure ₽ renders even if brand font lacks the glyph */
.price,
.total,
.order-money{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
footer{
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(184,134,43,.20);
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.55;
}
body.theme-dark footer{
  border-top-color: rgba(214,177,92,.18);
}

@media (max-width: 1020px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ display: none; }
  .hero h1 .logo-text{ font-size: 38px; }
  .meta{
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .availability{
    font-size: 11px;
    padding: 4px 9px;
  }
}
@media (max-width: 760px){
  /* Шапка - адаптация для мобильных */
  .topbar{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
    position: relative;
    min-height: 60px;
  }
  .brand-title{
    width: 100%;
    padding-right: 50px;
  }
  .brand-title .name{
    font-size: 22px;
  }
  .brand-title .tag{
    font-size: 13px;
  }
  .nav{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
  }
  .nav-row{
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .nav-row-top{
    display: flex;
    gap: 8px;
  }
  .nav-row-top .btn{
    flex: 1;
    font-size: 14px;
    padding: 8px 10px;
    justify-content: center;
  }
  #btnAbout{
    display: none !important;
  }
  #btnDelivery{
    display: inline-flex !important;
  }
  .nav-row-bottom{
    display: flex;
    gap: 8px;
  }
  .nav-row-bottom .btn.btn-large{
    flex: 1;
    font-size: 14px;
    padding: 16px 10px;
    justify-content: center;
    min-height: calc(2 * (8px + 1em + 8px));
  }
  .nav-row-bottom .btn.theme{
    display: none !important;
  }
  
  /* Каталог - 2 колонки */
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .img{ 
    aspect-ratio: 1/1;
  }
  .card .body{
    padding: 10px;
    min-height: 100px;
  }
  .card .name{
    font-size: 16px;
  }
  .card .sub{
    font-size: 14px;
  }
  .meta{
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .price{
    font-size: 16px;
    flex: 0 0 auto;
  }
  .availability{
    font-size: 11px;
    padding: 4px 9px;
  }
  
  /* Hero секция */
  .hero{
    margin-top: 16px;
  }
  .hero-inner{
    padding: 16px;
    gap: 12px;
  }
  .hero h1{
    font-size: 28px;
  }
  .hero h1 .logo-text{
    font-size: 28px;
  }
  .hero p{
    font-size: 16px;
    margin-top: 8px;
  }
  .hero-card{
    padding: 12px;
    gap: 8px;
  }
  .hero-card .row{
    gap: 10px;
    min-height: auto;
  }
  .sigil{
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .hero-card .t{
    font-size: 15px;
  }
  .hero-card .d{
    font-size: 14px;
  }
  
  /* Секции */
  section{
    margin-top: 20px;
  }
  .section-title{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }
  .section-title h2{
    font-size: 22px;
  }
  .section-title .hint{
    font-size: 14px;
  }
  
  /* О бренде и Контакты */
  #about .hero-card,
  #contacts .hero-card{
    padding: 14px;
  }
  #about .hero-card .t,
  #contacts .hero-card .t{
    font-size: 16px;
  }
  #about .hero-card .d,
  #contacts .hero-card .d{
    font-size: 15px;
  }
  .kv{
    font-size: 14px;
    gap: 6px;
  }
  /* Footer */
  footer{
    margin-top: 24px;
    padding-top: 12px;
    font-size: 13px;
  }
  
  /* Общие улучшения */
  .wrap{
    width: calc(100% - 20px);
    padding: 12px 0 50px;
  }
  .btn{
    font-size: 14px;
    padding: 8px 10px;
  }
}
@media (max-width: 430px){
  /* Еще более компактная версия для маленьких экранов */
  .grid{ 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 10px;
  }
  .card .img{ 
    aspect-ratio: 1/1;
  }
  .card .body{
    padding: 8px;
    min-height: 90px;
  }
  .card .name{
    font-size: 15px;
  }
  .card .sub{
    font-size: 13px;
  }
  .meta{
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .price{
    font-size: 15px;
  }
  .availability{
    font-size: 10px;
    padding: 4px 8px;
  }
  .thumb{
    min-width: 70px;
    width: 70px;
  }
  
  .topbar{
    padding: 10px 0;
  }
  .brand-title .name{
    font-size: 20px;
  }
  .brand-title .tag{
    font-size: 12px;
  }
  .nav .btn{
    font-size: 13px;
    padding: 7px 8px;
  }
  
  .hero{
    margin-top: 12px;
  }
  .hero-inner{
    padding: 12px;
  }
  .hero h1{
    font-size: 24px;
  }
  .hero h1 .logo-text{
    font-size: 24px;
  }
  .hero p{
    font-size: 15px;
  }
  .hero-card{
    padding: 10px;
  }
  .sigil{
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .hero-card .t{
    font-size: 14px;
  }
  .hero-card .d{
    font-size: 13px;
  }
  
  .section-title h2{
    font-size: 20px;
  }
  .section-title .hint{
    font-size: 13px;
  }
  
  #about .hero-card,
  #contacts .hero-card{
    padding: 12px;
  }
  #about .hero-card .t,
  #contacts .hero-card .t{
    font-size: 15px;
  }
  #about .hero-card .d,
  #contacts .hero-card .d{
    font-size: 14px;
  }
  .kv{
    font-size: 13px;
  }
  
}
	/* =========================================================
   FIX: восстановление эталонного вида (как в старом index)
   Hero / О бренде / Контакты
========================================================= */

/* ===== HERO: иконки + текст (одинаковая высота строк) ===== */

.hero-card .row{
  align-items: center;
  gap: 14px;
  min-height: 72px;
}

.hero-card .sigil{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.hero-card .t{
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.hero-card .d{
  font-size: 15px;
  line-height: 1.45;
  margin: 4px 0 0;
}


/* ===== О БРЕНДЕ: плотность и высота карточки ===== */

#about .hero-card{
  padding: 18px 20px;
}

#about .hero-card .t{
  font-size: 18px;
  line-height: 1.25;
}

#about .hero-card .d{
  font-size: 16px;
  line-height: 1.55;
}

#about .kv{
  margin-top: 14px;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}


/* ===== КОНТАКТЫ: вернуть компактный вид ===== */

#contacts .hero-card{
  padding: 18px 20px;
}

#contacts .hero-card .d{
  font-size: 16px;
  line-height: 1.55;
}

#contacts .kv{
  margin-top: 14px;
  gap: 10px;
  font-size: 15px;
}
/* ===== Contacts: жёлтое выделение значений (как на эталоне) ===== */

#contacts .contact-val{
  color: var(--gold2);
  font-weight: 600;
  letter-spacing: .2px;
}

#contacts .contact-val a{
  color: var(--gold2);
  border-bottom-color: rgba(184,134,43,.45);
}

#contacts .contact-val a:hover{
  border-bottom-color: rgba(184,134,43,.75);
}

/* ================= Legal pages + footer links ================= */

.footer-links{
  font-size: 13px;
  opacity: .92;
}

.footer-links a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.footer-links a:hover{
  border-bottom-color: rgba(255,255,255,.55);
}

.footer-links .sep{
  opacity: .6;
  margin: 0 6px;
}

.footer-requisites{
  font-size: 12px;
  opacity: .7;
  line-height: 1.35;
}

.legal-page{
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 24px 18px 60px;
}

.legal-page .container{
  max-width: 980px;
  margin: 0 auto;
}

.legal-page .top{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.legal-page .back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  opacity: .9;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.legal-page .back:hover{
  opacity: 1;
  border-bottom-color: rgba(255,255,255,.55);
}

.legal-page h1{
  margin: 0;
  font-size: 28px;
  letter-spacing: .3px;
}

.legal-page h2{
  margin: 22px 0 10px;
  font-size: 18px;
}

.legal-page p, .legal-page li{
  font-size: 15px;
  line-height: 1.6;
  opacity: .95;
}

.legal-page ul{
  margin: 8px 0 0 22px;
}

.legal-page .note{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

/* ================= Cookies banner ================= */

.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 14px 12px;
  background: rgba(13,11,8,.88);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.cookie-banner__inner{
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text{
  font-size: 13px;
  line-height: 1.35;
  opacity: .95;
}

.cookie-banner__text a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.cookie-banner__text a:hover{
  border-bottom-color: rgba(255,255,255,.55);
}

.cookie-banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 860px){
  .cookie-banner__inner{
    align-items: flex-start;
    flex-direction: column;
  }
  .cookie-banner__actions{
    width: 100%;
  }
}

/* ===== Public page architecture: product/cart/checkout/status ===== */
.page-brand-link{
  color: inherit;
  text-decoration: none;
}

.page-shell{
  padding-top: 26px;
}

.page-breadcrumbs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin: 0 0 22px;
  color: var(--ink2);
  font-size: 14px;
}

.page-breadcrumbs a{
  color: var(--ink2);
  text-decoration:none;
  border-bottom:1px solid transparent;
}

.page-breadcrumbs a:hover{
  color: var(--ink);
  border-color: var(--line);
}

.page-heading{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:24px;
}

.page-heading h1,
.page-product__info h1,
.page-status h1{
  margin:6px 0 0;
  font-family:serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height:1.02;
  letter-spacing:0;
}

.page-kicker{
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.page-section{
  margin-top:56px;
}

.page-notice{
  margin-bottom:18px;
}

.page-product{
  display:grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap:32px;
  align-items:start;
}

.page-product__gallery{
  display:grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap:14px;
  position:sticky;
  top:98px;
}

.page-product__main{
  min-height: min(68vh, 680px);
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow2);
  overflow:hidden;
}

.page-product__main img,
.page-product__image{
  width:100%;
  height:100%;
  min-height: min(68vh, 680px);
  object-fit:cover;
  display:block;
}

.page-product__thumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
  order:-1;
}

.page-product__thumb{
  width:88px;
  aspect-ratio:1;
  padding:0;
  border:1px solid var(--line2);
  background: var(--paper);
  cursor:pointer;
  overflow:hidden;
}

.page-product__thumb.active{
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(214,177,92,.18);
}

.page-product__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-product__info{
  border:1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow2);
  padding:24px;
  position:sticky;
  top:98px;
}

.page-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0;
}

.page-availability{
  color: var(--ink2);
  font-size:14px;
}

.page-availability.in-stock{
  color:#7fbf83;
}

.page-availability.out-of-stock{
  color:#d98a72;
}

.page-product__desc{
  white-space:pre-line;
  color:var(--ink2);
  line-height:1.62;
  margin: 0 0 18px;
}

.page-specs{
  display:grid;
  gap:8px;
  margin: 18px 0;
}

.page-specs > div,
.page-benefits > div{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line2);
  padding-top:10px;
}

.page-specs b,
.page-benefits b{
  color:var(--ink);
}

.page-specs span,
.page-benefits span{
  color:var(--ink2);
  text-align:right;
}

.page-purchase{
  display:grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap:10px;
  margin:22px 0 12px;
}

.page-purchase .btn:last-child{
  grid-column: 1 / -1;
}

.page-qty{
  display:flex;
  min-height:44px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.05);
}

.page-qty input{
  width:52px;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--ink);
  text-align:center;
  font: inherit;
  font-weight:700;
}

.page-qty .qbtn{
  min-width:40px;
  border:0;
  border-right:1px solid var(--line2);
  background:transparent;
  color:var(--ink);
  font:inherit;
  cursor:pointer;
}

.page-qty .qbtn:last-child{
  border-right:0;
  border-left:1px solid var(--line2);
}

.page-benefits{
  display:grid;
  gap:10px;
  margin-top:20px;
}

.page-action-status{
  margin-top:12px;
}

.page-mini-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}

.page-mini-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  color:inherit;
  text-decoration:none;
  border:1px solid var(--line);
  background:var(--paper);
  padding:10px;
  min-width:0;
}

.page-mini-card__image{
  aspect-ratio:1;
  overflow:hidden;
  background:rgba(255,255,255,.05);
}

.page-mini-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-mini-card__name{
  font-weight:700;
  line-height:1.25;
}

.page-mini-card__price{
  color:var(--gold);
  font-weight:700;
}

.page-cart-layout,
.page-checkout-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap:24px;
  align-items:start;
}

.page-cart-list{
  display:grid;
  gap:14px;
}

.page-cart-item{
  display:grid;
  grid-template-columns: 118px minmax(0, 1fr) auto auto;
  gap:16px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--paper);
  padding:12px;
}

.page-cart-item__image{
  aspect-ratio:1;
  overflow:hidden;
  background:rgba(255,255,255,.05);
}

.page-cart-item__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-cart-item__name{
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  font-size:18px;
}

.page-cart-item__meta{
  margin-top:7px;
  color:var(--ink2);
  font-size:14px;
}

.page-cart-item__price{
  margin-top:8px;
  color:var(--gold);
  font-weight:700;
}

.page-summary{
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:var(--shadow2);
  padding:18px;
  position:sticky;
  top:98px;
}

.page-summary h2,
.page-checkout-block h2{
  margin:0 0 14px;
  font-size:22px;
}

.checkout-mini-row,
.page-summary__total{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid var(--line2);
  padding-top:10px;
  margin-top:10px;
}

.page-summary__total{
  font-size:20px;
  color:var(--gold);
}

.page-summary__cta{
  width:100%;
  margin-top:16px;
  justify-content:center;
}

.btn.disabled,
.btn[aria-disabled="true"]{
  opacity:.55;
  pointer-events:none;
}

.page-promocode{
  display:flex;
  gap:8px;
  margin-top:14px;
}

.page-promocode input{
  min-width:0;
}

.page-empty,
.page-status{
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:var(--shadow2);
  padding:26px;
}

.page-empty h2{
  margin:0 0 8px;
  font-size:28px;
}

.page-empty p{
  color:var(--ink2);
}

.page-checkout-form{
  display:grid;
  gap:16px;
}

.page-checkout-block{
  border:1px solid var(--line);
  background:var(--paper);
  padding:18px;
}

.page-checkout-block .kv{
  margin-top:10px;
}

.page-check-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.page-pvz-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.page-muted{
  margin-top:8px;
  color:var(--ink2);
  font-size:13px;
}

.page-checkout-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.page-status{
  max-width:760px;
  margin: 36px auto 120px;
}

.page-status-panel{
  margin-top:18px;
  min-height:175px;
  font-size:17px;
  line-height:1.55;
}

.page-status-copy{
  line-height:1.7;
}

.page-status-hint{
  margin:12px 0 0;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.55;
}

.page-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.noteBox[data-kind="success"],
.page-status-panel[data-kind="success"]{
  border-color: rgba(127,191,131,.55);
}

.noteBox[data-kind="error"],
.page-status-panel[data-kind="error"]{
  border-color: rgba(217,138,114,.65);
}

.noteBox[data-kind="warning"],
.page-status-panel[data-kind="warning"]{
  border-color: rgba(214,177,92,.65);
}

@media (max-width: 980px){
  .page-product,
  .page-cart-layout,
  .page-checkout-layout{
    grid-template-columns:1fr;
  }

  .page-product__gallery,
  .page-product__info,
  .page-summary{
    position:static;
  }

  .page-cart-item{
    grid-template-columns:96px minmax(0,1fr);
  }

  .page-cart-item .page-qty,
  .page-cart-item .remove{
    grid-column:2;
    justify-self:start;
  }

  .page-mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .page-shell{
    width:min(100% - 24px, 1200px);
    padding-top:18px;
  }

  .page-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .page-product__gallery{
    grid-template-columns:1fr;
  }

  .page-product__main,
  .page-product__main img,
  .page-product__image{
    min-height:auto;
    aspect-ratio: 4 / 5;
  }

  .page-product__thumbs{
    order:0;
    flex-direction:row;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .page-product__thumb{
    flex:0 0 74px;
    width:74px;
  }

  .page-product__info{
    padding:18px;
  }

  .page-purchase{
    grid-template-columns:1fr;
  }

  .page-purchase .btn:last-child{
    grid-column:auto;
  }

  .page-benefits > div,
  .page-specs > div{
    flex-direction:column;
    gap:4px;
  }

  .page-benefits span,
  .page-specs span{
    text-align:left;
  }

  .page-cart-item{
    grid-template-columns:84px minmax(0,1fr);
    gap:12px;
  }

  .page-promocode,
  .page-pvz-row,
  .page-checkout-actions{
    flex-direction:column;
    align-items:stretch;
  }
}

/* ===== Redesign step 3: visual system ===== */
:root{
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-brand: "Playfair Display", Georgia, serif;

  --bg:#f3ecdf;
  --paper: rgba(255,250,239,.94);
  --paper-solid:#fffaf0;
  --surface: rgba(255,250,239,.86);
  --surface-2: rgba(255,255,255,.58);
  --surface-strong:#fff7e8;

  --ink:#21170e;
  --ink2: rgba(33,23,14,.72);
  --text: var(--ink);
  --muted: rgba(33,23,14,.58);

  --gold:#c8953d;
  --gold2:#926b28;
  --gold-strong:#d8b663;

  --line: rgba(146,107,40,.30);
  --line2: rgba(33,23,14,.12);
  --focus: rgba(200,149,61,.34);

  --success:#527e4d;
  --success-bg: rgba(82,126,77,.12);
  --error:#a84a3a;
  --error-bg: rgba(168,74,58,.12);
  --warning:#a77222;
  --warning-bg: rgba(167,114,34,.13);

  --shadow: 0 18px 52px rgba(33,23,14,.16);
  --shadow2: 0 10px 28px rgba(33,23,14,.10);
  --r:8px;
  --radius-panel:8px;
  --radius-control:8px;
  --tap:44px;

  --ornament-opacity:.08;
}

body.theme-dark{
  --bg:#0b0a08;
  --paper: rgba(18,15,11,.92);
  --paper-solid:#120f0b;
  --surface: rgba(22,18,13,.88);
  --surface-2: rgba(255,246,220,.055);
  --surface-strong:#18130d;

  --ink:#f4ead4;
  --ink2: rgba(244,234,212,.76);
  --text: var(--ink);
  --muted: rgba(244,234,212,.56);

  --gold:#d8b663;
  --gold2:#c89c45;
  --gold-strong:#e6c777;

  --line: rgba(216,182,99,.30);
  --line2: rgba(216,182,99,.14);
  --focus: rgba(216,182,99,.32);

  --success:#9fcf86;
  --success-bg: rgba(93,133,69,.16);
  --error:#e18a75;
  --error-bg: rgba(168,74,58,.17);
  --warning:#d8b663;
  --warning-bg: rgba(216,182,99,.14);

  --shadow: 0 18px 60px rgba(0,0,0,.56);
  --shadow2: 0 10px 30px rgba(0,0,0,.38);
  --ornament-opacity:.045;
}

html{
  font-family: var(--font-ui);
}

body{
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
  background-color: var(--bg);
}

body::before{
  opacity: var(--ornament-opacity);
}

.logo-text{
  font-family: var(--font-brand);
  letter-spacing: 0;
  font-weight: 700;
}

.brand-title .tag,
.page-breadcrumbs,
.page-kicker,
.section-title .hint,
.card .sub,
.page-cart-item__meta,
.page-muted,
footer{
  color: var(--ink2);
}

.hero h1,
.section-title h2,
.page-heading h1,
.page-product__info h1,
.page-status h1,
.page-empty h2,
.page-summary h2,
.page-checkout-block h2{
  font-family: var(--font-display);
  letter-spacing: 0;
  font-weight: 700;
}

#heroTitle,
.hero h1 .logo-text{
  letter-spacing: 0;
}

.btn,
.x,
.remove,
.qbtn,
input,
select,
textarea,
button{
  font-family: var(--font-ui);
}

.page-mini-card,
.page-cart-item__name,
.page-cart-item__image,
.mobile-bottom-nav__item{
  border-bottom: 0;
}

a.btn{
  text-decoration: none;
}

.btn{
  min-height: var(--tap);
  border-radius: var(--radius-control);
  border-color: var(--line);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  justify-content: center;
}

body.theme-dark .btn{
  background: rgba(255,246,220,.045);
  border-color: var(--line);
  box-shadow: none;
}

.btn:hover,
body.theme-dark .btn:hover{
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(216,182,99,.13);
  box-shadow: none;
}

.btn.primary,
body.theme-dark .btn.primary,
.btn.has-items,
body.theme-dark .btn.has-items{
  border-color: rgba(216,182,99,.74);
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  color: #17110a;
  box-shadow: 0 12px 28px rgba(200,149,61,.22);
}

.btn.primary:hover,
body.theme-dark .btn.primary:hover,
.btn.has-items:hover,
body.theme-dark .btn.has-items:hover{
  border-color: #ebd28b;
  background: linear-gradient(180deg, #f0d88e, #d2a148);
  color: #17110a;
}

.btn:focus-visible,
.x:focus-visible,
.qbtn:focus-visible,
.remove:focus-visible,
.card:focus-visible,
.page-mini-card:focus-visible,
.page-product__thumb:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.mobile-bottom-nav__item:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--focus);
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"],
button:disabled,
input:disabled,
select:disabled,
textarea:disabled{
  cursor: not-allowed;
  opacity: .48;
}

.pill{
  min-width: 22px;
  height: 22px;
  border-color: var(--line);
  background: rgba(216,182,99,.18);
  color: inherit;
  font-family: var(--font-ui);
  font-weight: 700;
}

.hero,
.hero-card,
.card,
.page-product__main,
.page-product__info,
.page-product__thumb,
.page-mini-card,
.page-cart-item,
.page-summary,
.page-empty,
.page-status,
.page-checkout-block,
.noteBox,
.page-qty,
.page-promocode input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea{
  border-radius: var(--radius-panel);
}

.hero,
.hero-card,
.card,
.page-product__info,
.page-summary,
.page-empty,
.page-status,
.page-checkout-block,
.page-mini-card,
.page-cart-item{
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow2);
}

body.theme-dark .hero,
body.theme-dark .hero-card,
body.theme-dark .card,
body.theme-dark .page-product__info,
body.theme-dark .page-summary,
body.theme-dark .page-empty,
body.theme-dark .page-status,
body.theme-dark .page-checkout-block,
body.theme-dark .page-mini-card,
body.theme-dark .page-cart-item{
  background: var(--surface);
  border-color: var(--line);
}

header{
  background: color-mix(in srgb, var(--paper-solid) 88%, transparent);
  backdrop-filter: blur(14px);
}

body.theme-dark header{
  background: color-mix(in srgb, var(--paper-solid) 88%, transparent);
}

.card:hover,
body.theme-dark .card:hover,
.page-mini-card:hover{
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.card:active{
  transform: translateY(0);
}

.card .body{
  min-height: 132px;
}

.badge-new,
body.theme-dark .badge-new{
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  border-color: rgba(255,250,239,.32);
  box-shadow: 0 10px 24px rgba(200,149,61,.18);
}

.price,
.page-cart-item__price,
.page-mini-card__price,
.page-summary__total,
.sum .total,
.order-money{
  color: var(--gold-strong);
  font-family: var(--font-ui);
  font-weight: 700;
}

.availability,
.page-availability{
  min-height: 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
}

.availability.in-stock,
.page-availability.in-stock,
body.theme-dark .availability.in-stock,
body.theme-dark .page-availability.in-stock{
  color: var(--success);
}

.availability.out-of-stock,
.page-availability.out-of-stock,
body.theme-dark .availability.out-of-stock,
body.theme-dark .page-availability.out-of-stock{
  color: var(--error);
}

.page-availability::before{
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: 1px;
}

.noteBox{
  border-style: solid;
  border-color: var(--line);
  background: rgba(216,182,99,.08);
  color: var(--ink2);
  line-height: 1.48;
}

.noteBox[data-kind="success"],
.page-status-panel[data-kind="success"]{
  border-color: color-mix(in srgb, var(--success) 62%, transparent);
  background: var(--success-bg);
  color: var(--ink);
}

.noteBox[data-kind="error"],
.page-status-panel[data-kind="error"]{
  border-color: color-mix(in srgb, var(--error) 68%, transparent);
  background: var(--error-bg);
  color: var(--ink);
}

.noteBox[data-kind="warning"],
.page-status-panel[data-kind="warning"]{
  border-color: color-mix(in srgb, var(--warning) 68%, transparent);
  background: var(--warning-bg);
  color: var(--ink);
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.page-promocode input{
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--ink);
  font: 500 16px/1.35 var(--font-ui);
  padding: 11px 12px;
}

body.theme-dark .checkout-form input,
body.theme-dark .checkout-form select,
body.theme-dark .checkout-form textarea{
  background: var(--surface-2);
  border-color: var(--line);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--focus);
}

.checkout-form input:invalid:not(:placeholder-shown),
.checkout-form textarea:invalid:not(:placeholder-shown){
  border-color: var(--error);
}

.page-check-row input[type="checkbox"]{
  width: 20px;
  min-width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.page-qty{
  min-height: var(--tap);
  overflow: hidden;
  background: var(--surface-2);
}

.page-qty input{
  min-height: var(--tap);
  font-family: var(--font-ui);
  flex: 1 0 56px;
  min-width: var(--tap);
}

.page-qty .qbtn,
.qbtn{
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 0;
  background: transparent;
}

.page-purchase{
  grid-template-columns: 148px minmax(0, 1fr);
}

.page-check-row input[type="checkbox"]{
  appearance: none;
  width: var(--tap);
  min-width: var(--tap);
  height: var(--tap);
  min-height: var(--tap);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  display: grid;
  place-items: center;
}

.page-check-row input[type="checkbox"]::after{
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}

.page-check-row input[type="checkbox"]:checked{
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  border-color: rgba(216,182,99,.74);
}

.page-check-row input[type="checkbox"]:checked::after{
  border-color: #17110a;
}

.remove{
  min-height: var(--tap);
  border-radius: var(--radius-control);
}

.page-summary{
  top: 96px;
}

.checkout-mini-row,
.page-summary__total{
  align-items: center;
}

.checkout-mini-row span,
.page-summary__total span{
  min-width: 0;
}

.page-mini-card{
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.page-mini-card__image,
.page-cart-item__image,
.card .img,
.page-product__main{
  border-radius: calc(var(--radius-panel) - 1px);
}

.icon{
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.icon-btn{
  width: var(--tap);
  min-width: var(--tap);
  height: var(--tap);
  padding: 0;
  border-radius: var(--radius-control);
}

.mobile-bottom-nav{
  display: none;
}

@media (max-width: 760px){
  .wrap{
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .topbar{
    width: min(100% - 24px, 1200px);
  }

  .brand-title .name{
    font-size: 24px;
  }

  .brand-title .tag{
    font-size: 12px;
  }

  .nav-row-top .btn{
    min-height: var(--tap);
  }

  .hero h1{
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  .hero h1 .logo-text{
    font-size: inherit;
  }

  .hero-card .row{
    align-items: center;
  }

  .sigil{
    border-radius: var(--radius-control);
  }

  .card .body{
    min-height: 116px;
  }

  .card .name{
    font-size: 15px;
    line-height: 1.22;
  }

  .card .sub{
    font-size: 12px;
  }

  .meta{
    align-items: flex-start;
    flex-direction: column;
  }

  .availability{
    margin-left: 0;
  }

  .page-product__info,
  .page-summary,
  .page-checkout-block,
  .page-empty,
  .page-status{
    padding: 16px;
  }

  .page-summary{
    position: static;
  }

  .page-cart-item{
    align-items: start;
  }

  .page-cart-item .page-qty,
  .page-cart-item .remove{
    width: 100%;
    justify-self: stretch;
  }

  .page-promocode .btn,
  .page-checkout-actions .btn,
  .page-summary__cta,
  .page-purchase .btn{
    width: 100%;
  }

  .mobile-bottom-nav{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 64px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: color-mix(in srgb, var(--paper-solid) 92%, transparent);
    box-shadow: 0 18px 44px rgba(0,0,0,.38);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav__item{
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius-control);
    color: var(--ink2);
    text-decoration: none;
    font: 700 11px/1.1 var(--font-ui);
  }

  .mobile-bottom-nav__item[aria-current="page"],
  .mobile-bottom-nav__item:hover{
    color: var(--ink);
    background: rgba(216,182,99,.14);
  }
}
/* ===== Redesign step 4 EOF guard: home page must override shared system ===== */
.home-hero{
  min-height: clamp(560px, calc(100svh - 140px), 680px);
  border-radius: 18px;
  background: #0b0a08;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

.home-hero .hero-inner{
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(260px, .5fr);
  align-items: end;
  gap: 28px;
  padding: 96px 36px 42px;
}

.home-hero .hero-visual{
  display: block !important;
  position: absolute;
  inset: 34px 0 0;
  z-index: -1;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0b0a08;
  box-shadow: none;
}

.home-hero .hero-visual-img{
  opacity: 1 !important;
  transform: none;
  filter: contrast(1.05) saturate(1.08);
  object-fit: cover;
  object-position: 67% 52%;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.home-hero .hero-visual::after{
  opacity: 1 !important;
  background:
    linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.92) 28%, rgba(11,10,8,.24) 58%, rgba(11,10,8,.68) 100%),
    linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,0) 28%, rgba(11,10,8,.2) 100%);
}

.home-hero::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 118px;
  bottom: 92px;
  z-index: 1;
  width: 74px;
  opacity: .34;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 1px 100% no-repeat,
    url("./ornament_fon.jpg") 50% 48% / 220px auto repeat;
  filter: sepia(1) saturate(180%) brightness(82%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero-window-bar{
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(216,182,99,.15);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.hero-window-bar span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff695f;
}

.hero-window-bar span:nth-child(2){ background: #e7b04d; }
.hero-window-bar span:nth-child(3){ background: #64c46c; }

.hero-copy{
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: 58px;
}

.hero-kicker,
.section-kicker{
  color: var(--gold-strong);
  font: 700 12px/1.2 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1{
  margin-top: 14px;
  color: #f4ead4;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: .98;
  max-width: 10ch;
  text-wrap: balance;
}

.home-hero h1 .logo-text{
  display: block;
  margin-bottom: 4px;
  color: #f4ead4;
  font-size: .52em;
}

.home-hero h1 .logo-text sup{ color: var(--gold-strong); }

.home-hero p{
  max-width: 470px;
  margin-top: 18px;
  color: rgba(244,234,212,.82);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta{ min-width: 210px; }
.hero-cta-secondary{
  min-width: 140px;
  color: #f4ead4;
  border-color: rgba(216,182,99,.36);
  background: rgba(0,0,0,.18);
}

.hero-progress{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: rgba(244,234,212,.62);
  font: 700 12px/1 var(--font-ui);
}

.hero-progress span{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f4ead4;
}

.hero-progress span:nth-child(2){
  width: 34px;
  height: 1px;
  background: var(--gold-strong);
}

.hero-progress b,
.hero-progress i{
  font-style: normal;
  font-weight: 600;
}

.hero-spec-list{
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: center;
  width: min(310px, 100%);
  display: grid;
  gap: 18px;
  padding-left: 22px;
  border-left: 1px solid rgba(216,182,99,.32);
}

.hero-spec{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  color: #f4ead4;
}

.hero-spec__num{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,182,99,.38);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(0,0,0,.26);
  font: 800 13px/1 var(--font-ui);
}

.hero-spec .t{
  margin: 0;
  color: #f4ead4;
  font: 700 18px/1.18 var(--font-display);
}

.hero-spec .d{
  margin: 6px 0 0;
  color: rgba(244,234,212,.72);
  font-size: 13px;
  line-height: 1.5;
}

.home-benefits{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.benefit-item{
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--line2);
}

.benefit-item:last-child{ border-right: 0; }
.benefit-item .icon{
  width: 30px;
  height: 30px;
  color: var(--gold-strong);
}
.benefit-item b{
  display: block;
  color: var(--ink);
  font: 800 14px/1.2 var(--font-ui);
}
.benefit-item span{
  display: block;
  margin-top: 5px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
}

.catalog-heading{ align-items: end; }
.catalog-heading h2{
  margin-top: 5px;
  font-size: clamp(28px, 3vw, 42px);
}
.catalog-see-all{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-strong);
  border-bottom: 0;
  font: 800 14px/1 var(--font-ui);
}
.catalog-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.catalog-filters{
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.catalog-filter{
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255,246,220,.045);
  color: var(--ink2);
  font: 700 13px/1.2 var(--font-ui);
  cursor: pointer;
}
.catalog-filter b{
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216,182,99,.14);
  color: var(--gold-strong);
  font-size: 12px;
}
.catalog-filter.active,
.catalog-filter:hover{
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(216,182,99,.13);
}
.catalog-counter{
  flex: 0 0 auto;
  color: var(--gold-strong);
  font: 800 13px/1 var(--font-ui);
}

.grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.card{ position: relative; }
.card-link{
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}
.card .img{ aspect-ratio: 4 / 5; }
.card .body{
  padding: 12px 12px 14px;
  min-height: 132px;
}
.card .name{
  font-size: 16px;
  line-height: 1.22;
}
.card .sub{
  min-height: 32px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.card-badges{
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 56px);
  pointer-events: none;
}
.card-badges .badge-new{
  position: static;
  inset: auto;
  padding: 5px 8px;
  font-size: 10px;
}
.badge-hit,
body.theme-dark .badge-hit{
  background: linear-gradient(180deg, #f1d894, #bd8730);
}
.card-actions{
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: grid;
  gap: 6px;
}
.card-action{
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--gold-strong);
  background: color-mix(in srgb, var(--paper-solid) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.card-action.favorite.active{
  color: var(--gold-strong);
  background: rgba(216,182,99,.18);
}
.card-action.is-added{
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
}
.catalog-empty{ grid-column: 1 / -1; }

@media (max-width: 1180px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1020px){
  .home-hero{ min-height: 620px; }
  .home-hero .hero-inner{
    grid-template-columns: 1fr;
    align-items: end;
    padding: 86px 28px 28px;
  }
  .home-hero .hero-visual{ display: block !important; }
  .home-hero .hero-visual-img{ object-position: 64% 50%; }
  .hero-copy{ max-width: 540px; }
  .hero-spec-list{
    justify-self: stretch;
    align-self: end;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
    border-left: 0;
  }
  .hero-spec{
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    border: 1px solid rgba(216,182,99,.22);
    border-radius: var(--radius-panel);
    background: rgba(0,0,0,.24);
  }
  .hero-spec__num{
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .home-benefits{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-item:nth-child(2){ border-right: 0; }
}

@media (max-width: 760px){
  .topbar{
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }
  .brand-title{
    width: auto;
    min-width: 0;
    padding-right: 0;
  }
  .brand-title .name{ font-size: 25px; }
  .brand-title .tag{ display: none; }
  .nav{
    width: auto;
    margin-left: auto;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    gap: 6px;
  }
  .nav-row-top{ display: none; }
  .nav-row-bottom{ gap: 6px; }
  .header-icon{ display: inline-flex; }
  .header-cart{
    min-width: 58px;
    width: 58px;
    font-size: 0;
    gap: 4px;
    padding: 0 8px;
  }
  .header-cart .pill{ font-size: 12px; }
  .wrap{
    width: calc(100% - 20px);
    padding-top: 10px;
  }
  .home-hero{
    min-height: min(620px, calc(100svh - 88px));
    margin-top: 10px;
    border-radius: 18px;
  }
  .hero-window-bar{
    height: 28px;
    padding-left: 13px;
  }
  .hero-window-bar span{
    width: 7px;
    height: 7px;
  }
  .home-hero .hero-inner{
    padding: 72px 16px 16px;
    gap: 16px;
  }
  .home-hero .hero-visual{ inset: 28px 0 0; }
  .home-hero .hero-visual-img{ object-position: 60% 45%; }
  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.82) 42%, rgba(11,10,8,.18) 100%),
      linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.22) 34%, rgba(11,10,8,.06) 100%);
  }
  .home-hero::before{ display: none; }
  .hero-copy{
    max-width: 285px;
    padding-left: 0;
    align-self: start;
  }
  .hero-kicker{
    max-width: 230px;
    font-size: 10px;
    line-height: 1.35;
  }
  .home-hero h1{
    max-width: 9ch;
    font-size: clamp(36px, 10vw, 48px);
  }
  .home-hero p{
    max-width: 270px;
    font-size: 13px;
    line-height: 1.55;
  }
  .hero-actions{
    margin-top: 18px;
    gap: 9px;
  }
  .hero-cta{ min-width: 172px; }
  .hero-cta-secondary{ display: none; }
  .hero-progress{ margin-top: 18px; }
  .hero-spec-list{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-spec{
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px 7px;
  }
  .hero-spec__num{
    width: 24px;
    height: 24px;
  }
  .hero-spec .t{
    font-size: 12px;
    font-family: var(--font-ui);
  }
  .hero-spec .d{ display: none; }
  .home-benefits{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
  }
  .benefit-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 96px;
    padding: 11px 8px;
    text-align: center;
  }
  .benefit-item .icon{
    width: 24px;
    height: 24px;
  }
  .benefit-item b{
    font-size: 11px;
    line-height: 1.15;
  }
  .benefit-item span{ display: none; }
  .catalog-heading{
    flex-direction: row;
    align-items: end;
  }
  .catalog-see-all{ display: none; }
  .catalog-toolbar{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .catalog-filters{ width: 100%; }
  .catalog-filter{
    max-width: 170px;
    min-height: 38px;
    white-space: nowrap;
  }
  .catalog-filter span{
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card .img{ aspect-ratio: 4 / 5; }
  .card .body{
    min-height: 124px;
    padding: 9px;
  }
  .card .name{ font-size: 14px; }
  .card .sub{
    min-height: 30px;
    font-size: 11px;
  }
  .card-actions{
    top: 7px;
    right: 7px;
    gap: 5px;
  }
  .card-action{
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .mobile-bottom-nav{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    min-height: 64px;
  }
  .mobile-bottom-nav__item{
    font-size: 10px;
    gap: 3px;
  }
  .mobile-bottom-nav__item.has-items,
  .mobile-bottom-nav__item[aria-current="page"],
  .mobile-bottom-nav__item:hover{
    color: var(--ink);
    background: rgba(216,182,99,.14);
  }
}

@media (max-width: 430px){
  .home-hero{ min-height: min(590px, calc(100svh - 84px)); }
  .home-hero .hero-inner{ padding: 66px 13px 13px; }
  .hero-copy{ max-width: 260px; }
  .home-hero h1{ font-size: clamp(32px, 9.6vw, 42px); }
  .home-hero p{
    max-width: 245px;
    font-size: 12px;
  }
  .hero-spec .t{ font-size: 11px; }
  .benefit-item{
    min-height: 86px;
    padding: 9px 5px;
  }
  .benefit-item b{ font-size: 10px; }
  .catalog-filter{ max-width: 150px; }
}
/* Step 4 composition correction: keep the product visual large, but off the text column. */
.home-hero .hero-visual-img{
  left: auto;
  right: 0;
  width: min(64%, 860px);
  height: 100%;
  object-position: 50% 52%;
}

.home-hero .hero-visual::after{
  background:
    linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.96) 34%, rgba(11,10,8,.38) 61%, rgba(11,10,8,.54) 100%),
    linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,0) 28%, rgba(11,10,8,.18) 100%);
}

.home-hero h1{
  font-size: clamp(40px, 4.4vw, 62px);
  max-width: 11ch;
}

@media (max-width: 1020px){
  .home-hero .hero-visual-img{
    width: 78%;
    right: -10%;
  }
}

@media (max-width: 760px){
  .home-hero .hero-visual-img{
    width: 92%;
    right: -36%;
    object-position: 50% 46%;
  }

  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.93) 50%, rgba(11,10,8,.35) 100%),
      linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.18) 38%, rgba(11,10,8,.05) 100%);
  }

  .home-hero h1{
    font-size: clamp(31px, 9.2vw, 40px);
    max-width: 9ch;
  }
}
@media (min-width: 1021px){
  .hero-spec-list{
    position: absolute;
    right: 28px;
    bottom: 42px;
    width: 300px;
    padding: 14px;
    gap: 12px;
    border: 1px solid rgba(216,182,99,.28);
    border-radius: var(--radius-panel);
    background: rgba(8,7,5,.62);
    box-shadow: 0 18px 48px rgba(0,0,0,.38);
    backdrop-filter: blur(12px);
  }

  .hero-spec{
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .hero-spec__num{
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .hero-spec .t{
    font-size: 16px;
  }

  .hero-spec .d{
    font-size: 12px;
    line-height: 1.42;
  }
}
/* Step 4 correction after cropped references: real page, no presentation/browser shell. */
main.wrap{
  width: min(1320px, calc(100% - 32px));
  padding-top: 0;
}

.home-hero{
  min-height: clamp(430px, 48vw, 520px) !important;
  margin-top: 0 !important;
  border: 1px solid var(--line) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: #0b0a08 !important;
  box-shadow: none !important;
}

.hero-window-bar,
.hero-spec-list{
  display: none !important;
}

.home-hero .hero-inner{
  min-height: inherit !important;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr) !important;
  align-items: center !important;
  padding: clamp(56px, 7vw, 88px) clamp(28px, 6vw, 94px) clamp(44px, 5vw, 72px) !important;
}

.home-hero .hero-visual{
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: 0 !important;
}

.home-hero .hero-visual-img{
  left: auto !important;
  right: 0 !important;
  width: min(68%, 900px) !important;
  height: 100% !important;
  object-position: 50% 50% !important;
}

.home-hero .hero-visual::after{
  opacity: 1 !important;
  background:
    linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.94) 30%, rgba(11,10,8,.34) 58%, rgba(11,10,8,.08) 78%, rgba(11,10,8,.18) 100%),
    linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.04) 26%, rgba(11,10,8,.16) 100%) !important;
}

.home-hero::before{
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: clamp(20px, 3vw, 48px) !important;
  top: 64px !important;
  bottom: 56px !important;
  width: 64px !important;
  opacity: .26 !important;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 1px 100% no-repeat,
    url("./ornament_fon.jpg") 50% 46% / 205px auto repeat !important;
  filter: sepia(1) saturate(180%) brightness(82%) !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent) !important;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent) !important;
}

.hero-copy{
  max-width: 490px !important;
  padding-left: clamp(34px, 4vw, 64px) !important;
}

.hero-kicker{
  display: none !important;
}

.home-hero h1{
  margin-top: 0 !important;
  max-width: 11ch !important;
  font-size: clamp(42px, 4.6vw, 62px) !important;
  line-height: 1.08 !important;
  color: #f4ead4 !important;
}

.home-hero h1 .logo-text{
  display: none !important;
}

.home-hero p{
  max-width: 440px !important;
  margin-top: 18px !important;
  color: rgba(244,234,212,.86) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.hero-actions{
  margin-top: 28px !important;
}

.hero-progress{
  margin-top: 28px !important;
}

.home-benefits{
  margin-top: 0 !important;
  border-radius: 0 !important;
  border-top: 0 !important;
}

.catalog-section{
  margin-top: 22px !important;
}

@media (max-width: 1020px){
  .home-hero{
    min-height: clamp(470px, 70vw, 620px) !important;
  }

  .home-hero .hero-inner{
    grid-template-columns: 1fr !important;
    padding: 64px 24px 40px !important;
  }

  .home-hero .hero-visual-img{
    width: 82% !important;
    right: -12% !important;
  }

  .hero-copy{
    max-width: 500px !important;
    padding-left: 46px !important;
  }
}

@media (max-width: 760px){
  main.wrap{
    width: calc(100% - 16px) !important;
    padding-top: 0 !important;
  }

  .home-hero{
    min-height: min(540px, calc(100svh - 78px)) !important;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel) !important;
  }

  .home-hero .hero-inner{
    padding: 54px 14px 24px !important;
  }

  .home-hero .hero-visual-img{
    width: 106% !important;
    right: -20% !important;
    object-position: 48% 47% !important;
  }

  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.94) 48%, rgba(11,10,8,.28) 100%),
      linear-gradient(0deg, #0b0a08 0%, rgba(11,10,8,.08) 42%, rgba(11,10,8,.18) 100%) !important;
  }

  .home-hero::before{
    display: none !important;
  }

  .hero-copy{
    max-width: 285px !important;
    padding-left: 0 !important;
  }

  .home-hero h1{
    max-width: 9ch !important;
    font-size: clamp(33px, 10vw, 44px) !important;
  }

  .home-hero p{
    max-width: 270px !important;
    font-size: 13px !important;
  }

  .hero-actions{
    margin-top: 18px !important;
  }

  .hero-progress{
    margin-top: 18px !important;
  }

  .home-benefits{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-radius: var(--radius-panel) !important;
    margin-top: 10px !important;
  }
}

/* ===== Step 4 refinement: closer to the supplied home reference ===== */
.topbar{
  width: min(1320px, calc(100% - 56px));
  min-height: 68px;
  padding: 10px 0;
}

.nav{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 48px);
  padding-right: 0;
}

.nav-row,
.nav-row-top,
.nav-row-bottom{
  display: flex;
  align-items: center;
}

.nav-row-top{
  gap: clamp(24px, 3.2vw, 48px);
  margin-left: auto;
}

.nav-row-bottom{
  gap: 8px;
}

.nav-row-top .btn{
  min-height: auto;
  height: auto;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: rgba(244,234,212,.86);
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
}

.nav-row-top .btn:hover,
.nav-row-top .btn:focus-visible{
  color: var(--gold-strong);
  transform: none;
  background: transparent !important;
}

.nav-catalog-btn{
  gap: 5px;
}

.nav-catalog-btn .icon{
  width: 14px;
  height: 14px;
}

.header-icon{
  color: var(--gold-strong);
  border-color: rgba(216,182,99,.26);
  background: rgba(255,246,220,.035);
}

.header-cart{
  min-width: 136px;
  padding-inline: 14px;
  border-radius: 8px;
}

.header-cart-text{
  display: inline;
}

main.wrap{
  width: min(1320px, calc(100% - 32px)) !important;
}

.home-hero{
  min-height: clamp(520px, 47vw, 640px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #080705 !important;
}

.home-hero .hero-inner{
  grid-template-columns: minmax(0, 530px) minmax(0, 1fr) !important;
  align-items: center !important;
  padding: clamp(72px, 7vw, 102px) clamp(28px, 4vw, 52px) 118px clamp(92px, 8vw, 136px) !important;
}

.home-hero .hero-visual{
  inset: 0 !important;
}

.home-hero .hero-visual-img{
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: contrast(1.04) saturate(1.06) brightness(.96) !important;
}

.home-hero .hero-visual::after{
  background:
    linear-gradient(90deg, rgba(8,7,5,.98) 0%, rgba(8,7,5,.9) 25%, rgba(8,7,5,.44) 48%, rgba(8,7,5,.12) 76%, rgba(8,7,5,.28) 100%),
    linear-gradient(0deg, rgba(8,7,5,.92) 0%, rgba(8,7,5,.16) 34%, rgba(8,7,5,.1) 100%) !important;
}

.home-hero::before{
  left: clamp(24px, 3.2vw, 50px) !important;
  top: 26px !important;
  bottom: 96px !important;
  z-index: 3 !important;
  width: 82px !important;
  opacity: .82 !important;
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 0 / 1px 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='260' viewBox='0 0 82 260'%3E%3Cg fill='none' stroke='%23e6c777' stroke-width='1.35' stroke-opacity='.9'%3E%3Cpath d='M41 4v252' stroke-opacity='.55'/%3E%3Cpath d='M41 24 57 40 41 56 25 40Z'/%3E%3Cpath d='M41 34 47 40 41 46 35 40Z'/%3E%3Cpath d='M41 76 66 101 41 126 16 101Z'/%3E%3Cpath d='M41 88 54 101 41 114 28 101Z'/%3E%3Cpath d='M23 101h-11M70 101H59'/%3E%3Cpath d='M41 148 57 164 41 180 25 164Z'/%3E%3Cpath d='M41 158 47 164 41 170 35 164Z'/%3E%3Cpath d='M41 202 66 227 41 252 16 227Z'/%3E%3Cpath d='M41 214 54 227 41 240 28 227Z'/%3E%3Cpath d='M23 227h-11M70 227H59'/%3E%3C/g%3E%3C/svg%3E") 50% 50% / 82px 260px repeat-y !important;
  filter: none !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent) !important;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent) !important;
}

.hero-copy{
  max-width: 590px !important;
  padding-left: 0 !important;
}

.home-hero h1{
  max-width: 18.5ch !important;
  font-size: clamp(42px, 4.25vw, 58px) !important;
  line-height: 1.08 !important;
}

.home-hero p{
  max-width: 470px !important;
  margin-top: 20px !important;
}

.home-hero .hero-copy{
  position: relative;
}

.home-hero .hero-copy{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}

.home-hero.is-slide-out .hero-copy{
  opacity: 0;
  transform: translateY(8px);
}

.home-hero.is-slide-in .hero-copy{
  animation: hero-copy-fade-in .58s var(--ease) both;
}

@keyframes hero-copy-fade-in{
  0%{
    opacity: 0;
    transform: translateY(8px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-progress{
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 28px !important;
}

.hero-progress-mark{
  position: relative;
  width: 50px !important;
  height: 1px !important;
  border-radius: 0 !important;
  background: rgba(230,199,119,.62) !important;
}

.hero-progress-mark::before{
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f4ead4;
  transform: translateY(-50%);
}

.hero-progress-page{
  min-width: 22px;
  min-height: 28px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: rgba(244,234,212,.56);
  font: 700 12px/1 var(--font-ui);
  cursor: pointer;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.hero-progress-page:hover,
.hero-progress-page.is-active{
  color: var(--gold-strong);
}

.hero-progress-page.is-active{
  transform: none;
}

.home-benefits{
  position: relative;
  z-index: 4;
  width: calc(100% - 64px);
  margin: -54px auto 0 !important;
  border: 1px solid rgba(216,182,99,.24) !important;
  border-radius: 10px !important;
  background: rgba(16,13,9,.62) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.38) !important;
  backdrop-filter: blur(16px);
}

.benefit-item{
  min-height: 92px;
  padding: 20px 26px;
  border-right-color: rgba(216,182,99,.13);
}

.benefit-item .icon{
  width: 34px;
  height: 34px;
}

.benefit-item b{
  color: #f4ead4;
}

.benefit-item span{
  color: rgba(244,234,212,.68);
}

.catalog-section{
  margin-top: 34px !important;
}

.catalog-heading,
.catalog-see-all{
  display: none !important;
}

.catalog-toolbar{
  margin-bottom: 16px;
}

.catalog-filter{
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(216,182,99,.24);
  background: rgba(255,246,220,.04);
  color: rgba(244,234,212,.72);
}

.catalog-filter.active,
.catalog-filter:hover{
  border-color: rgba(230,199,119,.58);
  background: rgba(216,182,99,.12);
  color: #f4ead4;
}

.grid{
  gap: 14px;
}

.card,
body.theme-dark .card{
  border-radius: 8px;
  border-color: rgba(216,182,99,.26);
  background: rgba(15,13,10,.72);
  box-shadow: none;
  cursor: default;
}

.card:hover,
body.theme-dark .card:hover{
  transform: translateY(-3px);
  border-color: rgba(230,199,119,.56);
  box-shadow: 0 18px 46px rgba(0,0,0,.32);
}

.card:active{
  transform: translateY(-1px);
}

.card .img{
  aspect-ratio: 4 / 5;
  border-bottom: 0;
  background: rgba(0,0,0,.26);
}

.card .body{
  min-height: 116px;
  padding: 12px 56px 14px 13px;
  gap: 7px;
}

.card .name{
  color: #f4ead4;
  font-size: 17px;
  line-height: 1.2;
}

.card .sub{
  min-height: 30px;
  color: rgba(244,234,212,.64);
  font-size: 12px;
}

.meta{
  display: block;
  padding-top: 6px;
  border-top: 0;
}

.price{
  color: var(--gold-strong);
  font-size: 18px;
}

.card-cart-action{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  color: var(--gold-strong);
  border: 1px solid rgba(216,182,99,.34);
  border-radius: 8px;
  background: rgba(8,7,5,.48);
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
}

.card-cart-action:hover,
.card-cart-action.is-added{
  color: #17110a;
  border-color: rgba(235,210,139,.9);
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
}

.card-cart-action:disabled{
  color: rgba(244,234,212,.34);
  border-color: rgba(244,234,212,.12);
  background: rgba(255,246,220,.04);
}

.card-actions{
  display: none !important;
}

.home-info{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.25fr);
  margin-top: 34px;
  border: 1px solid rgba(216,182,99,.22);
  border-radius: 10px;
  background: rgba(15,13,10,.58);
  overflow: hidden;
}

.home-info-card{
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid rgba(216,182,99,.12);
}

.home-info-card:last-child{
  border-right: 0;
}

.home-info-icon{
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--gold-strong);
}

.home-info-card h2{
  margin: 0 0 12px;
  color: #f4ead4;
  font: 700 22px/1.15 var(--font-display);
}

.home-info .section-body{
  color: rgba(244,234,212,.66);
  font-size: 14px;
  line-height: 1.55;
}

.home-info .section-body p{
  margin: 0 0 8px;
}

.home-info .section-body p:last-child{
  margin-bottom: 0;
}

.home-info .section-divider{
  display: none;
}

.home-info .kv{
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: rgba(244,234,212,.7);
  font-size: 14px;
}

.home-info .contact-fields [data-contact-item]{
  padding: 0;
  border: 0;
  background: transparent;
}

.home-info .contact-val{
  color: var(--gold-strong) !important;
}

footer{
  margin-top: 24px;
  padding: 20px 0 0;
}

@media (max-width: 1180px){
  .nav{
    gap: 18px;
  }

  .nav-row-top{
    gap: 20px;
  }

  .home-info{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-info-card:nth-child(2){
    border-right: 0;
  }

  .home-info-card:last-child{
    grid-column: 1 / -1;
    border-top: 1px solid rgba(216,182,99,.12);
  }
}

@media (max-width: 760px){
  .topbar{
    width: min(100% - 24px, 1320px);
    min-height: 58px;
    padding: 8px 0;
  }

  .nav{
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-row-top{
    display: none;
  }

  .nav-row-bottom{
    gap: 6px;
  }

  .nav .header-cart{
    min-width: 64px;
    width: 64px;
    gap: 4px;
    padding-inline: 7px;
    font-size: 0;
  }

  .header-cart .icon{
    width: 18px;
    height: 18px;
  }

  .header-cart .pill{
    min-width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .header-cart-text{
    display: none;
  }

  main.wrap{
    width: calc(100% - 16px) !important;
  }

  .home-hero{
    min-height: min(560px, calc(100svh - 78px)) !important;
    border-radius: 0 0 10px 10px !important;
  }

  .home-hero .hero-inner{
    padding: 52px 14px 98px !important;
  }

  .home-hero .hero-visual-img{
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    object-position: 68% center !important;
  }

  .home-hero .hero-visual::after{
    background:
      linear-gradient(90deg, rgba(8,7,5,.98) 0%, rgba(8,7,5,.91) 47%, rgba(8,7,5,.22) 100%),
      linear-gradient(0deg, rgba(8,7,5,.88) 0%, rgba(8,7,5,.14) 44%, rgba(8,7,5,.1) 100%) !important;
  }

  .hero-copy{
    max-width: 292px !important;
  }

  .home-hero h1{
    max-width: 10ch !important;
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  .home-hero p{
    max-width: 276px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .hero-progress{
    margin-top: 18px !important;
    gap: 8px;
  }

  .hero-progress-mark{
    width: 36px !important;
  }

  .home-benefits{
    width: calc(100% - 16px);
    margin-top: -72px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-radius: 10px !important;
  }

  .benefit-item{
    min-height: 88px;
    padding: 10px 6px;
  }

  .benefit-item .icon{
    width: 23px;
    height: 23px;
  }

  .benefit-item b{
    font-size: 10px;
  }

  .catalog-section{
    margin-top: 24px !important;
  }

  .card .body{
    min-height: 112px;
    padding: 10px 46px 12px 10px;
  }

  .card .name{
    font-size: 14px;
  }

  .price{
    font-size: 16px;
  }

  .card-cart-action{
    right: 9px;
    bottom: 10px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .home-info{
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .home-info-card,
  .home-info-card:nth-child(2),
  .home-info-card:last-child{
    grid-column: auto;
    border-right: 0;
    border-top: 1px solid rgba(216,182,99,.12);
    padding: 20px;
  }

  .home-info-card:first-child{
    border-top: 0;
  }
}

/* ===== Step 4 correction: seamless home hero and catalog cart quantity ===== */
body.page-home{
  --home-solid-bg: #100f0b;
  --home-solid-rgb: 16, 15, 11;
  background: var(--home-solid-bg) !important;
}

body.page-home::before,
body.page-home::after{
  display: none !important;
}

body.page-home .home-hero{
  background: var(--home-solid-bg) !important;
  box-shadow: none !important;
}

body.page-home .home-hero .hero-visual{
  border: 0 !important;
  background: var(--home-solid-bg) !important;
  box-shadow: none !important;
}

body.page-home.theme-dark .home-hero .hero-visual-img{
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body.page-home .home-hero .hero-visual::after{
  opacity: 1 !important;
  background:
    linear-gradient(
      90deg,
      rgba(var(--home-solid-rgb), 1) 0%,
      rgba(var(--home-solid-rgb), .99) 5%,
      rgba(var(--home-solid-rgb), .9) 16%,
      rgba(var(--home-solid-rgb), .58) 36%,
      rgba(var(--home-solid-rgb), .04) 63%,
      rgba(var(--home-solid-rgb), .08) 82%,
      rgba(var(--home-solid-rgb), .92) 95%,
      rgba(var(--home-solid-rgb), 1) 100%
    ),
    linear-gradient(
      0deg,
      rgba(var(--home-solid-rgb), .96) 0%,
      rgba(var(--home-solid-rgb), .12) 34%,
      rgba(var(--home-solid-rgb), .03) 100%
    ) !important;
}

body.page-home .card .body{
  min-height: 0;
  padding: 12px 13px 0;
}

body.page-home .card-link{
  flex: 1;
  height: auto;
  min-width: 0;
}

.card-footer{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 13px 14px;
}

body.page-home .card-footer .meta{
  flex: 1 1 80px;
  min-width: max-content;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}

.card-cart-control{
  position: static;
  flex: 1 1 126px;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
}

.card-cart-control .card-cart-action{
  position: static;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 0 8px;
  color: #17110a;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  box-shadow: none;
  backdrop-filter: none;
  font: 600 12px/1.2 var(--font-ui);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.card-cart-control .card-cart-action:hover:not(:disabled){
  background: linear-gradient(180deg, #f0d88e, #d2a148);
}

.card-cart-control .card-cart-action:active:not(:disabled){
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
}

.card-cart-control .card-cart-action:focus-visible{
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
}

.card-cart-control .card-cart-action:disabled{
  color: rgba(244,234,212,.42);
  border-color: rgba(244,234,212,.12);
  background: rgba(255,246,220,.04);
}

.card-cart-control .card-cart-action .icon{
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.card-cart-stepper{
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  color: #17110a;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  box-shadow: none;
}

.card-cart-stepper__btn{
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 600 18px/1 var(--font-ui);
  cursor: pointer;
  transition: background .18s var(--ease), opacity .18s var(--ease);
}

.card-cart-stepper__btn:hover:not(:disabled),
.card-cart-stepper__btn:focus-visible{
  background: rgba(255,246,220,.32);
  outline: none;
}

.card-cart-stepper__btn:disabled{
  opacity: .36;
  cursor: not-allowed;
}

.card-cart-stepper__count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  border-inline: 1px solid rgba(33,29,20,.14);
  font: 600 13px/1 var(--font-ui);
}

.card-cart-control.is-updated .card-cart-action,
.card-cart-control.is-updated .card-cart-stepper{
  animation: card-cart-control-pop .24s var(--ease) both;
}

@keyframes card-cart-control-pop{
  0%{ transform: scale(.94); }
  70%{ transform: scale(1.04); }
  100%{ transform: scale(1); }
}

@media (max-width: 760px){
  body.page-home .home-hero .hero-visual::after{
    background:
      linear-gradient(
        90deg,
        rgba(var(--home-solid-rgb), .98) 0%,
        rgba(var(--home-solid-rgb), .92) 42%,
        rgba(var(--home-solid-rgb), .24) 72%,
        rgba(var(--home-solid-rgb), .86) 100%
      ),
      linear-gradient(
        0deg,
        rgba(var(--home-solid-rgb), .96) 0%,
        rgba(var(--home-solid-rgb), .24) 46%,
        rgba(var(--home-solid-rgb), .08) 100%
      ) !important;
  }

}

/* ===== Step 5: reference-led product page ===== */
body.page-product-detail{
  --product-bg: #100f0b;
  --product-panel: rgba(20, 17, 12, .72);
  --product-panel-strong: rgba(24, 20, 14, .86);
  --product-line: rgba(216, 182, 99, .28);
  --product-line-soft: rgba(216, 182, 99, .14);
  background: var(--product-bg) !important;
}

body.page-product-detail::before,
body.page-product-detail::after{
  display: none !important;
}

body.page-product-detail header{
  background: rgba(16, 15, 11, .9);
  border-bottom-color: rgba(216, 182, 99, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

body.page-product-detail .topbar,
body.page-product-detail .product-page-shell{
  width: min(1288px, calc(100% - 48px));
}

body.page-product-detail .topbar{
  min-height: 52px;
  padding: 7px 0;
}

body.page-product-detail .brand-title{
  min-width: 290px;
  text-decoration: none;
}

body.page-product-detail .brand-title .name{
  font-size: 27px;
}

body.page-product-detail .brand-title .tag{
  font-size: 11px;
  opacity: .82;
}

body.page-product-detail .nav{
  padding-right: 0;
  gap: 18px;
}

body.page-product-detail .nav-row-top{
  display: flex;
  align-items: center;
  gap: 26px;
}

body.page-product-detail .nav-row-bottom{
  gap: 10px;
}

body.page-product-detail .nav-row-top .btn{
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 234, 212, .86);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

body.page-product-detail .nav-row-top .btn:hover{
  color: var(--gold-strong);
  background: transparent;
  transform: none;
}

body.page-product-detail .header-icon,
body.page-product-detail .header-cart{
  background: rgba(255, 246, 220, .04);
  border-color: rgba(216, 182, 99, .2);
}

body.page-product-detail .product-page-shell{
  padding-top: 18px;
}

.product-breadcrumb-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.product-page-shell .page-breadcrumbs{
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px;
  margin-bottom: 0;
  color: rgba(244, 234, 212, .58);
  font-size: 12px;
}

.product-page-shell .page-breadcrumbs a{
  color: rgba(244, 234, 212, .62);
}

.product-page-shell .page-breadcrumbs a:hover{
  color: var(--gold-strong);
}

body.page-product-detail .product-detail-layout{
  display: grid;
  grid-template-columns: minmax(430px, 1.18fr) minmax(220px, .72fr) minmax(216px, 250px);
  gap: 26px;
  align-items: start;
}

body.page-product-detail .page-product__gallery{
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  position: sticky;
  top: 84px;
}

body.page-product-detail .page-product__main{
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: #090806;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .34);
}

body.page-product-detail .page-product__main img,
body.page-product-detail .page-product__image{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

body.page-product-detail .page-product__thumbs{
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-product-detail .page-product__thumb{
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 182, 99, .25);
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
  box-shadow: none;
}

body.page-product-detail .page-product__thumb.active{
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 2px rgba(216, 182, 99, .16);
}

body.page-product-detail .page-product__thumb--video{
  aspect-ratio: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 650;
}

body.page-product-detail .page-product__thumb--video:disabled{
  cursor: default;
  opacity: .82;
}

body.page-product-detail .page-product__thumb--video .icon{
  width: 15px;
  height: 15px;
}

.product-zoom-btn{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 182, 99, .28);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(16, 15, 11, .68);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.product-zoom-btn:hover{
  border-color: var(--gold-strong);
  background: rgba(216, 182, 99, .16);
  transform: translateY(-1px);
}

.product-image-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
}

.product-gallery-counter{
  display: none;
}

body.page-product-detail .page-product__info{
  position: static;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-product-detail .page-kicker{
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-product-detail .page-product__info h1{
  margin: 0 0 5px;
  max-width: 360px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(29px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.08;
}

.product-main-price{
  margin: 16px 0 5px;
  color: var(--gold-strong);
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1;
}

body.page-product-detail .page-availability{
  min-height: 22px;
  margin-bottom: 18px;
  padding: 0;
  color: var(--success);
  font-size: 13px;
}

body.page-product-detail .page-product__desc{
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: rgba(244, 234, 212, .74);
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

body.page-product-detail .page-specs{
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--product-line-soft);
}

body.page-product-detail .page-specs > div{
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 7px 0;
  border-top: 0;
  border-bottom: 1px solid var(--product-line-soft);
}

body.page-product-detail .page-specs b{
  color: rgba(244, 234, 212, .86);
  font-size: 13px;
  font-weight: 600;
}

body.page-product-detail .page-specs span{
  color: rgba(244, 234, 212, .62);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.product-purchase-card{
  position: sticky;
  top: 84px;
  margin-top: 0;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 20, 14, .82), rgba(16, 15, 11, .74));
  box-shadow: 0 22px 46px rgba(0, 0, 0, .28);
}

.product-meta-line{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 24px;
  margin: 0;
  color: rgba(244, 234, 212, .58);
  font-size: 11px;
}

.product-badge,
.product-card-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(216, 182, 99, .44);
  border-radius: 999px;
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  font-size: 11px;
  font-weight: 800;
}

.product-purchase-label{
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 234, 212, .72);
  font-size: 13px;
}

.product-cart-summary{
  min-height: 20px;
  margin-bottom: 8px;
  color: rgba(244, 234, 212, .68);
  font-size: 12px;
  line-height: 1.35;
}

.product-qty-row{
  min-width: 0;
}

.product-purchase-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.product-purchase-card .page-qty{
  width: 148px;
  min-height: 38px;
  border-color: rgba(216, 182, 99, .26);
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
}

.product-purchase-card .page-qty input{
  flex: 1 1 auto;
  width: 64px;
  min-height: 38px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.product-purchase-card .qbtn{
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  min-height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-strong);
  font-size: 17px;
  line-height: 1;
}

.product-purchase-actions .btn{
  width: 100%;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.product-purchase-actions #productBuyNow{
  color: var(--gold-strong);
  background: transparent;
  border-color: rgba(216, 182, 99, .26);
}

.product-side-actions{
  display: grid;
  grid-template-columns: repeat(2, 48px);
  justify-content: end;
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

.product-link-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(216, 182, 99, .22);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(255, 246, 220, .035);
  font: 600 12px/1.2 var(--font-ui);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.product-link-action:hover,
.product-link-action.active{
  color: var(--gold-strong);
  border-color: rgba(216, 182, 99, .55);
  background: rgba(216, 182, 99, .12);
  transform: translateY(-1px);
}

.product-link-action .icon{
  width: 24px;
  height: 24px;
}

body.page-product-detail .page-action-status{
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13px;
}

.product-purchase-features{
  display: none;
  gap: 8px;
  padding-top: 10px;
}

.product-purchase-features > div{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-purchase-features .icon{
  width: 25px;
  height: 25px;
  color: var(--gold);
}

.product-purchase-features b{
  display: block;
  margin-bottom: 1px;
  color: var(--ink);
  font-size: 12px;
}

.product-purchase-features small{
  display: block;
  color: rgba(244, 234, 212, .62);
  font-size: 10.5px;
  line-height: 1.16;
}

.product-service-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
  overflow: hidden;
}

.product-service-strip article{
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  border-right: 1px solid var(--product-line-soft);
}

.product-service-strip article:last-child{
  border-right: 0;
}

.product-service-strip .icon{
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.product-service-strip b{
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.product-service-strip span{
  display: block;
  margin-top: 3px;
  color: rgba(244, 234, 212, .62);
  font-size: 11px;
  line-height: 1.35;
}

.product-mobile-details{
  display: none;
}

.product-similar-section{
  margin-top: 26px;
}

.product-similar-section .section-title{
  align-items: center;
  margin-bottom: 12px;
}

.product-similar-section .section-title h2{
  font-size: 25px;
}

.section-link{
  color: var(--gold-strong);
  font-size: 13px;
  text-decoration: none;
}

.section-link:hover{
  color: var(--ink);
}

body.page-product-detail .page-mini-grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.page-product-detail .page-mini-card{
  position: relative;
  gap: 8px;
  padding: 10px;
  border-color: rgba(216, 182, 99, .24);
  background: rgba(255, 246, 220, .035);
  box-shadow: none;
}

body.page-product-detail .page-mini-card:hover{
  border-color: rgba(216, 182, 99, .52);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .28);
}

body.page-product-detail .page-mini-card__image{
  position: relative;
  aspect-ratio: 1.16 / 1;
  border-radius: 7px;
}

.product-card-badge{
  position: absolute;
  top: 8px;
  left: 8px;
  min-height: 22px;
  padding-inline: 8px;
}

body.page-product-detail .page-mini-card__name{
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.product-similar-card__meta{
  min-height: 15px;
  color: rgba(244, 234, 212, .58);
  font-size: 11px;
  line-height: 1.25;
}

.product-similar-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

body.page-product-detail .page-mini-card__price{
  color: var(--gold-strong);
  font-size: 14px;
}

.product-card-cart{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 182, 99, .28);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(16, 15, 11, .56);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.product-card-cart:hover,
.product-card-cart.is-added{
  transform: translateY(-1px);
  border-color: var(--gold-strong);
  background: rgba(216, 182, 99, .14);
}

body.page-product-detail footer{
  margin-top: 42px;
}

@media (max-width: 960px){
  body.page-product-detail .product-detail-layout{
    grid-template-columns: minmax(390px, 1fr) minmax(220px, .62fr);
  }

  body.page-product-detail .product-purchase-card{
    grid-column: 2;
  }

  body.page-product-detail .page-product__info{
    grid-column: 1;
    grid-row: 2;
  }

  body.page-product-detail .page-product__gallery{
    grid-row: span 2;
  }

  .product-service-strip{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-service-strip article:nth-child(2){
    border-right: 0;
  }

  .product-service-strip article:nth-child(-n + 2){
    border-bottom: 1px solid var(--product-line-soft);
  }

  body.page-product-detail .page-mini-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  body.page-product-detail .topbar,
  body.page-product-detail .product-page-shell{
    width: min(100% - 28px, 1288px);
  }

  body.page-product-detail .brand-title{
    min-width: 0;
  }

  body.page-product-detail .nav-row-top{
    display: none;
  }

  body.page-product-detail .product-detail-layout{
    display: block;
  }

  .product-breadcrumb-row{
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
  }

  body.page-product-detail .page-product__gallery,
  body.page-product-detail .page-product__info,
  body.page-product-detail .product-purchase-card{
    grid-column: auto;
    grid-row: auto;
    position: relative;
    top: auto;
    margin-top: 0;
  }

  body.page-product-detail .page-product__gallery{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  body.page-product-detail .page-product__main{
    aspect-ratio: 1 / .94;
    max-height: none;
    touch-action: pan-y;
  }

  body.page-product-detail .page-product__main img,
  body.page-product-detail .page-product__image{
    object-fit: contain;
  }

  body.page-product-detail .page-product__thumbs{
    order: 0;
    flex-direction: row;
    overflow-x: auto;
    min-height: 76px;
    padding: 0 2px 4px;
  }

  body.page-product-detail .page-product__thumb{
    flex: 0 0 72px;
    width: 72px;
  }

  .product-gallery-counter{
    display: inline-flex;
    justify-self: center;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--product-line-soft);
    border-radius: 999px;
    color: rgba(244, 234, 212, .7);
    font-size: 12px;
  }

  body.page-product-detail .page-product__info{
    padding-top: 0;
    margin-bottom: 12px;
  }

  body.page-product-detail .page-product__info h1{
    max-width: none;
  }

  body.page-product-detail .page-product__desc,
  body.page-product-detail .page-specs{
    display: none;
  }

  .product-mobile-details{
    display: grid;
    gap: 8px;
    margin-top: 14px;
    min-height: 304px;
  }

  .product-mobile-details details{
    border: 1px solid var(--product-line-soft);
    border-radius: 8px;
    background: rgba(255, 246, 220, .035);
    overflow: hidden;
  }

  .product-mobile-details summary{
    min-height: 48px;
    padding: 14px 14px;
    color: var(--ink);
    font-weight: 650;
    cursor: pointer;
  }

  .product-mobile-details p,
  .product-mobile-details #productMobileSpecs{
    margin: 0;
    padding: 0 14px 14px;
    color: rgba(244, 234, 212, .72);
    font-size: 14px;
    line-height: 1.62;
    white-space: pre-line;
  }

  .product-mobile-details #productMobileSpecs{
    display: grid;
    gap: 8px;
  }

  .product-mobile-details #productMobileSpecs > div{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--product-line-soft);
    padding-top: 8px;
  }

  .product-mobile-details #productMobileSpecs span{
    text-align: right;
  }

  .product-purchase-card{
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
  }

  .product-purchase-card .product-side-actions{
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    padding-bottom: 0;
  }

  .product-purchase-card .product-qty-row{
    grid-column: 1;
    grid-row: 1;
  }

  .product-purchase-card .product-purchase-actions,
  .product-purchase-card .page-action-status{
    grid-column: 1 / -1;
  }

  .product-service-strip{
    display: none;
  }

  body.page-product-detail .page-mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 790px;
  }

  body.page-product-detail .mobile-bottom-nav{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  body.page-product-detail .product-page-shell{
    padding-top: 8px;
  }

  body.page-product-detail .topbar{
    min-height: 62px;
  }

  body.page-product-detail .brand-title .name{
    font-size: 25px;
  }

  body.page-product-detail .brand-title .tag{
    max-width: 178px;
    font-size: 11px;
    line-height: 1.2;
  }

  body.page-product-detail .header-cart{
    width: var(--tap);
    min-width: var(--tap);
    padding: 0;
  }

  body.page-product-detail .header-cart-text{
    display: none;
  }

  .product-page-shell .page-breadcrumbs{
    font-size: 11px;
  }

  body.page-product-detail .product-main-price{
    margin-top: 10px;
    margin-bottom: 5px;
  }

  body.page-product-detail .page-kicker{
    margin-bottom: 10px;
  }

  body.page-product-detail .page-availability{
    margin-bottom: 10px;
  }

  .product-purchase-card{
    padding: 12px;
  }

  .product-side-actions{
    grid-template-columns: repeat(2, 42px);
    gap: 8px;
  }

  .product-link-action{
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .product-link-action .icon{
    width: 21px;
    height: 21px;
  }

  .product-similar-section .section-title{
    align-items: flex-start;
    flex-direction: row;
  }

  .product-similar-section .section-title h2{
    font-size: 23px;
  }
}

/* ===== Steps 6-7: cart and checkout reference pass ===== */
body.page-shop-flow{
  --shop-bg: #100f0b;
  --shop-panel: rgba(20, 17, 12, .72);
  --shop-panel-strong: rgba(24, 20, 14, .86);
  --shop-line: rgba(216, 182, 99, .28);
  --shop-line-soft: rgba(216, 182, 99, .14);
  background: var(--shop-bg) !important;
}

body.page-shop-flow::before,
body.page-shop-flow::after{
  display: none !important;
}

body.page-shop-flow header{
  background: rgba(16, 15, 11, .9);
  border-bottom-color: rgba(216, 182, 99, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

body.page-shop-flow .topbar,
body.page-shop-flow .shop-flow-shell{
  width: min(1288px, calc(100% - 48px));
}

body.page-shop-flow .topbar{
  min-height: 52px;
  padding: 7px 0;
}

body.page-shop-flow .brand-title{
  min-width: 290px;
  text-decoration: none;
}

body.page-shop-flow .brand-title .name{
  font-size: 27px;
}

body.page-shop-flow .brand-title .tag{
  font-size: 11px;
  opacity: .82;
}

body.page-shop-flow .nav{
  padding-right: 0;
  gap: 18px;
}

body.page-shop-flow .nav-row-top{
  display: flex;
  align-items: center;
  gap: 26px;
}

body.page-shop-flow .nav-row-bottom{
  gap: 10px;
}

body.page-shop-flow .nav-row-top .btn{
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: rgba(244, 234, 212, .86);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
}

body.page-shop-flow .nav-row-top .btn:hover{
  color: var(--gold-strong);
  background: transparent !important;
  transform: none;
}

body.page-shop-flow .header-icon,
body.page-shop-flow .header-cart{
  background: rgba(255, 246, 220, .04);
  border-color: rgba(216, 182, 99, .2);
}

.shop-flow-shell{
  padding-top: 18px;
}

.shop-flow-shell .page-breadcrumbs{
  gap: 9px;
  margin-bottom: 8px;
  color: rgba(244, 234, 212, .58);
  font-size: 12px;
}

.shop-flow-shell .page-breadcrumbs a{
  color: rgba(244, 234, 212, .62);
}

.shop-flow-shell .page-breadcrumbs a:hover{
  color: var(--gold-strong);
}

.shop-flow-heading{
  align-items: center;
  margin-bottom: 18px;
}

.shop-flow-heading h1{
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.04;
}

.shop-flow-heading__side{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 650;
}

.flow-back-link{
  gap: 7px;
}

.flow-back-link .icon{
  width: 17px;
  height: 17px;
}

body.page-shop-flow .page-cart-layout,
body.page-shop-flow .page-checkout-layout{
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 20px;
}

body.page-shop-flow .page-cart-list{
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: rgba(15, 13, 10, .62);
}

body.page-shop-flow .page-cart-item{
  grid-template-columns: 132px minmax(0, 1fr) 116px 108px 42px;
  gap: 18px;
  min-height: 122px;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-bottom: 1px solid var(--shop-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-shop-flow .page-cart-item:last-of-type{
  border-bottom: 0;
}

body.page-shop-flow .page-cart-item__image{
  aspect-ratio: 1.55 / 1;
  border: 1px solid rgba(216, 182, 99, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

body.page-shop-flow .page-cart-item__body{
  min-width: 0;
}

body.page-shop-flow .page-cart-item__name{
  display: inline-block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

body.page-shop-flow .page-cart-item__meta{
  margin-top: 8px;
  color: rgba(244, 234, 212, .62);
  font-size: 12px;
}

.page-cart-item__stock{
  margin-top: 9px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

.page-cart-item__stock.out-of-stock{
  color: var(--error);
}

body.page-shop-flow .page-cart-item .page-qty{
  justify-self: center;
  width: 116px;
  min-height: 36px;
  border-color: rgba(216, 182, 99, .26);
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
}

body.page-shop-flow .page-cart-item .page-qty input{
  min-height: 36px;
  flex-basis: 36px;
  color: var(--ink);
  font-size: 14px;
}

body.page-shop-flow .page-cart-item .qbtn{
  flex: 0 0 36px;
  min-width: 36px;
  min-height: 36px;
  color: var(--gold-strong);
}

body.page-shop-flow .page-cart-item__price{
  justify-self: end;
  margin-top: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.cart-remove-btn{
  justify-self: end;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(216, 182, 99, .22);
  color: var(--gold-strong);
  background: rgba(255, 246, 220, .035);
}

.cart-remove-btn .icon{
  width: 18px;
  height: 18px;
}

.cart-remove-btn:hover{
  border-color: rgba(217, 138, 114, .72);
  color: #f0a48c;
  background: rgba(127, 42, 26, .16);
}

.page-cart-list-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--shop-line-soft);
  background: rgba(255, 246, 220, .02);
}

.cart-clear-btn{
  color: var(--gold-strong);
}

body.page-shop-flow .page-summary{
  top: 84px;
  padding: 16px;
  border-color: var(--shop-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 20, 14, .82), rgba(16, 15, 11, .74));
  box-shadow: 0 22px 46px rgba(0, 0, 0, .28);
}

body.page-shop-flow .page-summary h2{
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
}

body.page-shop-flow .checkout-mini-row,
body.page-shop-flow .page-summary__total{
  border-top-color: var(--shop-line-soft);
  color: rgba(244, 234, 212, .72);
  font-size: 14px;
}

body.page-shop-flow .checkout-mini-row b{
  color: rgba(244, 234, 212, .84);
  font-weight: 600;
}

body.page-shop-flow .page-summary__total{
  margin-top: 14px;
  padding-top: 14px;
  color: var(--ink);
  font-size: 20px;
}

body.page-shop-flow .page-summary__total b{
  color: var(--ink);
  font-size: 22px;
}

body.page-shop-flow .page-promocode{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
}

body.page-shop-flow .page-promocode input{
  min-height: 40px;
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
}

body.page-shop-flow .page-promocode .btn{
  min-height: 40px;
  border-radius: 8px;
}

body.page-shop-flow .page-summary__cta{
  min-height: 50px;
  margin-top: 18px;
  gap: 8px;
  border-radius: 8px;
  font-size: 15px;
}

.summary-safe-note{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(244, 234, 212, .58);
  font-size: 12px;
  line-height: 1.35;
}

.summary-safe-note .icon{
  width: 16px;
  height: 16px;
  color: var(--gold-strong);
}

.cart-recommendation-card{
  gap: 9px;
}

.page-mini-card__link{
  min-width: 0;
  display: contents;
  color: inherit;
  text-decoration: none;
}

body.page-shop-flow .page-mini-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.page-shop-flow .page-mini-card{
  position: relative;
  border-color: rgba(216, 182, 99, .24);
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
  box-shadow: none;
}

body.page-shop-flow .page-mini-card__image{
  aspect-ratio: 1.22 / 1;
  border-radius: 7px;
}

body.page-shop-flow .page-mini-card__name{
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

body.page-shop-flow .product-similar-card__meta{
  min-height: 16px;
  color: rgba(244, 234, 212, .58);
  font-size: 11px;
}

body.page-shop-flow .product-similar-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

body.page-shop-flow .product-card-cart{
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: rgba(216, 182, 99, .28);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(16, 15, 11, .56);
}

.checkout-main-column{
  display: grid;
  gap: 14px;
  min-width: 0;
}

body.page-shop-flow .page-checkout-form{
  gap: 14px;
}

body.page-shop-flow .page-checkout-block{
  padding: 16px;
  border-color: var(--shop-line);
  border-radius: 8px;
  background: rgba(15, 13, 10, .62);
  box-shadow: none;
}

body.page-shop-flow .page-checkout-block h2{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
}

.checkout-step-badge{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 182, 99, .34);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(216, 182, 99, .08);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
}

body.page-shop-flow .page-checkout-block .kv{
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 10px;
}

body.page-shop-flow .page-checkout-block .kv > div:first-child,
body.page-shop-flow .page-checkout-block .kv > span:first-child{
  color: rgba(244, 234, 212, .68);
  font-size: 13px;
}

body.page-shop-flow .checkout-form input,
body.page-shop-flow .checkout-form select,
body.page-shop-flow .checkout-form textarea{
  min-height: 42px;
  border-radius: 8px;
  background: rgba(255, 246, 220, .035);
  border-color: rgba(216, 182, 99, .24);
}

body.page-shop-flow .checkout-form textarea{
  min-height: 88px;
}

body.page-shop-flow .page-check-row{
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}

body.page-shop-flow .page-check-row input[type="checkbox"]{
  border-radius: 8px;
}

body.page-shop-flow #sdekPvzBlock,
body.page-shop-flow #checkoutImportantBox{
  margin-top: 12px;
  border-color: rgba(216, 182, 99, .24);
  border-radius: 8px;
  background: rgba(216, 182, 99, .08);
}

body.page-shop-flow .page-pvz-row{
  align-items: center;
}

body.page-shop-flow .page-muted{
  color: rgba(244, 234, 212, .56);
}

.checkout-items{
  min-height: 76px;
}

.checkout-summary-placeholder{
  min-height: 76px;
  display: flex;
  align-items: center;
  color: rgba(244, 234, 212, .6);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-summary-item{
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--shop-line-soft);
}

.checkout-summary-item:first-child{
  border-top: 0;
  padding-top: 0;
}

.checkout-summary-item__image{
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(216, 182, 99, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.checkout-summary-item__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-summary-item__body{
  min-width: 0;
}

.checkout-summary-item__name{
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.checkout-summary-item__meta,
.checkout-summary-item__qty{
  margin-top: 4px;
  color: rgba(244, 234, 212, .58);
  font-size: 11px;
  line-height: 1.25;
}

.checkout-summary-item > b{
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

body.page-shop-flow .page-checkout-actions{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 16px;
  justify-content: stretch;
  justify-items: stretch;
}

body.page-shop-flow .page-checkout-actions .btn{
  width: 100% !important;
  justify-self: stretch;
}

.checkout-trust-list{
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--shop-line-soft);
}

.checkout-trust-list > div{
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: rgba(244, 234, 212, .6);
  font-size: 12px;
  line-height: 1.42;
}

.checkout-trust-list .icon{
  width: 18px;
  height: 18px;
  color: var(--gold-strong);
}

body.page-shop-flow .checkout-status{
  margin: 0;
  border-radius: 8px;
}

body.page-checkout-flow #cdekWidget{
  position: relative;
  z-index: 90;
}

body.page-checkout-flow [class*="CDEK"][class*="popup"],
body.page-checkout-flow [class*="cdek"][class*="popup"]{
  z-index: 1200 !important;
}

@media (max-width: 980px){
  body.page-shop-flow .page-cart-layout,
  body.page-shop-flow .page-checkout-layout{
    grid-template-columns: 1fr;
  }

  body.page-shop-flow .page-summary{
    position: static;
  }

  body.page-shop-flow .page-mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  body.page-shop-flow .topbar,
  body.page-shop-flow .shop-flow-shell{
    width: min(100% - 28px, 1288px);
  }

  body.page-shop-flow .brand-title{
    min-width: 0;
  }

  body.page-shop-flow .nav-row-top{
    display: none;
  }
}

@media (max-width: 760px){
  body.page-shop-flow .topbar{
    width: min(100% - 20px, 1288px);
    min-height: 58px;
    padding: 7px 0;
  }

  body.page-shop-flow .brand-title .name{
    font-size: 25px;
  }

  body.page-shop-flow .brand-title .tag{
    max-width: 164px;
    font-size: 10.5px;
    line-height: 1.2;
  }

  body.page-shop-flow .nav{
    flex: 0 0 auto;
    gap: 6px;
  }

  body.page-shop-flow .nav-row-bottom{
    gap: 6px;
  }

  body.page-shop-flow .header-icon{
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 8px;
  }

  body.page-shop-flow .header-icon .icon{
    width: 18px;
    height: 18px;
  }

  body.page-shop-flow .nav-row-bottom .btn.btn-large.header-cart,
  body.page-shop-flow .header-cart{
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 42px;
    min-height: 42px;
    gap: 2px;
    padding: 0 5px;
    border-radius: 8px;
  }

  body.page-shop-flow .header-cart .icon{
    width: 17px;
    height: 17px;
  }

  body.page-shop-flow .header-cart .pill{
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 17px;
  }

  body.page-shop-flow .header-cart-text{
    display: none;
  }

  body.page-shop-flow .shop-flow-shell{
    width: calc(100% - 16px);
    padding-top: 16px;
  }

  .shop-flow-heading{
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .shop-flow-heading h1{
    font-size: clamp(31px, 9vw, 40px);
  }

  .shop-flow-heading__side{
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }

  .shop-flow-heading .flow-back-link{
    display: none;
  }

  body.page-shop-flow .page-cart-list{
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  body.page-shop-flow .page-cart-item{
    grid-template-columns: 96px minmax(0, 1fr) 40px;
    gap: 10px 12px;
    min-height: 0;
    padding: 8px;
    border: 1px solid var(--shop-line-soft);
    border-radius: 8px;
    background: rgba(15, 13, 10, .72);
  }

  body.page-shop-flow .page-cart-item__image{
    grid-row: 1 / 4;
    aspect-ratio: 1;
  }

  body.page-shop-flow .page-cart-item__body{
    grid-column: 2;
    grid-row: 1;
  }

  body.page-shop-flow .page-cart-item__name{
    font-size: 15px;
  }

  body.page-shop-flow .page-cart-item__meta{
    margin-top: 5px;
    font-size: 11px;
  }

  .page-cart-item__stock{
    margin-top: 6px;
    font-size: 11px;
  }

  body.page-shop-flow .page-cart-item__price{
    grid-column: 2;
    justify-self: start;
    font-size: 16px;
  }

  body.page-shop-flow .page-cart-item .page-qty{
    grid-column: 2;
    width: 116px;
    justify-self: start;
  }

  body.page-shop-flow .page-cart-item .cart-remove-btn{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .page-cart-list-actions{
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 2px 0 0;
    border-top: 0;
    background: transparent;
  }

  .page-cart-list-actions .btn{
    width: 100%;
  }

  body.page-shop-flow .page-summary{
    padding: 16px;
  }

  body.page-shop-flow .page-promocode{
    grid-template-columns: 1fr;
  }

  body.page-shop-flow .page-checkout-block{
    padding: 14px;
  }

  body.page-shop-flow .page-checkout-block h2{
    font-size: 19px;
  }

  body.page-shop-flow .page-checkout-block .kv{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.page-shop-flow .checkout-form textarea{
    height: 68px;
    min-height: 68px;
  }

  body.page-shop-flow .page-check-row{
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.page-shop-flow .page-check-row input[type="checkbox"]{
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  body.page-shop-flow .page-pvz-row{
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-summary-item{
    grid-template-columns: 66px minmax(0, 1fr) auto;
  }

  body.page-shop-flow .mobile-bottom-nav{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    min-height: 64px;
  }

  body.page-shop-flow .mobile-bottom-nav__item{
    font-size: 10px;
    gap: 3px;
  }
}

@media (max-width: 390px){
  body.page-shop-flow .brand-title .tag{
    display: none;
  }

  body.page-shop-flow .header-icon{
    width: 40px;
    min-width: 40px;
  }

  body.page-shop-flow .nav-row-bottom .btn.btn-large.header-cart,
  body.page-shop-flow .header-cart{
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
  }
}

/* ===== Current correction pass: unified mobile header and stable hero ===== */
header,
.topbar,
.nav,
.nav-row,
.nav-row-bottom{
  overflow: visible;
}

.header-icon,
.header-cart,
.mobile-bottom-nav,
.mobile-bottom-nav__item{
  box-sizing: border-box;
}

@media (max-width: 760px){
  body.page-home .topbar,
  body.page-product-detail .topbar,
  body.page-shop-flow .topbar{
    width: min(100% - 20px, 1288px) !important;
    min-height: 58px !important;
    padding: 7px 0 !important;
  }

  body.page-home .brand-title,
  body.page-product-detail .brand-title,
  body.page-shop-flow .brand-title{
    min-width: 0 !important;
  }

  body.page-home .brand-title .name,
  body.page-product-detail .brand-title .name,
  body.page-shop-flow .brand-title .name{
    font-size: 25px !important;
    line-height: 1 !important;
  }

  body.page-home .brand-title .tag,
  body.page-product-detail .brand-title .tag,
  body.page-shop-flow .brand-title .tag{
    max-width: 164px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }

  body.page-home .nav,
  body.page-product-detail .nav,
  body.page-shop-flow .nav{
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  body.page-home .nav-row-bottom,
  body.page-product-detail .nav-row-bottom,
  body.page-shop-flow .nav-row-bottom{
    gap: 6px !important;
  }

  body.page-home .header-icon,
  body.page-product-detail .header-icon,
  body.page-shop-flow .header-icon{
    display: inline-flex !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    line-height: 1 !important;
  }

  body.page-home .header-icon .icon,
  body.page-product-detail .header-icon .icon,
  body.page-shop-flow .header-icon .icon{
    width: 18px !important;
    height: 18px !important;
  }

  body.page-home .header-cart,
  body.page-product-detail .header-cart,
  body.page-shop-flow .header-cart,
  body.page-shop-flow .nav-row-bottom .btn.btn-large.header-cart{
    display: inline-flex !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    gap: 2px !important;
    padding: 0 5px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
  }

  body.page-home .header-cart .icon,
  body.page-product-detail .header-cart .icon,
  body.page-shop-flow .header-cart .icon{
    width: 17px !important;
    height: 17px !important;
  }

  body.page-home .header-cart .pill,
  body.page-product-detail .header-cart .pill,
  body.page-shop-flow .header-cart .pill{
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    line-height: 17px !important;
  }

  body.page-home .header-cart-text,
  body.page-product-detail .header-cart-text,
  body.page-shop-flow .header-cart-text{
    display: none !important;
  }

  .mobile-bottom-nav{
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  .mobile-bottom-nav__item{
    min-height: 48px !important;
    border: 1px solid transparent;
    line-height: 1.1 !important;
  }
}

@media (max-width: 390px){
  body.page-home .brand-title .tag,
  body.page-product-detail .brand-title .tag,
  body.page-shop-flow .brand-title .tag{
    display: none !important;
  }
}

.hero-copy{
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero h1{
  min-height: 3.25em;
}

.home-hero p{
  min-height: 4.6em;
}

.hero-progress{
  flex: 0 0 auto;
}

body.page-home .home-hero .hero-progress{
  position: absolute;
  left: clamp(92px, 8vw, 136px);
  bottom: clamp(96px, 13vw, 136px);
  z-index: 6;
  margin-top: 0 !important;
}

body.page-home .home-hero .hero-copy{
  position: static !important;
}

@media (min-width: 761px){
  .home-hero .hero-inner{
    min-height: inherit;
  }

  .hero-copy{
    min-height: 430px;
    justify-content: center;
  }
}

@media (max-width: 760px){
  .home-hero h1{
    min-height: 4.25em;
  }

  .home-hero p{
    min-height: 7.5em;
  }

  body.page-home .home-hero .hero-progress{
    left: 14px;
    bottom: 128px;
  }
}

/* ===== Current correction pass: checkout agreement rows and header border breathing room ===== */
@media (max-width: 760px){
  body.page-home .topbar,
  body.page-product-detail .topbar,
  body.page-shop-flow .topbar{
    min-height: 62px !important;
    padding: 8px 0 10px !important;
  }

  body.page-home .header-icon,
  body.page-product-detail .header-icon,
  body.page-shop-flow .header-icon,
  body.page-home .header-cart,
  body.page-product-detail .header-cart,
  body.page-shop-flow .header-cart,
  body.page-shop-flow .nav-row-bottom .btn.btn-large.header-cart{
    align-self: center !important;
    margin-bottom: 2px !important;
    transform: translateY(-1px);
  }

  body.page-home .topbar .header-icon,
  body.page-product-detail .topbar .header-icon,
  body.page-shop-flow .topbar .header-icon,
  body.page-home .topbar .header-cart,
  body.page-product-detail .topbar .header-cart,
  body.page-shop-flow .topbar .header-cart{
    border-bottom: 1px solid rgba(216,182,99,.26) !important;
    box-shadow: inset 0 0 0 1px rgba(216,182,99,.16) !important;
  }

  body.page-home .topbar .header-cart.primary,
  body.page-product-detail .topbar .header-cart.primary,
  body.page-shop-flow .topbar .header-cart.primary{
    box-shadow: inset 0 0 0 1px rgba(245,224,154,.28), 0 12px 24px rgba(200,149,61,.18) !important;
  }

  body.page-shop-flow .page-checkout-block .kv.page-check-row{
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
  }

  body.page-shop-flow .page-checkout-block .kv.page-check-row > span:first-child{
    grid-column: 1 !important;
  }

  body.page-shop-flow .page-checkout-block .kv.page-check-row > span:last-child{
    grid-column: 2 !important;
    min-width: 0;
  }

  body.page-shop-flow .page-check-row input[type="checkbox"]{
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

/* ===== Browser comment pass: home polish and theme toggle removal ===== */
body.page-home .home-hero .hero-inner{
  position: relative !important;
}

body.page-home .home-hero .hero-progress{
  position: absolute !important;
  left: clamp(92px, 8vw, 136px) !important;
  bottom: 84px !important;
  z-index: 5 !important;
  margin: 0 !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}

.home-benefits .benefit-item{
  position: relative;
  border-right: 0 !important;
}

.home-benefits .benefit-item:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 2px;
  height: 64%;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(230,199,119,0), rgba(230,199,119,.26) 22%, rgba(230,199,119,.72) 50%, rgba(230,199,119,.26) 78%, rgba(230,199,119,0));
  box-shadow: 0 0 18px rgba(216,182,99,.18);
}

.catalog-toolbar{
  display: flex;
  align-items: flex-start;
  gap: 12px 18px;
  overflow: visible !important;
}

.catalog-filters{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.catalog-filter{
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.catalog-filter span{
  min-width: 0;
}

.catalog-counter{
  flex: 0 0 auto;
  padding-top: 8px;
  white-space: nowrap;
}

.home-about{
  margin-top: 46px;
}

.home-about .section-title{
  margin-bottom: 14px;
}

.about-panel{
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(216,182,99,.26);
  border-radius: 12px;
  background: radial-gradient(circle at 18% 14%, rgba(216,182,99,.18), transparent 34%), linear-gradient(135deg, rgba(27,22,15,.92), rgba(11,10,7,.88));
  box-shadow: 0 26px 80px rgba(0,0,0,.38);
}

.about-panel::before{
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(230,199,119,.16);
  border-radius: 9px;
}

.about-panel::after{
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  z-index: 6;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,199,119,.72), transparent);
}

.about-panel__copy{
  position: relative;
  z-index: 4;
  width: min(58%, 760px);
  padding: clamp(28px, 3vw, 42px);
}

.about-panel .section-body{
  max-width: 680px;
  color: rgba(244,234,212,.76);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.about-panel .section-body p:first-child{
  color: #f4ead4;
  font-weight: 800;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.32;
}

.about-panel .section-body strong{
  color: var(--gold-strong);
}

.about-panel .section-divider{
  width: min(360px, 72%);
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(230,199,119,.78), rgba(230,199,119,0));
}

.about-panel__visual{
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #120f0a;
}

.about-panel__visual::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(18,15,10,1) 0%, rgba(18,15,10,1) 42%, rgba(18,15,10,.96) 48%, rgba(18,15,10,.74) 55%, rgba(18,15,10,.38) 66%, rgba(18,15,10,0) 82%),
    linear-gradient(270deg, rgba(18,15,10,.48) 0%, rgba(18,15,10,.18) 8%, rgba(18,15,10,0) 20%),
    linear-gradient(180deg, rgba(18,15,10,.34) 0%, rgba(18,15,10,0) 16%, rgba(18,15,10,0) 76%, rgba(18,15,10,.72) 100%);
}

.about-panel__visual::after{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(52%, 620px);
  background:
    radial-gradient(circle at 58% 56%, rgba(230,199,119,.22), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 42%);
  pointer-events: none;
}

.about-panel__visual picture,
.about-panel__visual img{
  display: block;
}

.about-panel__visual picture{
  position: absolute;
  left: 44%;
  right: 0;
  top: 0;
  width: auto;
  height: 100%;
  transform: none;
}

.about-panel__visual img{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 44% center;
  filter: contrast(1.04) saturate(1.04) brightness(.92);
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 1020px){
  body.page-home .home-hero .hero-progress{
    left: 24px !important;
    bottom: 82px !important;
  }

  .about-panel{
    display: grid;
    grid-template-columns: 1fr;
  }

  .about-panel__visual{
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(360px, 95vw, 430px);
    min-height: 0;
    max-height: 430px;
    margin-left: 0;
    order: -1;
    background: #120f0a;
  }

  .about-panel__visual picture{
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .about-panel__visual img{
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

@media (max-width: 760px){
  body.page-home .home-hero .hero-progress{
    left: 14px !important;
    bottom: 82px !important;
  }

  .home-benefits{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: -38px !important;
  }

  .home-benefits .benefit-item::after{
    display: none;
  }

  .home-benefits .benefit-item:nth-child(odd)::after{
    display: block;
    top: 16%;
    right: 0;
    height: 68%;
  }

  .home-benefits .benefit-item:nth-child(n + 3)::before{
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,199,119,.48), transparent);
  }

  .catalog-toolbar{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-filters{
    gap: 8px;
  }

  .catalog-filter{
    flex: 1 1 calc(50% - 8px);
    justify-content: space-between;
    min-width: 0;
    max-width: none !important;
  }

  .catalog-counter{
    justify-self: start;
    padding-top: 0;
  }

  body.page-home .card .body,
  .card .body{
    padding: 12px 12px 0 !important;
  }

  .card-footer{
    padding: 8px 12px 12px;
  }

  body.page-home .card .name,
  .card .name{
    max-width: none;
  }

  body.page-home .card .sub,
  .card .sub{
    max-width: none;
    min-height: 0;
  }

  .home-about{
    margin-top: 34px;
  }

  .about-panel{
    min-height: 0;
    gap: 0;
  }

  .about-panel::before{
    inset: 10px;
  }

  .about-panel__copy{
    width: auto;
    margin-top: -118px;
    padding: 24px 18px 28px;
  }

  .about-panel .section-body{
    font-size: 15px;
    line-height: 1.58;
  }

  .about-panel .section-body p:first-child{
    font-size: 19px;
  }

  .about-panel__visual,
  .about-panel__visual picture,
  .about-panel__visual img{
    min-height: 0;
  }

  .about-panel__visual::before{
    background:
      linear-gradient(180deg, rgba(18,15,10,.28) 0%, rgba(18,15,10,0) 12%, rgba(18,15,10,0) 46%, rgba(18,15,10,.74) 76%, rgba(18,15,10,1) 100%),
      linear-gradient(90deg, rgba(18,15,10,.82) 0%, rgba(18,15,10,.16) 16%, rgba(18,15,10,0) 36%, rgba(18,15,10,0) 64%, rgba(18,15,10,.16) 84%, rgba(18,15,10,.82) 100%);
  }

  .about-panel__visual img{
    width: 100%;
    object-fit: cover;
    object-position: center center;
    padding: 0;
    filter: contrast(1.04) saturate(1.04) brightness(.92);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ===== Current correction pass: clear mobile nav current state and fast page transitions ===== */
/* Cross-document transitions generate browser AbortErrors during rapid navigation. */
@view-transition{
  navigation: none;
}

::view-transition-old(root){
  animation: yaga-page-out .12s ease both;
}

::view-transition-new(root){
  animation: yaga-page-in .16s ease both;
}

@keyframes yaga-page-out{
  from{ opacity: 1; }
  to{ opacity: .96; }
}

@keyframes yaga-page-in{
  from{ opacity: .92; }
  to{ opacity: 1; }
}

html.is-navigating body{
  cursor: progress;
}

.mobile-bottom-nav__item.has-items{
  color: var(--ink2) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.mobile-bottom-nav__item:not([aria-current="page"]):hover{
  color: var(--ink2) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.mobile-bottom-nav__item[aria-current="page"],
.mobile-bottom-nav__item[aria-current="page"].has-items{
  color: var(--ink) !important;
  border-color: rgba(216,182,99,.24) !important;
  background: rgba(216,182,99,.14) !important;
}

.mobile-bottom-nav__item[aria-current="page"]{
  box-shadow: inset 0 0 0 1px rgba(216,182,99,.16);
}

.mobile-bottom-nav__item[data-cart-state] [data-cart-count]{
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #17110a;
  background: linear-gradient(180deg, #e9cc7e, #c8953d);
  font-size: 10px;
  line-height: 1;
}

.mobile-bottom-nav__item[data-cart-state][data-cart-items="0"] [data-cart-count]{
  color: inherit;
  background: rgba(216,182,99,.12);
}

@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root),
  ::view-transition-new(root){
    animation: none;
  }
}

/* ===== Performance pass: final public typography and overflow guard ===== */
html,
body{
  font-family: var(--font-ui);
  overflow-x: clip;
}

.logo-text{
  font-family: var(--font-brand);
}

.hero h1,
.section-title h2,
.page-heading h1,
.page-product__info h1,
.page-status h1,
.page-empty h2,
.page-summary h2,
.page-checkout-block h2{
  font-family: var(--font-display);
}

.btn,
.remove,
.qbtn,
input,
select,
textarea,
button{
  font-family: var(--font-ui);
}

/* Product quantity selection: current cart, planned addition and subtotal. */
body.page-product-detail .product-purchase-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
}
.product-purchase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--product-line-soft);
}
.product-purchase-heading .product-cart-summary {
  margin: 0;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.product-purchase-heading .product-side-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.product-purchase-heading .product-link-action {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  border-color: transparent;
  background: transparent;
}
.product-purchase-heading .product-link-action .icon { width: 22px; height: 22px; }
body.page-product-detail .product-purchase-card .product-qty-row {
  grid-column: auto;
  grid-row: auto;
}
.product-purchase-card .product-purchase-label { font-size: 12px; margin-bottom: 10px; }
.product-selection-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.page-product-detail .product-purchase-card .page-qty { width: 132px; flex: 0 0 132px; min-height: 44px; }
body.page-product-detail .product-purchase-card .qbtn { min-width: 44px; width: 44px; flex-basis: 44px; min-height: 44px; }
body.page-product-detail .product-purchase-card .page-qty input { width: 40px; min-width: 0; min-height: 44px; }
.product-selection-total { display: grid; gap: 4px; text-align: right; }
.product-selection-total span { font-size: 11px; color: var(--ink2); }
.product-selection-total strong { font-size: 18px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-cart-projection { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink2); }
.product-purchase-card .product-purchase-actions { gap: 8px; }
.product-purchase-card .product-purchase-actions .btn { min-height: 44px; font-size: 14px; }
.product-purchase-card .page-action-status { margin: 0; font-size: 12px; }

/* Keep cart updates from shifting the header navigation. */
.header-cart .pill {
  font-variant-numeric: tabular-nums;
}
@media (min-width: 861px) {
  .header-cart .pill {
    box-sizing: border-box;
    width: 3em;
    min-width: 3em;
    flex: 0 0 3em;
    padding-inline: 2px;
  }
}

.product-video-section { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 100px; }
.product-video-section[hidden] { display: none; }
.product-video-section h2 { margin: 0 0 16px; font-size: 22px; }
.product-video-section video { display: block; width: 100%; max-height: 70vh; background: #090909; border-radius: 10px; object-fit: contain; }
a.page-product__thumb--video { text-decoration: none; color: var(--gold-strong); display: flex; align-items: center; justify-content: center; gap: 8px; }

.product-video-player { position: relative; }
.product-video-toggle { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 1px solid #d8b663; border-radius: 50%; background: #17140fe8; color: #f2d58c; cursor: pointer; }
.product-video-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.product-video-toggle:focus-visible { outline: 3px solid #f2d58c; outline-offset: 3px; }
