/* ========================================= */
/* --- PRODUCT DETAILS PAGE STYLES --- */
/* ========================================= */

/* 1. Layout & Spacing */
.product-studio {
    /* Push content down because header is fixed */
    padding: 140px 0 60px; 
}

.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumb a { color: #555; text-decoration: none; transition: 0.3s; }
.breadcrumb a:hover { color: var(--primary); }

/* 2. Main Grid (Left Image / Right Info) */
.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image takes slightly more space */
    gap: 60px;
    align-items: start;
}

/* Left: The Image Stage */
.main-image-frame {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}
.detail-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    /* Subtle entrance animation */
    animation: fadeScale 0.8s ease-out;
}
@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Right: The Info Panel */
.details-info {
    padding-top: 10px;
}

.brand-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; /* Larger for impact */
    color: var(--primary);
    margin: 0 0 20px;
    line-height: 1.1;
}

.price-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary);
}

.tax-note {
    font-size: 0.85rem;
    color: #888;
}

.product-description {
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.feature-list {
    margin-top: 25px;
    padding-left: 20px;
    color: #444;
}
.feature-list li {
    margin-bottom: 10px;
}

/* 3. Action Buttons (Qty & Add to Cart) */
.purchase-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    border: 1px solid #ddd;
    height: 55px;
    width: 130px;
}

.qty-btn {
    width: 45px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
}
.qty-btn:hover { background: #f4f4f4; }

#qtyInput {
    flex-grow: 1;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    appearance: textfield; /* Remove arrows in Firefox */
}
#qtyInput::-webkit-outer-spin-button,
#qtyInput::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Remove arrows in Chrome/Safari */
    margin: 0;
}

.add-tote-btn {
    flex-grow: 1;
    height: 55px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.concierge-note {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.concierge-note a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}

/* 4. Tabs Section */
.details-tabs {
    padding: 80px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.tab-header {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none; /* Hidden by default */
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}
.tab-content.active { display: block; }

/* Specs Table Style */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-size: 1rem;
}
.spec-item span { color: #666; }
.spec-item strong { color: var(--primary); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .details-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-title { font-size: 2.2rem; }
    .tab-header { gap: 20px; flex-wrap: wrap; }
    .specs-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* --- WISHLIST HEART BUTTON (FINAL FIX) --- */
/* ========================================= */

.wishlist-btn {
    width: 55px;
    height: 55px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    color: #888; /* Default Grey Outline */
}

/* 1. Target the PATH directly to ensure transitions work */
.wishlist-btn svg path {
    fill: transparent; /* Start empty */
    stroke: currentColor; /* Use the text color for outline */
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* --- HOVER STATE --- */
.wishlist-btn:hover {
    border-color: #d93025;
    color: #d93025; /* Turns the outline red */
    background-color: #fffbfb;
}

/* --- ACTIVE STATE (Clicked) --- */
.wishlist-btn.active {
    border-color: #d93025 !important;
    background-color: #ffe6e6 !important; /* Pink Background */
    color: #d93025 !important;
    animation: heartPop 0.3s ease;
}

/* 2. FORCE THE FILL ON THE PATH */
/* This is the key fix: We target the 'path' inside the 'active button' */
.wishlist-btn.active svg path {
    fill: #d93025 !important; /* Force Solid Red Fill */
    stroke: #d93025 !important; /* Force Red Outline */
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========================================= */
/* --- LENS ZOOM EFFECT --- */
/* ========================================= */

.main-image-frame {
    position: relative; /* Anchor for absolute elements */
    overflow: visible; /* Allow zoom box to spill out */
    cursor: crosshair;
}

/* 1. The Square Lens */
.zoom-lens {
    position: absolute;
    border: 1px solid #888;
    /* Size of the tracker */
    width: 100px; 
    height: 100px;
    background: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    
    /* Hidden by default */
    opacity: 0; 
    pointer-events: none; /* Let clicks pass through to image */
    z-index: 10;
}

/* 2. The Result Window */
.zoom-result {
    position: absolute;
    top: 0;
    left: 105%; 
    
    width: 400px;
    height: 400px;
    
    border: 1px solid #d4d4d4;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    
    /* FIX: Use visibility instead of display:none so JS can measure width */
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    
    /* Smooth fade in */
    transition: opacity 0.2s ease;
}

/* Show elements on hover */
.main-image-frame:hover .zoom-lens { opacity: 1; }
.main-image-frame:hover .zoom-result { 
    opacity: 1; 
    visibility: visible; 
}