/* Shared corrections and interactive states. */
/* Hide horizontal rails, not their scrolling. Keep page/dialog/filter vertical bars. */
.wb-body :is([data-wb-drag-scroll], .wb-topbar__nav, .wb-header-nav__links, .wb-products-grid--featured, .wb-news-grid, .wb-reviews, .wb-breadcrumbs, .wb-compare-scroll) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wb-body :is([data-wb-drag-scroll], .wb-topbar__nav, .wb-header-nav__links, .wb-products-grid--featured, .wb-news-grid, .wb-reviews, .wb-breadcrumbs, .wb-compare-scroll)::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.wb-body :is(.wb-brand-track, .wb-journal-track, .wb-review-track, .wb-subcategory-grid--carousel, .wb-category-children--carousel) {
    padding-bottom: 6px;
}
.wb-body [hidden] { display: none !important; }
body.wb-body { font-size: 16px; }
.wb-body :focus-visible { outline: 3px solid var(--wb-coral); outline-offset: 4px; }
.wb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wb-skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 18px; background: #fff; border: 2px solid var(--wb-accent); }
.wb-skip-link:focus { top: 12px; }
.wb-main section[id] { scroll-margin-top: 145px; }
.wb-product__name, .wb-section-link { font-size: 14px; }
.wb-product__availability { font-size: 12px; color: var(--wb-muted); }
.wb-product__details { font-size: 14px; color: var(--wb-accent); }
.wb-product__compare { font-size: 12px; }
.wb-product__fav, .wb-product__cart, .wb-mobile-toggle, .wb-icon-btn { min-width: 44px; min-height: 44px; }
.wb-product__fav.is-active { color: var(--wb-accent); background: #fff; }
.wb-body button:disabled { opacity: .5; cursor: not-allowed; }
.wb-form-status { display: block; max-width: 32rem; font-size: 13px; margin-top: 8px; }
.wb-form-status:empty { display: none; }
.wb-form-status.is-error { color: #a82035; }
.wb-status { position: fixed; right: 20px; bottom: 24px; z-index: 120; width: min(420px, calc(100% - 40px)); padding: 18px 22px; background: var(--wb-accent); color: #fff; box-shadow: var(--wb-shadow); border-radius: 12px; }
.wb-favorites { width: min(580px, calc(100% - 32px)); max-height: 85vh; overflow: auto; border: 1px solid var(--wb-line); border-radius: 18px; padding: 24px; color: var(--wb-ink); background: #fff; }
.wb-favorites::backdrop { background: rgba(45, 25, 33, .45); }
.wb-favorites__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wb-favorites__head h2 { margin: 0; font: 600 36px/1.1 'Cormorant Garamond', Georgia, serif; }
.wb-favorites__item { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--wb-line); }
.wb-favorites__item img { width: 70px; height: 94px; object-fit: contain; background: var(--wb-blush); border-radius: 8px; }
.wb-favorites__item p { font-size: 13px; color: var(--wb-muted); margin-bottom: 0; }
.wb-favorites__item a { text-decoration: underline; text-underline-offset: 3px; }
.wb-favorites .wb-icon-btn { display: grid !important; }
.wb-search-panel input { min-width: 0; }
.wb-products-grid > .wb-product:nth-child(n) { display: block; }
.wb-nav a:nth-of-type(n) { display: inline-flex; }
.wb-header-actions .wb-icon-btn:nth-child(n) { display: grid; }
.wb-news-card:nth-child(n) { display: block; }
.wb-newsletter__note { font-size: 14px; }
.wb-empty-state { padding: 30px; background: var(--wb-blush); border-radius: 14px; }
@media (max-width: 1180px) and (min-width: 901px) {
    .wb-header__main { height: auto; min-height: 84px; flex-wrap: wrap; gap: 14px; padding-block: 16px; }
    .wb-header-actions { margin-left: auto; }
    .wb-nav { order: 3; width: 100%; flex-basis: 100%; justify-content: center; margin-left: 0; }
}
@media (max-width: 900px) {
    .wb-products-grid--featured { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 32%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
    .wb-products-grid--featured > .wb-product { scroll-snap-align: start; }
}
@media (max-width: 640px) {
    .wb-main section[id] { scroll-margin-top: 86px; }
    .wb-header__main { gap: 6px; flex-wrap: wrap; height: auto; min-height: 66px; padding-block: 8px; }
    .wb-logo img { width: 140px; max-width: 34vw; }
    .wb-header-actions { gap: 0; }
    .wb-header-actions .wb-icon-btn { min-width: 40px; width: 40px; }
    .wb-header-actions a[aria-label='Личный кабинет'] { display: none !important; }
    .wb-nav { top: 100%; }
    .wb-products-grid--featured { grid-auto-columns: minmax(150px, 44%); gap: 14px; }
    .wb-product__name { font-size: 14px; min-height: 38px; }
    .wb-product__price { font-size: 15px; }
    .wb-product__price-row { flex-wrap: wrap; gap: 4px 8px; }
    .wb-product__quick { display: inline-block; font-size: 13px; padding-block: 10px; }
    .wb-section-link { font-size: 12px; }
    .wb-favorites { padding: 18px; }
    .wb-favorites__item { grid-template-columns: 56px 1fr auto; gap: 10px; }
    .wb-favorites__item img { width: 56px; height: 75px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wb-body *, .wb-body *::before, .wb-body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Catalog release: retain the original artwork, crop only its transparent right margin. */
.wb-header__main { height: auto; display: grid; grid-template-columns: 320px 1fr; gap: 12px 30px; padding-block: 16px 14px; }
.wb-logo { display: block; width: 320px; overflow: hidden; }
.wb-logo img { display: block; width: 420px; height: 67px; max-width: none; }
.wb-header-actions { justify-self: end; margin-left: 0; gap: 16px; }
.wb-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: center; gap: 24px; font-size: 13px; }
.wb-icon-btn svg, .wb-compare-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wb-icon-btn { width: 46px; height: 46px; }
.wb-product__media img { object-fit: cover; width: 100%; height: 100%; transition: transform .35s ease; }
.wb-product__media:hover img { transform: scale(1.035); }
.wb-product__body { padding: 17px 2px 8px; }
.wb-product__name { font-size: 14px; line-height: 1.5; }
.wb-product__meta { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wb-compare-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 4px 0; color: var(--wb-muted); background: none; border: 0; font: inherit; font-size: 11px; cursor: pointer; }
.wb-compare-toggle svg { width: 18px; height: 18px; }
.wb-compare-toggle.is-active { color: var(--wb-accent); font-weight: 700; }
.wb-hero__media { position: relative; }
.wb-hero__media img { position: absolute; inset: 0; object-position: 55% center; }
.wb-category img { object-fit: cover; object-position: center 30%; }
.wb-editorial__media { background-image: url('../img/collection-hero.jpg'); }
.wb-promo__visual { background: linear-gradient(90deg, #a94d5b, transparent 35%), url('../img/catalog/dress-bordeaux.jpg') center 38% / cover; }
.wb-news-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.wb-newsletter-form .wa-subscribe-form { display: flex; flex-direction: column; }
.wb-newsletter-form input[type=text], .wb-newsletter-form input[type=email] { padding: 14px; border: 1px solid var(--wb-line); border-radius: 8px; font: inherit; }
.wb-newsletter-form input[type=submit] { background: var(--wb-accent); color: white; border: 0; border-radius: 8px; padding: 14px 24px; cursor: pointer; font: inherit; }
.wb-newsletter-form .wa-checkbox { font-size: 12px; line-height: 1.6; }
.wb-newsletter-form .wa-checkbox input { width: auto; }
.wb-newsletter-form .wa-after-submit { background: var(--wb-blush) !important; padding: 25px; border-radius: 12px; }
.wb-footer__brand { overflow: hidden; }
.wb-footer__brand > img { width: 340px; max-width: none; height: auto; }
.wb-footer__grid { grid-template-columns: 260px repeat(4, 1fr); }
.wb-back-link { display: inline-block; margin-bottom: 30px; font-size: 13px; color: var(--wb-muted) !important; }
.wb-muted { color: var(--wb-muted); }
.wb-empty-state--large { text-align: center; padding: 60px 24px; }
.wb-empty-state--large h2 { font: 600 38px/1.15 'Cormorant Garamond', Georgia, serif; }
.wb-empty-symbol { font-size: 58px; color: var(--wb-accent); }
.wb-empty-state--large .wb-btn { margin-top: 15px; }
@media(max-width:1180px) {
 .wb-footer__grid { grid-template-columns: 260px repeat(2, 1fr); }
 .wb-nav { gap: 16px; flex-basis: auto; }
}
@media(max-width:900px) {
 .wb-header__main { grid-template-columns: 44px 1fr auto; gap: 12px; }
 .wb-logo { width: 265px; }
 .wb-logo img { width: 350px; height: auto; }
 .wb-header-actions { gap: 2px; }
 .wb-nav { top: 100%; grid-row: auto; }
 .wb-hero__media { min-height: 390px; }
}
@media(max-width:640px) {
 .wb-header__main { grid-template-columns: 44px 1fr 44px; gap: 4px; padding-block: 10px 4px; }
 .wb-logo { width: 240px; max-width: calc(100vw - 120px); justify-self: center; }
 .wb-logo img { width: min(317px, calc((100vw - 120px) * 1.32)); max-width: none; height: auto; }
 .wb-header-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: space-around; }
 .wb-header-actions .wb-icon-btn { width: 48px; min-width: 44px; height: 42px; }
 .wb-header-actions a[aria-label='Личный кабинет'] { display: grid !important; }
 .wb-main section[id] { scroll-margin-top: 130px; }
 .wb-product__meta { align-items: flex-start; flex-direction: column; gap: 2px; }
 .wb-product__details { font-size: 12px; }
 .wb-hero__media { min-height: 300px; }
 .wb-footer__grid { grid-template-columns: 1fr 1fr; }
 .wb-footer__brand > img { width: 360px; }
}
