/* ===== DESIGN SYSTEM v1.0 (brief §0) ===== */
:root {
    --cream:         #F5EFE4;
    --cream-2:       #EDE4D2;
    --ivory:         #FAF6EC;
    --tomato:        #C0392B;
    --tomato-deep:   #8E2A20;
    --sage:          #8A9A7B;
    --sage-deep:     #5F6E52;
    --ochre:         #C99856;
    --ochre-deep:    #9A7238;
    --graphite:      #221E1A;
    --graphite-soft: #3A342E;
    --muted:         #6B6359;
    --line:          rgba(34,30,26,0.12);
    --font-serif:    'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --wcpc-surface: #fffaf3;
    --wcpc-surface-border: rgba(37, 29, 20, 0.12);
    --wcpc-surface-shadow: 0 12px 30px rgba(37, 29, 20, 0.08);
    --wcpc-accent: #8a5a2b;
    --wcpc-accent-soft: rgba(138, 90, 43, 0.08);
    --wcpc-text: #2c241c;
    --wcpc-muted: #64584c;
    --wcpc-dark: #24170f;
    --wcpc-header-wheat: #d8922f;
    --wcpc-header-caramel: #a96a2b;
    --wcpc-header-crust: #6f3f22;
    --wcpc-header-cream: #fff7e6;
    --wcpc-header-line: rgba(169, 106, 43, 0.18);
}

html,
body {
    font-family: var(--font-sans);
    margin: 0;
}

body .wp-site-blocks > header.wp-block-template-part:first-child {
    display: none;
}

/* ===== HEADER ===== */
.wcpc-site-header {
    color: var(--graphite);
    font-family: var(--font-sans);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.admin-bar .wcpc-site-header {
    top: 32px;
}

.wcpc-site-header a {
    color: inherit;
    text-decoration: none;
}

.wcpc-site-header__inner {
    align-items: center;
    display: flex;
    margin: 0 auto;
    max-width: min(1312px, calc(100vw - 48px));
    width: 100%;
}

/* Top strip */
.wcpc-site-header__top {
    background: var(--graphite);
    color: var(--cream);
    font-size: 13px;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
    max-height: 60px;
    opacity: 1;
}

.wcpc-site-header.is-sticky .wcpc-site-header__top {
    max-height: 60px;
    opacity: 1;
}

.wcpc-site-header__top .wcpc-site-header__inner {
    gap: 1rem;
    justify-content: space-between;
    min-height: 40px;
}

.wcpc-site-header__announcement {
    color: rgba(245,239,228,0.75);
    flex: 1 1 auto;
    min-width: 0;
}

.wcpc-site-header__info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-end;
}

.wcpc-site-header__info a {
    color: var(--cream);
    opacity: 0.8;
}

.wcpc-site-header__info a:hover {
    opacity: 1;
}

/* Main row */
.wcpc-site-header__main {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: relative;
    top: auto;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-bar .wcpc-site-header__main {
    top: auto;
}

.wcpc-site-header.is-sticky .wcpc-site-header__main {
    background: rgba(245,239,228,0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.wcpc-site-header__main-grid {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 88px;
}

/* Logo */
.wcpc-site-header__brand {
    align-items: center;
    color: var(--graphite);
    display: inline-flex;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.wcpc-site-header__brand em {
    color: var(--tomato);
    font-style: italic;
    font-weight: 400;
}

.wcpc-site-header__brand img {
    display: block;
    height: auto;
    width: 160px;
}

/* Nav */
.wcpc-site-header__catalog {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.wcpc-site-header__catalog::-webkit-scrollbar { display: none; }

.wcpc-site-header__catalog a {
    color: var(--graphite);
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wcpc-site-header__catalog a:hover {
    color: var(--tomato);
}

.wcpc-site-header__catalog a.is-primary {
    color: var(--tomato);
}

.wcpc-site-header__catalog a.is-primary::after,
.wcpc-site-header__catalog a[aria-current="page"]::after {
    background: var(--tomato);
    bottom: -2px;
    content: '';
    height: 2px;
    left: 12px;
    position: absolute;
    right: 12px;
}

/* Cart */
.wcpc-site-header__actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Mobile category menu toggle (hamburger) — hidden on desktop. */
.wcpc-site-header__menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--graphite);
    cursor: pointer;
    display: none;
    height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 44px;
}

.wcpc-site-header__menu-toggle-bars,
.wcpc-site-header__menu-toggle-bars::before,
.wcpc-site-header__menu-toggle-bars::after {
    background: currentColor;
    border-radius: 2px;
    content: '';
    display: block;
    height: 2px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 22px;
}

.wcpc-site-header__menu-toggle-bars {
    position: relative;
}

.wcpc-site-header__menu-toggle-bars::before {
    left: 0;
    position: absolute;
    top: -7px;
}

.wcpc-site-header__menu-toggle-bars::after {
    left: 0;
    position: absolute;
    top: 7px;
}

.wcpc-site-header.is-menu-open .wcpc-site-header__menu-toggle-bars {
    background: transparent;
}

.wcpc-site-header.is-menu-open .wcpc-site-header__menu-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
}

.wcpc-site-header.is-menu-open .wcpc-site-header__menu-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
}

.wcpc-site-header__icon-link {
    align-items: center;
    color: var(--graphite);
    display: inline-flex;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wcpc-site-header__icon-link:hover {
    color: var(--tomato);
}

.wcpc-site-header__icon-link svg {
    display: block;
    height: 24px;
    width: 24px;
}

.wcpc-site-header__icon-link em {
    align-items: center;
    background: var(--tomato);
    border-radius: 999px;
    color: var(--cream);
    display: inline-flex;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    height: 16px;
    justify-content: center;
    min-width: 16px;
    padding: 0 4px;
    position: absolute;
    right: -10px;
    top: -6px;
}

.home,
.home .wp-site-blocks {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 161, 0.28), transparent 28%),
        linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}

.home {
    overflow-x: hidden;
}

.home .wp-site-blocks > main.wcps-home {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.home .wp-site-blocks > * + * {
    margin-block-start: 0;
}

.home .entry-content.wp-block-post-content {
    margin-top: 0;
}

.home main.wp-block-group {
    margin-top: 0 !important;
}

.home main.wp-block-group > .wp-block-group.alignfull:first-child {
    padding-top: 0 !important;
}

.home h1.wp-block-post-title,
.home .wp-block-query-title {
    display: none;
}

@keyframes wcpc-products-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }
}

/* ── Blog index page ─────────────────────────────────────────── */

.wcps-blog-index {
    background:
        radial-gradient(circle at top left, rgba(201, 152, 86, 0.18), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #f7efe2 100%);
}

.wcps-blog-index .wcps-content-shell {
    margin: 0 auto;
    max-width: min(1080px, calc(100vw - 48px));
    padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
}

/* Header */

.wcps-blog-index__header {
    display: grid;
    gap: 14px;
    margin-bottom: clamp(32px, 5vw, 52px);
}

.wcps-blog-index__eyebrow {
    color: var(--tomato);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0;
    text-transform: uppercase;
}

.wcps-blog-index__title {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.98;
    margin: 0;
}

.wcps-blog-index__intro {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
    margin: 0;
    max-width: 42rem;
}

.wcps-blog-index__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.wcps-blog-index__filters a {
    align-items: center;
    background: rgba(250, 246, 236, 0.78);
    border: 1px solid rgba(34, 30, 26, 0.14);
    border-radius: 999px;
    color: var(--graphite);
    display: inline-flex;
    font-weight: 700;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.wcps-blog-index__filters a:hover {
    border-color: rgba(192, 57, 43, 0.44);
    color: var(--tomato);
}

.wcps-blog-index__filters a[aria-current="page"] {
    background: var(--graphite);
    border-color: var(--graphite);
    color: var(--cream);
}

/* Grid wrapper */

.wcps-blog-index__grid {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
}

/* Category badge */

.wcps-blog-badge {
    background: var(--tomato);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 3px 9px;
    text-transform: uppercase;
}

.wcps-blog-badge--small {
    font-size: 0.64rem;
    padding: 2px 8px;
}

/* ── Hero card ─── */

.wcps-blog-hero {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(34, 30, 26, 0.07);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    overflow: hidden;
}

.wcps-blog-hero__link {
    display: block;
    height: 100%;
}

.wcps-blog-hero__media {
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    position: relative;
}

.wcps-blog-hero__img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.wcps-blog-hero:hover .wcps-blog-hero__img {
    transform: scale(1.03);
}

.wcps-blog-hero__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
}

.wcps-blog-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0;
}

.wcps-blog-hero__title a {
    color: var(--graphite);
    text-decoration: none;
    transition: color 0.15s;
}

.wcps-blog-hero__title a:hover {
    color: var(--tomato);
}

.wcps-blog-hero__excerpt {
    color: var(--muted);
    line-height: 1.7;
}

.wcps-blog-hero__excerpt > * {
    margin: 0;
}

.wcps-blog-hero__cta {
    color: var(--tomato);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: opacity 0.15s;
}

.wcps-blog-hero__cta:hover {
    opacity: 0.7;
}

/* ── Cards grid ─── */

.wcps-blog-index__cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.wcps-blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(34, 30, 26, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wcps-blog-card:hover {
    box-shadow: 0 6px 28px rgba(34, 30, 26, 0.12);
    transform: translateY(-2px);
}

.wcps-blog-card__media-link {
    display: block;
    flex-shrink: 0;
}

.wcps-blog-card__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.wcps-blog-card__img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.wcps-blog-card:hover .wcps-blog-card__img {
    transform: scale(1.04);
}

.wcps-blog-card__placeholder {
    background: #EDE4D2;
    height: 100%;
    position: relative;
    width: 100%;
}

.wcps-blog-card__placeholder-svg {
    display: block;
    height: 100%;
    width: 100%;
}

.wcps-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: clamp(18px, 2.5vw, 26px);
}

.wcps-blog-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;
}

.wcps-blog-card__title a {
    color: var(--graphite);
    text-decoration: none;
    transition: color 0.15s;
}

.wcps-blog-card__title a:hover {
    color: var(--tomato);
}

.wcps-blog-card__excerpt {
    color: var(--muted);
    flex: 1;
    font-size: 0.93rem;
    line-height: 1.65;
}

.wcps-blog-card__excerpt > * {
    margin: 0;
}

.wcps-blog-card__footer {
    align-items: center;
    display: flex;
    margin-top: auto;
}

/* Empty state */

.wcps-blog-index__empty {
    color: var(--muted);
    margin: 0;
}

/* ── Responsive ─── */

@media (max-width: 860px) {
    .wcps-blog-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wcps-blog-hero__media {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .wcps-blog-index .wcps-content-shell {
        max-width: calc(100vw - 24px);
        padding-top: 30px;
    }

    .wcps-blog-index__filters {
        gap: 8px;
    }

    .wcps-blog-index__filters a {
        min-height: 38px;
        padding: 0 13px;
    }

    .wcps-blog-index__cards {
        grid-template-columns: 1fr;
    }
}

.home .entry-content.wp-block-post-content > .wp-block-group:first-child {
    max-width: min(1240px, calc(100vw - 48px));
    padding-left: clamp(16px, 2vw, 24px);
    padding-right: clamp(16px, 2vw, 24px);
}

.home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-group,
.home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-columns,
.home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-group > .wp-block-columns {
    margin-bottom: 1.5rem;
}

.home .entry-content .wp-block-columns {
    align-items: stretch;
}

.home .wp-block-button.is-style-fill .wp-block-button__link,
.home .wp-block-button .wp-block-button__link {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.4rem;
}

.home .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: rgba(255, 247, 239, 0.6);
    color: #fffdf9;
}

.home .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: #fffdf9;
}

.home .wp-block-query .wp-block-post-template {
    gap: 1.25rem;
}

.home .wc-block-grid__products,
.home ul.wc-block-grid__products {
    gap: 1.25rem;
}

.home .wc-block-grid__product,
.home li.wc-block-grid__product {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 29, 20, 0.08);
    border-radius: 22px;
    box-shadow: var(--wcpc-surface-shadow);
    padding: 1.1rem;
}

.single-product .wcps-woocommerce-shell {
    max-width: min(1360px, calc(100vw - 48px));
}

.wcps-single-product {
    color: var(--wcpc-text);
    font-family: var(--font-sans);
}

.wcps-single-product a {
    color: inherit;
}

.wcps-single-product__lead {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 44px);
    grid-template-areas: "decision decision purchase";
    grid-template-columns: minmax(360px, 1.08fr) minmax(280px, 0.9fr) minmax(280px, 0.56fr);
    margin: 0 0 clamp(48px, 6vw, 88px);
}

.wcps-single-product__lead--has-story {
    grid-template-areas:
        "decision decision purchase"
        "story story purchase";
}

.wcps-single-product__decision {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 44px);
    grid-area: decision;
    grid-template-columns: minmax(360px, 1.08fr) minmax(280px, 0.9fr);
    min-width: 0;
}

.wcps-single-product__media {
    min-width: 0;
    width: 100%;
}

.wcps-single-product__media .woocommerce-product-gallery {
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    padding-left: 82px;
    position: relative;
    width: 100% !important;
}

.wcps-single-product__media .woocommerce-product-gallery__trigger {
    align-items: center;
    background: rgba(255, 250, 243, 0.92);
    border: 1px solid rgba(37, 29, 20, 0.14);
    border-radius: 999px;
    color: var(--wcpc-dark);
    display: inline-flex !important;
    height: 38px;
    justify-content: center;
    line-height: 1;
    opacity: 1;
    position: absolute;
    right: 12px;
    text-indent: -9999px;
    top: 12px;
    width: 38px;
    z-index: 8;
}

.wcps-single-product__media .woocommerce-product-gallery__trigger::before {
    content: "+";
    font-size: 1.35rem;
    font-weight: 700;
    text-indent: 0;
}

.wcps-single-product__media .woocommerce-product-gallery__wrapper {
    max-width: 100%;
}

.wcps-single-product__media .flex-viewport,
.wcps-single-product__media .woocommerce-product-gallery__wrapper {
    min-width: 0;
    margin: 0;
}

.wcps-single-product__media .flex-viewport {
    aspect-ratio: 3 / 4;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    height: auto !important;
    overflow: hidden;
    position: relative;
    width: 100% !important;
}

.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__wrapper,
.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__image {
    height: 100%;
}

.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__wrapper {
    align-items: stretch;
    display: flex;
}

.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__image {
    flex: 0 0 auto;
}

.wcps-single-product__media .woocommerce-product-gallery__image {
    box-sizing: border-box;
    min-width: 0;
}

.wcps-single-product__media .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    display: none;
}

.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    display: block;
}

.wcps-single-product__media .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    align-items: center;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 20% 12%, rgba(192, 57, 43, 0.06), transparent 34%),
        linear-gradient(145deg, #fffdf9 0%, var(--wcpc-surface) 100%);
    border: 1px solid var(--wcpc-surface-border);
    box-sizing: border-box;
    display: grid;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.wcps-single-product__media .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child a,
.wcps-single-product__media .flex-viewport .woocommerce-product-gallery__image a {
    align-items: center;
    box-sizing: border-box;
    display: grid;
    height: 100%;
    min-width: 0;
    padding: clamp(4px, 1vw, 12px);
    width: 100%;
}

.wcps-single-product__media .woocommerce-product-gallery__image img {
    display: block;
    height: 100%;
    margin: 0 auto;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
}

.wcps-single-product__media .flex-control-thumbs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none;
}

.wcps-single-product__media .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.wcps-single-product__media .flex-control-thumbs li {
    flex: 0 0 auto;
    margin: 0;
    width: 100% !important;
}

.wcps-single-product__media .flex-control-thumbs img {
    aspect-ratio: 3 / 4;
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(37, 29, 20, 0.1);
    cursor: pointer;
    display: block;
    height: 75px;
    max-height: 75px;
    object-fit: contain;
    padding: 4px;
    width: 100%;
}

.wcps-single-product__media .flex-control-thumbs img.flex-active,
.wcps-single-product__media .flex-control-thumbs img:hover {
    border-color: rgba(192, 57, 43, 0.42);
}

.wcps-product-gallery__thumb-nav {
    display: grid;
    gap: 7px;
    grid-template-rows: minmax(0, 1fr);
    bottom: 0;
    left: 0;
    min-height: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 70px;
    z-index: 6;
}

.wcps-product-gallery__thumb-nav.has-thumb-overflow {
    grid-template-rows: 28px minmax(0, 1fr) 28px;
}

.wcps-product-gallery__thumb-button,
.wcps-product-gallery__nav-button {
    align-items: center;
    background: rgba(255, 250, 243, 0.9);
    border: 1px solid rgba(37, 29, 20, 0.14);
    color: var(--wcpc-dark);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
}

.wcps-product-gallery__thumb-button {
    box-sizing: border-box;
    height: 28px;
    min-height: 28px;
    padding: 0;
    width: 100%;
}

.wcps-product-gallery__thumb-nav .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
}

.wcps-product-gallery__thumb-nav.has-thumb-overflow .flex-control-thumbs {
    grid-row: 2;
}

.wcps-product-gallery__thumb-button[hidden] {
    display: none;
}

.wcps-product-gallery__thumb-button:disabled,
.wcps-product-gallery__nav-button:disabled {
    cursor: default;
    opacity: 0.36;
}

.wcps-product-gallery__nav-button {
    border-radius: 999px;
    height: 42px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    z-index: 7;
}

.wcps-product-gallery__nav-button--prev {
    left: 94px;
}

.wcps-product-gallery__nav-button--next {
    right: 12px;
}

.wcps-product-gallery__nav-button:hover,
.wcps-product-gallery__thumb-button:hover {
    border-color: rgba(192, 57, 43, 0.34);
}

.wcps-single-product__summary {
    min-width: 0;
    padding-top: clamp(4px, 1vw, 12px);
}

.wcps-single-product__brand,
.wcps-single-product__section-heading p {
    color: var(--wcpc-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 0.7rem;
    text-transform: uppercase;
}

.wcps-single-product__title {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(2.35rem, 4vw, 4.8rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0;
}

.wcps-single-product__rating {
    align-items: center;
    color: #d9921b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.wcps-single-product__rating span {
    font-weight: 700;
}

.wcps-single-product__rating span:not([aria-hidden="true"]) {
    /* число рейтинга темнее золота для читаемости (WCAG AA 4.5:1); звезда остаётся золотой */
    color: #966513;
}

.wcps-single-product__rating small {
    color: var(--wcpc-muted);
    font-size: 0.9rem;
}

.wcps-single-product__excerpt {
    color: var(--wcpc-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-top: clamp(18px, 2vw, 28px);
    max-width: 58ch;
}

.wcps-single-product__excerpt > * {
    margin: 0 0 0.9rem;
}

.wcps-single-product__excerpt > *:last-child {
    margin-bottom: 0;
}

.wcps-single-product__facts {
    border-top: 1px solid var(--wcpc-surface-border);
    display: grid;
    gap: 0;
    margin: clamp(24px, 3vw, 34px) 0 0;
}

.wcps-single-product__facts div {
    border-bottom: 1px solid var(--wcpc-surface-border);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
    padding: 13px 0;
}

.wcps-single-product__facts dt,
.wcps-single-product__attribute-table dt {
    color: var(--wcpc-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wcps-single-product__facts dd,
.wcps-single-product__attribute-table dd {
    color: var(--wcpc-text);
    font-size: 0.96rem;
    line-height: 1.45;
    margin: 0;
}

.wcps-single-product__facts dd a {
    color: var(--wcpc-text);
    text-decoration: underline;
    text-decoration-color: rgba(37, 29, 20, 0.24);
    text-underline-offset: 3px;
}

.wcps-single-product__purchase {
    background: #fffdf9;
    border: 1px solid rgba(37, 29, 20, 0.14);
    box-shadow: 0 18px 42px rgba(37, 29, 20, 0.08);
    display: grid;
    gap: 18px;
    grid-area: purchase;
    min-width: 0;
    padding: clamp(20px, 2vw, 28px);
    position: sticky;
    top: 132px;
}

body.admin-bar .wcps-single-product__purchase {
    top: 164px;
}

.wcps-single-product__price {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 2.45vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.wcps-single-product__price del {
    color: var(--wcpc-muted);
    display: block;
    font-size: 1rem;
    font-family: var(--font-sans);
    margin-bottom: 0.35rem;
}

.wcps-single-product__price ins {
    text-decoration: none;
}

/* WooCommerce-уведомления (добавление в корзину, info, ошибки) в стиле витрины */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
    background: var(--wcpc-surface) !important;
    border: 1px solid var(--wcpc-surface-border);
    border-top: 0;
    border-left: 4px solid var(--sage-deep);
    border-radius: 12px;
    box-shadow: var(--wcpc-surface-shadow);
    color: var(--wcpc-text);
    font-weight: 500;
    list-style: none;
    margin: 0 0 24px;
    padding: 16px 20px 16px 52px;
}

.woocommerce-info {
    border-left-color: var(--tomato);
}

.woocommerce-error {
    border-left-color: var(--tomato-deep);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    left: 20px;
    top: 18px;
}

.woocommerce-message::before {
    color: var(--sage-deep);
}

.woocommerce-info::before,
.woocommerce-error::before {
    color: var(--tomato);
}

.woocommerce-message .button,
.woocommerce-message .button.wc-forward,
.woocommerce-info .button,
.woocommerce-info .button.wc-forward {
    background: var(--tomato);
    background-color: var(--tomato);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    color: #fffdf9;
    font-weight: 700;
    min-height: 0;
    padding: 0.6rem 1.05rem;
}

.woocommerce-message .button:hover,
.woocommerce-message .button.wc-forward:hover,
.woocommerce-info .button:hover,
.woocommerce-info .button.wc-forward:hover {
    background: var(--tomato-deep);
    background-color: var(--tomato-deep);
    color: #fffdf9;
}

@media (max-width: 600px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 16px 18px 16px 46px;
    }

    .woocommerce-message .button,
    .woocommerce-message .button.wc-forward,
    .woocommerce-info .button,
    .woocommerce-info .button.wc-forward {
        display: block;
        float: none;
        margin-top: 12px;
        text-align: center;
        width: 100%;
    }
}

.wcpc-account-panel__facts {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.wcpc-account-panel__facts li {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(37, 29, 20, 0.08);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.wcpc-account-panel__facts li strong {
    color: var(--wcpc-accent);
    display: inline;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.wcpc-account-panel__facts li span {
    color: var(--wcpc-text);
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .wcpc-account-panel__facts {
        grid-template-columns: 1fr;
    }
}

.wcps-single-product__stock .stock {
    color: var(--wcpc-muted);
    font-weight: 700;
    margin: 0;
}

.wcps-single-product__stock .stock.in-stock {
    color: var(--sage-deep);
}

.wcps-single-product__stock .stock.out-of-stock {
    color: var(--tomato-deep);
}

.wcps-single-product__cart form.cart {
    display: grid;
    gap: 14px;
    margin: 0;
}

.wcps-single-product__cart form.cart::after,
.wcps-single-product__cart form.cart::before {
    content: none;
}

.wcps-single-product__cart .quantity {
    float: none;
    margin: 0;
}

.wcps-single-product__cart .quantity input.qty {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    color: var(--wcpc-text);
    font: inherit;
    min-height: 46px;
    padding: 0 0.7rem;
    width: 88px;
}

.wcps-single-product__cart .single_add_to_cart_button,
.wcps-single-product__cart .button {
    align-items: center;
    background: var(--tomato);
    background-color: var(--tomato);
    border: 0;
    color: #fffdf9;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    min-height: 52px;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    width: 100%;
}

.single-product .wcps-single-product__cart .single_add_to_cart_button,
.single-product .wcps-single-product__cart .single_add_to_cart_button.alt,
.single-product .wcps-single-product__cart .single_add_to_cart_button.button,
.single-product .wcps-single-product__cart button.single_add_to_cart_button {
    background: var(--tomato) !important;
    background-color: var(--tomato) !important;
    border-color: transparent !important;
    color: #fffdf9 !important;
}

.wcps-single-product__cart .single_add_to_cart_button:hover,
.wcps-single-product__cart .button:hover {
    background: var(--tomato-deep);
    background-color: var(--tomato-deep);
}

.single-product .wcps-single-product__cart .single_add_to_cart_button:hover,
.single-product .wcps-single-product__cart .single_add_to_cart_button.alt:hover,
.single-product .wcps-single-product__cart .single_add_to_cart_button.button:hover,
.single-product .wcps-single-product__cart button.single_add_to_cart_button:hover {
    background: var(--tomato-deep) !important;
    background-color: var(--tomato-deep) !important;
    color: #fffdf9 !important;
}

.wcps-single-product__cart .variations {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.wcps-single-product__cart .variations tr {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.wcps-single-product__cart .variations th,
.wcps-single-product__cart .variations td {
    display: block;
    padding: 0;
    text-align: left;
}

.wcps-single-product__cart .variations label {
    color: var(--wcpc-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wcps-single-product__cart .variations select {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    color: var(--wcpc-text);
    font: inherit;
    min-height: 46px;
    padding: 0 0.8rem;
    width: 100%;
}

.wcps-single-product__cart .reset_variations {
    color: var(--wcpc-muted);
    display: inline-block;
    font-size: 0.88rem;
    margin-top: 0.45rem;
}

.wcps-single-product__cart .woocommerce-variation,
.wcps-single-product__cart .single_variation_wrap {
    display: grid;
    gap: 14px;
}

.wcps-single-product__buyer-links {
    border-top: 1px solid var(--wcpc-surface-border);
    display: grid;
    gap: 9px;
    padding-top: 16px;
}

.wcps-single-product__buyer-links a {
    color: var(--wcpc-muted);
    font-size: 0.95rem;
    text-decoration: underline;
    text-decoration-color: rgba(100, 88, 76, 0.26);
    text-underline-offset: 3px;
}

.wcps-single-product__section {
    border-top: 1px solid rgba(37, 29, 20, 0.14);
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    padding: clamp(42px, 6vw, 76px) 0;
}

.wcps-single-product__section-heading h2 {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 3.8rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.wcps-single-product__story-content {
    color: var(--wcpc-muted);
    font-size: 1.04rem;
    line-height: 1.72;
    max-width: 72ch;
}

.wcps-single-product__story-content > * {
    margin: 0 0 1rem;
}

.wcps-single-product__story-content > *:last-child {
    margin-bottom: 0;
}

.wcps-single-product__story {
    grid-area: story;
}

.wcps-single-product__attribute-table {
    border-top: 1px solid var(--wcpc-surface-border);
    display: grid;
    margin: 0;
}

.wcps-single-product__attribute-table div {
    border-bottom: 1px solid var(--wcpc-surface-border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
    padding: 15px 0;
}

.wcps-single-product__reviews {
    column-gap: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    row-gap: 16px;
}

.wcps-single-product__reviews .wcps-single-product__section-heading {
    align-self: start;
    grid-column: 1;
    grid-row: 1;
}

.wcps-single-product__reviews-body {
    display: grid;
    gap: 12px clamp(24px, 4vw, 56px);
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-width: 0;
}

.wcps-single-product__reviews-summary {
    align-items: baseline;
    display: flex;
    gap: 12px;
    grid-column: 1;
    grid-row: 1;
}

.wcps-single-product__reviews-summary strong {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1;
}

.wcps-single-product__reviews-summary span {
    color: var(--wcpc-muted);
    font-weight: 700;
}

.wcps-single-product__review-bars {
    display: grid;
    gap: 9px;
    grid-column: 1;
    grid-row: 2;
    max-width: 520px;
}

.wcps-single-product__reviews-trust-note {
    color: var(--wcpc-muted);
    font-size: 0.92rem;
    grid-column: 1;
    grid-row: 3;
    line-height: 1.45;
    margin: 0;
    max-width: 520px;
}

.wcps-single-product__review-bar {
    align-items: center;
    color: var(--wcpc-muted);
    display: grid;
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    font-size: 0.9rem;
}

.wcps-single-product__review-track {
    background: rgba(37, 29, 20, 0.12);
    border-radius: 999px;
    display: block;
    height: 8px;
    overflow: hidden;
}

.wcps-single-product__review-track span {
    background: #d9921b;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.wcps-single-product__review-list {
    align-self: start;
    display: grid;
    gap: 16px;
    grid-column: 2;
    grid-row: 1 / span 3;
}

.wcps-single-product__review {
    border-top: 1px solid var(--wcpc-surface-border);
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.wcps-single-product__review header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.wcps-single-product__review-meta {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcps-single-product__review-meta strong {
    color: var(--wcpc-text);
}

.wcps-single-product__review-meta time {
    color: var(--wcpc-muted);
    font-size: 0.88rem;
}

.wcps-single-product__review-source {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    padding: 0.42rem 0.62rem;
    white-space: nowrap;
}

.wcps-single-product__review-source--wildberries {
    background: rgba(153, 51, 204, 0.12);
    color: #7a24a8;
}

.wcps-single-product__review-source--ozon {
    background: rgba(0, 91, 255, 0.11);
    color: #0050d8;
}

.wcps-single-product__review-source--guruvkusa {
    background: rgba(169, 106, 43, 0.14);
    color: var(--wcpc-header-caramel);
}

.wcps-single-product__review-source--yandex_market {
    background: rgba(255, 204, 0, 0.22);
    color: #3f3520;
}

.wcps-single-product__review-rating {
    color: #d9921b;
    font-size: 0.92rem;
    letter-spacing: 0;
}

.wcps-single-product__review p {
    color: var(--wcpc-muted);
    line-height: 1.62;
    margin: 0;
    max-width: 72ch;
}

.wcps-single-product__review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcps-single-product__review-media img {
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    display: block;
    height: 72px;
    object-fit: cover;
    width: 96px;
}

.wcps-single-product__review-note {
    font-size: 0.94rem;
}

.wcps-single-product__review-note strong {
    color: var(--wcpc-text);
}

.wcps-single-product__reviews-more {
    align-items: center;
    background: var(--wcpc-dark);
    border: 0;
    border-radius: 2px;
    color: #fffaf3;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    grid-column: 2;
    grid-row: 4;
    justify-content: center;
    justify-self: start;
    min-height: 44px;
    padding: 0 18px;
}

.wcps-single-product__reviews-more:disabled {
    cursor: progress;
    opacity: 0.72;
}

.wcps-single-product__related {
    display: block;
}

.wcps-single-product__related > .related {
    margin: 0;
}

.wcps-single-product__related > .related > h2 {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 3.6rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 1.5rem;
}

.wcps-single-product__related ul.products {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}

.wcps-single-product__related ul.products::after,
.wcps-single-product__related ul.products::before {
    content: none;
}

.wcps-single-product__related ul.products li.product {
    float: none;
    margin: 0;
    width: auto;
}

@media (max-width: 1180px) {
    .wcps-single-product__lead {
        grid-template-areas: "decision purchase";
        grid-template-columns: minmax(320px, 0.96fr) minmax(280px, 1fr);
    }

    .wcps-single-product__lead--has-story {
        grid-template-areas:
            "decision purchase"
            "story purchase";
    }

    .wcps-single-product__decision {
        grid-template-columns: 1fr;
    }

    .wcps-single-product__purchase {
        position: static;
    }
}

@media (max-width: 820px) {
    .single-product .wcps-woocommerce-shell {
        max-width: calc(100vw - 24px);
        padding-top: 1rem;
    }

    .wcps-single-product__lead {
        grid-template-areas:
            "decision"
            "purchase";
        grid-template-columns: minmax(0, 1fr);
    }

    .wcps-single-product__lead--has-story {
        grid-template-areas:
            "decision"
            "purchase"
            "story";
    }

    .wcps-single-product__decision,
    .wcps-single-product__section {
        grid-template-columns: 1fr;
    }

    .wcps-single-product__decision {
        gap: 22px;
        margin-bottom: 40px;
    }

    .wcps-single-product__media .flex-viewport,
    .wcps-single-product__media .woocommerce-product-gallery,
    .wcps-single-product__media .woocommerce-product-gallery__image,
    .wcps-single-product__media .woocommerce-product-gallery__image:first-child,
    .wcps-single-product__media .woocommerce-product-gallery__wrapper {
        max-width: 100%;
    }

    .wcps-single-product__reviews-body {
        display: grid;
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .wcps-single-product__reviews-summary,
    .wcps-single-product__review-bars,
    .wcps-single-product__reviews-trust-note,
    .wcps-single-product__review-list,
    .wcps-single-product__reviews-more {
        grid-column: auto;
        grid-row: auto;
    }

    .wcps-single-product__summary {
        padding-top: 0;
    }

    .wcps-single-product__title {
        font-size: clamp(2.25rem, 12vw, 3.7rem);
    }

    .wcps-single-product__purchase {
        box-shadow: none;
        grid-column: auto;
        padding: 18px;
        position: static;
    }

    .wcps-single-product__facts div,
    .wcps-single-product__attribute-table div {
        grid-template-columns: 1fr;
    }

    .wcps-single-product__section {
        gap: 20px;
        padding: 38px 0;
    }

    .wcps-single-product__related ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .wcps-single-product__media .woocommerce-product-gallery {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 0;
    }

    .wcps-single-product__media .flex-viewport,
    .wcps-single-product__media .woocommerce-product-gallery__wrapper {
        grid-column: 1;
    }

    .wcps-product-gallery__thumb-nav {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        margin-top: 10px;
        position: static;
        width: auto;
    }

    .wcps-product-gallery__thumb-nav.has-thumb-overflow {
        grid-template-rows: auto;
    }

    .wcps-single-product__media .flex-control-thumbs {
        flex-direction: row;
        height: auto;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .wcps-single-product__media .flex-control-thumbs li {
        flex: 0 0 54px;
        width: auto !important;
    }

    .wcps-product-gallery__thumb-button {
        display: none;
    }

    .wcps-single-product__media .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child a,
    .wcps-single-product__media .flex-viewport .woocommerce-product-gallery__image a {
        padding: 8px;
    }

    .wcps-single-product__related ul.products {
        grid-template-columns: 1fr;
    }
}

.page .entry-content > .wcpc-seo-landing,
.page .entry-content.wp-block-post-content > .wcpc-seo-landing {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: min(1180px, calc(100vw - 48px));
}

.wcpc-seo-hero,
.wcpc-seo-section,
.wcpc-seo-trust {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 24px;
    box-shadow: var(--wcpc-surface-shadow);
    padding: clamp(1.2rem, 2vw, 2rem);
}

.wcpc-seo-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 208, 145, 0.22), transparent 32%),
        linear-gradient(135deg, #fffdf9 0%, #fff6ea 100%);
}

.wcpc-seo-kicker {
    color: var(--wcpc-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

.wcpc-seo-lead,
.wcpc-seo-muted,
.wcpc-seo-trust p,
.wcpc-seo-faq__item p,
.wcpc-seo-products--empty p {
    color: var(--wcpc-muted);
    line-height: 1.7;
    margin: 0;
}

.wcpc-seo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.wcpc-seo-badges li {
    background: rgba(138, 90, 43, 0.08);
    border: 1px solid rgba(138, 90, 43, 0.14);
    border-radius: 999px;
    color: var(--wcpc-dark);
    font-size: 0.92rem;
    padding: 0.55rem 0.9rem;
}

.wcpc-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.wcpc-seo-button {
    background: linear-gradient(135deg, #8a5a2b 0%, #b8793b 100%);
    border-radius: 999px;
    color: #fffdf9;
    display: inline-block;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
}

.wcpc-seo-link-grid,
.wcpc-seo-products__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}

.wcpc-seo-link-card,
.wcpc-seo-products__card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 29, 20, 0.08);
    border-radius: 18px;
    color: var(--wcpc-text);
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.wcpc-seo-link-card {
    min-height: 100%;
    padding: 1rem 1.05rem;
}

.wcpc-seo-link-card strong,
.wcpc-seo-products__card h3 {
    color: var(--wcpc-dark);
    display: block;
    margin-bottom: 0.45rem;
}

.wcpc-seo-link-card span,
.wcpc-seo-products__meta {
    color: var(--wcpc-muted);
    font-size: 0.94rem;
}

.wcpc-seo-products__image {
    background: #fff8ef;
    display: block;
    padding: 1rem;
}

.wcpc-seo-products__image img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

.wcpc-seo-products__body {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.05rem 1.1rem;
}

.wcpc-seo-products__price {
    color: var(--wcpc-accent);
    font-weight: 700;
}

.wcpc-seo-products__link {
    color: var(--wcpc-accent);
    font-weight: 700;
    text-decoration: none;
}

.wcpc-seo-faq {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.wcpc-seo-faq__item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(37, 29, 20, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.wcpc-seo-faq__item summary {
    color: var(--wcpc-dark);
    cursor: pointer;
    font-weight: 700;
}

@media (min-width: 900px) {
    .home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-columns,
    .home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-group > .wp-block-columns {
        display: grid;
        gap: 24px;
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    }

    .home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-columns:last-child,
    .home .entry-content.wp-block-post-content > .wp-block-group:first-child > .wp-block-group > .wp-block-columns:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .entry-content .wp-block-column {
        flex-basis: auto !important;
    }
}

@media (max-width: 767px) {
    body.admin-bar .wcpc-site-header {
        top: 46px;
    }

    .wcpc-site-header__inner {
        max-width: calc(100vw - 24px);
    }

    /* Mobile: hide the top utility strip entirely — the same links
       (Доставка и оплата, Гарантия, Рецепты, Контакты) live in the footer. */
    .wcpc-site-header__top {
        display: none;
    }

    .wcpc-site-header__main-grid {
        gap: 0.9rem;
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 0.7rem 0 0.55rem;
    }

    .wcpc-site-header__brand {
        /* без этого 1fr-колонка не сжимается ниже min-content логотипа
           и ряд иконок уезжает за экран (горизонтальный скролл на узких экранах) */
        min-width: 0;
    }

    .wcpc-site-header__brand img {
        width: clamp(142px, 45vw, 188px);
        max-width: 100%;
    }

    .wcpc-site-header__actions {
        gap: 0.5rem;
        overflow-x: visible;
    }

    .wcpc-site-header__actions a {
        font-size: 0.72rem;
        min-width: 56px;
    }

    .wcpc-site-header__actions strong {
        font-size: 0.72rem;
    }

    .wcpc-site-header__menu-toggle {
        display: inline-flex;
    }

    /* Categories collapse into a dropdown panel under the header bar. */
    .wcpc-site-header__catalog {
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        justify-content: flex-start;
        left: 0;
        margin: 0;
        mask-image: none;
        -webkit-mask-image: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 6px 0 8px;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 100%;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s;
        visibility: hidden;
        z-index: 40;
    }

    .wcpc-site-header.is-menu-open .wcpc-site-header__catalog {
        max-height: 72svh;
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
        visibility: visible;
    }

    .wcpc-site-header__catalog a {
        font-size: 17px;
        padding: 13px 20px;
        white-space: normal;
    }

    .wcpc-site-header__catalog a.is-primary::after,
    .wcpc-site-header__catalog a[aria-current="page"]::after {
        bottom: 6px;
        left: 20px;
        right: auto;
        width: 22px;
    }

    .home .entry-content.wp-block-post-content > .wp-block-group:first-child {
        max-width: calc(100vw - 24px);
        padding-left: 0;
        padding-right: 0;
    }

    .page .entry-content > .wcpc-seo-landing,
    .page .entry-content.wp-block-post-content > .wcpc-seo-landing {
        max-width: calc(100vw - 24px);
    }

    .wcpc-seo-hero,
    .wcpc-seo-section,
    .wcpc-seo-trust {
        border-radius: 18px;
    }

    .wcpc-seo-products__grid,
    .wcpc-seo-link-grid {
        grid-template-columns: 1fr;
    }
}

:root {
    --wcps-craft-ink: var(--graphite);
    --wcps-craft-text: var(--graphite-soft);
    --wcps-craft-muted: var(--muted);
    --wcps-craft-line: var(--line);
    --wcps-craft-paper: var(--ivory);
    --wcps-craft-surface: var(--cream);
    --wcps-craft-surface-2: var(--cream-2);
    --wcps-craft-accent: var(--tomato);
    --wcps-craft-accent-2: var(--ochre-deep);
    --wcps-craft-sage: var(--sage-deep);
    --wcps-craft-gold: var(--ochre);
    --wcps-craft-shadow: 0 14px 34px rgba(34, 30, 26, 0.08);
    --wcps-craft-radius: 2px;
}

.home .wcps-home {
    background:
        radial-gradient(circle at top left, rgba(201, 152, 86, 0.16), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(192, 57, 43, 0.05), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f7f0e4 46%, #fffaf2 100%);
    color: var(--wcps-craft-text);
    font-family: var(--font-sans);
    letter-spacing: 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
    width: 100%;
}

.home .wcps-home,
.home .wcps-home .wcps-craft-wrap {
    overflow: visible;
}

.wcps-bleed {
    box-sizing: border-box;
    margin-inline: calc(50% - 50vw);
    max-width: none;
    width: 100vw;
}

.wcps-craft-wrap {
    margin: 0 auto;
    max-width: min(1312px, calc(100vw - 48px));
    width: 100%;
}

.wcps-home > .wcps-craft-section:first-of-type {
    padding-top: 64px;
}

.wcps-craft-section {
    padding: 56px 0;
}

.wcps-craft-section--panel {
    background: transparent;
}

.wcps-craft-section--warm {
    background: transparent;
}

/* Social Proof Strip */
.wcps-craft-proof {
    background: var(--graphite);
    color: var(--cream);
    padding: 42px 0;
}

.wcps-craft-proof__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.wcps-craft-proof__item {
    border-right: 1px solid rgba(245,239,228,0.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
}

.wcps-craft-proof__item:last-child {
    border-right: 0;
}

.wcps-craft-proof__item:first-child {
    padding-left: 0;
}

.wcps-craft-proof__num {
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.wcps-craft-proof__label {
    color: #B8B0A3;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.55;
}

.wcps-craft-season,
.wcps-craft-principles,
.wcps-craft-reviews,
.wcps-craft-guides {
    background: transparent;
    padding-bottom: 40px;
}

.wcps-craft-seo-text {
    border-top: 1px solid rgba(34, 30, 26, 0.1);
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}

.wcps-craft-seo-text__body {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    grid-template-columns: 1fr 2fr;
}

.wcps-craft-seo-text__title {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.wcps-craft-seo-text__prose p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0 0 1em;
}

.wcps-craft-seo-text__prose p:last-child {
    margin-bottom: 0;
}

.wcps-craft-seo-text__prose a {
    color: var(--graphite);
    text-decoration: underline;
    text-decoration-color: rgba(34, 30, 26, 0.3);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.wcps-craft-seo-text__prose a:hover {
    color: var(--tomato);
    text-decoration-color: var(--tomato);
}

@media (max-width: 767px) {
    .wcps-craft-seo-text__body {
        grid-template-columns: 1fr;
    }
}

.wcps-craft-scenarios {
    background: transparent;
}

.wcps-craft-section-head {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.wcps-craft-section-head h2,
.wcps-craft-principles__copy h2,
.wcps-craft-review-summary h2,
.wcps-craft-guides h2,
.wcps-craft-footer__newsletter h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 0;
    overflow-wrap: normal;
}

.wcps-craft-section-head h2 {
    color: var(--wcps-craft-ink);
    font-size: clamp(2.7rem, 5vw, 4.1rem);
    line-height: 0.98;
    max-width: 19ch;
    text-wrap: balance;
}

.wcps-craft-section-head > p {
    color: var(--wcps-craft-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.wcps-craft-eyebrow {
    color: var(--wcps-craft-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.wcps-craft-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--wcps-craft-line);
    border-radius: var(--wcps-craft-radius);
    color: var(--wcps-craft-ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.08em;
    min-height: 46px;
    padding: 0 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.wcps-craft-button:hover {
    border-color: rgba(184, 77, 50, 0.28);
    box-shadow: none;
}

.wcps-craft-button:focus-visible {
    outline: 2px solid var(--wcps-craft-accent);
    outline-offset: 2px;
}

.wcps-craft-button--red {
    background: var(--wcps-craft-accent);
    border-color: var(--wcps-craft-accent);
    color: #fffaf5;
}

.wcps-craft-button--outline {
    background: transparent;
    border: 1px solid var(--graphite);
    color: var(--graphite);
}

.wcps-craft-button--outline:hover {
    background: var(--graphite);
    color: var(--cream);
}

/* ===== HERO — full-bleed editorial ===== */
.wcps-craft-hero {
    background-color: var(--graphite);
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 92vh;
    padding: 0;
    position: relative;
}

.wcps-craft-hero__video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.wcps-craft-hero__wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    padding: 112px 0 72px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.wcps-craft-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(34, 30, 26, 0.88) 0%,
        rgba(34, 30, 26, 0.42) 55%,
        rgba(34, 30, 26, 0.18) 100%
    );
    inset: 0;
    position: absolute;
    z-index: 1;
}

.wcps-craft-hero__body {
    display: block;
    max-width: none;
    padding: 0;
    position: relative;
    width: 100%;
}

.wcps-craft-hero__eyebrow {
    color: rgba(245, 239, 228, 0.72);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.wcps-craft-hero h1 {
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 600;
    line-height: 0.92;
    margin: 0;
    max-width: 11ch;
}

.wcps-craft-hero h1 em {
    color: var(--cream);
    font-style: italic;
}

.wcps-craft-hero__lead {
    color: rgba(245, 239, 228, 0.8);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.65;
    margin: 24px 0 0;
    max-width: 38ch;
}

.wcps-craft-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 34px;
}

.wcps-craft-hero__link {
    align-items: center;
    color: var(--cream);
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 200ms ease;
}

.wcps-craft-hero__link span {
    transition: transform 200ms ease;
}

.wcps-craft-hero__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wcps-craft-hero__link:hover span {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .wcps-craft-hero__video {
        display: none;
    }
}

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

.wcps-craft-product-card {
    border: 1px solid rgba(34, 30, 26, 0.08);
    border-radius: var(--wcps-craft-radius);
    box-shadow: 0 18px 36px rgba(34, 30, 26, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcps-craft-product-card:hover {
    box-shadow: 0 24px 44px rgba(34, 30, 26, 0.1);
    transform: translateY(-2px);
}

/* alternating card backgrounds */
.wcps-craft-product-card--cream {
    background: linear-gradient(180deg, rgba(245, 239, 228, 0.98) 0%, rgba(237, 228, 210, 0.92) 100%);
}

.wcps-craft-product-card--sage {
    background: linear-gradient(180deg, rgba(234, 240, 227, 0.98) 0%, rgba(210, 222, 199, 0.9) 100%);
}

.wcps-craft-product-card__media {
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 48%),
        rgba(255, 255, 255, 0.22);
    display: block;
    overflow: hidden;
    position: relative;
}

/* placeholder label when no photo */
.wcps-craft-product-card__media:not(.wcps-craft-product-card__media--photo)::after {
    color: rgba(34, 30, 26, 0.28);
    content: 'ФОТО ТОВАРА';
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    left: 50%;
    letter-spacing: 0.1em;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wcps-craft-product-card__media--photo {
    padding: 0;
}

.wcps-craft-product-card__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wcps-craft-product-card__media--photo img {
    object-fit: cover;
}

.wcps-craft-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-width: 0;
    padding: 18px 18px 20px;
}

.wcps-craft-product-card__content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.wcps-craft-product-card__title,
.wcps-craft-product-card h3 {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin: 0;
}

.wcps-craft-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.wcps-craft-product-card__description {
    color: var(--wcps-craft-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.wcps-craft-product-card__foot {
    border-top: 1px solid rgba(42, 28, 18, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
}

.wcps-craft-product-card__purchase {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wcps-craft-product-card__price-label {
    color: var(--wcps-craft-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wcps-craft-product-card__price {
    color: var(--wcps-craft-ink);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.wcps-craft-product-card__price del {
    color: var(--wcps-craft-muted);
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
    opacity: 0.72;
}

.wcps-craft-product-card__price ins {
    text-decoration: none;
}

.wcps-craft-product-card__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(34, 30, 26, 0.12);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--graphite);
    display: flex;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.06em;
    line-height: 1.15;
    min-height: 42px;
    padding: 7px 14px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
    width: 100%;
}

.wcps-craft-product-card__button:hover {
    background: rgba(34, 30, 26, 0.9);
    border-color: rgba(34, 30, 26, 0.9);
    color: #fffaf5;
}

/* Narrow 2-column cards on phones — shrink the label and keep it on one line
   (nowrap) so "Выбрать модель →" fits with the arrow right after it instead of
   wrapping and leaving the arrow stranded. */
@media (max-width: 767px) {
    .wcps-craft-product-card__button {
        font-size: 10px;
        gap: 4px;
        letter-spacing: 0.02em;
        padding: 8px 6px;
        white-space: nowrap;
    }
}

.wcps-craft-product-card__button span {
    font-size: 1.05em;
    line-height: 1;
}

/* Season variants */
/* ===== Season block — full-bleed split ===== */
.wcps-craft-season {
    --season-bg: var(--tomato);
    padding: 0;
}

.wcps-craft-season--spring  { --season-bg: var(--sage-deep); }
.wcps-craft-season--summer  { --season-bg: var(--tomato); }
.wcps-craft-season--autumn  { --season-bg: var(--tomato); }
.wcps-craft-season--winter  { --season-bg: var(--graphite); }

.wcps-craft-season__wrap {
    max-width: min(1312px, calc(100vw - 48px));
}

.wcps-craft-season__grid {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    min-height: 420px;
}

.wcps-craft-season__copy {
    background: var(--season-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 56px clamp(28px, 4vw, 64px);
}

.wcps-craft-season__eyebrow {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.wcps-craft-season__copy h2 {
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(48px, 6.5vw, 96px);
    font-weight: 600;
    line-height: 0.98;
    margin: 0 0 22px;
    max-width: none;
}

.wcps-craft-season__copy h2 em {
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    font-weight: 400;
}

.wcps-craft-season__copy p {
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 36ch;
}

.wcps-craft-season__copy .wcps-craft-button {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: var(--graphite);
    font-weight: 500;
    min-width: 0;
}

.wcps-craft-season__copy .wcps-craft-button:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wcps-craft-season__media {
    min-height: 420px;
    overflow: hidden;
    position: relative;
}

.wcps-craft-season__media img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.28s ease;
    width: 100%;
}

.wcps-craft-season__media img.is-active {
    opacity: 1;
}

.wcps-craft-scenario-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wcps-craft-scenario-card {
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid rgba(34, 30, 26, 0.1);
    border-radius: 2px;
    box-shadow: none;
    color: var(--wcps-craft-text);
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
    min-height: 204px;
    overflow: hidden;
    padding: 22px 20px 20px;
    position: relative;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
    isolation: isolate;
}

.wcps-craft-scenario-card strong {
    color: var(--wcps-craft-ink);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.08;
}

.wcps-craft-scenario-card span {
    color: var(--wcps-craft-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.wcps-craft-scenario-card strong {
    position: relative;
    z-index: 1;
}

.wcps-craft-scenario-card::after {
    background: radial-gradient(circle, var(--wcps-craft-scenario-accent, rgba(242, 179, 157, 0.48)) 0 46%, rgba(242, 179, 157, 0) 72%);
    border-radius: 50%;
    bottom: -92px;
    content: "";
    height: 188px;
    pointer-events: none;
    position: absolute;
    right: -82px;
    width: 188px;
    z-index: 0;
}

.wcps-craft-scenario-card:nth-child(1) {
    --wcps-craft-scenario-accent: rgba(242, 179, 157, 0.46);
}

.wcps-craft-scenario-card:nth-child(2) {
    --wcps-craft-scenario-accent: rgba(238, 214, 148, 0.48);
}

.wcps-craft-scenario-card:nth-child(3) {
    --wcps-craft-scenario-accent: rgba(194, 217, 177, 0.46);
}

.wcps-craft-scenario-card:nth-child(4) {
    --wcps-craft-scenario-accent: rgba(217, 217, 214, 0.44);
}

.wcps-craft-scenario-card:nth-child(5) {
    --wcps-craft-scenario-accent: rgba(230, 200, 186, 0.46);
}

.wcps-craft-scenario-card:hover {
    border-color: rgba(192, 57, 43, 0.26);
    transform: translateY(-2px);
}

/* ===== Catalog hub (/catalog/) ===== */
.wcps-catalog-hero {
    padding-bottom: 8px;
}

.wcps-catalog-breadcrumbs {
    font-size: 13px;
    margin-bottom: 18px;
}

.wcps-catalog-breadcrumbs ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcps-catalog-breadcrumbs li {
    align-items: center;
    color: var(--wcps-craft-muted);
    display: flex;
    gap: 6px 10px;
}

.wcps-catalog-breadcrumbs li:not(:last-child)::after {
    color: rgba(34, 30, 26, 0.32);
    content: '/';
}

.wcps-catalog-breadcrumbs a {
    color: var(--wcps-craft-muted);
    text-decoration: none;
}

.wcps-catalog-breadcrumbs a:hover {
    color: var(--tomato);
}

.wcps-catalog-hero__lead {
    color: var(--wcps-craft-muted);
    font-size: 18px;
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 64ch;
}

.wcps-catalog-categories .wcps-craft-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* category illustrations are contained, not cropped, and never show the
   product-photo placeholder label */
.wcps-catalog-cat-card .wcps-craft-product-card__media {
    aspect-ratio: 4 / 3;
}

.wcps-catalog-cat-card .wcps-craft-product-card__media::after {
    content: none;
}

.wcps-catalog-cat-card .wcps-craft-product-card__media img {
    object-fit: contain;
    padding: 22px;
}

.wcps-catalog-products__head {
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
}

.wcps-catalog-products__ordering .woocommerce-ordering {
    margin: 0;
}

.wcps-catalog-products__ordering select {
    background: var(--ivory, #fbf7ef);
    border: 1px solid rgba(34, 30, 26, 0.18);
    border-radius: 2px;
    color: var(--graphite);
    font-size: 14px;
    max-width: 100%;
    padding: 9px 12px;
}

@media (max-width: 960px) {
    .wcps-catalog-categories .wcps-craft-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .wcps-catalog-categories .wcps-craft-product-grid {
        grid-template-columns: 1fr;
    }

    .wcps-catalog-hero__lead {
        font-size: 16px;
    }
}

/* ===== Why GuruvKusa (Principles) ===== */
.wcps-craft-principles {
    background: var(--ivory);
    color: var(--graphite);
    padding-bottom: 28px;
}

.wcps-craft-principles__top {
    align-items: start;
    display: grid;
    gap: 0 64px;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    padding-bottom: 48px;
}

.wcps-craft-principles__copy {
    padding-top: 4px;
}

.wcps-craft-principles__copy .wcps-craft-eyebrow {
    margin-bottom: 14px;
}

.wcps-craft-principles__copy h2 {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 600;
    line-height: 0.98;
    margin: 0 0 20px;
    max-width: 15ch;
}

.wcps-craft-principles__intro p {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.wcps-craft-principles__intro p:last-child {
    margin-bottom: 0;
}

/* 3-column row */
.wcps-craft-principles__list {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding-top: 0;
    padding-left: 0;
}

.wcps-craft-principle-row {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 28px 36px 28px 0;
}

.wcps-craft-principle-row:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 36px;
}

.wcps-craft-principle-row:nth-child(2) {
    padding-left: 36px;
    padding-right: 36px;
}

.wcps-craft-principle-row__number {
    color: var(--tomato);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
}

.wcps-craft-principle-row h3 {
    color: var(--graphite);
    display: block;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    min-height: 2.2em;
}

.wcps-craft-principle-row p {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

/* ===== Reviews — unified warm section ===== */
.wcps-craft-reviews {
    background: var(--cream-2);
}

.wcps-craft-review-summary {
    align-items: start;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

/* Left: text on section bg, no card */
.wcps-craft-review-summary__copy {
    min-width: 0;
    padding: 0;
}

.wcps-craft-review-summary__copy h2 {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1.02;
    margin: 0 0 20px;
    max-width: 16ch;
}

.wcps-craft-review-summary__copy p {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 42ch;
}

.wcps-craft-review-summary__stars {
    color: var(--ochre-deep);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.wcps-craft-review-summary__meta {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Right: bars + result card, no outer card */
.wcps-craft-review-summary__trust {
    display: grid;
    gap: 16px;
    justify-self: end;
    max-width: 520px;
    width: 100%;
}

.wcps-craft-review-bars {
    display: grid;
    gap: 10px;
}

/* Horizontal bar row: label | track | pct */
.wcps-craft-review-bar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 76px 1fr 32px;
}

.wcps-craft-review-bar__label {
    color: var(--graphite-soft);
    font-family: var(--font-sans);
    font-size: 13px;
    text-align: right;
}

.wcps-craft-review-bar__pct {
    color: var(--graphite-soft);
    font-family: var(--font-sans);
    font-size: 13px;
    text-align: right;
}

.wcps-craft-review-track {
    background: rgba(34, 30, 26, 0.14);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.wcps-craft-review-track span {
    background: linear-gradient(90deg, var(--ochre-deep) 0%, var(--ochre) 100%);
    border-radius: inherit;
    display: block;
    height: 100%;
}

/* Average rating card — only element that gets a card */
.wcps-craft-review-result {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--wcps-craft-radius);
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 24px 28px;
}

.wcps-craft-review-result__eyebrow {
    color: var(--graphite-soft);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.wcps-craft-review-result strong {
    color: var(--graphite);
    display: block;
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 600;
    line-height: 0.9;
}

.wcps-craft-review-result > span {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

/* Review quote cards */
.wcps-craft-review-quotes {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 56px;
}

.wcps-craft-review-quote {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--wcps-craft-radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.wcps-craft-review-quote__stars {
    color: var(--ochre-deep);
    font-size: 15px;
    letter-spacing: 2px;
}

.wcps-craft-review-quote__text {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.48;
    margin: 0;
}

.wcps-craft-review-quote__author {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.wcps-craft-review-quote__avatar {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.wcps-craft-review-quote__meta {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.4;
}

.wcps-craft-review-quote__meta b {
    color: var(--graphite);
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.wcps-craft-review-quote__product-link {
    color: var(--tomato);
    text-decoration: none;
}

.wcps-craft-review-quote__product-link:hover {
    text-decoration: underline;
}

.wcps-craft-review-quote__meta em {
    color: var(--tomato);
    font-style: normal;
}

/* ===== Guides ===== */
.wcps-craft-guide-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wcps-craft-guide-card {
    border-top: 1px solid rgba(34, 30, 26, 0.12);
    color: var(--graphite);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    text-decoration: none;
}

.wcps-craft-guide-card__media {
    aspect-ratio: 4 / 3;
    background: var(--cream-2);
    border-radius: 2px;
    display: block;
    overflow: hidden;
}

.wcps-craft-guide-card__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.wcps-craft-guide-card:hover .wcps-craft-guide-card__media img {
    transform: scale(1.03);
}

.wcps-craft-guide-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
}

.wcps-craft-guide-card__eyebrow {
    color: var(--tomato);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.wcps-craft-guide-card__body strong {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.08;
}

.wcps-craft-guide-card__footer {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    min-height: 1.4rem;
}

.wcps-craft-guide-card__meta {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
}

.wcps-craft-guide-card__link {
    color: var(--tomato);
    font-size: 0.86rem;
    font-weight: 700;
}

.wcps-craft-footer {
    background: var(--wcps-craft-ink);
    color: #fff9f2;
    margin-top: 36px;
}

.wcps-craft-footer__newsletter {
    padding: 42px 0 26px;
}

.wcps-craft-footer__newsletter .wcps-craft-wrap {
    align-items: end;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wcps-craft-footer__newsletter h2 {
    color: inherit;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 0.98;
    margin: 0 0 10px;
    max-width: 20ch;
}

.wcps-craft-footer__newsletter p {
    color: rgba(255, 249, 242, 0.74);
    line-height: 1.6;
    margin: 0;
    max-width: 40rem;
}

.wcps-craft-footer__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.wcps-craft-footer__form input[type="email"] {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--wcps-craft-radius);
    color: var(--wcps-craft-ink);
    min-height: 44px;
    min-width: 260px;
    padding: 0 14px;
}

.wcps-craft-footer__form input[type="email"]::placeholder {
    color: var(--wcps-craft-muted);
}

.wcps-craft-footer__main {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}

.wcps-craft-footer__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wcps-craft-footer__column h3 {
    color: rgba(255, 249, 242, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.wcps-craft-footer__column nav,
.wcps-craft-footer__column address {
    display: grid;
    gap: 10px;
    font-style: normal;
}

.wcps-craft-footer__column a {
    color: #fff9f2;
    text-decoration: none;
}

.wcps-craft-footer__column a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wcps-craft-footer__column address span {
    color: rgba(255, 249, 242, 0.7);
    line-height: 1.55;
}

.wcps-craft-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 24px;
}

.wcps-craft-footer__bottom .wcps-craft-wrap {
    color: rgba(255, 249, 242, 0.62);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .wcps-craft-section-head,
    .wcps-craft-footer__newsletter .wcps-craft-wrap {
        grid-template-columns: 1fr;
    }

    .wcps-craft-review-summary {
        gap: 32px;
        grid-template-columns: 1fr;
    }

    .wcps-craft-review-quotes {
        grid-template-columns: 1fr;
    }

    .wcps-craft-season__grid {
        grid-template-columns: 1fr;
    }

    .wcps-craft-season__copy {
        padding: 48px 32px;
    }

    .wcps-craft-season__media {
        min-height: 320px;
    }

    .wcps-craft-principles__top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 32px;
    }

    .wcps-craft-principles__list {
        grid-template-columns: 1fr;
    }

    .wcps-craft-principle-row,
    .wcps-craft-principle-row:nth-child(2),
    .wcps-craft-principle-row:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 24px 0;
    }

    .wcps-craft-principle-row:last-child {
        border-bottom: 0;
    }

    .wcps-craft-principle-row h3 {
        min-height: 0;
    }

    .wcps-craft-section-head {
        align-items: start;
        display: grid;
    }

    .wcps-craft-product-grid,
    .wcps-craft-scenario-grid,
    .wcps-craft-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcps-craft-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcps-craft-hero__wrap {
        justify-content: end;
        padding: 104px 0 48px;
    }

    .wcps-craft-hero__body {
        padding: 0 0 48px;
    }

    .wcps-craft-review-result strong {
        font-size: 54px;
    }

}

@media (max-width: 767px) {
    .wcps-craft-wrap {
        max-width: calc(100vw - 24px);
    }

    .wcps-home > .wcps-craft-section:first-of-type,
    .wcps-craft-section {
        padding: 44px 0;
    }

    .wcps-craft-section-head h2,
    .wcps-craft-principles__copy h2,
    .wcps-craft-review-summary__copy h2 {
        font-size: clamp(2.1rem, 8vw, 2.7rem);
        line-height: 0.98;
    }

    .wcps-craft-hero {
        min-height: 72svh;
        /* Drop the cover background image — the contained video banner below
           shows the same frame; the <video poster> still covers the no-video
           fallback. Without this the cover image doubled under the banner. */
        background-image: none !important;
    }

    /* Landscape hero video heavily cropped by `cover` on a tall phone screen.
       Show the whole frame at the top as a banner; the copy sits below it on
       the graphite hero background. */
    .wcps-craft-hero__video {
        height: auto;
        bottom: auto;
        object-fit: contain;
        object-position: center top;
    }

    .wcps-craft-hero__wrap {
        justify-content: end;
        padding: 88px 0 32px;
    }

    .wcps-craft-hero__body {
        padding: 0 0 40px;
    }

    .wcps-craft-hero h1 {
        font-size: clamp(40px, 10vw, 64px);
    }

    .wcps-craft-principles__copy p,
    .wcps-craft-footer__newsletter p {
        font-size: 16px;
    }

    .wcps-craft-proof {
        margin-top: 22px;
    }

    .wcps-craft-proof__grid {
        gap: 32px 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .wcps-craft-proof__item {
        border-right: 0;
        padding: 0 24px;
    }

    .wcps-craft-proof__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 253, 248, 0.10);
        padding-left: 0;
    }

    .wcps-craft-proof__num {
        font-size: 44px;
    }

    .wcps-craft-proof__label {
        font-size: 12px;
    }

    .wcps-craft-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcps-craft-product-card__title,
    .wcps-craft-product-card h3 {
        font-size: 24px;
    }

    .wcps-craft-scenario-grid,
    .wcps-craft-guide-grid,
    .wcps-craft-footer__grid {
        grid-template-columns: 1fr;
    }

    .wcps-craft-scenario-card strong {
        font-size: 22px;
    }

    .wcps-craft-guide-card__footer {
        align-items: start;
        flex-direction: column;
    }

    .wcps-craft-season__copy {
        padding: 36px 20px;
    }

    .wcps-craft-season__media {
        min-height: 260px;
    }

    .wcps-craft-review-result strong {
        font-size: 56px;
    }

    .wcps-craft-footer {
        margin-top: 56px;
    }

    .wcps-craft-footer__newsletter {
        padding-top: 34px;
    }

    .wcps-craft-footer__newsletter h2 {
        font-size: 28px;
    }

    .wcps-craft-footer__form {
        justify-content: stretch;
    }

    .wcps-craft-footer__form input[type="email"],
    .wcps-craft-footer__form .wcps-craft-button {
        width: 100%;
    }

    .wcps-craft-footer__bottom .wcps-craft-wrap {
        display: grid;
        gap: 8px;
    }
}

.tax-product_cat .wp-site-blocks,
.post-type-archive-product .wp-site-blocks {
    background:
        linear-gradient(180deg, #f6efe3 0%, #efe4d1 100%);
}

.wcps-category-page {
    color: var(--wcpc-text);
    padding: 24px 0 84px;
}

.wcps-category-shell {
    margin: 0 auto;
    max-width: min(1240px, calc(100vw - 48px));
}

.wcps-category-breadcrumbs ol {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcps-category-breadcrumbs li {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.wcps-category-breadcrumbs li:not(:last-child)::after {
    color: rgba(100, 88, 76, 0.6);
    content: "→";
}

.wcps-category-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

/* ── Bestsellers ── */
.wcps-craft-bestsellers {
    background: transparent;
}

/* ── Consultation ── */
.wcps-craft-consultation {
    background: var(--cream-2);
}

.wcps-craft-consultation__layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.wcps-craft-consultation__copy h2 {
    max-width: 18ch;
}

.wcps-craft-consultation__copy > .wcps-craft-eyebrow {
    /* темнее красного: eyebrow читаем на бежевом фоне секции (WCAG AA 4.5:1) */
    color: #b83729;
}

.wcps-craft-consultation__copy > p:not(.wcps-craft-eyebrow) {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 44ch;
}

.wcps-craft-consultation__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.wcps-craft-consultation__mail {
    color: var(--graphite);
    font-family: var(--font-sans);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.wcps-craft-consultation__mail:hover {
    color: var(--tomato);
}

.wcps-craft-consultation__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcps-craft-consultation__feat {
    align-items: flex-start;
    display: flex;
    gap: 16px;
}

.wcps-craft-consultation__feat-icon {
    color: var(--tomato);
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1.4;
}

.wcps-craft-consultation__feat strong {
    color: var(--graphite);
    display: block;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.wcps-craft-consultation__feat span {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .wcps-craft-consultation__layout {
        gap: 40px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .wcps-craft-consultation__layout {
        gap: 32px;
    }
}

.wcps-category-hero {
    background:
        linear-gradient(135deg, rgba(250, 246, 236, 0.96) 0%, rgba(237, 228, 210, 0.92) 100%);
    border: 1px solid rgba(34, 30, 26, 0.1);
    border-radius: 4px;
    box-shadow: none;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    margin-bottom: 14px;
    overflow: hidden;
    padding: clamp(22px, 3vw, 34px);
    position: relative;
}

.wcps-category-hero::after {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 26%, rgba(192, 57, 43, 0.06) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

/* copy-only hero (classic category layout, no visual column) */
.wcps-category-hero--plain {
    grid-template-columns: minmax(0, 1fr);
}

.wcps-category-hero--plain .wcps-category-hero__lead {
    max-width: 64ch;
}

.wcps-category-hero > * {
    position: relative;
    z-index: 1;
}

.wcps-category-hero__copy {
    display: grid;
    gap: 16px;
    align-content: start;
}

.wcps-category-hero__eyebrow,
.wcps-category-section__eyebrow,
.wcps-category-filter__label,
.wcps-category-eyebrow,
.wcps-category-card__eyebrow {
    color: var(--tomato);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    margin: 0;
    text-transform: uppercase;
}

.wcps-category-breadcrumbs {
    margin-bottom: 4px;
}

.wcps-category-hero h1 {
    font-size: clamp(2.9rem, 4.8vw, 5rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    max-width: 10ch;
}

.wcps-category-hero h1,
.wcps-category-section__head h2,
.wcps-category-start-card h3,
.wcps-category-faq__item h3,
.wcps-category-article-card strong,
.wcps-category-brand-card strong,
.wcps-category-card__title {
    color: var(--graphite);
    font-family: var(--font-serif);
}

.wcps-category-hero__lead,
.wcps-category-section__head p,
.wcps-category-start-card p,
.wcps-category-brand-card span,
.wcps-category-article-card span,
.wcps-category-faq__answer p,
.wcps-category-seo__content,
.wcps-category-compare__row span,
.wcps-category-empty p,
.wcps-category-hero__product-note span {
    color: var(--muted);
    line-height: 1.65;
}

.wcps-category-hero__lead {
    font-size: 1rem;
    margin: 0;
    max-width: 34rem;
}

.wcps-category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wcps-category-hero__cta {
    align-items: center;
    background: var(--tomato);
    border-radius: 2px;
    color: var(--ivory);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.wcps-category-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
}

.wcps-category-hero__facts li {
    background: rgba(250, 246, 236, 0.78);
    border: 1px solid rgba(34, 30, 26, 0.1);
    border-radius: 999px;
    color: var(--graphite);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: 0;
    padding: 10px 14px;
}

.wcps-category-hero__visual {
    align-items: stretch;
    display: grid;
    min-height: 100%;
    position: relative;
}

.wcps-category-hero__visual--image {
    grid-template-rows: minmax(360px, 1fr) auto;
}

.wcps-category-hero__image-stage,
.wcps-category-hero__collage,
.wcps-category-hero__abstract {
    background:
        linear-gradient(160deg, #ead3af 0%, #c99856 48%, #5f3525 100%);
    border-radius: 2px;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.wcps-category-hero__single-product {
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 250, 243, 0.96) 0 34%, rgba(237, 219, 190, 0.84) 35% 62%, rgba(225, 205, 171, 0.72) 63% 100%);
    border: 1px solid rgba(34, 30, 26, 0.08);
    border-radius: 2px;
    color: inherit;
    display: flex;
    justify-content: center;
    min-height: 100%;
    padding: clamp(28px, 4vw, 56px);
    text-decoration: none;
}

.wcps-category-hero__single-media {
    align-items: center;
    background: rgba(255, 250, 243, 0.46);
    border: 1px solid rgba(34, 30, 26, 0.08);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    max-width: min(100%, 380px);
    overflow: hidden;
    padding: clamp(20px, 3.8vw, 44px);
    width: 100%;
}

.wcps-category-hero__single-media img {
    display: block;
    height: auto;
    max-height: clamp(280px, 36vw, 470px);
    object-fit: contain;
    width: 100%;
}

.wcps-category-hero__image-stage img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wcps-category-hero__image-stage::after {
    background: linear-gradient(180deg, rgba(35, 23, 15, 0) 22%, rgba(35, 23, 15, 0.22) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.wcps-category-hero__product-notes {
    display: grid;
    gap: 10px;
    margin-top: -54px;
    padding: 0 14px 0 28px;
    position: relative;
    z-index: 2;
}

.wcps-category-hero__product-note {
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(34, 30, 26, 0.12);
    border-radius: 2px;
    box-shadow: none;
    color: inherit;
    display: grid;
    gap: 6px;
    max-width: 220px;
    padding: 14px 16px;
    text-decoration: none;
}

.wcps-category-hero__product-note:nth-child(2) {
    justify-self: end;
}

.wcps-category-hero__product-note strong {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.12;
}

.wcps-category-hero__collage {
    align-items: end;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 28px;
}

.wcps-category-hero__collage::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(51, 30, 18, 0.18) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.wcps-category-hero__collage-card {
    background: rgba(255, 250, 241, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 2px;
    box-shadow: 0 18px 36px rgba(45, 26, 14, 0.14);
    display: grid;
    gap: 12px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.wcps-category-hero__collage-card strong {
    color: var(--graphite);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.08;
}

.wcps-category-hero__collage-card--1 {
    transform: rotate(-7deg) translateY(20px);
}

.wcps-category-hero__collage-card--2 {
    transform: translateY(-8px);
    z-index: 2;
}

.wcps-category-hero__collage-card--3 {
    transform: rotate(7deg) translateY(26px);
}

.wcps-category-hero__collage-media {
    align-items: center;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
}

.wcps-category-hero__collage-media img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.wcps-category-hero__abstract {
    min-height: 420px;
}

.wcps-category-hero__abstract span {
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(45, 26, 14, 0.14);
    display: block;
    position: absolute;
}

.wcps-category-hero__abstract span:nth-child(1) {
    inset: 52px 34% 136px 38px;
    transform: rotate(-9deg);
}

.wcps-category-hero__abstract span:nth-child(2) {
    inset: 104px 20% 74px 26%;
    transform: rotate(5deg);
}

.wcps-category-hero__abstract span:nth-child(3) {
    inset: 44px 42px 146px 50%;
    transform: rotate(11deg);
}

.wcps-category-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
}

.wcps-category-filter__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wcps-category-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wcps-category-filter__chips button {
    background: rgba(250, 246, 236, 0.88);
    border: 1px solid rgba(34, 30, 26, 0.12);
    border-radius: 999px;
    color: var(--wcpc-text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 40px;
    padding: 0 16px;
}

.wcps-category-filter__chips button.is-active {
    background: #2c2925;
    border-color: #2c2925;
    color: #fffaf2;
}

.wcps-category-proof {
    background: #221e1a;
    border: 1px solid rgba(34, 30, 26, 0.12);
    border-radius: 2px;
    color: #faf6ec;
    margin: 0 0 28px;
    overflow: hidden;
}

.wcps-category-proof__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wcps-category-proof__item {
    display: grid;
    gap: 8px;
    min-height: 136px;
    padding: 26px 28px;
}

.wcps-category-proof__item:not(:last-child) {
    border-right: 1px solid rgba(250, 246, 236, 0.12);
}

.wcps-category-proof__item strong {
    color: #faf6ec;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.94;
}

.wcps-category-proof__item span {
    color: rgba(250, 246, 236, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 16rem;
}

.wcps-category-section {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(34, 30, 26, 0.08);
    border-radius: 4px;
    box-shadow: none;
    margin-bottom: 24px;
    padding: 28px;
}

.wcps-category-section__head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.wcps-category-section__head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 0 0 10px;
}

.wcps-category-section__head p {
    margin: 0;
    max-width: 40rem;
}

.wcps-category-products {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(248, 241, 230, 0.92) 100%);
    border-color: rgba(34, 30, 26, 0.12);
}

.wcps-category-grid {
    display: grid;
    gap: 22px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wcps-category-card {
    list-style: none;
    margin: 0;
}

.wcps-category-card__inner {
    background: #fffdf8;
    border: 1px solid rgba(34, 30, 26, 0.08);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(34, 30, 26, 0.04);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 448px;
    overflow: hidden;
    padding: 16px 16px 18px;
    transition: transform 200ms cubic-bezier(.2, .7, .2, 1), box-shadow 200ms ease, border-color 200ms ease;
}

@media (hover: hover) {
    .wcps-category-card__inner:hover {
        border-color: rgba(169, 106, 43, 0.35);
        box-shadow: 0 16px 34px -16px rgba(34, 30, 26, 0.32);
        transform: translateY(-4px);
    }

    .wcps-category-card__inner:hover .wcps-category-card__media img {
        transform: scale(1.03);
    }
}

.wcps-category-card__media {
    align-items: center;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.wcps-category-card__media-frame {
    align-items: center;
    aspect-ratio: 3 / 4;
    background: #ffffff;
    border: 1px solid rgba(34, 30, 26, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.wcps-category-card__media img {
    display: block;
    height: 100%;
    object-fit: contain;
    transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
    width: 100%;
}

.wcps-category-card__body {
    display: grid;
    gap: 10px;
    grid-template-rows: auto auto auto 1fr;
    min-height: 0;
}

.wcps-category-card__eyebrow {
    margin: 0;
}

.wcps-category-card__title {
    font-size: clamp(1.55rem, 1.9vw, 1.85rem);
    line-height: 1.02;
    margin: 0;
    /* reserve a uniform 3-line block so 2- vs 3-line titles don't change card height */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.02em * 3);
}

.wcps-category-card__note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.wcps-category-card__title a,
.wcps-category-card__link,
.wcps-category-brand-card,
.wcps-category-article-card {
    color: inherit;
    text-decoration: none;
}

.wcps-compact-rating {
    align-items: center;
    color: #d9921b;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 1.35rem;
}

.wcps-compact-rating__star {
    color: #d9921b;
    line-height: 1;
}

.wcps-compact-rating__average {
    /* темнее золота: число рейтинга читаемо на светлом фоне (WCAG AA 4.5:1); звёзды остаются золотыми */
    color: #966513;
}

.wcps-compact-rating__count {
    color: var(--muted, var(--wcps-craft-muted, #6f675f));
    font-size: 0.86rem;
    font-weight: 600;
}

.wcps-category-card__footer {
    align-items: stretch;
    align-self: end;
    border-top: 1px solid rgba(34, 30, 26, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    padding-top: 16px;
}

.wcps-category-card__price {
    color: var(--graphite);
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.wcps-category-card__price del {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    opacity: 0.65;
}

.wcps-category-card__price ins {
    text-decoration: none;
}

.wcps-category-card__link {
    align-items: center;
    border: 1px solid var(--tomato);
    border-radius: 6px;
    color: var(--tomato);
    display: inline-flex;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.04em;
    min-height: 46px;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease;
    white-space: nowrap;
    width: 100%;
}

.wcps-category-card__link:hover {
    background: var(--tomato);
    color: #fffaf5;
}

.wcps-category-card__cart {
    width: 100%;
}

/* Specificity boosted past WooCommerce core `.woocommerce a.button` (0,2,1),
   which would otherwise paint the primary CTA a pale disabled grey. */
.wcps-category-card__inner .wcps-category-card__cart .button {
    align-items: center;
    background: var(--tomato);
    border: 1px solid var(--tomato);
    border-radius: 6px;
    color: #fffaf5;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.04em;
    line-height: 1.1;
    min-height: 46px;
    padding: 0 16px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    white-space: nowrap;
    width: 100%;
}

.wcps-category-card__inner .wcps-category-card__cart .button:hover {
    background: var(--graphite);
    border-color: var(--graphite);
    color: #fffaf5;
    transform: translateY(-1px);
}

.wcps-category-card__cart .added_to_cart {
    color: var(--tomato);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    text-decoration: none;
}

.wcps-category-card__cart .added_to_cart:hover {
    text-decoration: underline;
}

.wcps-category-empty {
    padding: 12px 0 0;
}

.wcps-category-pagination {
    margin-top: 18px;
}

.wcps-category-brands__grid,
.wcps-category-articles__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wcps-category-brand-card,
.wcps-category-article-card,
.wcps-category-start-card,
.wcps-category-compare,
.wcps-category-video,
.wcps-category-faq__item {
    border-radius: 2px;
    box-shadow: none;
}

.wcps-category-brand-card,
.wcps-category-article-card {
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid rgba(169, 106, 43, 0.1);
    display: grid;
    gap: 10px;
    min-height: 100%;
    padding: 20px;
}

.wcps-category-brand-card__mark {
    align-items: center;
    background: rgba(216, 146, 47, 0.14);
    border-radius: 16px;
    color: var(--wcpc-header-crust);
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.wcps-category-brand-card strong,
.wcps-category-article-card strong {
    font-size: 1.35rem;
    line-height: 1.05;
}

.wcps-category-choose {
    background:
        radial-gradient(circle at top right, rgba(216, 146, 47, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(246, 236, 221, 0.96) 100%);
    border-color: rgba(34, 30, 26, 0.12);
}

.wcps-category-choose__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.wcps-category-start-card,
.wcps-category-compare,
.wcps-category-video {
    border: 1px solid rgba(169, 106, 43, 0.1);
    padding: 22px;
}

.wcps-category-start-card h3 {
    font-size: 1.95rem;
    line-height: 1.08;
    margin: 0 0 12px;
}

.wcps-category-start-card p:last-child {
    margin-bottom: 0;
}

.wcps-category-start-card {
    background:
        linear-gradient(145deg, rgba(255, 249, 237, 0.98) 0%, rgba(241, 222, 191, 0.98) 100%);
}

.wcps-category-compare {
    background: rgba(255, 252, 246, 0.9);
}

.wcps-category-compare__table {
    display: grid;
}

.wcps-category-compare__row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) repeat(2, minmax(0, 1fr));
}

.wcps-category-compare__row span {
    border-bottom: 1px solid rgba(169, 106, 43, 0.12);
    padding: 14px 12px;
}

.wcps-category-compare__row--head span {
    color: var(--graphite);
    font-weight: 700;
}

.wcps-category-video {
    background: rgba(255, 250, 243, 0.92);
}

.wcps-category-video__frame {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.wcps-category-video__frame iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.wcps-category-faq__list {
    display: grid;
    gap: 14px;
}

.wcps-category-faq__item {
    background: rgba(255, 251, 245, 0.88);
    border: 1px solid rgba(169, 106, 43, 0.1);
    padding: 20px;
}

.wcps-category-faq__item h3 {
    font-size: 1.45rem;
    line-height: 1.1;
    margin: 0 0 10px;
}

.wcps-category-faq__answer p {
    margin: 0;
}

.wcps-category-seo {
    background: rgba(255, 250, 243, 0.72);
}

.wcps-category-seo__content > :first-child {
    margin-top: 0;
}

.wcps-category-seo__content > :last-child {
    margin-bottom: 0;
}

.wcps-category-seo__content p {
    margin: 0 0 1rem;
}

.wcps-category-seo__content h3 {
    color: var(--graphite);
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 1.6rem 0 0.5rem;
}

@media (max-width: 1023px) {
    .wcps-category-page {
        padding: 24px 0 72px;
    }

    .wcps-category-hero {
        grid-template-columns: 1fr;
    }

    .wcps-category-hero__visual--image {
        grid-template-rows: minmax(320px, 1fr) auto;
    }

    .wcps-category-hero__product-notes {
        margin-top: -56px;
        padding-left: 24px;
    }

    .wcps-category-grid,
    .wcps-category-brands__grid,
    .wcps-category-articles__grid,
    .wcps-category-choose__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcps-category-proof__grid {
        grid-template-columns: 1fr;
    }

    .wcps-category-proof__item {
        min-height: 0;
    }

    .wcps-category-proof__item:not(:last-child) {
        border-bottom: 1px solid rgba(250, 246, 236, 0.12);
        border-right: 0;
    }

    .wcps-category-compare {
        grid-column: 1 / -1;
    }

}

@media (max-width: 767px) {
    .wcps-category-page {
        padding: 20px 0 56px;
    }

    .wcps-category-shell {
        max-width: calc(100vw - 24px);
    }

    .wcps-category-hero {
        border-radius: 2px;
        gap: 20px;
        padding: 18px;
    }

    .wcps-category-hero__lead {
        font-size: 1rem;
    }

    .wcps-category-hero__image-stage,
    .wcps-category-hero__collage,
    .wcps-category-hero__abstract {
        border-radius: 2px;
        min-height: 300px;
    }

    .wcps-category-hero__product-notes {
        margin-top: 14px;
        padding: 0;
    }

    .wcps-category-hero__product-note,
    .wcps-category-hero__product-note:nth-child(2) {
        justify-self: stretch;
        max-width: none;
    }

    .wcps-category-hero__collage {
        gap: 10px;
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .wcps-category-hero__collage-card,
    .wcps-category-hero__collage-card--1,
    .wcps-category-hero__collage-card--2,
    .wcps-category-hero__collage-card--3 {
        transform: none;
    }

    .wcps-category-filter {
        margin-bottom: 24px;
        padding: 0;
    }

    .wcps-category-section {
        border-radius: 2px;
        padding: 20px 18px;
    }

    .wcps-category-grid,
    .wcps-category-brands__grid,
    .wcps-category-articles__grid,
    .wcps-category-choose__grid {
        grid-template-columns: 1fr;
    }

    .wcps-category-card__inner {
        min-height: 0;
    }

    .wcps-category-card__media {
        max-width: none;
    }

    .wcps-category-card__body {
        grid-template-rows: auto auto auto auto;
    }

    .wcps-category-card__title {
        font-size: 1.48rem;
    }

    .wcps-category-card__footer {
        align-items: start;
        flex-direction: column;
    }

    .wcps-category-card__link {
        margin-left: 0;
    }

    .wcps-category-card__cart {
        margin-left: 0;
        width: 100%;
    }

    .wcps-category-card__cart .button {
        width: 100%;
    }

    .wcps-category-compare__row {
        grid-template-columns: 1fr;
    }

    .wcps-category-compare__row span:first-child {
        color: var(--graphite);
        font-weight: 700;
    }

}

/* ===== Reveal-on-scroll for homepage blocks ===== */
.wcps-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms cubic-bezier(.2,.7,.2,1), transform 520ms cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--reveal-index, 0) * 70ms);
    will-change: opacity, transform;
}

.wcps-reveal--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wcps-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Cart page ===== */
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-cart .wc-block-components-product-details,
body.woocommerce-cart .wc-block-cart-item__description > p,
body.woocommerce-cart .wc-block-cart-item__product-metadata,
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-name > p,
body.woocommerce-cart .woocommerce-cart-form__cart-item .variation,
body.woocommerce-cart .woocommerce-cart-form__cart-item .wc-item-meta {
    display: none !important;
}

body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-components-sidebar *,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wc-block-cart *,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .woocommerce *,
.wcps-cart-popular,
.wcps-cart-popular * {
    font-family: var(--font-sans);
}

body.woocommerce-cart .wc-block-cart__totals-title {
    font-size: 0.94rem;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-cart__submit-container {
    font-size: 1.0625rem;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form input,
body.woocommerce-cart .wc-block-components-text-input input {
    font-size: 1.0625rem;
}

body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button {
    align-items: center;
    background: var(--tomato);
    border: 1px solid var(--tomato);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--cream);
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    text-decoration: none;
    width: 100%;
}

body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:focus-visible,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button:focus-visible {
    background: var(--tomato-deep);
    border-color: var(--tomato-deep);
    color: var(--cream);
}

body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button__text {
    color: inherit;
    text-decoration: none;
}

/* ===== Classic cart (shortcode) — storefront styling ===== */
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .wcps-woocommerce-shell > h1 {
    color: var(--wcpc-dark);
    font-weight: 700;
}

body.woocommerce-cart table.shop_table {
    background: #fff;
    border: 1px solid var(--wcpc-surface-border);
    border-collapse: separate;
    border-radius: 12px;
    border-spacing: 0;
    overflow: hidden;
}

body.woocommerce-cart table.shop_table thead th {
    background: var(--cream);
    border: 0;
    color: var(--wcpc-text);
    font-weight: 700;
    padding: 14px 16px;
    text-transform: none;
}

body.woocommerce-cart table.shop_table td,
body.woocommerce-cart table.shop_table tbody th {
    border-top: 1px solid var(--wcpc-surface-border);
    padding: 16px;
    vertical-align: middle;
}

/* Column alignment: header sits over its value. Товар — left; Цена/Количество/Итог — centered. */
body.woocommerce-cart .woocommerce-cart-form th.product-name,
body.woocommerce-cart .woocommerce-cart-form td.product-name {
    text-align: left;
}

body.woocommerce-cart .woocommerce-cart-form th.product-price,
body.woocommerce-cart .woocommerce-cart-form td.product-price,
body.woocommerce-cart .woocommerce-cart-form th.product-quantity,
body.woocommerce-cart .woocommerce-cart-form td.product-quantity,
body.woocommerce-cart .woocommerce-cart-form th.product-subtotal,
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal {
    text-align: center;
}

body.woocommerce-cart table.cart td.product-thumbnail img {
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 8px;
    width: 56px;
}

body.woocommerce-cart table.cart td.product-name a {
    color: var(--tomato);
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-cart table.cart td.product-name a:hover {
    color: var(--tomato-deep);
}

body.woocommerce-cart table.cart a.remove {
    background: transparent;
    color: var(--wcpc-muted) !important;
    font-size: 1.2rem;
}

body.woocommerce-cart table.cart a.remove:hover {
    background: transparent;
    color: var(--tomato) !important;
}

/* Quantity stepper (− [input] +) */
body.woocommerce-cart .woocommerce-cart-form .quantity {
    align-items: stretch;
    display: inline-flex;
}

body.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    -moz-appearance: textfield;
    appearance: textfield;
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 0;
    color: var(--wcpc-text);
    margin: 0;
    min-height: 44px;
    padding: 0 0.35rem;
    text-align: center;
    width: 52px;
}

body.woocommerce-cart .woocommerce-cart-form .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .woocommerce-cart-form .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.woocommerce-cart .wcps-qty-btn {
    background: var(--cream);
    border: 1px solid var(--wcpc-surface-border);
    color: var(--wcpc-text);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    min-height: 44px;
    padding: 0;
    width: 40px;
}

body.woocommerce-cart .wcps-qty-btn--minus {
    border-radius: 6px 0 0 6px;
    border-right: 0;
}

body.woocommerce-cart .wcps-qty-btn--plus {
    border-radius: 0 6px 6px 0;
    border-left: 0;
}

body.woocommerce-cart .wcps-qty-btn:hover {
    background: var(--cream-2);
}

/* Coupon + update row */
body.woocommerce-cart table.cart td.actions .coupon input#coupon_code {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 6px;
    min-height: 44px;
    min-width: 220px;
    padding: 0 0.9rem;
}

body.woocommerce-cart table.cart td.actions .button {
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--wcpc-text);
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.15;
    min-height: 48px;
    padding: 0 1.5rem;
}

body.woocommerce-cart table.cart td.actions .button:hover {
    background: var(--cream-2);
    border-color: rgba(37, 29, 20, 0.2);
}

body.woocommerce-cart table.cart td.actions button[name="apply_coupon"] {
    background: var(--sage);
    border-color: var(--sage);
    color: #fffdf9;
}

body.woocommerce-cart table.cart td.actions button[name="apply_coupon"]:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    color: #fffdf9;
}

/* Actions row: coupon + "Обновить корзину" (left), "Оформить заказ" (right) */
body.woocommerce-cart .woocommerce-cart-form .wcps-cart-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form .wcps-cart-actions__left {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
    align-items: center;
    display: flex;
    gap: 8px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .button {
    white-space: nowrap;
}

/* With JS active the cart auto-updates on quantity change, so the
   "Обновить корзину" button is hidden (kept in markup as a no-JS fallback). */
body.wcps-cart-ajax .woocommerce-cart-form td.actions button[name="update_cart"] {
    display: none !important;
}

body.woocommerce-cart .woocommerce-cart-form.wcps-cart-updating {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .checkout-button {
    align-items: center;
    background: var(--tomato) !important;
    border: 1px solid var(--tomato) !important;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fffdf9 !important;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.15;
    min-height: 48px;
    padding: 0 1.5rem;
    text-decoration: none;
    white-space: nowrap;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .checkout-button:hover,
body.woocommerce-cart .woocommerce-cart-form td.actions .checkout-button:focus-visible {
    background: var(--tomato-deep) !important;
    border-color: var(--tomato-deep) !important;
    color: #fffdf9 !important;
}

@media (max-width: 640px) {
    body.woocommerce-cart .woocommerce-cart-form td.actions .wcps-cart-actions__left {
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
        flex-wrap: wrap;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon input#coupon_code {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .button,
    body.woocommerce-cart .woocommerce-cart-form td.actions .checkout-button {
        flex: 1 1 100%;
        width: 100%;
    }
}

.wcps-cart-popular {
    border-top: 1px solid rgba(34, 30, 26, 0.12);
    margin-top: clamp(32px, 5vw, 64px);
    padding-top: clamp(24px, 4vw, 40px);
}

.wcps-cart-popular__title {
    color: var(--wcpc-dark);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 24px;
}

.wcps-cart-popular__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcps-cart-popular__item {
    min-width: 0;
}

.wcps-cart-popular-card {
    background: rgba(255, 250, 243, 0.9);
    border: 1px solid rgba(169, 106, 43, 0.14);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--wcpc-text);
    display: grid;
    gap: 14px;
    grid-template-rows: minmax(160px, auto) 1fr;
    height: 100%;
    min-height: 280px;
    padding: 14px;
    text-decoration: none;
}

.wcps-cart-popular-card:hover,
.wcps-cart-popular-card:focus-visible {
    border-color: rgba(138, 90, 43, 0.32);
    box-shadow: 0 14px 28px rgba(37, 29, 20, 0.08);
}

.wcps-cart-popular-card__media {
    align-items: center;
    aspect-ratio: 3 / 4;
    background: #fff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.wcps-cart-popular-card__media img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.wcps-cart-popular-card__body {
    display: grid;
    gap: 12px;
    grid-template-rows: 1fr auto;
    min-width: 0;
}

.wcps-cart-popular-card__title {
    color: var(--wcpc-dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.wcps-cart-popular-card__price {
    /* затемнён зелёный: цена читаема на светлом фоне карточки (WCAG AA 4.5:1) */
    color: #427b55;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.1;
}

.wcps-cart-popular-card__price del {
    color: var(--wcpc-muted);
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.wcps-cart-popular-card__price ins {
    text-decoration: none;
}

@media (max-width: 1023px) {
    .wcps-cart-popular__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wcps-cart-popular__grid {
        grid-template-columns: 1fr;
    }
}

/* Избранное / Вы смотрели */

.wcpc-site-header__icon-link em[hidden] {
    display: none;
}

.wcps-category-card__media-wrap {
    position: relative;
}

.wcps-category-card__favorite {
    align-items: center;
    background: rgba(255, 250, 243, 0.92);
    border: 1px solid rgba(34, 30, 26, 0.1);
    border-radius: 999px;
    color: var(--graphite);
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    transition: border-color 0.2s ease, color 0.2s ease;
    width: 36px;
    z-index: 2;
}

.wcps-category-card__favorite:hover {
    border-color: var(--tomato);
    color: var(--tomato);
}

.wcps-category-card__favorite.is-active {
    color: var(--tomato);
}

.wcps-category-card__favorite.is-active svg {
    fill: var(--tomato);
}

.wcps-single-product__favorite {
    align-items: center;
    background: transparent;
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 999px;
    color: var(--wcpc-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    padding: 12px 18px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wcps-single-product__favorite:hover {
    border-color: var(--tomato);
    color: var(--tomato);
}

.wcps-single-product__favorite.is-active {
    border-color: var(--tomato);
    color: var(--tomato);
}

.wcps-single-product__favorite.is-active svg {
    fill: var(--tomato);
}

.wcps-favorites-page__lead {
    color: var(--muted);
    margin: 0.5rem 0 2rem;
    max-width: 52ch;
}

.wcps-category-empty__link {
    color: var(--tomato);
    display: inline-block;
    font-weight: 700;
    margin-top: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Thank-you / order-received page ===== */
/* order-received renders through page.php: drop the endpoint page title and the
   entry card so the thank-you hero is the single heading and the sections read
   as standalone cards on the page background. */
body.woocommerce-order-received .wcps-content-shell {
    max-width: min(920px, calc(100vw - 48px));
}

body.woocommerce-order-received .entry-header {
    display: none;
}

body.woocommerce-order-received .wcps-entry {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.wcps-thankyou {
    display: grid;
    gap: 24px;
}

.wcps-thankyou__hero {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 20px;
    box-shadow: var(--wcpc-surface-shadow);
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
}

.wcps-thankyou__hero--failed {
    border-color: rgba(192, 57, 43, 0.35);
}

.wcps-thankyou__check {
    align-items: center;
    background: var(--sage);
    border-radius: 50%;
    color: #fffaf5;
    display: inline-flex;
    font-size: 30px;
    height: 60px;
    justify-content: center;
    line-height: 1;
    margin-bottom: 16px;
    width: 60px;
}

.wcps-thankyou__eyebrow {
    color: var(--wcpc-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.wcps-thankyou__title {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
}

.wcps-thankyou__lead {
    color: var(--wcpc-text);
    margin: 0 auto;
    max-width: 52ch;
}

.wcps-thankyou__overview {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    text-align: left;
}

.wcps-thankyou__overview li {
    background: var(--cream);
    border-radius: 12px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
}

.wcps-thankyou__overview span {
    color: var(--wcpc-muted);
    font-size: 0.8rem;
}

.wcps-thankyou__overview strong {
    color: var(--wcpc-dark);
    font-size: 1.05rem;
}

.wcps-thankyou__details .woocommerce-order-details,
.wcps-thankyou__details .woocommerce-customer-details,
.wcps-thankyou__details .wcpd-order-delivery {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 20px;
    box-shadow: var(--wcpc-surface-shadow);
    margin: 0 0 24px;
    padding: clamp(20px, 4vw, 32px);
}

.wcps-thankyou__details .woocommerce-order-details__title,
.wcps-thankyou__details .woocommerce-column__title,
.wcpd-order-delivery__title {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.wcps-thankyou__details table.shop_table {
    border: 0;
    width: 100%;
}

.wcps-thankyou__details table.shop_table th,
.wcps-thankyou__details table.shop_table td {
    border-top: 1px solid var(--wcpc-surface-border);
    padding: 12px 0;
    text-align: left;
}

.wcps-thankyou__details table.shop_table thead th {
    border-top: 0;
    color: var(--wcpc-muted);
    font-weight: 700;
}

.wcps-thankyou__details table.shop_table td:last-child,
.wcps-thankyou__details table.shop_table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.wcps-thankyou__details table.shop_table tfoot th {
    color: var(--wcpc-muted);
    font-weight: 600;
}

.wcps-thankyou__details table.shop_table tfoot tr:last-child th,
.wcps-thankyou__details table.shop_table tfoot tr:last-child td {
    color: var(--wcpc-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.wcps-thankyou__details a {
    color: var(--tomato);
    text-decoration: none;
}

.wcps-thankyou__details address {
    color: var(--wcpc-text);
    font-style: normal;
    line-height: 1.6;
    margin: 0;
}

.wcpd-order-delivery {
    border-left: 4px solid var(--ochre) !important;
}

.wcpd-order-delivery__list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcpd-order-delivery__row {
    display: grid;
    gap: 2px 16px;
    grid-template-columns: 160px 1fr;
}

.wcpd-order-delivery__label {
    color: var(--wcpc-muted);
    font-size: 0.9rem;
}

.wcpd-order-delivery__value {
    color: var(--wcpc-dark);
    font-weight: 600;
}

.wcps-thankyou__next {
    background: var(--wcpc-surface);
    border: 1px solid var(--wcpc-surface-border);
    border-radius: 20px;
    box-shadow: var(--wcpc-surface-shadow);
    padding: clamp(20px, 4vw, 32px);
}

.wcps-thankyou__next h2 {
    color: var(--wcpc-dark);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.wcps-thankyou__steps {
    color: var(--wcpc-text);
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding-left: 20px;
}

.wcps-thankyou__cta,
.wcps-thankyou__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.wcps-thankyou__actions {
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .wcpd-order-delivery__row {
        grid-template-columns: 1fr;
    }

    .wcps-thankyou__cta .wcps-craft-button,
    .wcps-thankyou__actions .wcps-craft-button {
        flex: 1 1 auto;
        text-align: center;
    }
}
