/* =========================================
   CRITICAL FIX: UNLOCK SCROLLING
   ========================================= */
html, body {
    height: auto !important;       /* Allow page to grow */
    min-height: 100vh !important;  /* Ensure it fills screen */
    overflow-y: scroll !important; /* Force vertical scrollbar */
    overflow-x: hidden !important; /* Stop horizontal wobble */
    position: static !important;   /* Fix any locking positioning */
}

/* =========================================
   PRODUCT PAGE STYLES
   ========================================= */

/* Navigation Bar */
.product-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky; /* Keeps nav visible at top */
    top: 0;
    z-index: 100;
}

.back-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-btn:hover { color: var(--text-grey); }
.logo-icon-small { font-size: 1.5rem; color: var(--text-dark); }

/* Main Container */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    padding-bottom: 100px; /* Extra space at bottom for scrolling */
}

/* 1. Website Preview (The Hero) */
.iframe-wrapper {
    width: 100%;
    height: 500px; /* Increased height for better view */
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #eee;
    margin-bottom: 10px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Dynamic Border Colors */
.iframe-wrapper.pink { border-color: var(--c-pink); }
.iframe-wrapper.peach { border-color: var(--c-peach); }
.iframe-wrapper.lavender { border-color: var(--c-lavender); }
.iframe-wrapper.mint { border-color: var(--c-mint); }

.preview-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 30px;
}

/* 2. Info Section */
.info-section { margin-top: 30px; }

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.info-header h1 { font-size: 1.8rem; line-height: 1.2; }
.price-tag { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }

.description-text {
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* 3. Buy Button */
.cta-button {
    background: var(--text-dark);
    color: var(--white);
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (min-width: 600px) {
    .cta-button { width: 300px; display: block; margin: 0 auto; }
}

.divider {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 40px 0;
}

/* 4. Reviews Section */
.reviews-section h3 { margin-bottom: 15px; }
.rating-summary { font-weight: bold; margin-bottom: 20px; font-size: 1.1rem; }

.reviews-grid { display: grid; gap: 15px; }

.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.review-stars { color: #FFB400; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; color: #666; line-height: 1.4; }