
/* ============ СВЕТЛАЯ ТЕМА ============ */

:root {

  --bg: #faf8f5; --bg-elevated: #ffffff; --bg-card: #ffffff; --bg-input: #f5f2ed;

  --text: #2d2a26; --text-muted: #8a8580; --border: #e8e3dc;

  --accent: #b98a4e; --accent-hover: #a67a41;

  --shadow: 0 2px 12px rgba(60,50,30,.08); --shadow-lg: 0 12px 40px rgba(60,50,30,.14);

  --radius: 12px; --font: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  --font-display: 'Playfair Display',Georgia,serif;

}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

img { max-width: 100%; }

a { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

[hidden] { display: none !important; }

*::-webkit-scrollbar { width: 10px; height: 10px; }

*::-webkit-scrollbar-track { background: var(--bg); }

*::-webkit-scrollbar-thumb { background: #d8d2c8; border-radius: 5px; }

* { scrollbar-width: thin; scrollbar-color: #d8d2c8 var(--bg); }

/* ============ КНОПКИ ============ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: none; border-radius: var(--radius); font-size: .95rem; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; font-family: var(--font); }

.btn--primary { background: var(--accent); color: #fff; }

.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }

.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: .85rem; }

.btn--full { width: 100%; }

/* ============ ШАПКА ============ */

header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,248,245,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }

header .container, .header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }

.header__logo { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); text-decoration: none; font-weight: 600; }

.header__nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

.header__nav a, .nav-link { color: var(--text); text-decoration: none; font-size: .9rem; transition: color .2s; }

.header__nav a:hover, .nav-link:hover { color: var(--accent); }

.header__cart { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--font); }

.header__cart:hover { border-color: var(--accent); color: var(--accent); }

.cart-count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; padding: 0 6px; }

/* ============ HERO ============ */

.hero { margin-top: 64px; position: relative; overflow: hidden; background: linear-gradient(160deg,#faf8f5,#f3efe7); }

.hero__slider { position: relative; height: 86vh; min-height: 620px; }

.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease; display: flex; align-items: center; justify-content: center; gap: 6%; padding: 60px 9% 110px; }

.hero__slide.active { opacity: 1; visibility: visible; }

.hero__art { flex: 0 1 52%; display: flex; align-items: center; justify-content: center; }

.hero__art img { max-width: 100%; max-height: calc(86vh - 220px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-lg); }

.hero__overlay { flex: 0 1 38%; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

.hero__slide-title { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; margin: 0; line-height: 1.15; }

.hero__slide-meta { color: var(--text-muted); margin: 0; }

.hero__price { color: var(--accent); font-size: 1.7rem; font-weight: 600; }

.hero__dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }

.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: #d8d2c8; cursor: pointer; padding: 0; transition: all .2s; }

.hero__dot.active { background: var(--accent); transform: scale(1.25); }

.hero__nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; box-shadow: var(--shadow); transition: all .2s; }

.hero__nav:hover { background: #fff; color: var(--accent); }

.hero__nav--prev { left: 24px; }

.hero__nav--next { right: 24px; }

/* ============ СЕКЦИИ ============ */

section { padding: 80px 0; }

.section-title, .section__title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; margin: 0 0 12px; text-align: center; }

.section-subtitle, .section__subtitle { color: var(--text-muted); text-align: center; margin: 0 auto 48px; max-width: 700px; }

/* ============ О ХУДОЖНИКЕ ============ */

.about { background: var(--bg-elevated); }

.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }

.about__image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }

.about__text h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin: 0 0 20px; }

.about__text p, #about-text-content { color: var(--text-muted); line-height: 1.85; }

/* ============ МАГАЗИН ============ */

.shop__grid, #products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 28px; }

.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .25s; display: flex; flex-direction: column; }

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #f3efe7; }

.product-card__media img, .product-card__image { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.product-card__body, .product-card > div:last-child { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }

.product-card__title, .product-card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }

.product-card__meta { color: var(--text-muted); font-size: .85rem; }

.product-card__price { color: var(--accent); font-size: 1.25rem; font-weight: 700; }

/* ============ МАСТЕР-КЛАССЫ ============ */

.masterclasses-intro { background: linear-gradient(160deg,#f3efe7,#faf8f5); text-align: center; }

.mc__grid, #mc-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 28px; }

.mc__grid > *, #mc-grid > * { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s; }

.mc__grid > *:hover, #mc-grid > *:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.mc__grid img, #mc-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ============ ОТЗЫВЫ ============ */

.reviews { background: var(--bg-elevated); }

.reviews__grid, #reviews-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }

.reviews__grid > *, #reviews-grid > *, .review-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }

.review-card__author { font-weight: 600; margin-bottom: 8px; }

.review-card__text { color: var(--text-muted); }

/* ============ ДОСТАВКА ============ */

.delivery-section { padding: 70px 0; background: var(--bg-elevated); border-top: 1px solid var(--border); }

.delivery-text { color: var(--text-muted); line-height: 1.85; max-width: 820px; margin: 0 auto; text-align: center; }

/* ============ FOOTER ============ */

.footer { background: #2d2a26; color: #cfc9c0; padding: 44px 0; text-align: center; }

.footer a { color: var(--accent); }

.footer p { margin: 6px 0; }

/* ============ МОДАЛКА ТОВАРА ============ */

.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }

.modal__overlay { position: absolute; inset: 0; background: rgba(45,42,38,.45); backdrop-filter: blur(3px); }

.modal__content { position: relative; z-index: 1; background: var(--bg-elevated); border-radius: 16px; max-width: 1100px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); }

.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--bg-input); color: var(--text); font-size: 1.1rem; cursor: pointer; }

.modal__close:hover { background: var(--border); }

.modal__body { padding: 0; }

#product-modal .modal__content { overflow: hidden; display: flex; flex-direction: column; }

#product-modal .modal__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 32px; padding: 28px 32px; overflow: hidden; height: 100%; }

.modal__image-wrap { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; background: #f3efe7; border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 320px; }

.modal__image { max-width: 100%; max-height: calc(92vh - 220px); width: auto; height: auto; object-fit: contain; transition: transform .15s ease; user-select: none; -webkit-user-drag: none; touch-action: none; cursor: zoom-in; }

.modal__thumbs { grid-column: 1; grid-row: 2; display: flex; gap: 10px; padding: 14px 0 0; overflow-x: auto; }

.modal__thumb { position: relative; width: 76px; height: 76px; flex: none; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }

.modal__thumb.active { border-color: var(--accent); }

.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-zoom { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; }

.modal__thumb:hover .thumb-zoom { display: flex; }

.modal__info { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; overflow: hidden; }

.modal__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; margin: 0; }

.modal__meta { color: var(--text-muted); margin: 0; }

.modal__desc { color: var(--text-muted); line-height: 1.7; margin: 0; overflow-y: auto; max-height: 220px; padding-right: 6px; }

.modal__price { color: var(--accent); font-size: 1.7rem; font-weight: 700; }

.modal__cart-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

.zoom-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 8px; background: rgba(255,255,255,.9); border-radius: 10px; z-index: 5; box-shadow: var(--shadow); }

.zoom-btn { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: .8rem; cursor: pointer; }

.zoom-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ ЛАЙТБОКС ============ */

.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(20,18,15,.94); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }

.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; border-radius: 6px; }

.lightbox__close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* ============ ФОРМЫ / CHECKOUT ============ */

.modal--checkout .modal__content { max-width: 480px; overflow-y: auto; }

.form-group { margin-bottom: 16px; }

.form-group label { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--text-muted); }

.form-input, .form-textarea { width: 100%; padding: 11px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: .92rem; font-family: var(--font); }

.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); background: #fff; }

.checkout-total { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin: 14px 0; }

.delivery-note { color: var(--text-muted); font-size: .8rem; margin: 0 0 14px; line-height: 1.55; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--text-muted); margin: 4px 0 12px; cursor: pointer; }

.consent input { margin-top: 2px; accent-color: var(--accent); flex: none; }

.suggest { position: relative; z-index: 10; }

.suggest__item { padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-top: none; cursor: pointer; font-size: .85rem; }

.suggest__item:hover { background: var(--bg-input); }

.success-text { color: var(--text-muted); margin: 0 0 14px; }

/* ============ ТОСТЫ ============ */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1300; display: flex; flex-direction: column; gap: 8px; }

.toast { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 10px; font-size: .85rem; color: var(--text); box-shadow: var(--shadow-lg); max-width: 340px; display: flex; flex-direction: column; gap: 8px; animation: toastIn .3s ease; }

.toast__action { background: none; border: none; color: var(--accent); font-size: .8rem; cursor: pointer; text-align: left; padding: 0; font-family: var(--font); }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============ КОРЗИНА ============ */

.cart-panel { position: fixed; top: 0; right: 0; width: 400px; max-width: 100%; height: 100vh; background: var(--bg-elevated); box-shadow: -8px 0 32px rgba(60,50,30,.15); z-index: 1100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }

.cart-panel.open { transform: translateX(0); }

.cart-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }

.cart-panel__header h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }

.cart-panel__close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }

.cart-panel__items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.cart-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }

.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

.cart-item__info { flex: 1; font-size: .85rem; }

.cart-item__remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }

.cart-panel__footer { padding: 20px 24px; border-top: 1px solid var(--border); }

.cart-panel__total { margin-bottom: 14px; font-size: 1rem; }

/* ============ АДАПТИВ ============ */

@media (max-width: 1024px) {

  .about__grid { grid-template-columns: 1fr; gap: 36px; }

  #product-modal .modal__body { grid-template-columns: 1fr; overflow-y: auto; }

  .modal__info { grid-column: 1; grid-row: auto; overflow: visible; }

  #product-modal .modal__content { overflow-y: auto; }

}

@media (max-width: 860px) {

  .hero__slider { height: auto; min-height: 0; }

  .hero__slide { position: relative; inset: auto; display: none; flex-direction: column; gap: 22px; padding: 90px 6% 80px; }

  .hero__slide.active { display: flex; }

  .hero__art img { max-height: 44vh; }

  .hero__overlay { align-items: center; text-align: center; }

  .hero__slide-title { font-size: 1.7rem; }

  .hero__nav { width: 46px; height: 46px; margin-top: -23px; font-size: 1.3rem; }

  .hero__nav--prev { left: 10px; }

  .hero__nav--next { right: 10px; }

  .shop__grid, #products-grid { grid-template-columns: 1fr !important; gap: 16px; }

  section { padding: 56px 0; }

  .section-title, .section__title { font-size: 1.7rem; }

  .cart-panel { width: 100%; }

  header .container, .header__inner { justify-content: center; }

}

@media (max-width: 480px) {

  .header__nav { gap: 14px; font-size: .8rem; justify-content: center; }

  .hero__slide-title { font-size: 1.4rem; }

  .hero__price { font-size: 1.3rem; }

}

/* === FIX v32: шапка и карточки === */

header { padding-left: 28px; padding-right: 28px; }

header .container, .header__inner { max-width: 1400px; padding-left: 0; padding-right: 0; }

.product-card__body { padding: 20px 22px 22px; gap: 8px; }

.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }

.product-card__price { display: inline-block; margin-right: 14px; }

.product-card__link, .product-card__body a { color: var(--text-muted); font-size: .85rem; text-decoration: none; white-space: nowrap; transition: color .2s; }

.product-card__link:hover, .product-card__body a:hover { color: var(--accent); }

.product-card__title { min-height: 1.4em; }

/* === FIX v33: картины целиком + текст слева === */

.product-card__image { display: flex; align-items: center; justify-content: center; background: #f3efe7; }

.product-card__image img { width: 100%; aspect-ratio: 4/5; object-fit: contain !important; }

.section-title, .section__title { text-align: left; }

.section-subtitle, .section__subtitle { text-align: left; margin-left: 0; margin-right: 0; }

.delivery-text { text-align: left; margin: 0; }

.about__text h2 { text-align: left; }

.footer { text-align: left; }

.footer .container p { text-align: left; }

.hero__overlay { align-items: flex-start; text-align: left; }

.masterclasses-intro { text-align: left; }

.masterclasses-intro .section-title, .masterclasses-intro .section-subtitle { text-align: left; }

@media (max-width: 860px) {

  .hero__overlay { align-items: flex-start; text-align: left; }

  .section-title, .section__title, .section-subtitle, .section__subtitle { text-align: left; }

}

/* === FIX v34: гарантированный contain и левый текст === */

.product-card__image img, .product-card img, #products-grid img, #products-grid .product-card__image img {

  object-fit: contain !important;

  background: #f3efe7;

}

h1, h2, h3, .section-title, .section__title, .section-subtitle, .section__subtitle,

.delivery-text, .about__text, .about__text h2, #about-text-content, .footer, .footer p,

.masterclasses-intro, .hero__overlay, .hero__slide-title, .hero__slide-meta {

  text-align: left !important;

}

.section-subtitle, .section__subtitle { margin-left: 0 !important; }

/* === SOLD усиление v37 === */

.product-card__image { position: relative !important; }

.sold-badge { 

  position: absolute !important; 

  top: 14px !important; 

  left: 14px !important; 

  background: #2d2a26 !important; 

  color: #f5f2ed !important; 

  font-size: .75rem !important; 

  letter-spacing: .12em !important; 

  padding: 6px 14px !important; 

  border-radius: 999px !important; 

  text-transform: uppercase !important; 

  z-index: 10 !important;

  font-weight: 600 !important;

}

.product-card--sold img { filter: saturate(.7) !important; opacity: .85 !important; }

.sold-banner { 

  background: var(--bg-input) !important; 

  border: 1px dashed var(--border) !important; 

  color: var(--text-muted) !important; 

  border-radius: 10px !important; 

  padding: 14px 18px !important; 

  text-align: center !important; 

  font-size: .95rem !important;

}

/* === FIX v48: отступы в модалке оформления заказа === */

.modal--checkout .modal__content { max-width: 520px; padding: 32px 28px 28px; }

.modal--checkout .modal__close { top: 12px; right: 12px; }

@media (max-width: 600px) {

  .modal--checkout .modal__content { padding: 24px 18px 20px; }

}

/* === FIX v49: тосты сверху по центру — не перекрывают кнопку заказа === */

.toast-container { top: 80px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); align-items: center; z-index: 1400; }

/* === PAGES v50: разделение страниц === */

body[data-page="home"] .shop,

body[data-page="home"] .masterclasses-intro,

body[data-page="home"] .masterclasses { display: none; }

body[data-page="shop"] .hero,

body[data-page="shop"] .about,

body[data-page="shop"] .home-banners,

body[data-page="shop"] .masterclasses-intro,

body[data-page="shop"] .masterclasses,

body[data-page="shop"] .reviews,

body[data-page="shop"] .delivery-section { display: none; }

body[data-page="masterclasses"] .hero,

body[data-page="masterclasses"] .about,

body[data-page="masterclasses"] .home-banners,

body[data-page="masterclasses"] .shop,

body[data-page="masterclasses"] .reviews,

body[data-page="masterclasses"] .delivery-section { display: none; }

.home-banners { padding: 60px 0; }

.banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.banner { display: flex; flex-direction: column; gap: 14px; padding: 44px 40px; border-radius: 16px; text-decoration: none; color: #fff; transition: transform .25s, box-shadow .25s; }

.banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.banner h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; margin: 0; }

.banner p { margin: 0; opacity: .85; line-height: 1.6; font-size: .95rem; }

.banner__btn { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .95rem; }

.banner--shop { background: linear-gradient(140deg, #b98a4e, #8f6a3a); }

.banner--mc { background: linear-gradient(140deg, #2d2a26, #4a443c); }

@media (max-width: 860px) { .banners-grid { grid-template-columns: 1fr; } }

/* === MC v51: полная стилизация карточек мастер-классов === */

.mc-card { display: flex; flex-direction: column; }

.mc-card__image { position: relative; overflow: hidden; background: #f3efe7; }

.mc-card__image img { width: 100% !important; aspect-ratio: 16/10 !important; object-fit: cover !important; display: block; }

.mc-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(45,42,38,.85); color: #fff; font-size: .72rem; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }

.mc-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.mc-card__play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: #2d2a26; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }

.mc-card__info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.mc-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 0; line-height: 1.4; }

.mc-card__desc { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.6; flex: 1; }

.mc-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }

.mc-card__price { font-weight: 700; color: var(--accent); font-size: 1.05rem; white-space: nowrap; }

/* === FOOTER links v52 === */

.footer__links { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 10px; font-size: .82rem; }

.footer__links a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s; }

.footer__links a:hover { color: var(--accent); }

.footer__links span { color: var(--border); }

/* === FIX v63: тосты вниз-слева === */

.toast-container { top: auto; bottom: 24px; left: 24px; right: auto; transform: none; align-items: flex-start; }

@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* === FIX v64: мобильная корзина === */

.cart-panel { overflow: hidden; }

.cart-panel__items, .cart-panel > div:first-of-type { overflow-y: auto; flex: 1; min-height: 0; }

.cart-panel .btn--full { flex: none; position: relative; z-index: 5; }

/* === FIX v65: миниатюры горизонтально на мобильных === */

@media (max-width: 860px) {

  #product-modal .modal__body { display: flex; flex-direction: column; overflow-y: auto; height: auto; }

  #product-modal .modal__image-wrap { order: 1; min-height: 240px; }

  #product-modal .modal__thumbs { display: flex !important; flex-direction: row !important; order: 2; overflow-x: auto !important; overflow-y: hidden !important; padding: 12px 0 0; gap: 10px; }

  #product-modal .modal__thumb { flex: 0 0 72px !important; width: 72px !important; height: 72px !important; margin: 0 !important; position: relative; }

  #product-modal .modal__thumb img { width: 100% !important; height: 100% !important; object-fit: contain !important; background: #f3efe7; }

  #product-modal .modal__info { order: 3; }

}

/* === FIX v67: кнопка корзины на карточке товара === */

.product-card__actions { display: flex; align-items: center; gap: 12px; }

.product-card__cart-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; padding: 0; }

.product-card__cart-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.05); }

.product-card__cart-btn:disabled { opacity: .4; cursor: not-allowed; }

/* === FIX v72: миниатюры в карточках магазина === */

.product-card__thumbs { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; gap: 4px; justify-content: center; z-index: 2; }

.product-card__thumbs img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; border: 2px solid rgba(255,255,255,.8); cursor: pointer; transition: all .2s; }

.product-card__thumbs img:hover { transform: scale(1.1); border-color: var(--accent); }

.product-card__thumbs img.active { border-color: var(--accent); }

.product-card__image { position: relative; }

/* === Фильтры магазина === */

.shop__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }

.shop__filters .filter-group { display: flex; flex-direction: column; gap: 6px; }

.shop__filters .filter-group label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.shop__filters select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: .9rem; cursor: pointer; transition: border-color .2s; }

.shop__filters select:focus { outline: none; border-color: var(--accent); }

.shop__filters select:hover { border-color: var(--accent); }

@media (max-width: 600px) { .shop__filters { grid-template-columns: 1fr; padding: 16px; } }

/* === Tablet breakpoint === */

@media (min-width: 641px) and (max-width: 1024px) {

  .shop__grid, #products-grid { grid-template-columns: repeat(2, 1fr) !important; }

}

/* === FIX v96: миниатюры не обрезаются === */

.product-card__thumbs img { object-fit: contain !important; background: #fff; }

.modal__thumb img { object-fit: contain !important; background: #f3efe7; }

/* === FIX v99: кнопка оформления всегда доступна на мобильных === */

@media (max-width: 640px) {

  .cart-panel { display: flex; flex-direction: column; width: 100%; max-width: 100%; height: 100%; height: 100dvh; top: 0; right: 0; border-radius: 0; }

  .cart-panel__items { flex: 1; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }

  .cart-panel__footer { position: sticky; bottom: 0; z-index: 10; background: var(--bg-card); border-top: 1px solid var(--border); padding: 14px 16px; flex-shrink: 0; }

  .cart-panel__footer .btn { width: 100%; }

  .modal--checkout .modal__content { max-height: 92dvh; overflow-y: auto; }

}

/* === FIX v101: checkout модалка выше корзины === */

.modal--checkout { z-index: 3000 !important; }

.modal--checkout .modal__overlay { z-index: 1; }

.modal--checkout .modal__content { z-index: 2; }

/* === FIX v102: стабильные карточки без мерцания === */

.product-card__image { position: relative; aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(110deg, #f3efe7 8%, #eae4d8 18%, #f3efe7 33%); background-size: 200% 100%; animation: cardShimmer 1.4s linear infinite; }

@keyframes cardShimmer { to { background-position: -200% 0; } }

.product-card__image > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s ease; }

.product-card__image > img:first-child.loaded { opacity: 1; }

.product-card__image { animation: none; background: #f3efe7; }

.product-card__image:has(> img:not(.loaded)) { background: linear-gradient(110deg, #f3efe7 8%, #eae4d8 18%, #f3efe7 33%); background-size: 200% 100%; animation: cardShimmer 1.4s linear infinite; }

/* === FIX v103: плавное переключение фото в карточках === */

.product-card__image > img:first-child { transition: opacity .3s ease; }

.product-card__thumbs img { transition: all .2s ease, border-color .15s ease; }

/* === FIX v104: стабильная модалка без прыжков размера === */

.modal__image-wrap { height: min(66vh, 640px) !important; width: 100%; display: flex !important; align-items: center; justify-content: center; background: #f3efe7; border-radius: 10px; overflow: hidden; }

.modal__image { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain !important; }

@media (max-width: 860px) {

  .modal__image-wrap { height: min(48vh, 460px) !important; }

}

/* === FIX v107: быстрый fade в модалке === */

/* === FIX v108: плавное переключение фото в модалке === */

/* ============ 3D ЭФФЕКТ ДЛЯ КАРТОЧЕК НА ГЛАВНОЙ ============ */

.shop__grid .product-card {

  perspective: 1000px;

  transform-style: preserve-3d;

}

.shop__grid .product-card:hover {

  transform: rotateY(8deg) rotateX(5deg) translateY(-8px);

  box-shadow: -12px 12px 30px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);

}

.shop__grid .product-card img {

  transition: transform 0.4s ease;

}

.shop__grid .product-card:hover img {

  transform: scale(1.05);

}

/* ============ HERO 3D COVER-FLOW (Apple style) ============ */

#hero-slider.hg-root { position: relative; height: min(80vh, 760px); min-height: 440px; overflow: hidden; perspective: 1500px; perspective-origin: 50% 42%; }

.hg-stage { position: absolute; inset: 0; transform-style: preserve-3d; }

.hg-slide { position: absolute; left: 50%; top: 46%; width: clamp(240px, 36vmin, 430px); aspect-ratio: 4/5; margin-left: calc(clamp(240px, 36vmin, 430px) / -2); margin-top: calc(clamp(240px, 36vmin, 430px) * 1.25 / -2); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.16); cursor: pointer; transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .65s, box-shadow .65s; }

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

.hg-slide.active { box-shadow: 0 34px 90px rgba(0,0,0,.30); }

.hg-shine { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 58%); opacity: 0; transition: opacity .5s; pointer-events: none; }

.hg-slide.active:hover .hg-shine { opacity: 1; }

.hg-glass { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(560px, 92%); padding: 22px 28px; border-radius: 24px; background: rgba(255,255,255,.55); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 50px rgba(0,0,0,.18); z-index: 200; text-align: center; }

.hg-glass h3 { margin: 0 0 6px; font-size: 1.35rem; }

.hg-glass__meta { color: var(--text-muted); font-size: .9rem; margin: 0 0 8px; }

.hg-glass__price { color: var(--accent); font-weight: 700; font-size: 1.45rem; margin-bottom: 8px; }

.hg-glass__desc { color: var(--text-muted); font-size: .95rem; margin: 0 0 12px; max-height: 6.5em; overflow: auto; }

.hg-glass .btn { display: inline-block; }

.hg-glass__close { position: absolute; top: 10px; right: 12px; border: none; background: rgba(0,0,0,.08); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 1.05rem; line-height: 1; }

.hg-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .12em; color: var(--text-muted); z-index: 150; }

.hg-nav .hero__nav { z-index: 210; }

/* ============ HERO GLASS v2: не перекрываем картину ============ */

@media (min-width: 901px) {

  .hg-glass { left: auto; right: 4%; bottom: 6%; top: auto; transform: none; width: min(380px, 30vw); text-align: left; }

  .hg-glass h3 { font-size: 1.45rem; }

}

@media (max-width: 900px) {

  #hero-slider.hg-root { height: min(88vh, 640px); min-height: 400px; }

  .hg-slide { top: 36%; width: clamp(200px, 50vmin, 340px); margin-left: calc(clamp(200px, 50vmin, 340px) / -2); margin-top: calc(clamp(200px, 50vmin, 340px) * 1.25 / -2); }

  .hg-glass { bottom: 44px; padding: 14px 18px 16px; border-radius: 18px; width: min(480px, 94%); }

  .hg-glass h3 { font-size: 1.05rem; margin-bottom: 4px; }

  .hg-glass__meta { font-size: .8rem; margin-bottom: 6px; }

  .hg-glass__price { font-size: 1.15rem; margin-bottom: 6px; }

  .hg-glass__desc { max-height: 4.2em; font-size: .85rem; margin-bottom: 10px; }

  .hg-glass .btn { padding: 8px 14px; font-size: .85rem; }

  .hg-glass__close { width: 26px; height: 26px; top: 8px; right: 8px; }

  .hg-counter { bottom: 12px; }

}

/* ============ HERO v3: пропорции как у оригинала ============ */

.hg-slide { width: auto; height: clamp(260px, 48vmin, 540px); aspect-ratio: var(--ar, 4 / 5); margin: 0; }

@media (max-width: 900px) {

  .hg-slide { height: clamp(170px, 38vmin, 300px); }

}

/* ============ МАГАЗИН: мягкий hover без искажений ============ */

.shop__grid .product-card, #products-grid .product-card { perspective: none; transform-style: flat; }

.shop__grid .product-card:hover, #products-grid .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.shop__grid .product-card:hover img, #products-grid .product-card:hover img { transform: scale(1.02); }

/* ============ v4: без блика ============ */

.hg-shine { display: none !important; }

.hg-slide { background: #fff; backface-visibility: hidden; }

/* ============ v5: неактивные слайды за матовым стеклом ============ */

.hg-slide::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.22); backdrop-filter: blur(6px) saturate(1.15) brightness(1.03); -webkit-backdrop-filter: blur(6px) saturate(1.15) brightness(1.03); opacity: 0; transition: opacity .55s ease; pointer-events: none; }

.hg-slide:not(.active)::after { opacity: 1; }

/* ============ v7: матовое стекло без blur (производительно) ============ */

.hg-slide::after {

  backdrop-filter: none !important;

  -webkit-backdrop-filter: none !important;

  background: rgba(255,255,255,.16);

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);

}

.hg-slide img { transition: filter .5s ease; }

.hg-slide:not(.active) img { filter: saturate(.82) brightness(1.03) contrast(.98); }

.hg-slide.active img { filter: none; }

/* ============ v8: плавность слайдера ============ */

.hg-slide { will-change: transform, opacity; backface-visibility: hidden; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .4s ease; }

.hg-slide img { transition: none !important; }

.hg-slide:not(.active) img { filter: none !important; }

/* ============ CDEK Checkout ============ */

.cdek-checkout .modal__content { max-width: 560px; }

.co-city-suggest { position: absolute; z-index: 100; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-top: 2px; width: calc(100% - 40px); max-width: 480px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.co-suggest-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); }

.co-suggest-item:last-child { border-bottom: none; }

.co-suggest-item:hover { background: var(--bg-elevated); }

.co-radio-group { display: flex; gap: 18px; flex-wrap: wrap; }

.co-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.co-pvz-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; }

.co-pvz { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 6px; cursor: pointer; }

.co-pvz:hover { background: var(--bg-elevated); }

.co-pvz input[type="radio"] { margin-top: 4px; }

.co-pvz__info { font-size: .9rem; line-height: 1.35; }

.co-pvz__info small { color: var(--text-muted); }

.co-hint { color: var(--text-muted); font-size: .85rem; padding: 6px 4px; }

.co-summary { background: var(--bg-elevated); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }

.co-summary__row { display: flex; justify-content: space-between; padding: 4px 0; }

.co-summary__total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 1.1rem; }

.co-tariffs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 200px; overflow-y: auto; }

.co-tariff { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }

.co-tariff:hover { border-color: var(--accent); }

.co-tariff input[type="radio"] { margin: 0; }

.co-tariff div { font-size: .9rem; line-height: 1.4; }

.co-tariff strong { display: block; }

.co-tariff span { color: var(--text-muted); font-size: .85rem; }

.form-group { position: relative; margin-bottom: 14px; }

/* ============ v9: тост поверх модальных окон ============ */

.toast, .toast--error, .toast--success, #toast { z-index: 100000 !important; }

/* Плашка ошибки в чекауте */

.co-error { background: #fdecea; border: 1px solid #f5c6cb; color: #b02a37; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: .92rem; }

/* v11: тост ПОВЕРХ любой модалки (оверлей обычно z-index ~10000) */

.toast-container { z-index: 2147483647 !important; }

.co-error { z-index: 2147483646 !important; position: relative !important; }

/* Подсказка-расшифровка тарифа */

.co-tariff__hint { display: block; font-size: .8rem; color: var(--text-muted); margin: 2px 0; }

/* v12: слайдер — только миниатюры, полное фото по клику в оверлее */

.hg-glass-wrap { position: relative; }

.hg-glass {

  position: fixed; inset: 0; z-index: 2147483646;

  background: rgba(10, 10, 14, 0.85);

  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

  display: flex; flex-direction: column; align-items: center; justify-content: center;

  padding: 60px 20px 20px; gap: 16px;

  animation: hgFadeIn .25s ease;

}

@keyframes hgFadeIn { from { opacity: 0; } to { opacity: 1; } }

.hg-glass[hidden] { display: none; }

.hg-glass__close {

  position: absolute; top: 16px; right: 20px;

  width: 44px; height: 44px; border-radius: 50%;

  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);

  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;

  display: flex; align-items: center; justify-content: center;

  transition: background .2s;

}

.hg-glass__close:hover { background: rgba(255,255,255,0.2); }

.hg-glass__img {

  width: min(80vw, 600px); aspect-ratio: 4 / 5;

  background-size: cover; background-position: center;

  border-radius: 8px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);

  background-color: rgba(255,255,255,0.04);

}

.hg-glass__info {

  text-align: center; color: #fff; max-width: 600px;

}

.hg-glass__info h3 { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }

.hg-glass__info .hg-glass__meta { color: rgba(255,255,255,0.7); font-size: .9rem; margin: 0 0 10px; }

.hg-glass__info .hg-glass__price { font-size: 1.3rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

.hg-glass__info .hg-glass__desc { color: rgba(255,255,255,0.8); font-size: .92rem; line-height: 1.5; margin: 0 0 14px; }

.hg-glass__info .btn { display: inline-block; }

/* ============ v13: двухслойные слайды + lightbox ============ */

.hg-slide__thumb, .hg-slide__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.hg-slide__full { opacity: 0; transition: opacity .35s ease; }

.hg-slide.active .hg-slide__full.loaded { opacity: 1; }

.hg-lightbox { position: fixed; inset: 0; z-index: 2147483646; background: rgba(12, 12, 16, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 56px 20px 28px; overflow: auto; }

.hg-lightbox[hidden] { display: none; }

.hg-lightbox__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(94vw, 900px); }

.hg-lightbox__img { max-width: 100%; max-height: 60vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.55); background: rgba(255,255,255,.06); }

.hg-lightbox__info { text-align: center; color: #fff; max-width: 640px; }

.hg-lightbox__info h3 { color: #fff; font-size: 1.35rem; margin: 0 0 6px; }

.hg-lightbox__meta { color: rgba(255,255,255,.72); font-size: .9rem; margin: 0 0 8px; }

.hg-lightbox__price { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }

.hg-lightbox__desc { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.55; margin: 0 0 14px; }

.hg-lightbox__close { position: fixed; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }

.hg-lightbox__close:hover { background: rgba(255,255,255,.24); }

/* v14: навигация в лайтбоксе */

.hg-lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: background .2s; }

.hg-lightbox__nav:hover { background: rgba(255,255,255,.24); }

.hg-lightbox__nav--prev { left: 22px; }

.hg-lightbox__nav--next { right: 22px; }

.hg-lightbox__counter { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: 10px; }

@media (max-width: 700px) { .hg-lightbox__nav { width: 42px; height: 42px; font-size: 24px; } .hg-lightbox__nav--prev { left: 8px; } .hg-lightbox__nav--next { right: 8px; } }

/* ============ v15: мобильная адаптация слайдера ============ */

/* На мобильном слайды меньше и без 3D-искажений */

@media (max-width: 700px) {

  #hero-slider { perspective: none; }

  .hg-slide { box-shadow: 0 6px 20px rgba(0,0,0,.15); }

  .hg-slide:not(.active) { filter: brightness(.7) saturate(.8); opacity: .85; }

  .hero__nav { display: none; }

  .hg-counter { font-size: .75rem; top: 10px; right: 10px; padding: 3px 8px; }

}

/* Лайтбокс на мобильном на весь экран */

@media (max-width: 700px) {

  .hg-lightbox { padding: 0; }

  .hg-lightbox__inner { width: 100%; max-width: 100%; padding: 16px; gap: 12px; }

  .hg-lightbox__img { max-width: 100%; max-height: 55vh; width: 100%; height: auto; border-radius: 6px; }

  .hg-lightbox__info { padding: 0 4px; }

  .hg-lightbox__info h3 { font-size: 1.15rem; }

  .hg-lightbox__info .hg-lightbox__price { font-size: 1.1rem; }

  .hg-lightbox__info .btn { width: 100%; padding: 12px; font-size: .95rem; }

  .hg-lightbox__close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; }

  .hg-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }

  .hg-lightbox__nav--prev { left: 6px; }

  .hg-lightbox__nav--next { right: 6px; }

  .hg-lightbox__counter { font-size: .72rem; margin-top: 6px; }

}

/* Плавная подсветка активного слайда на мобильном */

@media (max-width: 700px) {

  .hg-slide.active { box-shadow: 0 8px 28px rgba(0,0,0,.25); }

  .hg-slide.active img { filter: none; }

}

/* Touch-friendly: чуть больше области нажатия на слайд */

@media (max-width: 700px) {

  .hg-slide { cursor: pointer; }

  .hg-slide.active::after {

    content: '👆'; position: absolute; bottom: 8px; right: 8px;

    background: rgba(0,0,0,.55); color: #fff; border-radius: 50%;

    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;

    font-size: .75rem; pointer-events: none;

  }

}

/* ============ v16: мобильная адаптация ============ */

@media (max-width: 700px) {

  /* Шапка: меню в одну строку со скроллом, без переносов */

  .header { padding: 8px 12px; }

  .header nav, .header__nav, .nav, .menu {

    width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto;

    gap: 16px; padding: 6px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;

  }

  .header nav::-webkit-scrollbar, .header__nav::-webkit-scrollbar, .nav::-webkit-scrollbar, .menu::-webkit-scrollbar { display: none; }

  .header nav a, .header__nav a, .nav a, .menu a { white-space: nowrap; font-size: .88rem; }

  /* Контейнеры и секции */

  .container { padding: 0 14px; }

  .section { padding: 32px 0; }

  .section__title { font-size: 1.35rem; }

  /* Слайдер: компактный, счётчик внизу по центру */

  #hero-slider { height: 340px; }

  #hero-slider .hg-slide { height: 250px; }

  #hero-slider .hg-counter { top: auto; bottom: 6px; left: 50%; right: auto; transform: translateX(-50%); }

  #hero-slider .hg-glass { display: none; }

  /* Модальные окна (чекаут и пр.) */

  .modal__content { width: 94vw; max-width: 94vw; max-height: 92vh; overflow-y: auto; padding: 18px 14px; }

  /* Карточки товаров */

  .products-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

}

@media (max-width: 420px) {

  #hero-slider { height: 300px; }

  #hero-slider .hg-slide { height: 220px; }

  .products-grid, .cards-grid { grid-template-columns: 1fr; }

}

/* ============ v17: мобильная шапка и слайдер (финал) ============ */

@media (max-width: 700px) {

  .header, .header__inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; }

  .header nav, .header__nav, .nav, .menu {

    width: 100%; display: flex; flex-wrap: wrap; justify-content: center;

    overflow: visible; gap: 4px 14px; padding: 0;

  }

  .header nav a, .header__nav a, .nav a, .menu a { font-size: .86rem; white-space: nowrap; }

  #hero-slider { height: 330px; overflow: hidden; }

  #hero-slider .hg-slide { height: 250px; }

  #hero-slider .hg-counter { top: auto; bottom: 6px; left: 50%; right: auto; transform: translateX(-50%); }

}

/* ============ v18: слайдер в стиле Apple ============ */

#hero-slider { height: min(74vh, 680px); overflow: hidden; }

.hg-stage { perspective: none; }

.hg-slide {

  top: 45%; height: min(52vh, 480px);

  border-radius: 20px; overflow: hidden; background: #fff;

  box-shadow: 0 32px 90px rgba(24,18,12,.18), 0 4px 16px rgba(24,18,12,.08);

  transition: opacity .6s cubic-bezier(.25,.1,.25,1), transform .6s cubic-bezier(.25,.1,.25,1);

  will-change: opacity, transform;

}

.hg-slide::after { display: none; }

.hg-slide img { filter: none; }

.hg-slide__full { opacity: 0; transition: opacity .35s ease; }

.hg-slide__full.loaded { opacity: 1; }

.hg-caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 64px; text-align: center; max-width: 80%; pointer-events: none; }

.hg-caption h3 { font-size: 1.05rem; font-weight: 600; color: var(--text, #1d1a16); margin: 0 0 4px; }

.hg-caption p { font-size: .82rem; color: rgba(29,26,22,.55); margin: 0; }

.hg-counter { top: auto; bottom: 34px; font-size: .7rem; letter-spacing: .22em; color: rgba(29,26,22,.4); }

.hg-nav .hero__nav {

  width: 46px; height: 46px; border-radius: 50%;

  background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0,0,0,.06); color: #1d1a16; font-size: 22px;

  box-shadow: 0 8px 24px rgba(0,0,0,.10); transition: background .2s, transform .2s;

}

.hg-nav .hero__nav:hover { background: #fff; transform: scale(1.06); }

@media (max-width: 700px) {

  #hero-slider { height: 62vh; min-height: 420px; }

  .hg-slide { top: 42%; height: 44vh; min-height: 260px; border-radius: 14px; }

  .hg-caption { bottom: 58px; max-width: 86%; }

  .hg-caption h3 { font-size: .95rem; }

  .hg-counter { bottom: 30px; }

  .hg-nav .hero__nav { width: 38px; height: 38px; font-size: 18px; }

}

/* ============ v19: подпись/счётчик в потоке — наслоение невозможно ============ */

#hero-slider { --hg-stage-h: min(52vh, 480px); height: auto; padding-bottom: 10px; }

.hg-stage { position: relative; height: var(--hg-stage-h); }

.hg-slide { top: 50%; }

.hg-caption { position: static; transform: none; left: auto; right: auto; bottom: auto; margin: 16px auto 4px; max-width: 82%; }

.hg-counter { position: static; left: auto; right: auto; bottom: auto; transform: none; display: block; text-align: center; margin: 6px auto 4px; }

.hg-nav .hero__nav { top: calc(var(--hg-stage-h) / 2); }

@media (max-width: 700px) {

  #hero-slider { --hg-stage-h: max(46vh, 280px); }

  .hg-caption { margin: 12px auto 2px; max-width: 88%; }

  .hg-counter { margin: 4px auto 6px; }

}

/* v20: свайп на мобильном — разрешаем горизонтальный жест, вертикальный скролл работает */

#hero-slider { touch-action: pan-y; -webkit-user-select: none; user-select: none; }

.hg-slide { touch-action: pan-y; }

/* ============ v21: полная мобильная адаптация ============ */

/* Бургер-кнопка */

.mobile-burger {

  display: none; width: 40px; height: 40px; padding: 0;

  background: transparent; border: none; cursor: pointer;

  position: relative; flex-shrink: 0;

}

.mobile-burger span {

  display: block; width: 22px; height: 2px; background: var(--text, #1d1a16);

  position: absolute; left: 9px; transition: transform .25s, top .25s;

}

.mobile-burger span:nth-child(1) { top: 13px; }

.mobile-burger span:nth-child(2) { top: 19px; }

.mobile-burger span:nth-child(3) { top: 25px; }

@media (max-width: 700px) {

  .mobile-burger { display: block; }

  .header nav, .header__nav, .nav, .menu { display: none; }

}

/* Выдвижное меню */

.mobile-menu { position: fixed; inset: 0; z-index: 2147483645; }

.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {

  position: absolute; inset: 0; background: rgba(0,0,0,.45);

  opacity: 0; transition: opacity .3s;

}

.mobile-menu.open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {

  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);

  background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);

  padding: 20px 24px 32px; overflow-y: auto;

  transform: translateX(100%); transition: transform .3s cubic-bezier(.25,.1,.25,1);

}

.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {

  position: absolute; top: 12px; right: 12px;

  width: 38px; height: 38px; border-radius: 50%;

  background: rgba(0,0,0,.05); border: none; cursor: pointer;

  font-size: 24px; color: var(--text, #1d1a16);

  display: flex; align-items: center; justify-content: center;

}

.mobile-menu ul { list-style: none; padding: 0; margin: 40px 0 0; }

.mobile-menu li { margin: 4px 0; }

.mobile-menu__link {

  display: block; padding: 12px 14px; font-size: 1.05rem;

  color: var(--text, #1d1a16); text-decoration: none;

  border-radius: 8px; transition: background .15s;

}

.mobile-menu__link:hover, .mobile-menu__link:active { background: rgba(0,0,0,.04); }

/* Шапка: не наползает на слайдер */

@media (max-width: 700px) {

  .header, header.site-header, header {

    position: sticky; top: 0; z-index: 1000;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 1px 0 rgba(0,0,0,.06);

  }

  .header__inner { display: flex; align-items: center; gap: 10px; }

}

/* Фильтры магазина: компактный аккордеон на мобильном */

@media (max-width: 700px) {

  .shop__filters, .filters, aside.shop-sidebar {

    position: relative; margin-bottom: 16px;

  }

  .shop__filters > *, .filters > *, aside.shop-sidebar > * {

    display: none;

  }

  .shop__filters > h3:first-of-type,

  .filters > h3:first-of-type,

  aside.shop-sidebar > h3:first-of-type {

    display: block;

    margin: 0; padding: 14px 16px;

    background: #f7f5f2; border-radius: 10px;

    cursor: pointer; font-size: 1rem; font-weight: 600;

    position: relative; user-select: none;

  }

  .shop__filters > h3:first-of-type::after,

  .filters > h3:first-of-type::after,

  aside.shop-sidebar > h3:first-of-type::after {

    content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);

    transition: transform .2s;

  }

  .shop__filters.open > *, .filters.open > *, aside.shop-sidebar.open > * {

    display: block;

  }

  .shop__filters.open > h3:first-of-type::after,

  .filters.open > h3:first-of-type::after,

  aside.shop-sidebar.open > h3:first-of-type::after {

    transform: translateY(-50%) rotate(180deg);

  }

  .shop__filters.open, .filters.open, aside.shop-sidebar.open {

    background: #f7f5f2; border-radius: 10px; padding: 0 16px 16px;

  }

  .shop__filters.open > h3:first-of-type,

  .filters.open > h3:first-of-type,

  aside.shop-sidebar.open > h3:first-of-type {

    margin: 0 -16px 12px; border-radius: 10px 10px 0 0;

  }

}

/* Бургер-кнопка */

.mobile-burger {

  display: none; width: 40px; height: 40px; padding: 0;

  background: transparent; border: none; cursor: pointer;

  position: relative; flex-shrink: 0;

}

.mobile-burger span {

  display: block; width: 22px; height: 2px; background: var(--text, #1d1a16);

  position: absolute; left: 9px; transition: transform .25s, top .25s;

}

.mobile-burger span:nth-child(1) { top: 13px; }

.mobile-burger span:nth-child(2) { top: 19px; }

.mobile-burger span:nth-child(3) { top: 25px; }

@media (max-width: 700px) {

  .mobile-burger { display: block; }

  .header nav, .header__nav, .nav, .menu { display: none; }

}

/* Выдвижное меню */

.mobile-menu { position: fixed; inset: 0; z-index: 2147483645; }

.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {

  position: absolute; inset: 0; background: rgba(0,0,0,.45);

  opacity: 0; transition: opacity .3s;

}

.mobile-menu.open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {

  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);

  background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);

  padding: 20px 24px 32px; overflow-y: auto;

  transform: translateX(100%); transition: transform .3s cubic-bezier(.25,.1,.25,1);

}

.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {

  position: absolute; top: 12px; right: 12px;

  width: 38px; height: 38px; border-radius: 50%;

  background: rgba(0,0,0,.05); border: none; cursor: pointer;

  font-size: 24px; color: var(--text, #1d1a16);

  display: flex; align-items: center; justify-content: center;

}

.mobile-menu ul { list-style: none; padding: 0; margin: 40px 0 0; }

.mobile-menu li { margin: 4px 0; }

.mobile-menu__link {

  display: block; padding: 12px 14px; font-size: 1.05rem;

  color: var(--text, #1d1a16); text-decoration: none;

  border-radius: 8px; transition: background .15s;

}

.mobile-menu__link:hover, .mobile-menu__link:active { background: rgba(0,0,0,.04); }

/* Шапка: не наползает на слайдер */

@media (max-width: 700px) {

  .header, header.site-header, header {

    position: sticky; top: 0; z-index: 1000;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 1px 0 rgba(0,0,0,.06);

  }

  .header__inner { display: flex; align-items: center; gap: 10px; }

}

/* Фильтры магазина: компактный аккордеон на мобильном */

@media (max-width: 700px) {

  .shop__filters, .filters, aside.shop-sidebar {

    position: relative; margin-bottom: 16px;

  }

  .shop__filters > *, .filters > *, aside.shop-sidebar > * {

    display: none;

  }

  .shop__filters > h3:first-of-type,

  .filters > h3:first-of-type,

  aside.shop-sidebar > h3:first-of-type {

    display: block;

    margin: 0; padding: 14px 16px;

    background: #f7f5f2; border-radius: 10px;

    cursor: pointer; font-size: 1rem; font-weight: 600;

    position: relative; user-select: none;

  }

  .shop__filters > h3:first-of-type::after,

  .filters > h3:first-of-type::after,

  aside.shop-sidebar > h3:first-of-type::after {

    content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);

    transition: transform .2s;

  }

  .shop__filters.open > *, .filters.open > *, aside.shop-sidebar.open > * {

    display: block;

  }

  .shop__filters.open > h3:first-of-type::after,

  .filters.open > h3:first-of-type::after,

  aside.shop-sidebar.open > h3:first-of-type::after {

    transform: translateY(-50%) rotate(180deg);

  }

  .shop__filters.open, .filters.open, aside.shop-sidebar.open {

    background: #f7f5f2; border-radius: 10px; padding: 0 16px 16px;

  }

  .shop__filters.open > h3:first-of-type,

  .filters.open > h3:first-of-type,

  aside.shop-sidebar.open > h3:first-of-type {

    margin: 0 -16px 12px; border-radius: 10px 10px 0 0;

  }

}

/* Бургер-кнопка */

.mobile-burger {

  display: none; width: 40px; height: 40px; padding: 0;

  background: transparent; border: none; cursor: pointer;

  position: relative; flex-shrink: 0;

}

.mobile-burger span {

  display: block; width: 22px; height: 2px; background: var(--text, #1d1a16);

  position: absolute; left: 9px; transition: transform .25s, top .25s;

}

.mobile-burger span:nth-child(1) { top: 13px; }

.mobile-burger span:nth-child(2) { top: 19px; }

.mobile-burger span:nth-child(3) { top: 25px; }

@media (max-width: 700px) {

  .mobile-burger { display: block; }

  .header nav, .header__nav, .nav, .menu { display: none; }

}

/* Выдвижное меню */

.mobile-menu { position: fixed; inset: 0; z-index: 2147483645; }

.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {

  position: absolute; inset: 0; background: rgba(0,0,0,.45);

  opacity: 0; transition: opacity .3s;

}

.mobile-menu.open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {

  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);

  background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);

  padding: 20px 24px 32px; overflow-y: auto;

  transform: translateX(100%); transition: transform .3s cubic-bezier(.25,.1,.25,1);

}

.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {

  position: absolute; top: 12px; right: 12px;

  width: 38px; height: 38px; border-radius: 50%;

  background: rgba(0,0,0,.05); border: none; cursor: pointer;

  font-size: 24px; color: var(--text, #1d1a16);

  display: flex; align-items: center; justify-content: center;

}

.mobile-menu ul { list-style: none; padding: 0; margin: 40px 0 0; }

.mobile-menu li { margin: 4px 0; }

.mobile-menu__link {

  display: block; padding: 12px 14px; font-size: 1.05rem;

  color: var(--text, #1d1a16); text-decoration: none;

  border-radius: 8px; transition: background .15s;

}

.mobile-menu__link:hover, .mobile-menu__link:active { background: rgba(0,0,0,.04); }

/* Шапка: не наползает на слайдер */

@media (max-width: 700px) {

  .header, header.site-header, header {

    position: sticky; top: 0; z-index: 1000;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 1px 0 rgba(0,0,0,.06);

  }

  .header__inner { display: flex; align-items: center; gap: 10px; }

}

/* Фильтры магазина: компактный аккордеон на мобильном */

@media (max-width: 700px) {

  .shop__filters, .filters, aside.shop-sidebar {

    position: relative; margin-bottom: 16px;

  }

  .shop__filters > *, .filters > *, aside.shop-sidebar > * {

    display: none;

  }

  .shop__filters > h3:first-of-type,

  .filters > h3:first-of-type,

  aside.shop-sidebar > h3:first-of-type {

    display: block;

    margin: 0; padding: 14px 16px;

    background: #f7f5f2; border-radius: 10px;

    cursor: pointer; font-size: 1rem; font-weight: 600;

    position: relative; user-select: none;

  }

  .shop__filters > h3:first-of-type::after,

  .filters > h3:first-of-type::after,

  aside.shop-sidebar > h3:first-of-type::after {

    content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);

    transition: transform .2s;

  }

  .shop__filters.open > *, .filters.open > *, aside.shop-sidebar.open > * {

    display: block;

  }

  .shop__filters.open > h3:first-of-type::after,

  .filters.open > h3:first-of-type::after,

  aside.shop-sidebar.open > h3:first-of-type::after {

    transform: translateY(-50%) rotate(180deg);

  }

  .shop__filters.open, .filters.open, aside.shop-sidebar.open {

    background: #f7f5f2; border-radius: 10px; padding: 0 16px 16px;

  }

  .shop__filters.open > h3:first-of-type,

  .filters.open > h3:first-of-type,

  aside.shop-sidebar.open > h3:first-of-type {

    margin: 0 -16px 12px; border-radius: 10px 10px 0 0;

  }

}

/* Бургер-кнопка */

.mobile-burger {

  display: none; width: 40px; height: 40px; padding: 0;

  background: transparent; border: none; cursor: pointer;

  position: relative; flex-shrink: 0;

}

.mobile-burger span {

  display: block; width: 22px; height: 2px; background: var(--text, #1d1a16);

  position: absolute; left: 9px; transition: transform .25s, top .25s;

}

.mobile-burger span:nth-child(1) { top: 13px; }

.mobile-burger span:nth-child(2) { top: 19px; }

.mobile-burger span:nth-child(3) { top: 25px; }

@media (max-width: 700px) {

  .mobile-burger { display: block; }

  .header nav, .header__nav, .nav, .menu { display: none; }

}

/* Выдвижное меню */

.mobile-menu { position: fixed; inset: 0; z-index: 2147483645; }

.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {

  position: absolute; inset: 0; background: rgba(0,0,0,.45);

  opacity: 0; transition: opacity .3s;

}

.mobile-menu.open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {

  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);

  background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);

  padding: 20px 24px 32px; overflow-y: auto;

  transform: translateX(100%); transition: transform .3s cubic-bezier(.25,.1,.25,1);

}

.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {

  position: absolute; top: 12px; right: 12px;

  width: 38px; height: 38px; border-radius: 50%;

  background: rgba(0,0,0,.05); border: none; cursor: pointer;

  font-size: 24px; color: var(--text, #1d1a16);

  display: flex; align-items: center; justify-content: center;

}

.mobile-menu ul { list-style: none; padding: 0; margin: 40px 0 0; }

.mobile-menu li { margin: 4px 0; }

.mobile-menu__link {

  display: block; padding: 12px 14px; font-size: 1.05rem;

  color: var(--text, #1d1a16); text-decoration: none;

  border-radius: 8px; transition: background .15s;

}

.mobile-menu__link:hover, .mobile-menu__link:active { background: rgba(0,0,0,.04); }

/* Шапка: не наползает на слайдер */

@media (max-width: 700px) {

  .header, header.site-header, header {

    position: sticky; top: 0; z-index: 1000;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 1px 0 rgba(0,0,0,.06);

  }

  .header__inner { display: flex; align-items: center; gap: 10px; }

}

/* Фильтры магазина: компактный аккордеон на мобильном */

@media (max-width: 700px) {

  .shop__filters, .filters, aside.shop-sidebar {

    position: relative; margin-bottom: 16px;

  }

  .shop__filters > *, .filters > *, aside.shop-sidebar > * {

    display: none;

  }

  .shop__filters > h3:first-of-type,

  .filters > h3:first-of-type,

  aside.shop-sidebar > h3:first-of-type {

    display: block;

    margin: 0; padding: 14px 16px;

    background: #f7f5f2; border-radius: 10px;

    cursor: pointer; font-size: 1rem; font-weight: 600;

    position: relative; user-select: none;

  }

  .shop__filters > h3:first-of-type::after,

  .filters > h3:first-of-type::after,

  aside.shop-sidebar > h3:first-of-type::after {

    content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);

    transition: transform .2s;

  }

  .shop__filters.open > *, .filters.open > *, aside.shop-sidebar.open > * {

    display: block;

  }

  .shop__filters.open > h3:first-of-type::after,

  .filters.open > h3:first-of-type::after,

  aside.shop-sidebar.open > h3:first-of-type::after {

    transform: translateY(-50%) rotate(180deg);

  }

  .shop__filters.open, .filters.open, aside.shop-sidebar.open {

    background: #f7f5f2; border-radius: 10px; padding: 0 16px 16px;

  }

  .shop__filters.open > h3:first-of-type,

  .filters.open > h3:first-of-type,

  aside.shop-sidebar.open > h3:first-of-type {

    margin: 0 -16px 12px; border-radius: 10px 10px 0 0;

  }

}

/* ============ v22: мобильное меню (JS-бургер) + сетка магазина ============ */

.mobile-menu__panel nav, .mobile-menu__panel .nav, .mobile-menu__panel .menu, .mobile-menu__nav {

  display: flex; flex-direction: column; gap: 2px; margin: 36px 0 0; width: 100%;

  overflow: visible; flex-wrap: nowrap;

}

.mobile-menu__panel nav a, .mobile-menu__nav a { display: block; padding: 12px 14px; font-size: 1.02rem; border-radius: 8px; white-space: nowrap; }

.mobile-menu__panel nav a:active, .mobile-menu__nav a:active { background: rgba(0,0,0,.05); }

/* Сетка магазина: реальные классы */

@media (max-width: 900px) {

  .shop__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

}

@media (max-width: 700px) {

  .shop__grid { gap: 10px; }

  .shop__grid .product-card, .shop__grid .card, .shop__grid > article, .shop__grid > div { border-radius: 12px; overflow: hidden; }

  .shop__grid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

  .shop__grid h3, .shop__grid .product-card__title, .shop__grid .card__title { font-size: .9rem; line-height: 1.25; margin: 8px 0 4px; }

  .shop__grid .product-card__price, .shop__grid .card__price, .shop__grid strong { font-size: .92rem; }

  .shop__grid .btn { padding: 8px 10px; font-size: .78rem; width: 100%; }

  .shop__grid .product-card__tech, .shop__grid .card__meta, .shop__grid small { font-size: .72rem; }

}

@media (max-width: 380px) {

  .shop__grid { grid-template-columns: 1fr; }

}

/* ============ v23: карточка товара на мобильном — без каши ============ */

@media (max-width: 700px) {

  .shop__grid > * { display: flex; flex-direction: column; }

  .shop__grid .product-card__footer,

  .shop__grid .card__footer,

  .shop__grid > * > *:last-child {

    display: flex; flex-direction: column; gap: 8px;

    margin-top: auto; padding-top: 10px;

  }

  .shop__grid .btn {

    width: 100%; min-height: 40px;

    white-space: nowrap; text-align: center; justify-content: center;

    padding: 10px 8px; font-size: .84rem;

  }

  .shop__grid > * a:not(.btn) { display: block; text-align: center; font-size: .82rem; }

  .shop__grid .product-card__price, .shop__grid .card__price { font-size: 1rem; }

}

/* Бейджи статуса товара */

.product-card__badge {

  display: inline-block; padding: 6px 12px; border-radius: 6px;

  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;

}

.product-card__badge--processing { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

.product-card__badge--sold { background: #e9ecef; color: #6c757d; border: 1px solid #dee2e6; }

.cart-item-warning { background: #fff3cd; border: 1px solid #ffc107; padding: 8px 12px; border-radius: 6px; margin: 8px 0; font-size: .85rem; color: #856404; }

.cart-item-error { background: #f8d7da; border: 1px solid #dc3545; padding: 8px 12px; border-radius: 6px; margin: 8px 0; font-size: .85rem; color: #721c24; }

.cart-item-remove { background: #dc3545; color: #fff; border: none; padding: 4px 10px; border-radius: 4px; font-size: .78rem; cursor: pointer; margin-left: 8px; }

/* v231: индикатор "В корзине" не переносится */

.product-card__actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; }

.product-card__actions > * { white-space: nowrap; flex-shrink: 0; }

.product-card__cart-btn { white-space: nowrap; font-size: .8rem; width: auto; min-height: 0; padding: 6px 10px; }

