/* =============================================
   SINGLE PRODUCT LAYOUT
   ============================================= */
.page-main--product { padding-bottom: 60px; }

.single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    margin: 0;
}

/* Left column: flex column, stretches to match right height */
.product-gallery-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =============================================
   PRODUCT GALLERY
   ============================================= */
.product-gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
    align-items: start;
    flex: 1;
}
/* When no thumbnails, single column */
.product-gallery:not(:has(.product-gallery__thumbs)) {
    grid-template-columns: 1fr;
}

/* Thumbnails */
.product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}
.product-gallery__thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-light);
    cursor: pointer;
    padding: 4px;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.product-gallery__thumb:hover,
.product-gallery__thumb.active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumb--pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    border-color: var(--color-border);
}
.pdf-icon {
    background: var(--color-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* Main image */
.product-gallery__main {
    position: relative;
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
}
.product-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.3s ease;
}
.product-gallery__main:hover .product-gallery__main-img { transform: scale(1.04); }

.product-gallery__stock-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-success);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.product-gallery__zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    color: var(--color-text);
}
.product-gallery__zoom:hover { background: #fff; box-shadow: var(--shadow-card); }

/* =============================================
   PRODUCT INFO
   ============================================= */
.product-info { display: flex; flex-direction: column; gap: 20px; height: 100%; }

.product-info__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.product-info__title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}
.product-info__short-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.product-info__short-desc p { margin-bottom: 0; }

/* Key specs icons */
.product-key-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}
.product-key-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.product-key-spec__icon { display: none; }
.product-key-spec__label { font-size: 11px; color: var(--color-text-muted); line-height: 1.2; }
.product-key-spec__value { font-size: 13px; font-weight: 600; color: var(--color-text); }

/* =============================================
   PRICE BLOCK
   ============================================= */
.product-price-block {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-price-block__main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.product-price-block__label {
    font-size: 16px;
    color: var(--color-text-muted);
}
.product-price-block__price {
    font-size: 20px;
    color: var(--color-text);
}
.product-price-block__price strong {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
}
.product-price-block__unit { font-size: 14px; color: var(--color-text-muted); }

/* Tiered price table — minimal inline */
/* =============================================
   MIN QTY INFO BLOCK
   ============================================= */
.product-min-qty-info {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}
.product-min-qty-info__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 12px 16px;
}
.product-min-qty-info__divider {
    width: 1px;
    background: var(--color-border);
    flex-shrink: 0;
}
.product-min-qty-info__icon {
    color: var(--color-primary);
    flex-shrink: 0;
}
.product-min-qty-info__item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-min-qty-info__label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.product-min-qty-info__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

/* Add to cart */
.product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.product-add-to-cart .single_add_to_cart_button,
.product-add-to-cart form.cart {
    flex: 1 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}
.product-add-to-cart form.cart .single_add_to_cart_button {
    width: 100% !important;
    flex: 1 !important;
    height: 48px !important;
}

/* Label above the row */
.product-qty__label-above {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    margin-top: 4px;
}

/* Qty control */
.product-qty { display: flex; flex-direction: column; gap: 4px; }

.product-qty__control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-white);
    height: 48px;
}
.product-qty__btn {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg-light);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}
.product-qty__btn:hover { background: var(--color-primary); color: #fff; }
.product-qty__input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-white);
    outline: none;
    -moz-appearance: textfield;
}
.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* WC add to cart button */
.product-info .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
body.woocommerce-block-theme-has-button-styles .single_add_to_cart_button {
    flex: 1 !important;
    min-width: 160px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    height: 48px !important;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition) !important;
    font-family: var(--font-main) !important;
    text-decoration: none !important;
}
.product-info .single_add_to_cart_button::before,
body.woocommerce-block-theme-has-button-styles .single_add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}
.product-info .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover,
body.woocommerce-block-theme-has-button-styles .single_add_to_cart_button:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: 0 4px 16px rgba(12,137,182,0.35) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}



/* Total */
.product-total {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}
.product-total span { font-weight: 600; color: var(--color-text); }

/* Promo banner */
.product-promo-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}
.product-promo-banner--under-photo {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-top: 0;
}
.product-promo-banner--under-photo .product-promo-banner__icon {
    display: flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
}
.product-promo-banner__icon { flex-shrink: 0; }
.product-promo-banner__title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.product-promo-banner__text { font-size: 13px; }

/* Out of stock */
.out-of-stock { font-size: 14px; color: var(--color-text-muted); }
.out-of-stock a { color: var(--color-primary); text-decoration: underline; }

/* WC form override */
.product-info form.cart { display: contents; }
.product-info .quantity { display: none; } /* We use our own qty control */

/* =============================================
   PRODUCT BOTTOM
   ============================================= */
.product-bottom {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}

/* Specs block with background */
.product-specs {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
}

/* Description block with background */
.product-description {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
}

/* Specs table */

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr.specs-table__row--hidden { display: none; }
.specs-table td { padding: 9px 0; vertical-align: middle; }
.specs-table__label { color: var(--color-text-muted); width: 60%; text-align: left; }
.specs-table__value { font-weight: 500; color: var(--color-text); text-align: right; }
.specs-table__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition);
}
.specs-table__toggle:hover { color: var(--color-primary-dark); }
.specs-table__toggle svg { transition: transform 0.2s ease; }
.specs-table__toggle.expanded svg { transform: rotate(90deg); }

/* Product description */
.product-description {}
.product-description__content { font-size: 15px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 24px; }
.product-description__content p { margin-bottom: 12px; }

.product-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    align-items: stretch;
}
.product-advantage {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
.product-advantage img { width: 28px; height: 28px; flex-shrink: 0; }
.product-advantage > div { display: flex; flex-direction: column; gap: 1px; }
.product-advantage strong { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.product-advantage span { font-size: 11px; color: var(--color-text-muted); line-height: 1.3; }

/* =============================================
   LIGHTBOX
   ============================================= */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.gallery-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}
.gallery-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
.gallery-lightbox__img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

/* =============================================
   RELATED PRODUCTS
   ============================================= */
.related-products { border-top: 1px solid var(--color-border); padding-top: 48px; }

/* =============================================
   RESPONSIVE SINGLE PRODUCT
   ============================================= */
@media (max-width: 1024px) {
    .product-key-specs { grid-template-columns: repeat(2, 1fr); }
    .product-bottom { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .single-product { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { grid-template-columns: 64px 1fr; }
    .product-gallery__thumb { width: 64px; height: 64px; }
    .product-add-to-cart { flex-wrap: wrap; }
    .product-advantages { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-gallery { grid-template-columns: 1fr; }
    .product-gallery__thumbs { flex-direction: row; overflow-x: auto; }
    .product-gallery__thumb { flex-shrink: 0; }
    .product-price-block__price strong { font-size: 26px; }
}

/* Admin bar body margins — shown only for admins, not visitors */
body.logged-in {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Product bottom section titles */
.product-specs .section-title,
.product-description .section-title {
    font-size: 20px;
    margin-bottom: 20px;
}

/* specs table inside bg block */
.product-specs .specs-table__label { color: var(--color-text-muted); }

/* description text */
.product-description__content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0;
}
.product-description__content p {
    margin-bottom: 14px;
    margin-top: 0;
}
.product-description__content p:last-of-type { margin-bottom: 0; }
/* Plain text with line breaks (if wpautop not applied) */
.product-description__content br + br { display: block; content: ""; margin-top: 14px; }

/* Promo banner icon — PNG size */
.product-promo-banner__icon .promo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.product-promo-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

/* =============================================
   MOBILE SINGLE PRODUCT
   ============================================= */
@media (max-width: 768px) {

    /* Левая/правая колонки — в столбик */
    .single-product { display: block !important; }

    /* Левая колонка — flex column */
    .product-gallery-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    /* Галерея — превьюшки горизонтально ПОД фото */
    .product-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
    }
    .product-gallery__main {
        width: 100% !important;
        max-height: 320px !important;
        aspect-ratio: 4/3 !important;
        order: 1;
    }
    .product-gallery__thumbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        max-height: none !important;
        order: 2;
        padding-bottom: 4px;
    }
    .product-gallery__thumb {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0 !important;
    }

    /* Promo banner под галереей */
    .product-promo-banner--under-photo {
        order: 3;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    /* Правая колонка */
    .product-info { margin-top: 16px; }

    /* Характеристики-иконки — 2 колонки */
    .product-key-specs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 12px;
    }

    /* Блок цены */
    .product-price-block { padding: 16px; }

    /* Кнопка корзины */
    .product-add-to-cart { flex-wrap: nowrap; gap: 8px; }
    .product-qty__control { height: 44px; }
    .product-add-to-cart .single_add_to_cart_button,
    .product-add-to-cart form.cart {
        flex: 1 !important;
        height: 44px !important;
        min-width: 0 !important;
    }

    /* Нижний блок — в столбик */
    .product-bottom {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-top: 20px;
        padding-top: 0;
        border-top: none;
    }
    .product-specs,
    .product-description { padding: 20px; }

    /* 3 преимущества — в столбик */
    .product-advantages {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .product-price-block__price strong { font-size: 26px; }
    .product-min-qty-info { flex-direction: column; }
    .product-min-qty-info__divider { width: 100%; height: 1px; }
}

/* =============================================
   CAT PRODUCTS SLIDER
   ============================================= */
.cat-products {
    border-top: 1px solid var(--color-border);
    padding-top: 48px;
    margin-top: 48px;
}

/* Header: title+subtitle left, link right */
.cat-products__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.cat-products__title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 8px;
}
.cat-products__subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 540px;
}
.cat-products__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transition: color var(--transition);
}
.cat-products__link:hover { color: var(--color-primary-dark); }

/* Slider outer — arrows sit outside the viewport */
.cat-products__slider-wrap {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
}

/* Arrow buttons */
.cat-products__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}
.cat-products__arrow:hover { background: var(--color-bg-light); box-shadow: var(--shadow-hover); }
.cat-products__arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* Viewport — clips the track */
.cat-products__viewport {
    overflow: hidden;
}

/* Track — flex row of cards */
.cat-products__track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual card */
.cat-product-card {
    flex: 0 0 calc(25% - 15px);   /* 4 cards visible on desktop */
    min-width: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.cat-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.cat-product-card__img-link {
    display: block;
    position: relative;
    background: var(--color-bg-light);
    padding: 16px;
}
.cat-product-card__img {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cat-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.cat-product-card:hover .cat-product-card__img img { transform: scale(1.04); }

/* In-stock badge */
.cat-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-success);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1;
}

.cat-product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.cat-product-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.cat-product-card__title:hover { color: var(--color-primary); }
.cat-product-card__price {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}
.cat-product-card__price strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
}
.cat-product-card .btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Dots */
.cat-products__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.cat-products__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.cat-products__dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* =============================================
   CAT PRODUCTS — RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .cat-product-card { flex: 0 0 calc(33.333% - 14px); } /* 3 cards */
}
@media (max-width: 768px) {
    .cat-products__head { flex-direction: column; gap: 12px; }
    .cat-products__link { align-self: flex-start; }
    .cat-products__slider-wrap { grid-template-columns: 36px 1fr 36px; gap: 4px; }
    .cat-products__arrow { width: 36px; height: 36px; }
    .cat-product-card { flex: 0 0 calc(50% - 10px); } /* 2 cards */
}
@media (max-width: 480px) {
    .cat-product-card { flex: 0 0 calc(80% - 10px); } /* 1.25 cards — peek effect */
    .cat-products__slider-wrap { grid-template-columns: 32px 1fr 32px; }
}
