/* PRODUCT DETAIL PAGE - ETHEREAL LIGHT LUXURY */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-main: #1a1a1a;
    --text-light: #555555;
    --accent: #000000;
    --border-soft: #e5e5e5;
    --font-heading: 'Cormorant Garamond', serif;
    /* Elegant, sharp serif */
    --font-body: 'Outfit', sans-serif;
    /* Clean modern sans */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* --- NAVIGATION --- */
.back-btn {
    position: fixed;
    top: 110px;
    left: 40px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 40px;
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.back-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* --- MAIN CONTAINER --- */
.product-detail-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 100px 5% 100px 5%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    align-items: start;
}

/* --- LEFT: VISUAL STAGE --- */
/* --- LEFT: VISUAL STAGE (BORDERLESS) --- */
.detail-left {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    /* Increased gap */
}

/* Removed decorative background circle */
.detail-left::before {
    display: none;
}

.detail-image-wrapper {
    width: 100%;
    /* No border, no background - pure image focus */
    background: transparent;
    border: none;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image {
    width: 100%;
    max-width: 600px;
    /* Larger max width */
    height: auto;
    object-fit: contain;
    /* Deep shadow to make it pop off the white page */
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.15));
    transition: opacity 0.3s ease;
    /* Only opacity for image switch */
    cursor: crosshair;
}

/* Zoom on hover handled by JS */

.image-thumbnails {
    position: relative;
    bottom: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    gap: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 1px solid transparent;
    /* Hidden border normally */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    /* Fade out inactive */
    background: transparent;
    padding: 5px;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
    /* Minimal active border */
    transform: scale(1.1);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- RIGHT: CONTENT --- */
.detail-content {
    padding-top: 40px;
    opacity: 0;
    animation: slideUp 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Meta / Badges */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.meta-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    color: var(--text-light);
    transition: all 0.3s;
}

.meta-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Titles */
.detail-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.detail-price {
    display: block;
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
}

/* Features Grid (Icons) */
/* Features Grid (Icons) - Premium Tech Sheet */
.product-specs {
    margin-bottom: 4rem;
}

.product-specs h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem;
    background: #fdfdfd;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.spec-item:hover .spec-icon {
    background: var(--accent);
    color: #fff;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 4px;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Actions */
.product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 4rem;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--accent);
    /* Black */
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    padding: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #222;
}

.favorite-btn {
    width: 80px;
    background: #fff;
    border: 1px solid var(--border-soft);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-btn:hover {
    border-color: var(--accent);
    color: #d00;
}

/* --- FULL WIDTH DETAILS (3 COLUMN GRID) --- */
.product-full-details {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid var(--border-soft);
}

.details-block {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

/* Vertical Separators between columns */
.details-block:not(:last-child) {
    border-right: 1px solid var(--border-soft);
    padding-right: 2rem;
    /* create visual space inside the border */
}

.details-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

.details-block:nth-child(1) {
    animation-delay: 0.2s;
}

.details-block:nth-child(2) {
    animation-delay: 0.4s;
}

.details-block:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive: Stack on Tablet/Mobile */
@media (max-width: 1024px) {
    .product-full-details {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .details-block:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding-right: 0;
        padding-bottom: 3rem;
    }
}

.details-block:nth-child(2) {
    animation-delay: 0.4s;
}

.details-block:nth-child(3) {
    animation-delay: 0.6s;
}

/* --- TRUST SECTION REDESIGN --- */
.trust-section {
    margin-top: 3rem;
    padding: 0;
    border-top: none;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.5rem;
    background: #fcfcfc;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.trust-item:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.trust-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
    background: var(--accent);
    color: #fff;
}

.trust-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.trust-content small {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-light);
    /* Softer grey */
    font-size: 0.95rem;
    /* Slightly larger serif for elegance */
    font-style: italic;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-detail-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 60px 0 3rem 0 !important;
        /* Remove horizontal padding for Image edge-to-edge */
        gap: 2rem !important;
        width: 100% !important;
    }

    .detail-content {
        padding: 0 1.5rem !important;
        /* Restore padding for text content */
    }

    .detail-left {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0 !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .detail-image-wrapper {
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        display: block !important;
        /* Changed from flex */
        margin-bottom: 2rem !important;
        max-height: none !important;
        /* Remove height constraint */
        padding: 0 !important;
        /* Remove padding to maximize size */
    }

    .detail-image {
        width: 100% !important;
        max-width: none !important;
        /* Allow full width */
        height: auto !important;
        object-fit: contain !important;
        /* Keep contain to show full watch, but scale up */
        display: block !important;
        margin: 0 auto !important;
    }

    .image-thumbnails {
        justify-content: center !important;
        gap: 1rem !important;
    }

    .detail-content {
        width: 100% !important;
        padding-top: 0 !important;
        opacity: 1 !important;
        animation: none !important;
        text-align: center;
    }

    .product-meta {
        justify-content: center;
    }

    .product-actions {
        display: grid !important;
        grid-template-columns: 1fr 60px !important;
        /* Main button + Small Like button */
        gap: 10px !important;
        width: 100% !important;
    }

    .add-to-cart-btn {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        margin: 0 !important;
    }

    .favorite-btn {
        grid-column: 2;
        grid-row: 1;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Reset padding to center icon */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        /* Stretch to match neighbor */
    }

    .buy-now-btn {
        grid-column: 1;
        /* Was 1 / -1, now shares row */
        grid-row: 2;
        width: 100% !important;
        margin: 0 !important;
    }

    .whatsapp-btn-product {
        grid-column: 2;
        grid-row: 2;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        padding: 0 !important;
    }

    .detail-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .detail-price {
        text-align: center;
    }

    /* Adjust Back Button */
    /* Adjust Back Button */
    .back-btn {
        top: 85px !important;
        left: 15px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        background: rgba(255, 255, 255, 0.95);
    }

    /* Specs Grid Mobile Stack */
    .specs-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Trust Grid Mobile Stack */
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .detail-content h1 {
        font-size: 2.2rem;
        /* Smaller title */
    }

    /* Specs already handled above */

    .product-actions {
        flex-direction: column;
    }
}