/* --- Core Reset & Variables --- */
:root {
    --accent: #0066cc;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --bg-light: #f5f5f7;
    --border: #d2d2d7;
    --card-bg: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    padding-top: 70px; 
}

/* --- Navigation --- */
.main-nav {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.72); 
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px); 
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.active {
    color: var(--text-main);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 22px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.icon-btn:hover {
    opacity: 0.7;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #000;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
}

.dezio-highlight {
    background-color: rgba(255, 230, 0, 0.4); /* Soft Yellow */
    border-bottom: 2px solid #ffcc00;
    color: inherit;
    padding: 2px 0;
    border-radius: 2px;
}

/* --- Fix: Spacing above the section line --- */
.product-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 40px 100px 40px; /* Increased bottom padding to 100px */
}

.product-grid-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px; /* Adds extra breathing room specifically above that line */
}

/* --- Left: Gallery --- */
.main-image-holder {
    background: var(--bg-light);
    border-radius: 20px;
    /* This locks the box shape regardless of the image inside */
    aspect-ratio: 1 / 1; 
    width: 100%;
    max-width: 550px; /* Prevents it from getting too huge on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.main-image-holder img {
    width: 100%;
    height: 100%;
    /* 'contain' ensures the whole image is visible without stretching */
    /* Change to 'cover' if you want the image to fill the entire square */
    object-fit: contain; 
    padding: 20px; /* Keeps the product from touching the edges of the box */
    transition: transform 0.3s ease;
}

/* --- Mobile Specific Adjustment --- */
@media (max-width: 768px) {
    .main-image-holder {
        max-width: 100%; /* Uses full width of the phone screen */
        aspect-ratio: 1 / 1; /* Keeps it a perfect square on mobile */
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .main-image-holder img {
        padding: 15px; /* Slightly less padding on mobile */
    }
}

.thumbnail-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail-bar img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    object-fit: cover;
    background: var(--bg-light);
}

.thumbnail-bar img.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

/* --- Right: Info --- */
.product-category {
    font-size: 10px;
    font-weight: 700;
    color: #bf4800;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 30px;
    font-weight: 600;
    margin-top: 5px;
}

.product-name span { color: var(--accent); }

.price-row {
    margin: 10px 0 30px;
    font-size: 24px;
    font-weight: 500;
}

/* --- The Info Box --- */
.comprehensive-info-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ps-item strong {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.ps-item p {
    font-size: 14.5px;
    color: #555;
    margin-top: 6px;
}

.detail-summary {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* --- Options --- */
.option-group label {
    display: block;
    font-size: 12px;
    margin: 30px 0 15px;
}

/* --- Animated Valentine's Badge --- */
.valentine-badge {
    display: inline-flex;
    align-items: center;
    background: #fff0f3; 
    color: #d0002d;      
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid #ffccd5;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(208, 0, 45, 0.05);
}

/* The Heartbeat Animation */
.pulse-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* --- Urgency Line Styling --- */
.urgency-line {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.timer-icon {
    margin-right: 6px;
    font-size: 1rem;
}

/* Ensure consistent spacing on mobile */
@media (max-width: 768px) {
    .urgency-line {
        justify-content: center; /* Centers text for mobile to match CTA button */
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .valentine-badge {
        margin-top: 10px;
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* --- Actions --- */
.purchase-actions {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.cta-buy-now {
    flex: 1;
    background: #1d1d1f;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 22px 30px; 
    font-size: 16px;     
    border-radius: 16px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cta-buy-now:hover {
    background: #000;
    transform: scale(1.02);
}

.cta-buy-now svg {
    width: 22px;
    height: 22px;
}

.cta-wishlist {
    width: 50px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.trust-bullets {
    margin-top: 25px;
    list-style: none;
}

.trust-bullets li {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* --- Bottom Specs Grid --- */
.bottom-specs {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.bottom-specs h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec {
    background: var(--bg-light);
    padding: 25px 35px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.spec strong { 
    font-size: 14px;
    font-weight: 600; 
}

.spec span { 
    font-size: 14px;
    color: var(--text-secondary); 
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s ease;
}

.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 32px; height: 32px; }

/* --- Footer --- */
.footer {
    margin-top: 100px;
    padding: 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logo { font-weight: 700; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #888; font-size: 12px; }
.footer p { font-size: 11px; color: #aaa; }

/* -------------------------------------------------------------------------- */
/* --- ADDED SECTION STYLES WITH REQUESTED FIXES --- */
/* -------------------------------------------------------------------------- */

.value-hook {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 12px 0 20px;
    font-weight: 400;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.price-original {
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-tag {
    font-size: 12px;
    background: #eaffea;
    color: #27ae60;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* FIX 1: Trust Badges (Removed unintentional line/border) */
.purchase-actions-container {
    margin-top: 35px;
    border: none;
}

.trust-mini-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    border: none; /* Removed the line under the badges */
}

.trust-mini-badges span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-section {
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.content-box {
    padding: 40px;
    border-radius: 24px;
}

.problem-box { background: #fffcfc; border: 1px solid #ffecec; }
.solution-box { background: #fcfcff; border: 1px solid #ececff; }

.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.content-box h2 { font-size: 24px; margin-bottom: 20px; }

.content-box ul { list-style: none; }
.content-box ul li {
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #444;
}

.content-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-num {
    font-size: 40px;
    font-weight: 800;
    opacity: 0.1;
    display: block;
    margin-bottom: -20px;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* FIX 2: Enhanced Delivery & Trust Grid (Professional icons & refined spacing) */
.trust-delivery-section {
    background: #fbfbfd; /* Cleaner off-white */
    padding: 80px 40px;
    border-radius: 32px;
    margin: 60px 0;
    border: 1px solid #f0f0f2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Styled Icon Holder for professional appearance */
.trust-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.trust-item strong { 
    display: block; 
    margin-bottom: 10px; 
    font-size: 15px; 
    font-weight: 600;
}

.trust-item p { 
    font-size: 13px; 
    color: var(--text-secondary); 
    line-height: 1.5;
}

.faq-section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 32px; }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}

.faq-answer {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Center Align Problem/Solution Text (Mobile) --- */
@media (max-width: 768px) {
    .content-box {
        text-align: center; /* Centers the label, title, and container */
    }

    .content-box ul {
        display: inline-block; /* Allows the list to be centered as a block */
        text-align: left;      /* Keeps the bullet points neatly aligned to the left */
        margin-top: 15px;
    }

    .section-label {
        display: block;
        margin-bottom: 10px;
    }
}

/* --- Mobile Layout Fixes --- */
@media (max-width: 768px) {
    
    /* 1️⃣ Fix Nav to Hero Section Spacing */
    .product-page {
        padding-top: 10px !important; /* Reduces huge gap under the logo/nav */
    }

    .product-grid-container {
        margin-top: 0 !important;
        gap: 20px !important; /* Tightens space between image and text */
    }

    /* 2️⃣ Fix Urgency Block Spacing */
    .valentine-badge {
        margin-top: 10px !important;
        margin-bottom: 8px !important; /* Pulls urgency line closer */
    }

    .urgency-line {
        margin-top: 0 !important;
        margin-bottom: 15px !important; /* Tight gap before the CTA button */
        justify-content: center;
    }

    .cta-buy-now {
        margin-top: 5px !important;
    }
}

/* --- Remove Section Line & Reduce Space --- */

/* Removes the horizontal line appearing above the info sections */
.info-section {
    border-top: none !important;
    padding-top: 20px !important; /* Pulls content up closer */
    margin-top: 0 !important;
}

/* Specifically target the Problem/Solution grid area */
.info-section.grid-2 {
    padding-top: 10px !important;
}

/* Tightens the gap even further for the 'Steps' section */
.steps-container {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* --- Maximum Spacing Reduction: Trust to FAQ --- */

.trust-delivery-section {
    margin-top: 40px;    /* Space above the box */
    margin-bottom: 0px;  /* Removed bottom margin entirely */
}

.faq-section {
    padding-top: 10px;    /* Minimal padding at the top */
    padding-bottom: 10px; /* Minimal padding at the bottom */
}

.section-title {
    margin-top: 0px;      /* Pulls the title up */
    margin-bottom: 20px;  /* Tight gap between title and first question */
}

/* --- Tighten spacing between FAQ and Footer --- */

.faq-section {
    padding-top: 80px;
    padding-bottom: 20px; /* Reduced from default to pull footer up */
}

.footer {
    margin-top: 40px;      /* Reduced from 100px to sit closer to FAQ */
    padding: 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Ensure the container doesn't force extra space */
.product-page {
    padding-bottom: 40px; /* Reduced bottom padding */
}

/* --- Mobile Center Alignment for Trust Section --- */
@media (max-width: 768px) {
    .trust-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px; /* Space between the items */
    }

    .trust-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px; /* Keeps text from getting too wide */
    }

    .trust-icon {
        margin-bottom: 12px;
    }
}

@media (max-width: 900px) {
    .product-grid-container { grid-template-columns: 1fr; }
    .specs-grid, .grid-2, .steps-container, .trust-grid { grid-template-columns: 1fr; }
    .bottom-specs h2 { font-size: 24px; }
    .product-name { font-size: 32px; }
    .trust-mini-badges { flex-direction: column; align-items: center; gap: 8px; }
    .trust-delivery-section { padding: 40px 20px; }
}

@media (max-width: 768px) {
    .main-image-holder {
        aspect-ratio: 16 / 11; /* taller than desktop */
        margin-bottom: 28px;   /* more gap before thumbnails */
        border-radius: 22px;
    }

    .main-image-holder img {
        max-width: 85%;
    }

    .thumbnail-bar {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .product-info-sidebar {
        background: #fafafa;
        padding: 24px;
        border-radius: 24px;
        border: 1px solid #eee;
    }

    .price-container {
        margin-bottom: 18px;
    }

    .product-options {
        margin-bottom: 22px;
    }

    .purchase-actions-container {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .info-section,
    .faq-section {
        padding: 50px 0;
    }

    .trust-delivery-section {
        margin: 40px 0;
        padding: 50px 24px;
    }

    .footer {
        margin-top: 50px;
    }
}
