/* --- ROOT & VARIABLES --- */
:root {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --success: #2ebd59;
    --success-hover: #25a24b;
    --online-orange: #ea580c;
    --online-orange-hover: #c2410c;
    --cod-blue: #1d4ed8;
    --cod-blue-hover: #1e40af;
    --gradient: linear-gradient(90deg, #3b82f6, #2563eb, #3b82f6);
    --bg: #f5f7fa;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

/* --- SYSTEM RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

main {
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    content-visibility: auto; /* Optimization: Speeds up rendering of images below the fold */
}

/* --- PERFORMANCE OPTIMIZED HOVER ENGINE (Cursor code dropped for speed) --- */
@media (min-width: 769px) {
    a, button, .bundle-tier-card, .thumb-box, .action-btn {
        cursor: pointer;
    }
}

/* --- SEAMLESS INFINITE MARQUEE --- */
.offer-strip {
    background: var(--gradient);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.marquee {
    display: flex;
    width: max-content;
    will-change: transform; /* Boosts mobile rendering performance */
    animation: scrollMarquee 25s linear infinite;
}

.marquee span {
    padding-right: 3rem;
}

@keyframes scrollMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- STICKY NAVIGATION --- */
header {
    background: #ffffff;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    user-select: none;
}

.logo .m {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
}

.logo .rest {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

/* --- STRUCTURE GRID CONFIGURATION --- */
.product-view-container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: start;
    width: 100%;
}

.image-gallery-holder { 
    position: sticky; 
    top: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 100%;
}

.main-display-box { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
    background: #fff; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.main-display-box img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.thumbnails-row { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding: 5px 2px; 
    width: 100%;
}

.thumb-box { 
    width: 75px; 
    height: 75px; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    overflow: hidden; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}

.thumb-box.active { border: 2px solid #000; }

/* Product Info Columns */
.info-content-holder { 
    display: flex; 
    flex-direction: column; 
    width: 100%;
}

.product-title-text { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin: 0 0 10px 0; 
    color: #111; 
    line-height: 1.3; 
    word-break: break-word;
}

.top-rating-line { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 15px; }
.stars-gold { color: #ff2a2a; font-size: 16px; }
.rating-score-text { font-weight: 600; color: #475569; }

.price-box-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.actual-price { font-size: 1.6rem; font-weight: 700; color: #111; }
.slashed-price { font-size: 1.1rem; color: #94a3b8; text-decoration: line-through; }
.sale-tag-pill { background: #111; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.tax-shipping-notice { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* Urgency Countdown Components */
.urgency-countdown-box { 
    background: #fff5f0; 
    border: 1px dashed #fdba74; 
    border-radius: 8px; 
    padding: 12px 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    width: 100%;
}
.urgency-label { color: #c2410c; font-size: 14px; font-weight: 700; }
.timer-numeric-display { display: flex; gap: 6px; align-items: center; }
.timer-segment { background: #111; color: #fff; font-weight: 700; font-size: 14px; padding: 4px 8px; border-radius: 4px; font-family: monospace; }

/* Quantity Selection Bundles */
.bundle-headline { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.bundle-tier-card { 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 12px; 
    width: 100%; 
}
.bundle-tier-card.selected { border: 2px solid var(--primary); background: #fffaf8; }
.bundle-left-details { display: flex; align-items: center; gap: 12px; }
.bundle-label-title { font-weight: 700; font-size: 15px; }
.bundle-subtext { font-size: 13px; color: var(--text-muted); }
.bundle-right-pricing { text-align: right; flex-shrink: 0; }
.bundle-main-price { font-weight: 700; font-size: 16px; block; }
.bundle-old-price { font-size: 12px; color: #a0aec0; text-decoration: line-through; }

/* Trust Matrix Strip */
.micro-trust-strip { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
    background: #f8fafc; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 12px; 
    margin: 20px 0; 
    width: 100%;
}
.micro-badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.micro-badge-title { font-size: 11px; font-weight: 700; color: #1e293b; }
.micro-badge-desc { font-size: 10px; color: var(--text-muted); }

/* Conversion CTA Button Triggers */
.purchase-actions-wrapper { display: flex; flex-direction: column; margin-top: 15px; width: 100%; }
.prepaid-discount-tag { align-self: flex-start; background: #22c55e; color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px 4px 0 0; }

.action-btn { width: 100%; border: none; border-radius: 6px; font-weight: 700; font-size: 1.15rem; padding: 15px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); text-decoration: none; text-align: center; }
.buy-now-prepaid { background: linear-gradient(180deg, #ff7b23 0%, #ff5213 100%); color: #ffffff; }

.inline-logos { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.95); padding: 2px 6px; border-radius: 20px; margin-left: 5px; }
.inline-logos span { font-size: 10px; font-weight: 900; }
.logo-g { color: #4285F4; }
.logo-p { color: #673AB7; }
.logo-paytm { color: #00B9F5; }

.order-now-cod { background: #8b2525; color: #ffffff; margin-top: 14px; font-size: 1.05rem; }
.cart-icon-svg { width: 18px; height: 18px; fill: #ffffff; }

/* Gateway Processing Modules */
.secure-checkout-prompt { text-align: center; margin-top: 25px; width: 100%; }
.secure-checkout-prompt span { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.payment-gateways-row { display: flex; justify-content: center; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; width: 100%; }
.gateway-card-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 12px; font-weight: 700; font-size: 12px; flex-grow: 1; min-width: 80px; text-align: center; }

/* Description Blocks */
.product-editorial-block { max-width: 1200px; margin: 40px auto; padding: 0 20px; border-top: 1px solid var(--border-color); padding-top: 30px; width: 100%; }
.editorial-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.editorial-content { font-size: 15px; color: #334155; line-height: 1.6; word-break: break-word; }

/* --- REVIEWS HUB INTERFACE --- */
.reviews-section-hub { max-width: 1200px; margin: 40px auto 60px auto; padding: 0 20px; border-top: 1px solid var(--border-color); padding-top: 40px; width: 100%; }
.reviews-layout-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; align-items: center; width: 100%; }
.summary-score-column { display: flex; flex-direction: column; gap: 5px; }
.summary-score-column h3 { font-size: 1.4rem; font-weight: 700; }
.score-huge-row { display: flex; align-items: center; gap: 12px; }
.huge-number { font-size: 2.2rem; font-weight: 800; }
.total-reviews-count-text { font-size: 13px; color: var(--text-muted); }

.histogram-bars-column { display: flex; flex-direction: column; gap: 8px; }
.histogram-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.histo-stars { width: 65px; text-align: right; color: #ff2a2a; }
.histo-bar-bg { flex-grow: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; max-width: 240px; }
.histo-bar-fill { height: 100%; background: #111; width: 0%; }
.histo-count-num { width: 30px; font-size: 12px; }

/* User Post Nodes */
.review-card-node { border-bottom: 1px solid #f1f5f9; padding: 25px 0; width: 100%; }
.user-meta-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; width: 100%; }
.avatar-circle-placeholder { width: 36px; height: 36px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.avatar-circle-placeholder svg { width: 18px; height: 18px; fill: #94a3b8; }
.user-identity-name { font-weight: 600; font-size: 14px; color: #111; }
.review-post-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.review-node-headline { font-weight: 700; font-size: 14px; margin: 8px 0 4px 0; color: #111; }
.review-node-body-text { margin: 0; font-size: 14px; color: #475569; line-height: 1.5; word-break: break-word; }

/* --- SYSTEM FOOTER --- */
footer { background: #1a202c; color: #e2e8f0; padding: 40px 5% 20px 5%; margin-top: 40px; width: 100%; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
footer h3 { color: #f7fafc; font-size: 15px; margin-bottom: 12px; font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { text-decoration: none; color: #a0aec0; font-size: 13px; }
.bottom { text-align: center; border-top: 1px solid #2d3748; padding-top: 15px; margin-top: 30px; font-size: 12px; color: #718096; }

/* --- MOBILE RESPONSIVE ENGINE QUERIES --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
        width: 100%;
    }

    nav {
        gap: 14px;
        width: 100%;
        justify-content: center;
        border-top: 1px solid #edf2f7;
        padding-top: 8px;
    }
    
    nav a { font-size: 13px; }
    .logo .m { font-size: 32px; }
    .logo .rest { font-size: 22px; }

    .product-view-container { 
        display: flex !important;
        flex-direction: column !important;
        gap: 25px; 
        padding: 0 15px !important; 
        margin: 10px 0 !important; 
        width: 100% !important;
    }
    
    .image-gallery-holder { 
        position: relative; 
        top: 0; 
        width: 100% !important;
    }

    .main-display-box {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
    
    .info-content-holder {
        width: 100% !important;
        padding: 0 !important;
    }

    .product-title-text { 
        font-size: 1.4rem; 
        line-height: 1.3 !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    .urgency-countdown-box { 
        padding: 10px 12px !important; 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        width: 100% !important;
    }
    .urgency-label { font-size: 13px; }
    .timer-segment { font-size: 13px; padding: 3px 6px; }

    .bundle-tier-card { width: 100% !important; }

    .micro-trust-strip { 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px; 
        padding: 10px 6px; 
        width: 100% !important;
    }
    .micro-badge-title { font-size: 10px; }
    .micro-badge-desc { font-size: 9px; }

    .action-btn { font-size: 1rem; padding: 13px 16px; gap: 8px; width: 100% !important; }
    .order-now-cod { margin-top: 10px; font-size: 0.95rem; }

    .reviews-section-hub { padding: 0 15px; margin: 30px auto; width: 100%; }
    .reviews-layout-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; width: 100%; }
    .histo-bar-bg { max-width: none; }
    .product-editorial-block { padding: 0 15px; margin: 25px auto; width: 100%; }
}