/* Variables inherited from base.css */

/* --- PAGE LAYOUT --- */
.pdp-container {
    padding-top: 0 !important;
    padding-bottom: 3rem;
    color: #fff;
    min-height: 100vh;
    background-color: var(--veloura-bg); /* Fallback: #000 */
    margin-right: 0.3rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--veloura-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    margin-left: 1.5rem;
}
.breadcrumb a { 
    color: var(--veloura-muted); 
    text-decoration: none; 
    transition: 0.3s; 
}
.breadcrumb a:hover { color: var(--veloura-red); }
.breadcrumb .separator { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb .current { color: var(--veloura-soft-red); font-weight: 600; }

/* --- MAIN PRODUCT WRAPPER --- */
.product-wrapper {
    display: grid;
    /* Desktop: Image takes slightly less space than info */
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
}

/* --- LEFT COLUMN: GALLERY --- */
.product-gallery {
    position: sticky;
    top: 100px; /* Sticks while scrolling descriptions */
    z-index: 10;
}

.main-image-box {
    position: relative;
    background-color: var(--veloura-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    aspect-ratio: 1/1; /* Keeps it square */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-left: 1rem;
}
.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s ease;
}
.main-image-box:hover img {
    transform: scale(1.05);
}

/* Wishlist icon top-right */
.wishlist-top-right {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;

    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
    transition: all 0.3s ease;
}

/* Default heart */
.wishlist-top-right svg {
    stroke: #e5e7eb; /* soft white */
}

/* Hover */
.wishlist-top-right:hover {
    transform: scale(1.08);
}

/* Active (wishlisted) */
.wishlist-top-right.active svg {
    stroke: #b91c1c;
    fill: #b91c1c;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
/* Wishlist text button wrapper */
.wishlist-text-action {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
}

/* Wishlist button – SAME as Add to Cart */
.btn-wishlist-text {
    height: 48px; /* thoda chhota */
    min-width: 280px;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hover */
.btn-wishlist-text:hover {
    opacity: 1;
}

/* Active (Wishlisted) */
.btn-wishlist-text.active {
    border-color: #9b2c3f;
    color: #9b2c3f;
    background: rgba(155, 44, 63, 0.12);
}


.zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Let click pass through to box */
}

.main-image-box:hover .zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* --- RIGHT COLUMN: INFO --- */
.product-info-col {
    padding-top: 0.5rem;
    padding-right: 1rem;
}

.pdp-category {
    color: var(--veloura-soft-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.pdp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

/* Ratings */
.pdp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Updated Star Color to Gold for Premium Look */
.stars { color: #D4AF37; /* Gold */ }
.review-count { color: var(--veloura-muted); font-size: 0.85rem; text-decoration: underline; cursor: pointer;}

/* Price */
.pdp-price-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.current-price { font-size: 1.8rem; font-weight: 700; color: #fff; }
.old-price { text-decoration: line-through; color: var(--veloura-muted); font-size: 1.3rem; }
.discount-badge { 
    background: rgba(185, 28, 28, 0.2); 
    color: var(--veloura-soft-red);
    border: 1px solid rgba(185, 28, 28, 0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pdp-description {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

/* Scent Notes Tags */
.pdp-notes-section {
    margin-bottom: 2.5rem;
}
.notes-label { 
    display: block; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 600;
}
.notes-list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.note-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #eee;
    transition: 0.3s;
    cursor: default;
}
.note-tag:hover {
    border-color: var(--veloura-red);
    background: rgba(185, 28, 28, 0.1);
    color: var(--veloura-soft-red);
}

.divider { border-bottom: 1px solid rgba(255,255,255,0.1); margin: 2.5rem 0; }

/* --- ACTIONS (Qty & Buttons) --- */
.pdp-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    height: 55px; /* Taller touch target */
    overflow: hidden;
    width: 120px;
    justify-content: space-between;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 45px;
    height: 100%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.1); color: var(--veloura-red); }

.qty-input {
    width: 50px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    -moz-appearance: textfield; /* Hide arrows */
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Buttons Container */
.action-buttons-row {
    display: flex;
    gap: 1rem;
    flex: 1; /* Take remaining space */
    min-width: 300px;
}

.btn {
    flex: 1;
    height: 55px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

/* Add to Cart (Outline) */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-outline:hover { 
    border-color: #fff; 
    background: rgba(255,255,255,0.1); 
    transform: translateY(-2px);
}

/* Buy Now (Solid Red) */
.btn-primary {
    color: #fff;
    background-color: #991b1b; 
    border-color: #991b1b;
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.5);
}

/* --- ACCORDION (Meta Info) --- */
.pdp-meta-accordion {
    margin-top: 1rem;
}

.meta-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    overflow: hidden;
}
.meta-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }

.meta-header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #ddd;
    transition: color 0.3s;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
}

.meta-item:hover .meta-header { color: #fff; }

.meta-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
}

.meta-item.active .meta-content {
    max-height: 300px;
    padding-bottom: 1.5rem;
    opacity: 1;
}

.meta-item i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.meta-item.active i {
    transform: rotate(180deg); /* Rotate icon on open */
}

/* --- REVIEWS SECTION --- */
.reviews-section {
    margin-bottom: 6rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.review-card {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--veloura-soft-red);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.reviewer-info { display: flex; gap: 10px; align-items: center; }
.avatar-circle { width: 40px; height: 40px; background: var(--veloura-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; }

.review-card p { 
    color: #ccc; 
    font-style: italic; 
    font-size: 1rem; 
    line-height: 1.6;
}

/* Write Review Form */
.write-review-box {
    max-width: 600px;
    margin: 3rem auto 0;
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.write-review-box h4 { font-family: 'Cormorant Garamond'; font-size: 1.8rem; margin-bottom: 1.5rem; color: #fff; }
.rating-input { margin-bottom: 1rem; }
.form-control { width: 100%; padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; font-family: inherit; }
.submit-review-btn { width: 100%; margin-top: 1.5rem; border: none; }

.star-rating-input { display: flex; gap: 8px; align-items: center; cursor: pointer; justify-content: center; margin-bottom: 1rem; }
.star-rating-input i { font-size: 1.5rem; color: #555; transition: color 0.2s; }
.star-rating-input i.active, .star-rating-input i:hover { color: #fca5a5; }

/* --- RELATED PRODUCTS (Auto Align) --- */
.related-products-section { margin-top: 4rem; padding-left: 1rem; padding-right: 1rem; }
.section-title {
    font-family: 'Cormorant Garamond';
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--veloura-red);
}

/* Product Card Styling (Should match product_list but ensuring local scope) */
.products-grid.auto-align {
    display: grid;
    /* Auto adjust columns based on width */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shop-product-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    text-decoration: none;
    display: block;
}
.shop-product-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(185, 28, 28, 0.4); 
}
.shop-img-wrapper { aspect-ratio: 1/1; overflow: hidden; position: relative;}
.shop-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shop-product-card:hover img { transform: scale(1.08); }

.shop-product-info { padding: 1.2rem; text-align: center; }
.shop-category { font-size: 0.65rem; color: var(--veloura-soft-red); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px;}
.shop-title { font-family: 'Cormorant Garamond'; font-size: 1.3rem; margin: 0.5rem 0; color: #fff; }
.shop-price-row .price-new { font-weight: bold; color: #fff; }

/* --- ZOOM MODAL --- */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}
.zoom-modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.close-zoom {
    position: absolute;
    top: 20px; right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}
.close-zoom:hover { color: var(--veloura-red); transform: rotate(90deg); }

/* --- RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 900px) {
    /* CRITICAL FIX: Overriding main content padding via specific container */
    body .main-content {
        padding-top: 50px !important;  margin-right: 1rem; /* Adjust if header is smaller */
    }
    
    .pdp-container { 
        padding-top: 0rem !important; /* Reduce gap */
    }
    /* Stack Layout */
    .product-wrapper {
        grid-template-columns: 1fr; 
        gap: 2rem;
        margin-bottom: 4rem;
        
    }
    .product-info-col{
        margin-left: 1rem;
    }
    .breadcrumb{
        margin-left: 1rem;
    }
    /* Unstick Gallery */
    .product-gallery { position: relative; top: 0; }
    
    .main-image-box { max-width: 100%; } /* Full width on mobile */
    
    .pdp-title { font-size: 2.5rem; }
    
    /* Mobile Action Layout */
    .pdp-actions {
        flex-direction: column; /* Stack Qty above Buttons */
        gap: 1.5rem;
    }
    
    .quantity-selector { 
        width: 38%; 
        justify-content: space-between; 
        padding: 0 1rem;
    }
    .qty-input { width: 60px; }
    
    .action-buttons-row {
        width: 100%;
        display: flex;
        gap: 0.8rem;
    }
    
    .btn {
        height: 50px; 
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    /* 2 Columns for Related Products */
    .products-grid.auto-align {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .shop-product-card { border-radius: 6px; }
    .shop-product-info { padding: 0.8rem; }
    .shop-title { font-size: 1rem; }
    
    /* Reviews adjustments */
    .review-text { margin-left: 0; margin-top: 1rem; }
    .avatar-circle { width: 35px; height: 35px; font-size: 0.9rem; }
}
/* LARGE SCREENS (2K / 4K) */
@media (min-width: 2560px) {

    .pdp-actions{
        max-width: 560px;
    }
    /* Action buttons row ko control karo */
    .action-buttons-row {
        max-width: 520px;
    }

    /* Wishlist ko neeche center me rakho */
    .wishlist-text-action {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .btn-wishlist-text {
        min-width: 220px;   /* stable width */
        max-width: 260px;
    }
}
.wishlist-btn {
    position: absolute;
    bottom: 12px;      /* 👈 yahin control */
    right: 12px;       /* 👈 yahin control */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.200);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
}

/* Hover effect */
.wishlist-btn:hover {
    transform: scale(1.08);
}

/* Active (wishlisted) */
.wishlist-btn.active svg {
    stroke: #b91c1c;
    fill: #b91c1c;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}


