/* --- Product detail page --- */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail__top {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.product-detail__gallery,
.product-detail__info {
    min-width: 0;
}

/* --- Gallery --- */
.product-detail__main-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 480px;
    padding: 28px;

    background:
        radial-gradient(circle at center, rgba(229, 57, 53, 0.07), transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    border: 1px solid var(--lotus-border);
    border-radius: 24px;

    overflow: hidden;
}

.product-detail__main-image img {
    width: 100%;
    height: 100%;
    max-height: 430px;

    object-fit: contain;

    border-radius: 16px;

    cursor: zoom-in;
}

.product-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 12px;

    margin-top: 14px;
}

.product-detail__thumb {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 86px;
    padding: 8px;

    background: var(--bg-card);
    border: 1px solid var(--lotus-border);
    border-radius: 14px;

    cursor: pointer;
    transition: 0.2s;
}

.product-detail__thumb img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 8px;
}

/* --- Main product info --- */
.product-detail__info {
    padding: 28px;

    background: var(--bg-card);
    border: 1px solid var(--lotus-border);
    border-radius: 24px;
}

.product-detail__type {
    margin-bottom: 8px;

    color: var(--lotus-muted);
    font-size: 14px;
}

.product-detail__brand {
    margin-bottom: 8px;

    color: var(--lotus-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail__title {
    margin-bottom: 14px;

    color: var(--lotus-dark);
    font-size: 34px;
    line-height: 1.15;
}

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;

    margin-bottom: 18px;

    color: var(--lotus-muted);
    font-size: 14px;
}

.product-detail__price {
    display: flex;
    align-items: baseline;
    gap: 12px;

    margin-bottom: 20px;
}

.product-detail__old-price {
    color: var(--lotus-muted);
    font-size: 18px;
    text-decoration: line-through;
}

.product-detail__price strong {
    color: var(--lotus-dark);
    font-size: 32px;
    font-weight: 800;
}

.product-detail__cart {
    width: 100%;
    min-height: 48px;

    background: var(--lotus-red);
    border: 1px solid var(--lotus-red);
    border-radius: 14px;

    color: #fff;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s;
}

.product-detail__cart:hover {
    background: #c62828;
    border-color: #c62828;
}

/* --- Bottom content --- */
.product-detail__content {
    margin-top: 28px;
}

.product-detail__section {
    padding: 28px;

    background: var(--bg-card);
    border: 1px solid var(--lotus-border);
    border-radius: 24px;
}

.product-detail__section + .product-detail__section {
    margin-top: 20px;
}

.product-detail__section h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.product-detail__description {
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

.product-detail__description p {
    margin-bottom: 14px;
}

/* --- Characteristics --- */
.product-characteristics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin: 0;
}

.product-characteristics__row {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);

    overflow: hidden;

    background: #fff;
    border: 1px solid var(--lotus-border);
    border-radius: 14px;
}

.product-characteristics dt,
.product-characteristics dd {
    padding: 12px 14px;
    font-size: 14px;
}

.product-characteristics dt {
    background: #f8fafc;
    color: var(--lotus-muted);
    font-weight: 600;
}

.product-characteristics dd {
    color: var(--lotus-dark);
}

.product-detail__main-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 480px;
    padding: 32px;

    background: radial-gradient(circle at center, rgba(229, 57, 53, 0.07), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    border: 1px solid var(--lotus-border);
    border-radius: 24px;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--lotus-border);
    border-radius: 50%;

    color: var(--lotus-dark);
    font-size: 32px;
    line-height: 1;

    cursor: pointer;
    transition: 0.2s;
}

.product-gallery__arrow:hover {
    color: var(--lotus-red);
    border-color: var(--lotus-red);
}

.product-gallery__arrow--prev {
    left: 16px;
}

.product-gallery__arrow--next {
    right: 16px;
}

.product-gallery__zoom {
    position: absolute;
    left: 16px;
    bottom: 16px;

    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--lotus-border);
    border-radius: 999px;

    color: var(--lotus-dark);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s;
}

.product-gallery__zoom:hover {
    color: var(--lotus-red);
    border-color: var(--lotus-red);
}

.product-gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 16px;

    padding: 6px 10px;

    background: rgba(47, 47, 47, 0.82);
    border-radius: 999px;

    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* --- Thumbnails --- */
.product-detail__thumb {
    border: 1px solid var(--lotus-border);
    cursor: pointer;
    transition: 0.2s;
}

.product-detail__thumb:hover {
    border-color: var(--lotus-red);
}

.product-detail__thumb.is-active {
    border-color: var(--lotus-red);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.14);
}

/* --- Gallery modal --- */
.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.82);
}

.product-gallery-modal.is-open {
    display: flex;
}

.product-gallery-modal__image {
    max-width: min(1100px, 90vw);
    max-height: 86vh;

    object-fit: contain;

    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
}

.product-gallery-modal__close {
    position: absolute;
    top: 24px;
    right: 28px;

    width: 44px;
    height: 44px;

    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;

    color: var(--lotus-dark);
    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.product-gallery-modal__close:hover {
    color: var(--lotus-red);
}

.product-gallery-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 54px;
    height: 54px;

    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;

    color: var(--lotus-dark);
    font-size: 42px;
    line-height: 1;

    cursor: pointer;
}

.product-gallery-modal__arrow:hover {
    color: var(--lotus-red);
}

.product-gallery-modal__arrow--prev {
    left: 30px;
}

.product-gallery-modal__arrow--next {
    right: 30px;
}

/* --- Fix gallery icon alignment --- */
.product-gallery__arrow,
.product-gallery-modal__arrow,
.product-gallery-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    font-size: 0;
    line-height: 1;
    text-align: center;
}

/* Маленькие стрелки на основной фотографии */
.product-gallery__arrow::before {
    display: block;

    color: inherit;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-2px);
}

.product-gallery__arrow--prev::before {
    content: "‹";
}

.product-gallery__arrow--next::before {
    content: "›";
}

/* Стрелки в модальном окне */
.product-gallery-modal__arrow::before {
    display: block;

    color: inherit;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-6px);
}

.product-gallery-modal__arrow--prev::before {
    content: "‹";
}

.product-gallery-modal__arrow--next::before {
    content: "›";
}

/* Крестик закрытия */
.product-gallery-modal__close::before {
    content: "×";
    display: block;

    color: inherit;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-4.5px);
}

/* --- Characteristic groups --- */
.characteristic-groups {
    display: grid;
    gap: 22px;
}

.characteristic-group {
    padding: 20px;

    background: #f8fafc;
    border: 1px solid var(--lotus-border);
    border-radius: 20px;
}

.characteristic-group__header {
    margin-bottom: 16px;
}

.characteristic-group__header h3 {
    margin-bottom: 4px;

    color: var(--lotus-dark);
    font-size: 18px;
    line-height: 1.25;
}

.characteristic-group__header p {
    color: var(--lotus-muted);
    font-size: 14px;
}

.characteristic-group .product-characteristics {
    grid-template-columns: 1fr 1fr;
}

.characteristic-group .product-characteristics__row {
    background: var(--bg-card);
}