@font-face{
  font-family: "Asterisk Sans Variable";
  src: url("fonts/fonnts.com-Asterisk_Sans_Variable.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
   --page-max: 1861px;
   --hero-h: 884px;
   --bg: #ffffff;
   --muted: #8c8c8c;
   --text: #111111;
   --accent: #bdbdbd;
   --card-gap: 42px;
   --sidebar-w: 260px;
   --gutter: 360px;
 }

/* Standardized Font Utilities */
.font-standard {
   font-family: "Asterisk Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   font-weight: 600;
   font-style: normal;
   letter-spacing: 0%;
 }

.text-xs { font-size: 12px; line-height: 18px; }
.text-sm { font-size: 13px; line-height: 20px; }
.text-base { font-size: 14px; line-height: 20px; }
.text-lg { font-size: 16px; line-height: 20px; }
.text-xl { font-size: 20px; line-height: 20px; }
.text-2xl { font-size: 22px; line-height: 24px; }
.text-3xl { font-size: 25px; line-height: 28px; }
.text-4xl { font-size: 28px; line-height: 32px; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* reset / base */
*{box-sizing:border-box}
body{
   margin:0;
   padding:0;
   width:100%;
   max-width:100%;
   font-family:"Asterisk Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   font-weight: 600;
   font-style: normal;
   letter-spacing: 0%;
   background:var(--bg);
   color:var(--text);
   -webkit-font-smoothing:antialiased;
   -moz-osx-font-smoothing:grayscale;
   overflow-x:hidden;
   -webkit-tap-highlight-color: transparent;
 }

/* Apply Asterisk Sans Variable to all text elements */
*, *::before, *::after {
   font-family: "Asterisk Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   font-weight: 600;
   font-style: normal;
   letter-spacing: 0%;
 }

/* Remove blue tap highlight on mobile devices */
a, button, input, select, textarea, img {
   -webkit-tap-highlight-color: transparent;
 }

/* page */
.page { max-width:var(--page-max); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); padding-bottom:0; position:relative; display:flex; flex-direction:column; min-height:100vh; }

/* hero */
.hero{ width:calc(100% + calc(var(--gutter) * 2)); max-width:1861px; margin-left:calc(var(--gutter) * -1); margin-right:calc(var(--gutter) * -1); height:var(--hero-h); border-radius:20px; overflow:hidden; box-shadow:0 12px 36px rgba(0,0,0,0.12); position:relative; }
.hero img{ display:block; width:100%; height:100%; object-fit:cover; }

/* CTA button on banner */
.hero .cta, .hero-mobile .cta {
  position: absolute;
  border: none;
  background: #EAEAEA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Idealist Sans", "PT Sans Narrow", Arial, sans-serif;
  font-weight: 300;
  line-height: 90%;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  color: #111;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop CTA button - масштабируется вместе с баннером */
.hero .cta {
  right: 18.5%; /* сдвинута вправо на 3px больше */
  bottom: 16.4%; /* отступ от низа баннера (145px от 884px высоты) */
  width: 22.76%; /* ширина относительно баннера - масштабируется */
  min-width: 200px; /* минимальная ширина для предотвращения съезжания */
  height: 10.07%; /* высота относительно баннера (89px от 884px) */
  font-size: clamp(16px, 1.146vw, 22px); /* масштабируется с viewport, но с ограничениями */
  padding: 0;
  border-radius: 0.52vw; /* адаптивный border-radius */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
}

.hero .cta:hover, .hero-mobile .cta:hover {
  opacity: 0.95;
}

.hero .cta:hover {
  transform: scale(1.02);
}

/* Фиксация минимального отступа слева для CTA кнопки на всех разрешениях */
@media screen and (min-width: 1200px) {
  .hero .cta {
    max-width: calc(100% - 18.5% - clamp(20px, 2vw, 40px)); /* ограничиваем ширину, чтобы кнопка не съезжала влево */
  }
}

/* Сдвиг CTA кнопки на разрешении 1600px */
@media screen and (min-width: 1600px) {
  .hero .cta {
    right: calc(18.5% - 3px); /* сдвигаем вправо на 3px и уменьшаем отступ справа на 3px */
  }
}

.hero-mobile .cta:hover {
  transform: translateX(-50%) scale(1.02);
}

.hero .cta:active {
  transform: scale(0.98);
}

.hero-mobile .cta:active {
  transform: translateX(-50%) scale(0.98);
}

/* Arrow in CTA button - удалено */
.hero .cta::after, .hero-mobile .cta::after {
  display: none;
}

/* layout */
.layout{ margin-top:100px; display:flex; flex-direction:column; align-items:center; flex:1; }
.catalog{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); max-width:100%; margin:0 auto; }
.card{ text-align:center; }
.product-img-container{ width:263px; height:236px; margin:0 auto 14px; position:relative; overflow:hidden; border-radius:5px; background:#fff; }
.product-img{ width:263px; height:236px; margin:0; display:block; object-fit:contain; background:#fff; border-radius:5px; transition: transform 0.3s ease; }
.product-img-container:hover .product-img{ transform: scale(1.1); cursor: pointer; }
.product-color-swatches{ position:absolute; left:6px; bottom:6px; display:flex; flex-direction:column-reverse; flex-wrap:wrap-reverse; gap:4px; max-width:calc(100% - 12px); max-height:calc(100% - 12px); align-content:flex-start; z-index:5; pointer-events:none; }
.product-color-swatch{ width:16px; height:16px; border-radius:50%; border:1.5px solid rgba(255,255,255,0.8); flex-shrink:0; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,0.2); transition:transform 0.2s ease; pointer-events:auto; }
.product-color-swatch:hover{ transform:scale(1.2); }
.btn-container{ display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px; }
.btn-detail{ display:inline-block; width:110px; height:23px; line-height:23px; font-size:12px; padding:0; border-radius:5px; background:#000; color:#fff; text-decoration:none; letter-spacing:0%; font-weight:600; cursor:pointer; text-align:center; box-sizing:border-box; font-family:"Asterisk Sans Variable",sans-serif; }
.btn-cart-icon{ height:46px; width:auto; cursor:pointer; display:block; object-fit:contain; filter: brightness(0); }
.btn-cart-icon.disabled{ opacity:0.35; cursor:not-allowed; }
.card.card-stopped{ opacity:0.7; }
.prod-title{ display:block; font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:16px; line-height:20px; color:#222; margin-top:8px; text-transform:uppercase; letter-spacing:0%; }
.prod-price{ margin-top:6px; font-size:13px; color:#6b6b6b; font-weight:600; letter-spacing:0%; }

/* sidebar */
.sidebar{ display:none; width:100%; max-width:var(--sidebar-w); padding:0 10px; align-self:start; position:sticky; top:28px; height:fit-content; }
.logo{ display:block; width:115px; height:65px; margin:0 auto; object-fit:contain; }

/* Search box - desktop */
.search-wrapper {
  margin: 20px auto 0;
  max-width: 260px;
}
.search-input {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Asterisk Sans Variable", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  letter-spacing: 0%;
}
.search-input::placeholder {
  color: #666;
  font-weight: 600;
}
.search-input:focus {
  border-color: #111;
}

.cart-link-wrapper{ text-align:center; margin-top:20px; }
.cart-link{ font-weight:600; text-decoration:none; color:inherit; display:inline-block; font-family:"Asterisk Sans Variable",sans-serif; font-size:14px; line-height:20px; text-transform:uppercase; letter-spacing:0%; }
.divider{ height:1px; background:#f0f0f0; margin:16px 0 8px; }
.cats{ margin-top:80px; padding:0; list-style:none; }
.cats li{ margin:8px 0; }
.cats a{ display:block; padding:6px 8px; border-radius:6px; text-decoration:none; color:#333; text-align:center; border:1px solid transparent; text-transform:uppercase; font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:14px; line-height:20px; letter-spacing:0%; }
.cats a.active{ background:#111; color:#fff; border-color:#111; }

/* modal/product */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:2000; opacity:0; transition:opacity 0.3s ease; }
.modal.open{ display:flex; opacity:1; }
.modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0); transition:background 0.3s ease; }
.modal.open .modal-overlay{ background:rgba(0,0,0,0.45); }
.modal-dialog{ position:relative; width:min(1000px,96%); max-height:92vh; overflow:auto; background:#fff; border-radius:8px; z-index:2; padding:26px; transform:scale(0.9) translateY(20px); opacity:0; transition:transform 0.3s ease, opacity 0.3s ease; }
.modal.open .modal-dialog{ transform:scale(1) translateY(0); opacity:1; }
.modal-close{ position:absolute; right:14px; top:12px; border:0; background:transparent; font-size:22px; cursor:pointer; line-height:1; color:#111; z-index:10; }
.modal-layout{ display:grid; grid-template-columns:1fr 360px; gap:28px; align-items:start; }
.modal-media{ overflow:hidden; border-radius:5px; position:relative; }
.modal-media > img{ width:100%; max-width:520px; height:auto; object-fit:contain; display:block; margin:0 auto 12px; border-radius:5px; transition:opacity 0.3s ease, transform 0.1s ease-out; cursor: zoom-in; transform-origin: center center; }
/* Enable native pinch-to-zoom on mobile */
@media (max-width: 768px) {
  .modal-media{ overflow:visible; }
  .modal-media > img{ 
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: opacity 0.3s ease;
    transform: none !important;
  }
  .modal-media > img:hover{ transform: none !important; }
  .modal-media > img.zoom-2x,
  .modal-media > img.zoom-3x{ 
    transform: none !important; 
    cursor: default;
  }
}
.modal-media > img:hover:not(.zoom-2x):not(.zoom-3x){ transform: scale(1.2); }
.modal-media > img.zoom-2x{ transform: scale(2); cursor: move; }
.modal-media > img.zoom-3x{ transform: scale(3); cursor: move; }
.modal-media > img.fade-out{ opacity:0; transform:scale(0.95); }
.modal-media > img.fade-in{ opacity:1; transform:scale(1); }
.modal-thumb-row{
  display:flex;
  gap:8px;
  margin:0;
  justify-content:flex-start;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  scrollbar-width:thin;
  scroll-behavior:smooth;
  max-width:calc(56px * 4 + 8px * 3);
}
.modal-thumb-row::-webkit-scrollbar{
  height:4px;
}
.modal-thumb-row::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,0.25);
  border-radius:999px;
}
.modal-thumb-row img{ 
  width:56px; 
  height:56px; 
  object-fit:cover; 
  border-radius:5px; 
  cursor:pointer; 
  border:1px solid #eee; 
  opacity:0.95; 
  transition:all 0.2s ease;
  flex-shrink:0;
}
.modal-thumb-row img:hover{ opacity:1; transform:scale(1.05); }
.modal-thumb-row img.active{ outline:2px solid var(--accent); transform:scale(1.02); opacity:1; }
.modal-details h2{ font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:16px; line-height:20px; margin:0 0 30px 0; text-transform:uppercase; letter-spacing:0%; }
.badge{ display:inline-block; background:#9D9D9D; color:#fff; padding:6px 10px; border-radius:6px; font-size:12px; margin:0 0 40px 0; font-weight:600; letter-spacing:0%; }
.modal-desc{ font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:14px; line-height:20px; color:var(--muted); margin-top:40px; margin-bottom:12px; letter-spacing:0%; }
.modal-price{ font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:25px; line-height:20px; margin-top:12px; margin-bottom:12px; color:var(--text); letter-spacing:0%; }
.modal-controls{ display:flex; align-items:stretch; flex-wrap:nowrap; --modal-ctrl-h:23px; }
.modal-selects{ display:flex; flex-direction:column; gap:13px; }
.modal-controls select{ width:84px; height:var(--modal-ctrl-h); padding:0 8px; border-radius:5px; border:1px solid #ddd; background:#fff; font-size:13px; font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; line-height:20px; letter-spacing:0%; opacity:1; box-sizing:border-box; text-transform:uppercase; font-style:normal; -webkit-appearance:none; -moz-appearance:none; appearance:none; color:#111; }
.modal-controls select::-webkit-appearance{ -webkit-appearance:none; appearance:none; }
.modal-controls select::-moz-appearance{ -moz-appearance:none; }
.modal-controls select option{ background:#fff; color:#111; }
.modal-add{ width:261px; height:calc(var(--modal-ctrl-h) * 2 + 13px); padding:0; border-radius:5px; background:#000; color:#fff; border:1px solid #000; cursor:pointer; font-weight:600; font-family:"Asterisk Sans Variable",sans-serif; font-size:13px; line-height:20px; letter-spacing:0%; opacity:1; text-align:center; box-sizing:border-box; font-style:normal; margin-left:33px; display:inline-flex; align-items:center; justify-content:center; }
.modal-add:hover{ background:#333; border-color:#333; }
.modal-add:disabled{ background:#ccc; border-color:#ccc; color:#999; cursor:not-allowed; }

/* toasts */
#toasts{ position:fixed; right:16px; bottom:16px; z-index:2000; display:flex; flex-direction:column; gap:10px; }
.toast{ opacity:0; transform:translateY(8px); transition:opacity .25s ease, transform .25s ease; background:#111; color:#fff; padding:10px 14px; border-radius:8px; font-size:14px; box-shadow:0 6px 18px rgba(0,0,0,0.18); }
.toast.show{ opacity:1; transform:translateY(0); }

/* cart modal */
.cart-modal .modal-dialog{ width:min(1200px,98%); padding:36px; }
.cart-list{ display:flex; flex-direction:column; gap:20px; margin-bottom:24px; }
.cart-item{ display:grid; grid-template-columns:180px 1fr 320px 200px; gap:20px; align-items:center; padding:12px 0; border-bottom:1px solid #f4f4f4; }
.cart-item img{ width:160px; height:160px; object-fit:contain; display:block; margin:auto; }
.cart-item .title{ font-weight:600; text-transform:uppercase; letter-spacing:0%; }
.cart-controls{ display:flex; gap:12px; align-items:center; justify-content:flex-start; }
.cart-controls{ margin-right:60px; }
.qty-select, .small-select{ width:84px; height:23px; padding:0 8px; border-radius:5px; border:1px solid #ddd; font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:13px; line-height:20px; letter-spacing:0%; opacity:1; box-sizing:border-box; text-transform:uppercase; font-style:normal; }
.remove-btn{ width:36px; height:36px; border-radius:999px; border:1px solid #ddd; background:#f5f5f5; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cart-price-remove{ display:flex; align-items:center; justify-content:flex-end; gap:80px; }
.cart-price-remove .cart-price{ order: 1; }
.cart-price-remove .remove-btn{ order: 2; }
.cart-price{ font-weight:600; text-align:right; white-space:nowrap; letter-spacing:0%; }
.cart-bottom{ display:flex; justify-content:space-between; align-items:center; margin-top:20px; padding:0 32px; gap:20px; }
.cart-bottom .right{ display:flex; flex-direction:column; align-items:flex-end; gap:10px; }

@media (min-width:769px){
  /* Desktop cart bottom: left clear, right column with total above checkout */
  .cart-bottom{ display:grid; grid-template-columns: 1fr auto; grid-template-areas: '. total' 'clear checkout'; align-items:center; column-gap:20px; row-gap:10px; padding:0 32px; }
  .clear-btn{ grid-area: clear; justify-self:start; }
  .cart-total{ grid-area: total; display:flex; justify-content:flex-end; align-items:center; margin:0; }
  .checkout-btn{ grid-area: checkout; justify-self:end; }
  /* same level, same height */
  .clear-btn, .checkout-btn{ height:48px; padding:0 24px; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }
}
.clear-btn, .checkout-btn{ padding:14px 20px; border-radius:8px; border:0; cursor:pointer; }
.clear-btn{ background:#bdbdbd; color:#fff; }
.checkout-btn{ background:#111; color:#fff; font-weight:600; letter-spacing:0%; }
.back-to-catalog-btn{ background:transparent; color:#111; border:1px solid #111; font-weight:600; letter-spacing:0%; cursor:pointer; font-family:"Asterisk Sans Variable",sans-serif; border-radius:8px; }
@media (min-width:769px){
  .back-to-catalog-btn{ height:48px; padding:0 24px; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; font-size:14px; }
  .cart-modal .back-to-catalog-btn{ width:287px; }
}
@media (max-width:768px){
  .back-to-catalog-btn{ width:100%; height:48px; padding:0 16px; border-radius:10px; font-size:13px; line-height:1; white-space:nowrap; display:flex; align-items:center; justify-content:center; }
}
.cart-total{ font-size:28px; font-weight:600; display:flex; gap:14px; align-items:center; letter-spacing:0%; }
#cartTitle{ font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:14px; line-height:20px; text-transform:uppercase; margin:12px 0 0 0; position:relative; z-index:1; letter-spacing:0%; }

/* Order Result Modal */
.order-result-modal .modal-overlay{ cursor: default; }
.order-result-dialog{ 
  position: relative; 
  width: min(600px, 90%); 
  background: #fff; 
  border-radius: 12px; 
  z-index: 2; 
  padding: 48px 40px;
  transform: scale(0.9) translateY(20px); 
  opacity: 0; 
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.order-result-modal.open .order-result-dialog{ transform: scale(1) translateY(0); opacity: 1; }
.order-result-content{ 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 32px;
}
.order-result-logo{ 
  text-align: center;
}
.order-result-logo img{ 
  max-width: 180px; 
  height: auto;
}
.order-result-message{ 
  font-family: "Asterisk Sans Variable", sans-serif; 
  font-weight: 400; 
  font-size: 45px; 
  line-height: 1.2; 
  text-align: center; 
  color: #111;
  letter-spacing: 0%;
}
.order-result-footer{ 
  width: 100%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 20px;
  flex-wrap: wrap;
}
.order-result-number{ 
  font-family: "Asterisk Sans Variable", sans-serif; 
  font-weight: 600; 
  font-size: 14px; 
  line-height: 20px; 
  text-transform: uppercase; 
  color: #111;
  letter-spacing: 0%;
}
.order-result-btn{ 
  background: #111; 
  color: #fff; 
  font-weight: 600; 
  font-family: "Asterisk Sans Variable", sans-serif; 
  font-size: 14px; 
  text-transform: uppercase; 
  padding: 14px 24px; 
  border-radius: 8px; 
  border: 0; 
  cursor: pointer; 
  letter-spacing: 0%;
  transition: background 0.2s ease;
}
.order-result-btn:hover{ 
  background: #333;
}

@media (max-width: 768px) {
  .order-result-dialog{ 
    padding: 32px 24px;
    width: min(500px, 95%);
  }
  .order-result-message{ 
    font-size: 36px;
  }
  .order-result-footer{ 
    flex-direction: column; 
    align-items: center; 
    gap: 16px;
    width: 100%;
  }
  .order-result-number{ 
    text-align: center;
    width: 100%;
  }
  .order-result-btn{ 
    width: 100%;
    text-align: center;
  }
}

/* Fullscreen Image Viewer for Mobile */
.fullscreen-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
  flex-direction: column;
  touch-action: none;
}
.fullscreen-viewer.active {
  display: flex;
}
.fullscreen-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}
.fullscreen-viewer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-viewer-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.fullscreen-viewer-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}
.fullscreen-viewer-back-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: "Asterisk Sans Variable", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10;
  letter-spacing: 0%;
  white-space: nowrap;
}

/* desktop sticky header */
.desktop-sticky-header{ 
  display:none; 
  position:sticky; 
  top:0; 
  z-index:1200; 
  width:100%; 
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,0.1);
}
.desktop-header-top-bar{ 
  display:none;
}
.desktop-header-banner{ 
  width:100%; 
  background:#fff; 
}
.desktop-header-content{ 
  width:100%;
  max-width:1920px;
  margin:0 auto;
  padding:0 20px;
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  box-sizing:border-box;
}
.desktop-header-logo{ 
  display:flex; 
  align-items:center;
  padding:7px 0;
  margin:0;
  flex-shrink:0;
}
.desktop-header-logo-img{ 
  width:115px; 
  height:65px; 
  object-fit:contain; 
  display:block;
  margin:0;
  padding:0;
}
.desktop-header-icons{ 
  display:flex; 
  align-items:center; 
  gap:16px;
  padding:7px 0;
  margin:0;
  flex-shrink:0;
}
.desktop-header-cart-wrapper{ position:relative; cursor:pointer; display:flex; align-items:center; }
.desktop-header-cart-icon{ width:48px; height:48px; display:block; filter: brightness(0); }
.desktop-header-cart-badge{ position:absolute; top:-10px; right:-10px; background:#000; color:#fff; border-radius:50%; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; line-height:1; }
.desktop-header-search-wrapper{ position:relative; display:flex; align-items:center; }
.desktop-header-search-icon-btn{ background:transparent; border:none; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; width:24px; height:24px; flex-shrink:0; z-index:11; position:relative; }
.desktop-header-search-icon{ width:24px; height:24px; display:block; }
.desktop-header-search-input-wrapper{ position:absolute; right:32px; top:50%; transform:translateY(-50%); width:0; overflow:hidden; transition:width 0.3s ease, opacity 0.3s ease; background:#fff; opacity:0; white-space:nowrap; z-index:10; }
.desktop-header-search-input-wrapper.expanded{ width:260px; opacity:1; }
.desktop-header-search-input{ width:100%; height:32px; padding:0 8px; border:1px solid #ddd; border-radius:6px; font-family:"Asterisk Sans Variable",sans-serif; font-size:13px; font-weight:600; text-align:center; text-transform:uppercase; outline:none; transition:border-color 0.2s; box-sizing:border-box; letter-spacing:0%; }
.desktop-header-search-input::placeholder{ color:#666; font-weight:600; }
.desktop-header-search-input:focus{ border-color:#111; }

/* mobile header/offcanvas */
.mobile-header{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1200;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,0.1);
}
.mobile-header-top-bar{
  display:none;
}
.mobile-header-banner{ 
  width:100%; 
  background:#fff; 
  margin:0;
  padding:0;
}
.mobile-header-content{
  width:100%;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-sizing:border-box;
  position:relative;
}
.mobile-header-logo{
  display:flex;
  align-items:center;
  margin:0;
  padding:8px 0 8px 0;
  flex-shrink:0;
}
.mobile-logo{ 
  width:115px; 
  height:65px; 
  object-fit:contain; 
  display:block;
  margin:0;
  padding:0;
}
.mobile-header-icons{ 
  display:flex; 
  align-items:center; 
  gap:12px;
  padding:8px 16px 8px 0;
  margin:0;
  flex-shrink:0;
  position:relative;
}
.mobile-header-search-wrapper{ 
  position:static; 
  display:flex; 
  align-items:center;
  order:-1;
}
.mobile-header-search-icon-btn{ 
  background:transparent; 
  border:none; 
  padding:0; 
  cursor:pointer; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  width:24px; 
  height:24px; 
  flex-shrink:0; 
  z-index:12; 
  position:relative;
  order:1;
}
.mobile-header-search-icon{ width:24px; height:24px; display:block; }
.mobile-header-search-input-wrapper{ 
  position:absolute; 
  right:100%; 
  top:50%;
  transform:translateY(-50%);
  width:0; 
  overflow:hidden; 
  transition:width 0.3s ease, opacity 0.3s ease; 
  background:#fff; 
  opacity:0; 
  white-space:nowrap; 
  z-index:11;
  margin-right:8px;
}
.mobile-header-search-input-wrapper.expanded{ 
  width:calc(100vw - 300px); 
  max-width:135px;
  opacity:1; 
}
.mobile-header-search-input{ width:100%; height:32px; padding:0 8px; border:1px solid #ddd; border-radius:6px; font-family:"Asterisk Sans Variable",sans-serif; font-size:13px; font-weight:600; text-align:center; text-transform:uppercase; outline:none; transition:border-color 0.2s; box-sizing:border-box; letter-spacing:0%; }
.mobile-header-search-input::placeholder{ color:#666; font-weight:600; }
.mobile-header-search-input:focus{ border-color:#111; }
.mobile-cart-icon-wrapper{ position:relative; cursor:pointer; }
.mobile-cart-icon{ width:48px; height:48px; display:block; filter: brightness(0); }
.mobile-cart-badge{ position:absolute; top:-10px; right:-10px; background:#000; color:#fff; border-radius:50%; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; line-height:1; }
.burger{ width:28px; height:22px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; }
.burger span{ display:block; height:3px; background:#111; border-radius:2px; }
.mobile-offcanvas{ position:fixed; top:0; right:-320px; width:320px; height:100vh; background:#fff; box-shadow:-12px 0 30px rgba(0,0,0,0.12); transition:right .28s ease, opacity .28s ease; z-index:1300; padding:22px; overflow:auto; opacity:0; }
.mobile-offcanvas.open{ right:0; opacity:1; }
.mobile-offcanvas .close-btn{ position:absolute; right:14px; top:12px; border:0; background:transparent; font-size:22px; cursor:pointer; line-height:1; color:#111; z-index:10; margin:0; }
/* center content in mobile offcanvas menu */
.mobile-offcanvas .centered{ text-align:center; }
.mobile-offcanvas .centered img{ display:block; margin:0 auto; }
/* spacing between logo and cart in offcanvas */
.mobile-offcanvas .centered + .centered{ margin-top:40px; }

/* hero mobile hidden on desktop */
.hero-mobile{ display:none; position:relative; }

/* ---------- FOOTERS ---------- */

/* Desktop footer: full-width, fixed bottom, black background */
.desktop-footer {
  position: static;
  height: 60px;
  background: #000;
  color: #fff;
  z-index: 900;
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Inner container - flexbox layout */
.desktop-footer-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 60px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

/* Phone with border */
.df-phone {
  font-family: "Asterisk Sans Variable";
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 8px 16px;
  white-space: nowrap;
  letter-spacing: 0%;
  margin-right: -10px;
}

/* Payment icons container */
.df-payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 180px;
}

.df-payment-icon {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}
.df-payment-icon[alt="mastercard"] {
  margin-left: -3px;
  height: 18px;
}
.df-payment-icon[alt="google pay"] {
  height: 28px;
}
.df-payment-icon[alt="apple pay"] {
  height: 48px;
}
.df-payment-icon[alt="visa"] {
  height: 18px;
}

/* Links container */
.df-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  margin-right: 120px;
}

.df-text {
  font-family: "Asterisk Sans Variable";
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  letter-spacing: 0%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

/* Social icons container */
.df-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 60px;
}

.df-social-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.df-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* OBZOR logo */
.df-obzor-logo {
  display: block;
}

.df-obzor-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Mobile footer: fixed bottom, black background */
.mobile-footer {
  position: static;
  height: auto;
  background: #000;
  z-index: 950;
  display: none; /* visible only on mobile via media query */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.mobile-footer-inner {
  position: relative;
  width: 100%;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top row: phone in border + socials */
.mf-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mf-phone-link {
  font-family: "Asterisk Sans Variable";
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 8px 16px;
  white-space: nowrap;
  letter-spacing: 0%;
}
.mf-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mf-social-icon {
  width: 32px;
  height: 32px;
  display: block;
}
.mf-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* White divider line */
.mf-divider {
  width: calc(100% + 48px);
  height: 1px;
  background: #fff;
  margin-left: -24px;
  margin-right: -24px;
}

/* Bottom section */
.mf-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mf-left-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* Mobile footer text styling */
.mf-text {
  font-family: "Asterisk Sans Variable";
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0%;
  white-space: normal;
}
.mf-privacy,
.mf-offer {
  width: auto;
  max-width: 200px;
}

/* Payment icons row */
.mf-payment-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
  z-index: 10;
}
.mf-payment-icon {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.mf-payment-icon[alt="mastercard"] {
  height: 10px;
  margin-left: 0;
}
.mf-payment-icon[alt="google pay"] {
  height: 20px;
}
.mf-payment-icon[alt="apple pay"] {
  height: 32px;
}
.mf-payment-icon[alt="visa"] {
  height: 12px;
  margin-right: 4px;
}

/* Right section with obzor logo */
.mf-right-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mf-obzor-logo {
  width: 70px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* responsive */
@media (min-width:769px){
  .desktop-sticky-header{ display:block; }
}

@media (max-width:768px){
  body{ padding-top:80px; }
  .hero{ display:none; }
  .desktop-sticky-header{ display:none !important; }
  .mobile-header{ display:block; }
  .hero-mobile{ display:block; width:100%; height:100vh; margin:0; padding:0; overflow:hidden; }
  .hero-mobile img{ display:block; width:100%; height:100%; object-fit:cover; }
  
  /* Mobile CTA button - адаптивная верстка с относительными единицами */
  .hero-mobile .cta {
    left: 50%;
    transform: translateX(-50%);
    width: 85.6vw; /* 321px на базовой ширине 375px */
    max-width: 321px;
    height: 9vh; /* чуть меньше высоты */
    min-height: 60px;
    font-size: 5.33vw; /* 20px на базовой ширине 375px */
    line-height: 90%;
    bottom: 25vh; /* поднята чуть выше */
    padding-bottom: 0.75vh; /* ~5px */
    border-radius: 1.5vw; /* адаптивный border-radius */
  }
  
  /* CTA button для планшета 768x1024 - опускаем ниже */
  @media (max-width: 768px) and (min-height: 1024px) {
    body { overflow-x: hidden; }
    .hero-mobile {
      height: auto !important;
      overflow: hidden !important;
      max-width: 100%;
      margin: 0 auto;
    }
    .hero-mobile img {
      height: auto !important;
      object-fit: contain !important;
      max-width: 100%;
      margin: 0 auto;
    }
    .hero-mobile .cta {
      bottom: calc(20vh + 160px); /* поднимаем на 160px выше (еще на 20px выше) */
    }
  }
  
  /* Mobile CTA arrow - удалено */
  .hero-mobile .cta::after {
    display: none !important;
  }

  :root{ --gutter: 0px; }
  html, body{ overflow-x:hidden; max-width:100vw; }
  .page{ padding-left:10px !important; padding-right:10px !important; box-sizing:border-box; width:100%; max-width:100vw; overflow-x:hidden; }
  .layout{ margin-top:0; display:flex; flex-direction:column; align-items:stretch; gap:12px; width:100%; box-sizing:border-box; }
  .catalog{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; width:100%; max-width:100%; box-sizing:border-box; margin:0; }
  .card{ width:100%; box-sizing:border-box; overflow:hidden; }
  .product-img-container{ width:100% !important; height:auto !important; aspect-ratio:1/1; box-sizing:border-box; }
  .product-img{ width:100% !important; height:100% !important; object-fit:cover; }
  .modal-controls{ --modal-ctrl-h:36px; }
  .modal-controls select{ 
    width:155px; 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    color: #111;
  }
  .modal-controls select::-webkit-appearance{ -webkit-appearance: none; appearance: none; }
  .modal-controls select::-moz-appearance{ -moz-appearance: none; }
  .modal-controls select option{ background: #fff; color: #111; }
  .modal-close{ display: block !important; position: absolute !important; right: 14px !important; top: 12px !important; z-index: 10 !important; color: #111 !important; }
  .modal-add{ margin-left:auto; width:246px; height:calc(var(--modal-ctrl-h) * 2 + 13px); }
  .mobile-offcanvas .cats li{ margin:10px 0; }
  .mobile-offcanvas .cats a{ font-size:16px; padding:8px; display:block; }

  .mobile-footer{ display:block; }
  .desktop-footer{ display:none; }

  .cart-modal .modal-dialog{ width:100%; padding:22px 16px; border-radius:10px; display:flex; flex-direction:column; }
  .cart-modal .modal-dialog #cartContent{ display:flex; flex-direction:column; flex:1; }
  #cartTitle{ font-size:22px; letter-spacing:0%; }
  .cart-list{ gap:16px; }
  .cart-item{ grid-template-columns:100px 1fr; grid-auto-rows:auto; gap:14px; align-items:flex-start; position:relative; padding:8px 0 16px 0; }
  .cart-item img{ width:100px; height:100px; }
  .cart-item .title{ font-size:16px; line-height:20px; display:flex; justify-content:space-between; align-items:center; }
  .cart-item .title .remove-btn{ width:36px; height:36px; background:#f4f4f4; border:1px solid #ddd; margin-left:10px; }
  .cart-price-remove{ display:none; }
  .cart-price{ font-weight:600; font-size:14px; white-space:nowrap; letter-spacing:0%; }
  .cart-controls{ margin-right:0; flex-wrap:nowrap; gap:10px; display:flex; align-items:center; justify-content:space-between; }
  .cart-controls .price{ font-family: "Asterisk Sans Variable"; font-weight: 600; font-style: normal; font-size: 16px; line-height: 20px; letter-spacing: 0%; white-space:nowrap; }
  .small-select, .qty-select{ width:84px; height:23px; padding:0 8px; border-radius:5px; border:1px solid #ddd; font-family:"Asterisk Sans Variable",sans-serif; font-weight:600; font-size:13px; line-height:20px; letter-spacing:0%; opacity:1; box-sizing:border-box; text-transform:uppercase; }
  .cart-bottom{ display:grid; grid-template-columns:1fr 1fr; grid-template-areas:'total total' 'clear checkout'; gap:5px; padding:0; width:100%; align-items:stretch; margin-top:auto; }
  .cart-total{ grid-area:total; width:100%; display:flex; justify-content:center; align-items:baseline; gap:8px; font-family: "Asterisk Sans Variable"; font-weight: 600; font-style: normal; font-size: 25px; line-height: 20px; letter-spacing: 0%; margin-bottom:20px; text-align:center; }
   .cart-total #cartTotal{ font-family: "Asterisk Sans Variable"; font-weight: 600; font-style: normal; font-size: 25px; line-height: 20px; letter-spacing: 0%; }
  .clear-btn{ grid-area:clear; width:100%; height:48px; padding:0 16px; border-radius:10px; font-size:13px; line-height:1; white-space:nowrap; display:flex; align-items:center; justify-content:center; margin:0; }
  .checkout-btn{ grid-area:checkout; width:100%; height:48px; padding:0 16px; border-radius:10px; font-size:13px; line-height:1; white-space:nowrap; display:flex; align-items:center; justify-content:center; margin:0; }
  .modal-dialog{ width:100%; max-width:100%; padding:16px; padding-bottom:60px; border-radius:10px; }
  .modal-layout{ grid-template-columns:1fr; gap:16px; }
  .modal-media > img{ width:100%; max-width:100%; height:auto; }
  .modal-details{ display:block; }
  .modal-controls{ margin-bottom:40px; }
  .modal-header-wrap{ position:relative; padding-right:90px; margin-bottom:12px; }
  .modal-header-wrap h2{ margin:0; word-wrap:break-word; overflow-wrap:break-word; }
  .modal-header-wrap .badge{ position:absolute; top:0; right:0; margin:0; }
  .modal-thumb-row{ 
    display:flex;
    gap:8px;
    margin:15px auto 0;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    width:calc(56px * 3 + 8px * 2);
    max-width:calc(100vw - 32px);
    padding:0;
  }
  .modal-thumb-row::-webkit-scrollbar{
    display:none;
  }
  .modal-thumb-row img{ 
    width:56px; 
    height:56px;
    flex-shrink:0;
    scroll-snap-align:center;
  }
  .modal-desc{ margin-top:12px; }
  .modal-price {
    margin-bottom: 40px;
  }
  .modal-controls select, .qty-select, .small-select {
    width: 100px;
    min-width: 80px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding-right: 8px;
  }
  .modal-controls select::-ms-expand {
    display: none;
  }
  .modal-controls select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    color: #111;
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
  }
  #cartFormHeader {
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 25px !important;
  }
  #cartFormWrap {
    margin-bottom: 25px !important;
  }
}

@media (min-width: 769px) {
  .cart-controls .small-select {
    width: 110px;
    min-width: 90px;
    padding-right: 8px;
  }
}

@media (min-width: 769px) {
  .cart-modal .clear-btn,
  .cart-modal .checkout-btn {
    width: 287px;
  }
}
.cart-total {
  margin-bottom: 40px !important;
}

@media (min-width: 769px) {
  #modalSize, #modalColor {
    width: 115px;
    min-width: 100px;
    padding-right: 8px;
  }
}

@media (max-width: 768px) {
  .qty-select {
    width: 36px;
    min-width: 28px;
    padding-right: 2px;
  }
}

@media (min-width:769px){
  .mobile-footer{ display:none; }
  .desktop-footer{ display:block; }
}

/* Мобильный футер для разрешения 720x1100 */
@media (max-width: 720px) and (min-height: 1100px) {
  .mobile-footer{ display:block !important; }
  .desktop-footer{ display:none !important; }
}

/* Мобильный футер для разрешения 820x1180 */
@media (max-width: 820px) and (min-height: 1180px) {
  .mobile-footer{ display:block !important; }
  .desktop-footer{ display:none !important; }
}

/* Medium screens (MacBook, etc) - adjust gutter for centering */
@media (max-width:1600px) and (min-width:1201px){
  :root{ --gutter: 10px; }
  .hero{ width:100%; margin-left:0; margin-right:0; }
}

/* Tablet-friendly desktop footer layout: switch to flex and fluid sizes */
@media (max-width:1200px) and (min-width:769px){
  /* prevent banner shift and overflow on tablets */
  :root{ --gutter: 24px; }
  /* Показываем мобильный баннер на планшетах */
  body{ padding-top:0; overflow-x: hidden; max-width: 100vw; }
  html { overflow-x: hidden; }
  .page { max-width: 100%; width: 100%; box-sizing: border-box; overflow-x: hidden; }
  .hero{ display:none !important; }
  .hero-mobile{ display:block !important; width:100%; max-width:100vw; height:auto; margin:0 auto; padding:0; overflow:hidden; box-sizing: border-box; }
  .hero-mobile img{ display:block; width:100%; max-width:100%; height:auto; object-fit:contain; margin:0 auto; box-sizing: border-box; }
  .hero .cta{ display:none !important; }
  .hero-mobile .cta{ 
    display:flex !important;
    left: 50%;
    transform: translateX(-50%);
    width: 85.6vw;
    max-width: 321px;
    height: 9vh;
    min-height: 60px;
    font-size: 5.33vw;
    line-height: 90%;
    bottom: calc(25vh + 100px); /* поднимаем на 100px выше (на 20px выше) */
    padding-bottom: 0.75vh;
    border-radius: 1.5vw;
  }
  .layout{ display:flex; flex-direction:column; align-items:center; gap:24px; max-width: 100%; box-sizing: border-box; }
  .catalog{ grid-template-columns: repeat(2, 1fr); gap:24px; max-width: 100%; box-sizing: border-box; margin:0 auto; }
  .sidebar{ max-width: 100%; box-sizing: border-box; }
  .card{ max-width: 100%; box-sizing: border-box; }
  .product-img-container{ max-width: 100%; width: 100%; box-sizing: border-box; }
  .product-img{ max-width: 100%; width: 100%; height: auto; box-sizing: border-box; }
  .desktop-footer { 
    height:auto;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    position: relative;
  }
  .desktop-footer-inner{
    height:auto;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding:6px 12px;
    gap:8px;
    flex-wrap:wrap;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Уменьшаем размеры элементов футера для планшетов */
  .df-phone {
    font-size: 11px;
    line-height: 14px;
    padding: 5px 10px;
    margin-right: -6px;
  }
  
  .df-payment-icons {
    gap: 6px;
    margin-right: 50px;
  }
  
  .df-payment-icon {
    height: 16px;
  }
  
  .df-payment-icon[alt="visa"] {
    height: 24px;
  }
  
  .df-links {
    gap: 2px;
    margin-right: 40px;
  }
  
  .df-text {
    font-size: 11px;
    line-height: 14px;
  }
  
  .df-social-icons {
    gap: 6px;
    margin-right: 20px;
  }
  
  .df-social-icon {
    width: 20px;
    height: 20px;
  }
  
  .df-obzor-logo img {
    height: 20px;
  }
}

/* Desktop widths below 1920px: also use flex to avoid horizontal overflow */
@media (max-width:1919px) and (min-width:1201px){
  .desktop-footer { height:auto; }
  .desktop-footer-inner{
    height:auto;
    padding:10px 30px;
    gap:30px;
  }
}

/* Планшеты среднего размера (1024px - 1200px) - уменьшаем отступы */
@media (max-width:1200px) and (min-width:1024px){
  .desktop-footer { 
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    position: relative;
  }
  .desktop-footer-inner{
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding:6px 12px;
    gap:8px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .df-phone {
    font-size: 11px;
    line-height: 14px;
    padding: 5px 10px;
    margin-right: -6px;
  }
  
  .df-payment-icons {
    gap: 6px;
    margin-right: 50px;
  }
  
  .df-payment-icon {
    height: 16px;
  }
  
  .df-payment-icon[alt="visa"] {
    height: 24px;
  }
  
  .df-links {
    gap: 2px;
    margin-right: 40px;
  }
  
  .df-text {
    font-size: 11px;
    line-height: 14px;
  }
  
  .df-social-icons {
    gap: 6px;
    margin-right: 20px;
  }
  
  .df-social-icon {
    width: 20px;
    height: 20px;
  }
  
  .df-obzor-logo img {
    height: 20px;
  }
}

/* CTA button для разрешения 1024x1366 - делаем шире и поднимаем */
@media (min-width: 1024px) and (max-width: 1024px) and (min-height: 1366px) and (max-height: 1366px) {
  .hero-mobile .cta {
    width: 50vw !important;
    max-width: 512px !important;
    bottom: calc(25vh + 140px) !important; /* поднимаем на 40px выше (было 100px, стало 140px) */
  }
}

/* Tablet banner adjustments - показываем мобильный баннер на планшетах */
@media (max-width:1200px) and (min-width:769px){
  html { overflow-x: hidden; max-width: 100vw; }
  body { overflow-x: hidden; max-width: 100vw; }
  .page { padding-left:var(--gutter); padding-right:var(--gutter); overflow-x: hidden; max-width: 100%; width: 100%; box-sizing: border-box; }
  .hero{ display:none !important; }
  .hero-mobile{ display:block !important; width:100%; max-width:100vw; height:auto; margin:0 auto; padding:0; overflow:hidden; box-sizing: border-box; }
  .hero-mobile img{ display:block; width:100%; max-width:100%; height:auto; object-fit:contain; margin:0 auto; box-sizing: border-box; }
  .hero .cta{ display:none !important; }
  .hero-mobile .cta{ 
    display:flex !important;
    left: 50%;
    transform: translateX(-50%);
    width: 85.6vw;
    max-width: 321px;
    height: 9vh;
    min-height: 60px;
    font-size: 5.33vw;
    line-height: 90%;
    bottom: calc(25vh + 100px); /* поднимаем на 100px выше (на 20px выше) */
    padding-bottom: 0.75vh;
    border-radius: 1.5vw;
  }
  .layout{ max-width: 100%; box-sizing: border-box; }
  .catalog{ max-width: 100%; box-sizing: border-box; }
  .sidebar{ max-width: 100%; box-sizing: border-box; }
  .card{ max-width: 100%; box-sizing: border-box; }
  .product-img-container{ max-width: 100%; width: 100%; box-sizing: border-box; }
  .product-img{ max-width: 100%; width: 100%; height: auto; box-sizing: border-box; }
  
  /* Уменьшаем отступы футера для всех планшетов */
  .desktop-footer { 
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    position: relative;
  }
  .desktop-footer-inner{
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding:6px 12px;
    gap:8px;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: wrap;
  }
  
  .df-phone {
    font-size: 11px;
    line-height: 14px;
    padding: 5px 10px;
    margin-right: -6px;
    flex-shrink: 0;
  }
  
  .df-payment-icons {
    gap: 6px;
    margin-right: 50px;
    flex-shrink: 0;
  }
  
  .df-payment-icon {
    height: 16px;
    max-width: 100%;
  }
  
  .df-payment-icon[alt="visa"] {
    height: 24px;
  }
  
  .df-links {
    gap: 2px;
    margin-right: 40px;
    flex-shrink: 0;
  }
  
  .df-text {
    font-size: 11px;
    line-height: 14px;
  }
  
  .df-social-icons {
    gap: 6px;
    margin-right: 20px;
    flex-shrink: 0;
  }
  
  .df-social-icon {
    width: 20px;
    height: 20px;
    max-width: 100%;
  }
  
  .df-obzor-logo img {
    height: 20px;
    max-width: 100%;
  }
}

.desktop-footer, .mobile-footer {
  margin-top: 30px !important;
}

@media (min-width: 769px) {
  #cartFormHeader {
    margin-left: 40px;
  }
}

@media (min-width: 769px) {
  .modal .modal-price {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

.cart-toggle {
  display: flex;
  width: 100%;
  border: 1px solid #111;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #fff;
}
.cart-toggle:last-of-type {
  margin-bottom: 0;
}
.cart-toggle-btn {
   flex: 1 1 0;
   background: #fff;
   color: #111;
   border: none;
   outline: none;
   font-family: "Asterisk Sans Variable", sans-serif;
   font-weight: 600;
   font-style: normal;
   font-size: 14px;
   line-height: 20px;
   letter-spacing: 0%;
   padding: 0;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: background 0.2s, color 0.2s;
   text-transform: uppercase;
 }
.cart-toggle-btn.active {
  background: #111;
  color: #fff;
}
.cart-toggle-divider {
  width: 2px;
  background: #111;
  height: 100%;
}

/* Уменьшение шрифта для переключателей доставки и оплаты на мобильных */
@media (max-width: 768px) {
  .cart-toggle-btn {
    font-size: 12px;
    line-height: 18px;
  }
}

/* Responsive reduction for screens below 414px */
@media (max-width:414px){
  /* Small screen CTA button - адаптивная верстка */
  .hero-mobile .cta {
    width: 85.6vw;
    height: 9vh;
    min-height: 55px;
    font-size: 5.8vw; /* немного больше для маленьких экранов */
    bottom: 25vh;
  }
  
  /* Small screen CTA arrow - удалено */
  .hero-mobile .cta::after {
    display: none !important;
  }
}
/* Footer and CTA adjustments for 1500-1700px */
@media screen and (min-width: 1500px) and (max-width: 1700px) {
  .hero .cta {
    margin-right: -22px !important; /* уменьшаем отступ справа на 22px */
  }
}

/* Footer and CTA adjustments for 1440x900 */
@media screen and (min-width: 1400px) and (max-width: 1500px) {
  .hero .cta {
    right: 17.4% !important;
    margin-right: -22px !important;
    max-width: calc(100% - 17.4% - clamp(20px, 2vw, 40px) + 22px) !important; /* ограничиваем ширину, чтобы кнопка не съезжала влево */
  }
  
  /* Reduce footer spacing */
  .desktop-footer-inner {
    gap: 10px;
    padding: 0 20px;
  }
  
  .df-payment-icons {
    gap: 8px;
    margin-right: 80px;
  }
  
  .df-links {
    margin-right: 60px;
  }
  
  .df-social-icons {
    gap: 8px;
    margin-right: 30px;
  }
}

/* Footer and CTA adjustments for 1280x800 */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .hero .cta {
    right: 16.5% !important;
    margin-right: -28px !important;
    max-width: calc(100% - 16.5% - clamp(20px, 2vw, 40px) + 28px) !important; /* ограничиваем ширину, чтобы кнопка не съезжала влево */
  }
  
  /* Reduce footer spacing */
  .desktop-footer-inner {
    gap: 10px;
    padding: 0 20px;
  }
  
  .df-payment-icons {
    gap: 8px;
    margin-right: 80px;
  }
  
  .df-links {
    margin-right: 60px;
  }
  
  .df-social-icons {
    gap: 8px;
    margin-right: 30px;
  }
}

@media (max-width:1400px){
  :root { --gutter: 25px; }
}

/* Admin-controlled visibility overrides — highest specificity */
.banner-hidden,
.banner-hidden.hero-mobile { display:none !important; }
.cta-hidden { display:none !important; }
