/* ============================================================
   MAISON THEME — product.css
============================================================ */

.product-page { padding: 60px 60px 100px; }
.product-page-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ГАЛЕРЕЯ */
.product-gallery {
    display: flex;
    gap: 16px;
    position: sticky;
    top: 100px;
    height: fit-content;
}
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    flex-shrink: 0;
}
.gallery-thumbs .thumb {
    width: 72px;
    aspect-ratio: 2/3;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 0.3s;
    border: 1px solid transparent;
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-main {
    flex: 1;
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--gray-light);
}
.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-page-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 6px 16px;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
}

/* ИНФОРМАЦИЯ */
.product-info-panel { padding-top: 10px; }

.product-page-brand {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.product-page-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
}
.product-page-price {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 28px;
    color: var(--black);
}
.product-page-price .woocommerce-Price-amount { font-size: 32px; font-weight: 300; }
.product-page-price del .woocommerce-Price-amount { font-size: 20px; color: var(--gray); margin-right: 12px; }
.product-page-price ins { color: var(--black); }

.product-page-color {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 12px;
}
.spec-label { color: var(--gray); letter-spacing: 1px; }
.spec-value { font-weight: 400; }

/* КНОПКА КУПИТЬ (WooCommerce) */
.product-page-cart { margin-bottom: 24px; }
.product-page-cart .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    width: fit-content;
}
.product-page-cart .qty {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 18px;
    background: transparent;
    outline: none;
}
.product-page-cart .single_add_to_cart_button {
    width: 100%;
    background: var(--black);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.3s;
    display: block;
}
.product-page-cart .single_add_to_cart_button:hover { background: var(--gold); color: var(--black); }

/* ДЕЙСТВИЯ */
.product-page-actions { margin-bottom: 32px; }
.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0;
    transition: color 0.3s;
}
.action-btn:hover { color: var(--gold); }

/* АККОРДЕОН */
.product-accordion { border-top: 1px solid rgba(0,0,0,0.08); }
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    text-align: left;
    transition: color 0.3s;
}
.accordion-trigger.active { color: var(--gold); }
.accordion-icon { font-size: 18px; line-height: 1; }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}
.accordion-body.open {
    max-height: 600px;
    padding-bottom: 24px;
}
.accordion-body p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

/* ТАБЛИЦА ХАРАКТЕРИСТИК */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid rgba(0,0,0,0.05); }
.specs-table td { padding: 10px 0; font-size: 13px; line-height: 1.6; }
.spec-key { color: var(--gray); width: 45%; }
.spec-val { color: var(--black); font-weight: 400; }

/* РЕКОМЕНДОВАННЫЕ */
.related-section { padding: 60px 60px 100px; }

@media (max-width: 1024px) {
    .product-page { padding: 40px 24px 80px; }
    .product-page-inner { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .related-section { padding: 40px 24px 80px; }
}
@media (max-width: 640px) {
    .gallery-thumbs { display: none; }
    .product-page-title { font-size: 30px; }
}
