/* Product list and product detail */
.category-products {
    position: relative;
    padding: 70px 0 90px;
    background: #f6f5f3;
}

.category-products__header {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.category-products__title,
.product-specs__title {
    margin: 0;
    color: #282624;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.12;
}

.category-products__subtitle {
    margin: 14px 0 0;
    color: rgba(40, 38, 36, .72);
    font-size: 20px;
    line-height: 1.45;
}

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

.product-card {
    position: relative;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(40, 38, 36, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(40, 38, 36, .14);
}

.product-card__label {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: #282624;
    border-radius: 999px;
}

.product-card__image {
    display: flex;
    height: 270px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f5f3 0%, #fff 100%);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.product-card__title {
    margin: 0;
    color: #282624;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.product-card__text {
    margin: 12px 0 0;
    color: rgba(40, 38, 36, .72);
    font-size: 15px;
    line-height: 1.5;
}

.product-card__meta {
    display: flex;
    margin-top: auto;
    padding-top: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(40, 38, 36, .64);
    font-size: 14px;
}

.product-card__meta strong {
    color: #282624;
    font-size: 20px;
    white-space: nowrap;
}

.category-products__empty {
    padding: 34px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
}

.product-page__header {
    position: relative;
    padding: 148px 0 54px;
    background: #908171;
    border-radius: 0 0 30px 30px;
}

.product-page {
    padding: 86px 0 110px;
    background: #fff;
}

.product-page__container,
.product-page__header .product-page__container,
.product-specs .product-page__container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.product-breadcrumbs {
    margin: 0;
}

.product-page__header .breadcrumbs__link {
    color: #fff;
}

.product-page__header .breadcrumbs__current {
    color: #e2e1df;
}

.product-page__header .breadcrumbs__separator {
    background: #e2e1df;
}

.product-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
    grid-template-areas: "media info";
    gap: 0;
    align-items: stretch;
}

.product-hero__media {
    position: relative;
    grid-area: media;
    min-width: 0;
    padding: 42px 84px 42px 42px;
    background: #f6f5f3;
    border-radius: 8px 0 0 8px;
}

.product-hero__media-label {
    position: absolute;
    top: 28px;
    left: 32px;
    color: #908171;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-hero__main-image {
    display: flex;
    min-height: 560px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}

.product-hero__main-image img {
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: contain;
}

.product-hero__gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.product-hero__thumb {
    display: block;
    overflow: hidden;
    height: 90px;
    background: #f6f5f3;
    border: 1px solid #e2e1df;
    border-radius: 8px;
}

.product-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero__info {
    position: relative;
    z-index: 2;
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 54px 0 54px -42px;
    padding: 58px 54px;
    color: #fff;
    background: #282624;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(40, 38, 36, .2);
}

.product-hero__index {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-hero__eyebrow {
    margin-bottom: 22px;
    color: #f3bf82;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.product-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 600;
    line-height: 1.1;
}

.product-hero__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.product-hero__price {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
}

.product-hero__price-label {
    color: #e2e1df;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.product-hero__quick-spec {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.product-hero__quick-spec span {
    color: #e2e1df;
    font-size: 15px;
}

.product-hero__quick-spec strong {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.product-hero__actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.product-hero__actions .btn-dark {
    color: #282624;
    background: #f3bf82;
}

.product-hero__actions .btn-dark:hover {
    background: #e2e1df;
}

.product-hero__secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
}

.product-specs {
    padding: 80px 0 90px;
    background: #f6f5f3;
}

.product-specs__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 64px;
}

.product-specs__grid--compact {
    display: inline-grid;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: auto;
}

.product-specs__header {
    display: flex;
    margin-bottom: 44px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e1df;
}

.product-specs__subtitle {
    margin: 0 0 20px;
    color: #282624;
    font-size: 26px;
    font-weight: 600;
}

.product-specs__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #908171;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-specs__header-mark {
    color: #e2e1df;
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 600;
    line-height: .8;
    text-transform: uppercase;
}

.product-specs__text,
.product-specs__description {
    color: rgba(40, 38, 36, .74);
    font-size: 17px;
    line-height: 1.58;
}

.product-specs__list {
    display: grid;
    width: fit-content;
    max-width: 100%;
    gap: 14px;
    margin: 0;
    counter-reset: product-spec;
}

.product-specs__list div {
    display: grid;
    grid-template-columns: 48px minmax(120px, .45fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #e2e1df;
    counter-increment: product-spec;
}

.product-specs__list div:first-child {
    border-top: 1px solid #e2e1df;
}

.product-specs__list div > span {
    color: #908171;
    font-size: 12px;
    font-weight: 600;
}

.product-specs__list div > span::before {
    content: counter(product-spec, decimal-leading-zero);
}

.product-specs__list dt {
    color: #282624;
    font-size: 17px;
    font-weight: 600;
}

.product-specs__list dd {
    margin: 0;
    color: #282624;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
}

.product-specs__description-block {
    padding: 34px;
    background: #fff;
    border-left: 4px solid #908171;
}

@media (max-width: 1180px) {
    .category-products__grid,
    .product-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-specs__grid--compact {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .product-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "info";
    }

    .product-hero__media {
        padding: 38px;
        border-radius: 8px;
    }

    .product-hero__info {
        margin: -34px 34px 0;
    }
}

@media (max-width: 760px) {
    .category-products {
        padding: 48px 0 62px;
    }

    .category-products__grid,
    .product-specs__grid {
        grid-template-columns: 1fr;
    }

    .category-products__subtitle {
        font-size: 17px;
    }

    .product-card__image {
        height: 230px;
    }

    .product-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-page__container,
    .product-page__header .product-page__container,
    .product-specs .product-page__container {
        width: min(100% - 24px, 1400px);
    }

    .product-page__header {
        padding: 112px 0 34px;
        border-radius: 0 0 20px 20px;
    }

    .product-page {
        padding: 44px 0 54px;
    }

    .product-hero {
        gap: 38px;
    }

    .product-hero__media {
        padding: 28px 16px 58px;
    }

    .product-hero__media-label,
    .product-hero__index {
        display: none;
    }

    .product-hero__info {
        margin: -70px 12px 0;
        padding: 38px 24px;
    }

    .product-hero__title {
        font-size: 42px;
    }

    .product-hero__main-image {
        min-height: 320px;
        border-radius: 12px;
    }

    .product-hero__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-hero__summary {
        grid-template-columns: 1fr;
    }

    .product-hero__quick-spec {
        padding: 20px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-left: 0;
    }

    .product-hero__actions {
        flex-direction: column;
    }

    .product-specs__header-mark {
        display: none;
    }

    .product-specs__list div {
        grid-template-columns: 34px 100px minmax(0, 1fr);
        gap: 12px;
    }
}
