/* Страница товара — Zara-style layout поверх home-front overlay */
.pearl-single-product-page {
    margin: 0;
    overflow-x: hidden;
}

/* Гамбургер и правое меню находятся в overlay — поднимаем его выше мобильной верхней панели */
.pearl-single-product-page .pearl-home-overlay {
    z-index: 120 !important;
}

.pearl-single-layout {
    padding: 80px 24px 80px;
}

.pearl-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Как у Zara: больше "воздуха" слева у фотографий */
@media (min-width: 1025px) {
    .pearl-product {
        margin-left: 7vw;
        margin-right: 7vw;
        max-width: none;
    }
}

.pearl-product-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.pearl-product-media-item img {
    display: block;
    width: 100%;
    height: auto;
}

.pearl-product-info {
    position: sticky;
    top: 110px; /* ниже правого меню */
    align-self: start;
}

.pearl-product-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pearl-product-price {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 400;
}

/* Кнопка покупки как у Zara: широкая, без скруглений */
.pearl-product-info form.cart {
    margin: 18px 0 18px;
}
.pearl-product-info form.cart .button,
.pearl-product-info form.cart button[type="submit"] {
    width: 100%;
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    padding: 14px 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}
.pearl-product-info form.cart .button:hover,
.pearl-product-info form.cart button[type="submit"]:hover {
    background: #111 !important;
}

.pearl-product-desc,
.pearl-product-desc-full {
    font-size: 12px;
    line-height: 1.55;
    color: #111;
    margin: 0 0 14px;
}

@media (max-width: 1024px) {
    .pearl-product {
        grid-template-columns: 1fr 360px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .pearl-single-layout {
        padding: 70px 16px 56px;
    }
    .pearl-product {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .pearl-product-info {
        position: static;
        top: auto;
    }
    /* На мобильной вместо правого текстового меню — верхняя панель кнопок */
    .pearl-single-product-page .pearl-right-menu {
        display: none !important;
    }
    .pearl-single-product-page .pearl-cat-mobile-topbar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 105;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(6px);
    }
    .pearl-single-layout {
        padding-top: 78px;
    }
    .pearl-single-product-page .pearl-hamburger {
        z-index: 110 !important;
        top: 14px !important;
        left: 14px !important;
    }
}

/* Минимальные стили кнопок верхней панели на странице товара */
.pearl-single-product-page .pearl-cat-mobile-topbar {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 12px 10px 96px; /* слева место под гамбургер (шире, чтобы кнопки не перекрывали) */
    z-index: 105;
}
.pearl-single-product-page .pearl-cat-toolbar-btn {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 0;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pearl-single-product-page .pearl-cat-mobile-topbar-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
    position: relative;
}
.pearl-single-product-page .pearl-cat-mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
}
.pearl-single-product-page .pearl-view-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 1px solid #111;
}

