/* Product page: tighter product block, header stays site-wide */
body.product-exact {
  background: transparent !important;
  font-family: Manrope, system-ui, sans-serif !important;
}

/* Do NOT shrink header/footer — same width as catalog/home */
body.product-exact .top-bar .container,
body.product-exact .footer .container,
body.product-exact .footer__bottom .container {
  max-width: var(--container-max, 90rem) !important;
  width: 100% !important;
  padding-left: var(--gutter, 48px) !important;
  padding-right: var(--gutter, 48px) !important;
}

/* Header container: на 851–1199px действуют общие правила шапки (как на главной и в каталоге). */
@media (min-width: 75rem) {
  body.product-exact .header .container {
    max-width: var(--container-max, 90rem) !important;
    width: 100% !important;
    padding-left: var(--gutter, 48px) !important;
    padding-right: var(--gutter, 48px) !important;
  }
}

/* 851–1199px: ширина контейнера шапки как на главной (на товаре --container-max не задан, шапка тянулась до края
   и кнопка «Корзина» обрезалась). */
@media (min-width: 53.1875rem) and (max-width: 74.9375rem) {
  body.product-exact .header .container {
    width: 100% !important;
    max-width: calc(100% - 2 * var(--gutter)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Desktop header only (>=1200px). Below, the shared mobile/tablet header from viewport-adapt.css applies,
   so the cart pill gets the same room as on home/catalog. */
@media (min-width: 75rem) {
  body.product-exact .header {
    min-height: var(--header-height, 76px);
  }

  body.product-exact .header .container {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
  }

  body.product-exact .header__left {
    grid-column: 1;
    justify-self: start;
    display: flex !important;
    align-items: center;
    gap: clamp(12px, 1.5vw, 20px);
    min-width: 0;
  }

  body.product-exact .header__center {
    grid-column: 2;
    justify-self: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  body.product-exact .header__center .nav {
    display: flex !important;
  }

  body.product-exact .header__actions {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    align-items: center;
    gap: 20px;
  }
}

/* Товар — те же боковые отступы, что на всём сайте (без доп. сжатия) */
body.product-exact .product-section.container,
body.product-exact .benefits.container,
body.product-exact .recommendations.container,
body.product-exact .help-banner.container,
body.product-exact main .container {
  max-width: var(--container-max, 90rem) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--gutter, 48px) !important;
  padding-right: var(--gutter, 48px) !important;
  box-sizing: border-box !important;
}

body.product-exact .product-section {
  padding: 24px 0 20px !important;
}

body.product-exact .product-section.container {
  padding-top: 24px !important;
  padding-bottom: 20px !important;
}

body.product-exact .back-link {
  margin-bottom: 14px !important;
  font-size: 14px;
}

body.product-exact .product-layout {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: minmax(0, 30rem) minmax(0, 35rem) minmax(17.5rem, 21.25rem) !important;
  gap: 1.75rem !important;
  align-items: start !important;
  justify-content: start !important;
}

body.product-exact .gallery {
  max-width: none;
  width: 100%;
}

body.product-exact .main-photo-wrap {
  max-height: min(560px, 72vh) !important;
  width: 100%;
  max-width: none;
  aspect-ratio: 480 / 580;
  border-radius: 16px !important;
}

body.product-exact .main-photo-wrap img,
body.product-exact .merary-gallery__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.product-exact .product-info {
  padding-top: 0 !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body.product-exact .badge {
  padding: 6px 12px !important;
  font-size: 11px !important;
}

body.product-exact .product-info h1 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem) !important;
  line-height: 1.15 !important;
  margin: 8px 0 6px !important;
}

body.product-exact .subtitle {
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body.product-exact .meta {
  margin: 10px 0 14px !important;
  gap: 10px !important;
  font-size: 13px !important;
}

body.product-exact .price {
  font-size: 28px !important;
  margin-bottom: 14px !important;
}

body.product-exact .size-block h3,
body.product-exact .composition-card h3 {
  font-size: 18px !important;
  margin: 0 0 10px !important;
}

body.product-exact .sizes {
  gap: 8px !important;
}

body.product-exact .size-card {
  height: 86px !important;
  border-radius: 12px !important;
  gap: 4px !important;
  padding: 6px 4px !important;
}

body.product-exact .size-card strong {
  font-size: 18px !important;
}

body.product-exact .size-card span,
body.product-exact .size-card small {
  font-size: 12px !important;
}

body.product-exact .size-note {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
}

body.product-exact .size-note p {
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

body.product-exact .composition-card {
  margin: 14px 0 !important;
  padding: 12px 14px !important;
}

body.product-exact .composition-card p {
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body.product-exact .primary-btn,
body.product-exact .secondary-btn {
  margin-top: 8px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}

body.product-exact .freshness {
  margin-top: 10px !important;
  font-size: 13px !important;
}

body.product-exact .thumb-row {
  margin-top: 10px !important;
  gap: 8px !important;
}

body.product-exact .benefits {
  padding: 18px 0 !important;
  margin: 8px auto !important;
}

body.product-exact .recommendations {
  padding: 18px 0 28px !important;
}

body.product-exact .recommendations h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
  margin: 0 0 14px !important;
}

body.product-exact .help-banner {
  margin: 8px auto 28px !important;
}

body.product-exact .product-info .new-badge {
  display: inline-flex;
  margin: 0 0 4px;
}

body.product-exact .merary-gallery__nav[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  body.product-exact .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  }

  body.product-exact .merary-info {
    grid-column: 1 / -1;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.product-exact .product-info h1 {
    font-size: 1.75rem !important;
  }

  body.product-exact .size-card {
    height: 78px !important;
  }
}

body.product-exact {
  background: transparent !important;
  font-family: Manrope, system-ui, sans-serif !important;
}
body.product-exact .help-cta {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  background: var(--pink, #f04f77);
  color: #fff;
  padding: 13px 24px;
  text-decoration: none;
  font-weight: 600;
}
body.product-exact .mini-body h3 a {
  color: inherit;
  text-decoration: none;
}
body.product-exact .mini-body {
  padding: 14px 16px 16px;
}

body.profile-exact {
  background: transparent !important;
  font-family: Manrope, system-ui, sans-serif !important;
}
body.profile-exact .welcome h1,
body.profile-exact .section-title h2,
body.profile-exact .bonus h2,
body.profile-exact .newsletter h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

body.cart-exact {
  background: transparent !important;
  font-family: Manrope, system-ui, sans-serif !important;
}
body.cart-exact .cart-title-wrap h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
}
body.cart-exact .checkout-form-panel {
  display: none;
  margin-top: 28px;
}
body.cart-exact .checkout-form-panel.is-open {
  display: block;
}
body.profile-exact .dash-panel { display: none; }
body.profile-exact .dash-panel.is-active { display: block; }
body.profile-exact .avatar-letter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fae8ec;
  color: #ef5d7b;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
body.profile-exact .side-nav a i {
  margin-left: auto;
  background: #f7f1f2;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-style: normal;
}
body.profile-exact .fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
body.profile-exact .fav-card {
  border: 1px solid #eee5e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body.profile-exact .fav-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
body.profile-exact .fav-card__body {
  padding: 10px;
}
body.profile-exact .cab-empty {
  padding: 24px;
  text-align: center;
  color: #777;
}
body.profile-exact .order-list .order,
body.profile-exact .order-list .order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #f0e8ea;
}
body.profile-exact .order-list img {
  width: 68px;
  height: 68px;
  border-radius: 9px;
  object-fit: cover;
  background: #f8e9ec;
}
