/*
 * PAGE: Product Detail (PDP)
 * 
 * Editorial Gallery Style + Purchase Panel
 */

/* LAYOUT */
body.single-product .site-main {
    padding-top: 80px !important;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* CONTAINER */
.pdp-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Gallery / Panel */
    gap: 80px;
    /* Generous gap */
    align-items: start;
    margin-bottom: 80px;
}

/* ------------------------------------------------
   GALLERY: EDITORIAL STYLE
------------------------------------------------ */

.pdp-gallery-column {
    position: relative;
    width: 100%;
}

/* 1. MAIN STAGE */
.pdp-main-stage {
    position: relative;
    width: 100%;
    /* aspect-ratio: 4/5; Handled by user pref/content */
    background-color: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
}

.pdp-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.15s ease-out;
    display: block;
}

/* 2. NAVIGATION ARROWS (Overlay) */
.pdp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: all 0.2s ease;
    opacity: 0;
}

.pdp-nav-arrow.prev {
    left: 16px;
}

.pdp-nav-arrow.next {
    right: 16px;
}

.pdp-main-stage:hover .pdp-nav-arrow {
    opacity: 1;
}

.pdp-nav-arrow:hover {
    background: #FFF;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdp-nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

/* 3. THUMBNAIL STRIP */
.pdp-thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.pdp-thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.pdp-thumb {
    flex: 0 0 88px;
    height: 88px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0;
    background: #F8F8F8;
    transition: all 0.2s;
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pdp-thumb:hover img,
.pdp-thumb.active img {
    opacity: 1;
}

.pdp-thumb.active {
    border-color: #1A1A1A;
}


/* ------------------------------------------------
   INFO: EDITORIAL PANEL (Right Column)
------------------------------------------------ */

.pdp-sticky-wrapper {
    position: sticky;
    top: 120px;
    max-width: 520px;
    /* Constrain width for readability */
}

/* 2. TITLE */
.pdp-editorial-title {
    font-family: var(--font-serif, serif);
    /* Ensure serif */
    font-size: 32px;
    font-weight: 400;
    /* Normal weight */
    color: #1A1A1A;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

/* 3. DESC */
.pdp-editorial-desc {
    font-family: var(--font-sans, sans-serif);
    font-size: 16px;
    color: #555;
    /* Muted */
    line-height: 1.6;
    margin-bottom: 24px;
}

.pdp-editorial-desc p {
    margin: 0;
}

/* 4. PRICE ROW */
.pdp-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.pdp-current-price {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
}

.pdp-old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.pdp-drop-badge {
    background: #3E3029;
    /* Dark brown/Charcoal */
    color: #FFF;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* 5. DIVIDER */
hr.pdp-divider {
    border: 0;
    height: 1px;
    background: #E5E5E5;
    /* Low contrast */
    margin: 32px 0;
}

/* 6. ATTRIBUTES */
.pdp-attribute-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.pdp-attr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    color: #333;
}

.pdp-attr-item svg {
    width: 32px;
    height: 32px;
    color: #333;
    /* Line icons */
}

.pdp-attr-item span {
    font-family: var(--font-serif, serif);
    font-size: 14px;
    color: #1A1A1A;
}

/* 6b. VARIATIONS SELECTOR */
.pdp-variations-wrapper {
    margin: 24px 0;
}

.pdp-variations-wrapper table.variations {
    width: 100%;
    border: none;
    margin: 0;
}

.pdp-variations-wrapper table.variations tr {
    border: none;
}

.pdp-variations-wrapper table.variations td {
    padding: 12px 0;
    border: none;
    vertical-align: middle;
}

.pdp-variations-wrapper table.variations td.label {
    width: 30%;
    padding-right: 16px;
}

.pdp-variations-wrapper table.variations td.label label {
    font-family: var(--font-sans, sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.pdp-variations-wrapper table.variations td.value {
    width: 70%;
}

.pdp-variations-wrapper table.variations td.value select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #F2F0EB;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-family: var(--font-sans, sans-serif);
    font-size: 15px;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s;
}

.pdp-variations-wrapper table.variations td.value select:hover {
    border-color: #3E3029;
}

.pdp-variations-wrapper table.variations td.value select:focus {
    outline: none;
    border-color: #3E3029;
    background: #FFF;
}

.pdp-variations-wrapper .reset_variations {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #757575;
    text-decoration: underline;
    transition: color 0.2s;
}

.pdp-variations-wrapper .reset_variations:hover {
    color: #3E3029;
}

/* 7. ACTION ROW */
.pdp-action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    /* Alignment */
}

/* Qty Pill */
.pdp-qty-wrapper .quantity {
    display: flex;
    align-items: center;
    background: #F2F0EB;
    /* Neutral beige/grey */
    border-radius: 100px;
    padding: 4px 8px;
    height: 54px;
    /* Match button height */
    min-width: 120px;
    justify-content: space-between;
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 100%;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    color: #000;
}

.input-text.qty {
    background: transparent;
    border: none;
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    padding: 0;
    margin: 0;
}

/* Hide number spinners */
.input-text.qty::-webkit-outer-spin-button,
.input-text.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Primary Button */
.pdp-primary-btn {
    flex: 1;
    height: 54px;
    background: #3E3029 !important;
    /* Dark */
    color: #FFF !important;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.pdp-primary-btn:hover {
    opacity: 0.95;
    background: #2C221D;
    color: white;
}

.btn-lock-icon {
    opacity: 0.8;
}


/* 9. DELIVERY BLOCK */
.pdp-delivery-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.del-icon {
    margin-top: 2px;
    color: #3E3029;
}

.del-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.del-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.del-desc {
    font-size: 13px;
    color: #757575;
    line-height: 1.4;
}

.del-desc a {
    color: inherit;
    /* Link style handled by theme, usually underline */
    text-decoration: underline;
}


/* ------------------------------------------------
   RESPONSIVE
------------------------------------------------ */
@media (max-width: 1024px) {
    .pdp-container {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pdp-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pdp-main-stage {
        border-radius: 4px;
    }

    .pdp-nav-arrow {
        opacity: 1;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.8);
    }

    .pdp-nav-arrow.prev {
        left: 8px;
    }

    .pdp-nav-arrow.next {
        right: 8px;
    }

    .pdp-thumb {
        flex: 0 0 64px;
        height: 64px;
    }

    .pdp-sticky-wrapper {
        position: static;
        max-width: 100%;
    }

    /* Panel Mobile specific */
    .pdp-price-row {
        flex-wrap: wrap;
    }

    .pdp-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pdp-qty-wrapper .quantity {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

/* User Requested Overrides */
.woocommerce div.product form.cart .button {
    vertical-align: middle;
    float: left;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    border-radius: 24px;
}

/* ------------------------------------------------
   MOOD BANNER (Editorial Session)
------------------------------------------------ */
.pdp-mood-banner {
    position: relative;
    width: 100%;
    min-height: 340px;
    background-image: url('../../images/Mask%20group%20(4).png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Gradient Overlay to match reference (Brown fade from left) */
.pdp-mood-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    /* Cover left side */
    height: 100%;
    background: linear-gradient(to right, rgba(166, 114, 86, 0.95) 0%, rgba(166, 114, 86, 0.8) 50%, rgba(166, 114, 86, 0) 100%);
    z-index: 1;
}

.pdp-mood-content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    width: 100%;
    padding-left: 5%;
    /* Offset */
}

.mood-title {
    font-family: var(--font-serif, serif);
    font-size: 64px;
    /* Large */
    font-weight: 400;
    color: #FFF;
    line-height: 1.1;
    margin-bottom: 8px;
}

.mood-subtitle {
    font-family: var(--font-serif, serif);
    font-size: 42px;
    font-weight: 400;
    color: #FFF;
    line-height: 1.2;
    margin-bottom: 24px;
}

.mood-desc {
    font-family: var(--font-sans, sans-serif);
    font-size: 18px;
    color: #FFF;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .pdp-mood-banner {
        min-height: 320px;
        background-position: 1000% center;
        /* Shift bg to see more image? */
    }

    .pdp-mood-banner::before {
        width: 100%;
        background: linear-gradient(to bottom, rgba(166, 114, 86, 0.8) 0%, rgba(166, 114, 86, 0.4) 100%);
    }

    .pdp-mood-content {
        padding: 20px;
        text-align: center;
    }

    .mood-title {
        font-size: 42px;
    }

    .mood-subtitle {
        font-size: 28px;
    }

    .mood-desc {
        margin: 0 auto;
    }
}