/* =========================================================
   SHARNIR.UZ — SHARED SHOP STYLES — 20260913-CLEANUP-1

   Общие стили каталога SKF, корзины и оформления заказа.
   Устаревшие стили характеристик и цены тестового товара удалены.
   Временных товарных данных в этом файле нет.

   Подключать после sharnir.css.
   Общие .site-container, .button и .section-eyebrow уже существуют.
   ========================================================= */


/* =========================================================
   HERO — DARK, WITHOUT NUMERIC INDEX
   ========================================================= */

.shop-hero {
    position: relative;
    overflow: hidden;

    color: var(--color-white);
    background-color: var(--color-green);
    background-image:
        radial-gradient(circle at 12% 16%, rgba(249, 105, 0, 0.10), transparent 32%),
        linear-gradient(135deg, transparent, rgba(7, 35, 28, 0.68));
}

.shop-hero::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--container-padding);

    width: 1px;
    background: rgba(249, 105, 0, 0.65);
    pointer-events: none;
}

.shop-hero__inner {
    position: relative;

    padding-top: calc(var(--header-height) + 90px);
    padding-bottom: clamp(54px, 6vw, 84px);
}

.shop-hero__content {
    max-width: 980px;
    padding-left: clamp(18px, 2vw, 32px);

    animation: shop-fade-up 0.75s 0.08s both ease-out;
}

.shop-hero .section-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.shop-hero h1 {
    margin: 0;

    color: var(--color-white);
    font-size: clamp(36px, 5.4vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.shop-hero__notice {
    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   01 / PRODUCTS — LIGHT
   ========================================================= */

.shop-section {
    padding: clamp(54px, 7vw, 104px) 0;

    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 10% 14%, rgba(249, 105, 0, 0.05), transparent 32%),
        radial-gradient(circle at 90% 84%, rgba(22, 75, 59, 0.10), transparent 45%);
}

.shop-section__heading {
    max-width: 900px;
    margin-bottom: clamp(28px, 4vw, 46px);
}

.shop-section__heading h2 {
    margin: 0;

    color: var(--color-green);
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ---------------------------------------------------------
   PRODUCT CARD
   --------------------------------------------------------- */

.shop-card {
    position: relative;
    min-width: 0;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(22, 75, 59, 0.16);
    background: rgba(255, 255, 255, 0.65);

    transition: border-color var(--transition);
}

.shop-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: -1px;
    z-index: 1;

    width: 3px;
    height: 0;

    background: var(--color-orange);
    transition: height 0.35s ease;
    pointer-events: none;
}

.shop-card:hover,
.shop-card:focus-within {
    border-color: rgba(22, 75, 59, 0.38);
}

.shop-card:hover::before,
.shop-card:focus-within::before {
    height: 100%;
}

.shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    padding: clamp(20px, 2.4vw, 32px);
}

.shop-card__article {
    margin: 0 0 12px;

    color: #55605c;
    font-size: 12px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.shop-card h3 {
    margin: 0 0 20px;

    color: var(--color-green);
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.shop-card h3 a:hover {
    color: var(--color-orange);
}

.shop-stock {
    margin: auto 0 14px;

    color: #55605c;
    font-size: 14px;
}

.shop-price {
    margin: 0 0 22px;

    color: var(--color-green);
    font-size: clamp(25px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.shop-card__link,
.shop-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--color-green);
    font-size: 14px;
    font-weight: 600;
}

.shop-card__link {
    margin-top: 22px;
}

.shop-card__link:hover,
.shop-back:hover {
    color: var(--color-orange);
}


/* ---------------------------------------------------------
   MEDIA AND EMPTY IMAGE
   --------------------------------------------------------- */

.shop-product-media {
    min-width: 0;
    aspect-ratio: 4 / 3;

    display: grid;
    place-items: center;

    padding: clamp(20px, 3vw, 38px);
    overflow: hidden;

    background: #ffffff;
}

.shop-product-media img {
    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: contain;
}

.shop-product-media__empty {
    display: grid;
    justify-items: center;
    gap: 18px;

    color: #55605c;
    font-size: 13px;
    text-align: center;
}

.shop-product-media__empty::before {
    content: "";

    width: clamp(58px, 7vw, 96px);
    aspect-ratio: 1;

    border: 1px solid rgba(22, 75, 59, 0.25);
    border-radius: 50%;
    outline: 1px dashed rgba(22, 75, 59, 0.18);
    outline-offset: -12px;
}


/* ---------------------------------------------------------
   PRODUCT DETAIL
   --------------------------------------------------------- */

.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 76px);
}

.shop-product-media--detail {
    aspect-ratio: 1;
    border: 1px solid rgba(22, 75, 59, 0.16);
}

.shop-product__info {
    min-width: 0;
    padding-block: 10px;
}

.shop-product__description {
    margin: 0 0 28px;

    color: #55605c;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.shop-buy-form {
    width: 100%;
    margin: 0;
}

.shop-buy-form .button {
    width: 100%;
    min-height: 52px;
}

.shop-buy-form--detail {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-buy-form--detail .button {
    flex: 1 1 180px;
    width: auto;
}

.shop-quantity {
    flex: 0 0 140px;
}

.shop-quantity label {
    display: block;
    margin-bottom: 8px;

    color: #55605c;
    font-size: 13px;
}

.shop-quantity input {
    width: 100%;
    height: 52px;
    padding: 0 14px;

    border: 1px solid rgba(22, 75, 59, 0.3);
    border-radius: 0;

    color: var(--color-green);
    background: var(--color-white);
}

.shop-back {
    margin-top: 36px;
}


/* =========================================================
   ACCESSIBILITY AND RESPONSIVE
   ========================================================= */

.shop-section :is(a, button, input):focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 4px;
}

@keyframes shop-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shop-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-product-media--detail {
        width: 100%;
        max-width: 480px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .shop-hero::before {
        display: none;
    }

    .shop-hero__inner {
        padding-top: calc(var(--header-height) + 74px);
        padding-bottom: 46px;
    }

    .shop-hero__content {
        padding-left: 0;
    }

    .shop-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-card__body {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-hero__content {
        animation: none;
    }

    .shop-section *,
    .shop-section *::before {
        transition: none;
    }
}

.skf-store .shop-card .shop-card__subtitle {
    width: 100%;
    margin: 0 0 12px;
    color: #55605c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}
