/* 
   Mina Lidya Elite - Single Product Page Styles
   "Oksana Clone" + "Quiet Luxury" Hybrid
*/

@import url('main.css');

:root {
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

body.single-product-page {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

/* --- Header Override for Product Page --- */
/* If product page is mostly white, header should be white or turn white immediately */
.single-product-page .site-header {
    background: #000;
    /* Start black as per brand */
    color: #fff;
    transition: all 0.4s ease;
}

.single-product-page .site-header.scrolled,
.single-product-page .site-header.menu-open {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* --- Boxed Container Layout --- */
.product-main-container {
    max-width: 1400px;
    width: 85%;
    margin: 0 auto;
    padding-top: 240px;
    /* Increased for breathing room */
}

.product-split-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* --- Left Column: Oksana Style Gallery --- */
.product-media-col {
    flex: 1.4;
    display: flex;
    flex-direction: row;
    /* Sidebar + Main side by side */
    height: auto;
    /* Allow column to grow for tags/description */
    min-height: 848px;
    position: sticky;
    top: 140px;
    gap: 0;
    align-items: flex-start;
}

.media-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.media-sidebar {
    width: 130px;
    height: 848px;
    /* Fixed height to match main view */
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    /* Enable scroll if > 5 thumbs */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    justify-content: flex-start;
    /* Professional top-align for scroll support */
    flex-shrink: 0;
}

.media-sidebar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.side-thumb {
    width: 110px;
    height: 160px;
    /* Increased height for larger visual impact */
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.side-thumb.active {
    opacity: 1;
    border-color: #000;
}

.side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-media-view {
    width: 100%;
    height: 848px;
    /* Fixed height for image portal */
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: #fdfdfd;
    position: relative;
}

.main-media-view::-webkit-scrollbar {
    display: none;
}

.main-media-view img {
    width: 100%;
    height: 848px;
    object-fit: cover;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    cursor: zoom-in;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s ease;
    filter: brightness(0.98);
}

.main-media-view img:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

/* --- Right Column: Info --- */
.product-info-col {
    flex: 0.8;
    position: sticky;
    top: 140px;
}

.breadcrumbs {
    font-size: 0.65rem;
    color: #999;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.breadcrumbs a {
    color: #999;
}

.breadcrumbs a:hover {
    color: #000;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 25px 0;
    line-height: 1.1;
}

.product-short-desc {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    /* Increased for Cormorant */
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
}

/* --- Buttons Layout --- */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.action-btns-row {
    display: flex;
    gap: 12px;
}

.action-btns-row>* {
    flex: 1;
}

.btn-primary-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 18px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.btn-primary-outline:hover {
    background: #000;
    color: #fff;
}

.btn-secondary-minimal {
    font-size: 0.72rem;
    color: #000;
    background: transparent;
    border: 1px solid #eee;
    padding: 18px 20px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.btn-secondary-minimal:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

/* --- Accordion (Oksana Style) --- */
.product-accordion {
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.acc-item {
    border-bottom: 1px solid #eee;
}

.acc-head {
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.acc-head i {
    font-size: 0.6rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-item.active i {
    transform: rotate(90deg);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s;
}

.acc-item.active .acc-body {
    max-height: 800px;
    /* High enough to contain content */
    padding: 0 0 35px 24px;
}

.size-guide-visual {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 20px 0;
    cursor: pointer;
    border: 1px solid #eee;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

/* --- MODAL / PANEL SYSTEM --- */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.custom-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.custom-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 500px;
    max-width: 95vw;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 50px;
}

.custom-modal.active .modal-content {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
}

.mina-form-group {
    margin-bottom: 25px;
}

.mina-form-group label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    font-weight: 600;
}

.mina-form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.mina-form-input:focus {
    border-color: #000;
}

.customization-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.opt-chip {
    padding: 12px;
    border: 1px solid #eee;
    font-size: 0.65rem;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.opt-chip.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* --- SEO & VIDEO --- */
.seo-content-section {
    padding: 120px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.seo-content-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.seo-content-section p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* --- NEW SECTIONS: Content Expansion --- */
.full-product-description {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.full-product-description h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 20px;
}

.product-attributes-list {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.attr-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #fafafa;
    font-size: 0.85rem;
}

.attr-name {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-size: 0.65rem;
}

.attr-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #222;
}

/* Push tags and desc down to prevent right side from "jumping" layout feel */
.media-main-content {
    padding-bottom: 100px;
}

/* --- PRODUCT MEDIA COLUMN ADJUSTMENTS --- */
.product-media-col {
    height: auto;
    /* Allow media column to grow with content */
}

.media-sidebar,
.main-media-view {
    height: 848px;
    /* Fixed height for gallery to enable internal scrolling */
}

/* --- TAGS SECTION (Sidebar Version) --- */
.product-tags-outer {
    width: 100%;
    margin-top: 50px;
    /* Space after the 848px gallery ends */
    padding: 30px 0;
    border-top: 1px solid #f2f2f2;
    flex-shrink: 0;
}

.tags-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 20px;
    display: block;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #555;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    border-color: #000;
    color: #000;
    transform: translateY(-2px);
}

.full-width-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- RELATED PRODUCTS SWIPER --- */
.related-products {
    padding: 120px 0;
    overflow: hidden;
}

.related-products h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.product-slide img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 1s;
}

.product-slide:hover img {
    transform: scale(1.05);
}

.slide-info h3 {
    font-size: 0.8rem;
    margin-top: 20px;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.slide-info p {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
}

/* Minimalist Swiper Cursors */
.swiper-button-next,
.swiper-button-prev {
    color: #000 !important;
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem !important;
    font-weight: 200;
}

/* Mobile Grid Recommendation */
@media (max-width: 768px) {
    .related-grid-mobile-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Mobile */
/* Mobile Product Page Logic */
@media (max-width: 991px) {
    .product-split-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Disable "display: contents" which breaks sticky/order logic sometimes */
    .product-media-col,
    .product-info-col {
        display: block;
        width: 100%;
    }

    /* REORDERING via Flexbox order */
    .product-info-col {
        display: flex;
        flex-direction: column;
    }

    /* 1. Breadcrumbs */
    .breadcrumbs {
        order: 1;
        margin-bottom: 10px;
    }

    /* 2. Title */
    .product-title {
        order: 2;
        font-size: 2.2rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    /* 3. Short Desc */
    .product-short-desc {
        order: 3;
        margin-bottom: 20px;
        font-size: 0.95rem;
    }

    /* 4. Actions (Sticky Bottom on Mobile) */
    .product-actions {
        order: 100;
        /* Force to bottom of flow if not fixed, but we use fixed below */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        padding: 15px 20px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .action-btns-row {
        width: 100%;
    }

    /* 5. Attributes */
    .product-attributes-list {
        order: 5;
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
    }

    /* 6. Accordion */
    .product-accordion {
        order: 6;
        margin-top: 0;
    }

    /* MEDIA GALLERY - HORIZONTAL SWIPER FOR MOBILE */
    .product-media-col {
        order: 4;
        /* Insert between Short Desc and Attributes? Or maybe Top? */
        /* Users usually want to see images first or after title. 
           Let's put it after Short Desc as per previous flow, or better:
           Actually, let's put Media at Order 4. */
        margin-bottom: 40px;
    }

    .media-sidebar {
        display: none;
    }

    .media-main-content {
        width: 100vw;
        margin-left: max(-20px, calc((100% - 100vw) / 2));
        /* Break out of container */
        margin-right: max(-20px, calc((100% - 100vw) / 2));
    }

    .main-media-view {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        height: 65vh;
        width: 100%;
        background: #f4f4f4;
        -webkit-overflow-scrolling: touch;
    }

    .main-media-view img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Cover usually best for mood, Contain for detail. Oksana uses Cover */
        flex-shrink: 0;
        scroll-snap-align: center;
        transition: none;
        /* Disable zoom hover on mobile */
    }

    .main-media-view img:hover {
        transform: none;
    }

    /* Hide scrollbar */
    .main-media-view::-webkit-scrollbar {
        display: none;
    }

    /* Padding for Body to account for sticky actions */
    body {
        padding-bottom: 90px;
    }

    /* Tags & Full Desc */
    .product-tags-outer {
        order: 8;
        margin-top: 30px;
    }

    .full-product-description {
        order: 9;
        margin-bottom: 40px;
    }

    /* Mobile Dots */
    .mobile-gallery-pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #e0e0e0;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .dot.active {
        background: #000;
        transform: scale(1.4);
    }

    .spinner {
        width: 30px;
        height: 30px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #000;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
}

/* --- CUSTOM DESIGN CTA --- */
.custom-design-cta {
    padding: 120px 0;
    background: #fafafa;
    text-align: center;
    border-top: 1px solid #f2f2f2;
}

.custom-design-cta .cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.custom-design-cta .cta-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Larger for serif font readability */
    color: #666;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    font-style: italic;
    /* Adding elegance */
}

.custom-design-cta .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.custom-design-cta .cta-link:hover {
    background: #333;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.custom-design-cta .cta-link i {
    font-size: 1.3rem;
    color: #25D366;
    /* WhatsApp Green */
}

@media (max-width: 768px) {
    .custom-design-cta .cta-title {
        font-size: 2rem;
    }

    .custom-design-cta .cta-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .custom-design-cta {
        padding: 80px 0;
    }
}