/**
 * assets/css/shop_styles.css
 * 
 * Independent styling for the VectPack Shop.
 * Aesthetic: NetPAC (Professional Blue & Light Gray)
 * Layout: EvolynDataGH (High-conversion landing)
 */

:root {
    /* --- VectPack Aesthetics (Current) --- */
    --vp-primary: #10b981;           /* Emerald Green (Matching Launch) */
    --vp-primary-dark: #059669;      /* Darker Emerald */
    --vp-primary-light: #34d399;     /* Lighter Emerald */
    --vp-success: #10b981;           /* Emerald */
    --vp-bg-body: #f8fafc;           /* Light Sky */
    --vp-bg-card: #ffffff;
    --vp-text-main: #334155;         /* Slate 700 */
    --vp-text-muted: #64748b;        /* Slate 500 */
    --vp-border-soft: #e2e8f0;       /* Slate 200 */
    --vp-shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --vp-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --vp-radius: 12px;

    /* --- NetPAC Aesthetics (Legacy - Commented Out) --- 
    --vp-primary: #0f6fe8;
    --vp-primary-dark: #0541a8;
    --vp-primary-light: #1f8bff;
    --vp-bg-body: #f4f6fb;
    --vp-bg-card: #ffffff;
    --vp-text-main: #111827;
    --vp-text-muted: #6b7280;
    --vp-border-soft: #e5e7eb;
    --vp-shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.08);
    --vp-shadow-card: 0 8px 20px rgba(15, 23, 42, 0.08);
    */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--vp-bg-body);
    color: var(--vp-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.modal_open {
    overflow: hidden !important;
}

/* ── Header ───────────────────────────────────────────────────────── */
.site_header {
    background: #ffffffda;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vp-border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 70px;
    padding: 10px;
}

.header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand_logo_circle {
    width: 38px;
    height: 38px;
    background-color: var(--vp-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand_logo_img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.brand_text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--vp-text-main);
}

.main_nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav_link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--vp-text-main);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav_link:hover { color: var(--vp-primary); }

.nav_button {
    background-color: var(--vp-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav_button:hover { background-color: var(--vp-primary-dark); }

/* ── Main Layout ──────────────────────────────────────────────────── */
.top_bar {
    background-color: var(--vp-primary);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top_bar_inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.auth_nav_group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 10px;
}

.nav_toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--vp-text-main);
    z-index: 1100;
}

.hero_home {
    padding: 50px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    overflow: hidden;
}

.hero_row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 30px;
}

.hero_kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 111, 232, 0.1);
    color: var(--vp-primary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero_title {
    font-size: 2.75rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    color: #020b26; /* NetPAC Dark Blue */
}

.hero_highlight { color: var(--vp-primary); }

.hero_sub {
    font-size: 1.05rem;
    color: var(--vp-text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero_actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn_primary {
    background-color: var(--vp-primary);
    color: white;
    /* padding: 12px 24px; */
    padding: 6px 12px;
    border-radius: var(--vp-radius);
    border: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    cursor: pointer;
}

.btn_primary:hover {
    background-color: var(--vp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn_primary:active {
    transform: translateY(0);
}

.btn_outline {
    background-color: white;
    color: var(--vp-primary);
    border: 2px solid var(--vp-primary);
    padding: 12px 30px;
    border-radius: var(--vp-radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn_outline:hover {
    background-color: var(--vp-primary);
    color: white;
}

.hero_image_wrap img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ── Offers Section ───────────────────────────────────────────────── */
.section_offers {
    padding: 50px 0;
}

.section_header {
    text-align: center;
    margin-bottom: 32px;
}

.section_title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #020b26;
}

.offer_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    place-items: center;
}

.offer_card {
    background: white;
    border-radius: var(--vp-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--vp-border-soft);
}

.offer_card:hover {
    transform: translateY(-8px);
    box-shadow: var(--vp-shadow-card);
}

.offer_link { display: block; height: 100%; }

.offer_media {
    height: 160px;
    overflow: hidden;
    background: #f8fafc;
}

.offer_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.offer_card:hover .offer_media img {
    transform: scale(1.05);
}

.offer_body {
    padding: 24px;
}

.offer_title_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.offer_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #020b26;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge_status_success { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--vp-success); 
}
/* Legacy NetPAC: background: #dcfce7; color: #166534; */
.badge_status_default { background: #f1f5f9; color: #475569; }
.badge_coming_soon { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.card_disabled {
    filter: saturate(0.8);
    opacity: 0.9;
    cursor: default;
}

.card_disabled .offer_media {
    filter: grayscale(0.2);
}

.offer_subtitle {
    font-size: 0.9rem;
    color: var(--vp-text-muted);
    margin-bottom: 20px;
    min-height: 48px;
}

.offer_price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--vp-primary);
    margin-bottom: 4px;
}

.offer_range {
    font-size: 0.8rem;
    color: var(--vp-text-muted);
    margin-bottom: 24px;
}

.offer_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--vp-border-soft);
    padding-top: 16px;
}

.offer_btn {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--vp-primary);
}

/* ── WhatsApp Section ────────────────────────────────────────────── */
.section_whatsapp { padding: 30px 0 60px; }

.whatsapp_banner {
    background-color: var(--vp-primary);
    border-radius: var(--vp-radius);
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp_banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.whatsapp_title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.whatsapp_text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 6px;
}

.whatsapp_subtext {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* ── Gateway Section ────────────────────────────────────────────── */
.shop_gateway {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.gateway_card {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 60px 40px;
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow-card);
    text-align: center;
    border-top: 5px solid var(--vp-primary);
}

.gateway_icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--vp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
}

.gateway_title {
    font-size: 1.8rem;
    /* font-weight: 800; */
    /* margin-bottom: 16px; */
    margin-bottom: 6px;
    color: #0f172a;
}

.gateway_text {
    font-size: 1.05rem;
    color: var(--vp-text-muted);
    line-height: 1.6;
    /* margin-bottom: 32px; */
    margin-bottom: 10px;
}

.gateway_actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn_secondary {
    background: transparent;
    color: var(--vp-primary);
    border: 1px solid var(--vp-border-soft);
    padding: 5px 10px;
    border-radius: var(--vp-radius);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_secondary:hover {
    background: #f8fafc;
    border-color: var(--vp-primary);
}

html.modal_open,
body.modal_open {
    overflow: hidden !important;
    height: 100% !important;
}

/* ── Modal System ───────────────────────────────────────────────── */
.vp_modal_overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.4); /* Muted the background a bit more */
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 20px;
    visibility: hidden;
    transition: all 0.3s;
}

.vp_modal_overlay.active {
    opacity: 1;
    visibility: visible;
}

.vp_modal_card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px 25px; /* Reduced from 40px */
    border-radius: var(--vp-radius);
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 90vh; /* Ensure it stays within viewport height */
    overflow-y: auto; /* Make content scrollable */
    scrollbar-width: thin;
    scrollbar-color: var(--vp-border-soft) transparent;
}

.modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--vp-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal_close:hover { color: var(--vp-danger); }

.modal_title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

.info_grid {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px; /* Reduced from 20px */
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info_item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info_item i {
    width: 32px;
    height: 32px;
    background: white;
    color: var(--vp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modal_footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

[data-animate="zoom-in"] {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.active [data-animate="zoom-in"] {
    transform: scale(1);
    opacity: 1;
}

/* ── Discovery & Warning Boxes ────────────────────────────────── */
.price_warning_box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: 20px;
}

.price_warning_box i {
    font-size: 1.25rem;
    color: #f59e0b;
}

.discovery_box {
    background: #f0fdf4;
    border: 1px dashed #10b981;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.discovery_box.inactive {
    background: #f8fafc;
    border: 1px dashed var(--vp-border-soft);
}

.discovery_text {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #111827;
}

.btn_emerald {
    background-color: #10b981;
    color: white;
    /* padding: 12px 24px; */
    padding: 6px 10px;
    border-radius: var(--vp-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn_emerald:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn_disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    padding: 12px 24px;
    border-radius: var(--vp-radius);
    font-weight: 700;
    border: none;
    cursor: not-allowed;
}

.whatsapp_btn {
    background-color: #25d366;
    color: white;
    padding: 16px 48px;
    /* border-radius: 999px; */
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.whatsapp_btn:hover { transform: scale(1.05); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site_footer {
    background: #ffffff;
    border-top: 1px solid var(--vp-border-soft);
    padding: 10px 0;
}

.footer_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer_left a {
    color: var(--vp-primary);
}

.footer_right {
    text-align: right;
}

/* ── Utilities / Animations ───────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main_nav { display: none; }
    .nav_toggle { display: block; }
    
    .hero_row { grid-template-columns: 1fr; text-align: center; }
    .hero_sub { margin-left: auto; margin-right: auto; }
    .hero_actions { justify-content: center; }
    .hero_image_wrap { order: -1; }
    .hero_title { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    .whatsapp_banner { padding: 40px 20px; }
    .whatsapp_title { font-size: 1.75rem; }
    .footer_inner { flex-direction: column; text-align: center;align-items: center; }
    .footer_right { text-align: center; margin-top: 20px; }
}
@media screen and (max-width: 540px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .receipt-row {
        font-size: 12px;
        flex-direction: column;
        justify-content: right;
    }
}
@media screen and (min-width: 540px) {
    .hide-on-desk {
        display: none !important;
    }
}

/* ── Mobile Menu Sidebar Drawer ── */
.mobile_menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen right */
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2100; /* Above everything */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.mobile_menu.active {
    right: 0;
}

/* Backdrop for mobile menu */
.mobile_menu_backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(3px);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile_menu_backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile_nav_link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: var(--vp-text-main);
    text-decoration: none;
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile_nav_link i {
    width: 24px;
    color: var(--vp-primary);
}

/* ==========================================================================
   PRODUCT CATALOG (Evolyn Layout)
   ========================================================================== */

.catalog-view {
    padding-bottom: 60px;
}

/* Breadcrumbs */
.shop-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--vp-text-muted);
}

.shop-breadcrumbs a {
    color: var(--vp-text-muted);
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-breadcrumbs a:hover {
    color: var(--vp-primary);
}

.shop-breadcrumbs .sep {
    color: var(--vp-border-soft);
    font-size: 0.75rem;
}

.shop-breadcrumbs .current-network-name {
    color: var(--vp-primary);
    font-weight: 700;
}

.product-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 12px 0 7px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vp-border-soft);
}

.product-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--vp-text-heading);
}

.network-icon-container {
    font-size: 1.5rem;
    color: var(--vp-text-heading);
}

.product-price-range {
    font-size: 1rem;
    font-weight: 700;
    color: #0369a1; /* Reference Blue for this specific element */
}

.product-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* Media Section */
.product-image-card {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 320px; */
    /*background: #FFCC00; /* MTN Yellow as fallback/base */
    border-radius: 15px;
    overflow: hidden;
}

.network-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* padding: 20px; */
}

/* Meta/Trust Card */
.product-meta-card {
    padding: 25px;
}

.product-meta-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--vp-border-soft);
}

.product-meta-line {
    font-weight: 500;
    color: var(--vp-text-muted);
}

.product-meta-line span {
    color: var(--vp-text-main);
    font-weight: 700;
}

/* Summary Card */
.product-summary {
    padding: 30px;
}

.field-group {
    /* margin-bottom: 25px; */
    margin-bottom: 10px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vp-text-heading);
    margin-bottom: 8px;
}
.field-group.text-center{
    text-align: center;
    justify-content: center;
}
.field-label i {
    font-size: 1rem;
    opacity: 0.8;
}

.field-input {
    width: 100%;
    padding: 10px 15px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.field-input:focus {
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: white;
}

/* Size Pills */
.size-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(50px, 1fr));
    gap: 8px;
}
/* .size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
} */

.size_pill {
    /* padding: 8px 16px; */
    padding: 8px;
    background: white;
    /* border: 1px solid var(--vp-border-soft); */
    border: 2px solid var(--vp-border-soft);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.size_pill:hover {
    border-color: var(--vp-primary);
    background: rgba(16, 185, 129, 0.05);
}

.size_pill.active {
    /* background: var(--vp-primary); */
    border: 2px solid var(--vp-primary);
    font-weight: bold;
    /* color: white; */
    /* box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); */
}

.size_pill.price-unset {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.size_pill.price-unset:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}
/* .size_pill.active {
    background: var(--vp-primary);
    border-color: var(--vp-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
} */

/* Payment Methods */
.pay-method-group.horizontal {
    flex-direction: row;
    gap: 20px;
}

.pay-method-option.simple {
    padding: 0;
    background: transparent;
    border: none;
    width: auto;
}

.pay-method-option.simple .label-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
    background: white;
}

.pay-method-option input:checked + .custom-radio {
    border-color: #0ea5e9;
    background: white;
}

.pay-method-option input:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0ea5e9; /* Light blue from screenshot */
    border-radius: 50%;
}

/* Tabs */
.product-tabs {
    margin-top: 40px;
    padding: 10px;
}

.product-tab-nav {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.03);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vp-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.product-tab-btn.active {
    background: white;
    color: var(--vp-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-tab-content {
    padding: 20px;
    display: none;
    line-height: 1.6;
    background-color: white;
    border-radius: 10px;
}

.product-tab-content.active {
    display: block;
}

.unsupported-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.unsupported-list li::before {
    content: '•';
    color: #ef4444;
    font-weight: bold;
    margin-right: 8px;
}

/* Why Us? Section */
.why-us-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--vp-text-heading);
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-us-list li {
    font-size: 0.85rem;
    color: var(--vp-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-us-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--vp-text-muted);
    border-radius: 50%;
    display: inline-block;
}

/* Related Products Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
    border-radius: 5px;
}

.related-card:hover {
    transform: translateX(5px);
    border-color: var(--vp-primary);
    background: white;
}

.related-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border: 1px solid var(--vp-border-soft);
}

.related-info {
    flex: 1;
}

.related-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--vp-text-heading);
    margin-bottom: 4px;
}

.related-action {
    font-size: 0.8rem;
    color: var(--vp-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.price-box-card{
    max-width: 500px;
    background: white;
    border: 1px solid var(--vp-border-soft);
    padding: 25px;
    transform: translate(-12.5px, 0px);
    width: calc(100% + 25px);
    border-radius: 10px;
    margin: 0px auto;
}

/* Field Feedback & Validation Messaging */
.field-feedback {
    font-size: 0.85rem;
    display: block;
    min-height: 1.2rem;
    transition: color 0.2s;
}

.text-success { color: var(--vp-success) !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }

/* Product Form refinement */
.field-input:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Payment Actions Row */
.payment-actions-row {
    display: flex;
    gap: 10px;
}

.payment-actions-row .btn_primary,
.payment-actions-row .btn_secondary {
    padding: 10px 15px; /* Small paddings as requested */
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn_secondary {
    background-color: white;
    color: var(--vp-text-main);
    border: 1px solid var(--vp-border-soft);
    /* padding: 12px 24px; */
    padding: 6px 12px;
    border-radius: var(--vp-radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn_secondary:hover {
    background-color: var(--vp-bg-body);
    border-color: var(--vp-primary);
    color: var(--vp-primary);
}

.flex-grow-1 {
    flex: 1;
}

.product-layout-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.white-card{
    margin-top: 20px !important;
    max-width: 500px;
    background: white;
    border: 1px solid var(--vp-border-soft);
    padding: 25px;
    border-radius: 10px;
    margin: auto;
}
/* Responsive */
@media (max-width: 680px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-media {
        max-width: 100%;
    }
    /* .product-summary{
        padding: 0;
    } */
}

@media (max-width: 480px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-tab-nav {
        flex-direction: column;
    }
    .offer_card{
            width: calc(100% - 20px);
    }
    /* .hide-padding-on-mobile{
        padding: 0 !important;
    } */

    /* ── Premium Order Summary ───────────────────────────────────────── */
    .checkout-modal {
        padding: 0 !important;
        /* Removed overflow: hidden to allow scrolling via base .vp_modal_card */
    }
}
.checkout-header {
    background: linear-gradient(135deg, var(--vp-primary) 0%, var(--vp-primary-dark) 100%);
    padding: 30px 25px;
    color: white;
    position: relative;
}

.checkout-header .modal_title {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.6rem;
}

.checkout-header .modal_close {
    color: rgba(255,255,255,0.8);
    top: 25px;
}

.checkout-body {
    padding: 25px;
    background: #ffffff;
}

.summary-card {
    background: #f8fafc;
    border: 1px solid var(--vp-border-soft);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--vp-border-soft);
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item .label {
    color: var(--vp-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-item .value {
    color: var(--vp-text-main);
    font-weight: 700;
    text-align: right;
    font-size: 1rem;
}

.summary-item .value.price {
    color: var(--vp-primary);
    font-size: 1.25rem;
}

.payment-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    /* margin-bottom: 25px; */
}

.payment-context i {
    font-size: 1.25rem;
    color: var(--vp-primary);
}

.payment-context span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vp-text-main);
}

.checkout-footer {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 15px;
    padding: 0 25px 30px;
}

/* ── Custom Alert Modal ──────────────────────────────────────────── */
.alert-modal-card {
    text-align: center;
    max-width: 400px !important;
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.alert-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--vp-success); }
.alert-icon.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.alert-icon.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.alert-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.alert-msg {
    color: var(--vp-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ── Processing Overlay Refinement ─────────────────────────────── */
.processing-overlay {
    backdrop-filter: blur(8px) saturate(180%);
    background: rgba(15, 23, 42, 0.6);
    /* extra by me */
    position: absolute;
    inset: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.processing-box {
    padding: 40px;
    text-align: center;
    max-width: 350px;
}

.processing-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-left-color: var(--vp-primary);
    border-radius: 50%;
    animation: vp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes vp-spin {
    to { transform: rotate(360deg); }
}

/* ── Success Receipt View ────────────────────────────────────────── */
.receipt-view {
    padding: 0 15px;
}

.receipt-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--vp-border-soft);
}
@media screen and (min-width: 640px) {
    .receipt-inner.left-right{
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
}
.receipt-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--vp-primary) 0%, var(--vp-primary-dark) 100%);
    color: white;
    padding: 40px 20px;
    position: relative;
    text-align: center;
}
.item-image-box{
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: white;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.purchased-item-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (min-width: 640px) {
    .receipt-left {
        width: 40%;
        border-right: 2px dashed rgba(255, 255, 255, 0.3);
    }
    .receipt-body {
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.receipt-header {
    background: transparent;
    color: white;
    padding: 0;
}

.receipt-header .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.receipt-header h2 {
    color: white;
}

.receipt-header .success-icon {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--vp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.receipt-divider {
    border: none;
    border-top: 2px dashed rgba(0,0,0,0.1);
    margin: 0 20px;
    height: 0;
    position: relative;
    overflow: visible;
}

.receipt-divider::before {
    content: '';
    position: absolute;
    left: -32px;
    top: -12px;
    width: 24px;
    height: 24px;
    background: var(--vp-bg-body);
    border-radius: 50%;
    box-shadow: inset -2px 0 3px rgba(0,0,0,0.05);
}

.receipt-divider::after {
    content: '';
    position: absolute;
    right: -32px;
    top: -12px;
    width: 24px;
    height: 24px;
    background: var(--vp-bg-body);
    border-radius: 50%;
    box-shadow: inset 2px 0 3px rgba(0,0,0,0.05);
}

.receipt-body {
    padding: 30px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.receipt-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.receipt-row:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.receipt-row .label {
    color: var(--vp-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-row .label i {
    color: var(--vp-primary);
    background: rgba(16, 185, 129, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.receipt-row .value {
    font-weight: 700;
    color: var(--vp-text-main);
    text-align: right;
}

.receipt-status-box {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--vp-border-soft);
    border-left: 4px solid #f59e0b;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.status-indicator.processing {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    animation: vp-pulse 2s infinite;
}

.receipt-footer {
    padding: 20px 30px;
}

.receipt-footer .d-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}


/* .receipt-footer {
    padding: 0 30px 40px;
} */

/* .receipt-footer .d-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
} */

/* @media screen and (min-width: 640px) {
    .receipt-footer .d-grid {
        grid-template-columns: 1fr 1fr;
    }
} */
@keyframes vp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ── Print Styles ────────────────────────────────────────────────── */
@media print {
    body * {
        visibility: hidden !important;
    }
    
    .receipt-view, .receipt-view * {
        visibility: visible !important;
    }
    
    .receipt-view {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .receipt-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .receipt-header {
        background: transparent !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }

    .receipt-header h2 {
        color: #000 !important;
    }

    .receipt-header .text-muted {
        color: #333 !important;
    }
    
    .receipt-header .success-icon {
        box-shadow: none !important;
        border: 2px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }

    .receipt-divider::before, .receipt-divider::after {
        display: none !important;
    }

    .receipt-divider {
        border-top: 1px solid #000 !important;
        margin: 0 !important;
    }
    
    .receipt-status-box {
        border: 1px solid #000 !important;
        background: transparent !important;
    }

    .no-print, .no-print * {
        display: none !important;
    }
}

/* --- Payment Picker & Improved Checkout --- */
.payment-selection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 14px 18px; */
    background: #f8fafc; /* --vp-bg-body */
    border: 1px solid var(--vp-border-soft);
    border-radius: var(--vp-radius);
    margin-bottom: 20px;
}

.payment-context {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--vp-text-main);
    font-size: 0.95rem;
}

.payment-context i {
    font-size: 1.2rem;
    color: var(--vp-primary);
}

.btn_link_switch {
    background: transparent;
    border: none;
    color: var(--vp-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn_link_switch:hover {
    background: rgba(16, 185, 129, 0.1); /* --vp-primary with alpha */
    color: var(--vp-primary-dark);
}

.payment-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 5px;
    background: #fff;
    border: 2px solid var(--vp-border-soft);
    border-radius: var(--vp-radius);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    
    /* Default to 3 columns per row, growing to fill empty space */
    flex: 1 1 calc(33.333% - 10px);
    min-width: 90px;
}
.receipt-upsell {
    background: white;
    padding: 10px;
    border-radius: 20px 30px 0px 0px;
}
/* If exactly 4 items, make it exactly 2 columns */
.payment-picker-grid > .picker-item:nth-last-child(4):first-child,
.payment-picker-grid > .picker-item:nth-last-child(4):first-child ~ .picker-item {
    flex: 1 1 calc(50% - 10px);
}

.picker-item i:first-child {
    font-size: 1.5rem;
    color: var(--vp-text-muted);
}

.picker-item span {
    font-weight: 600;
    color: var(--vp-text-main);
    font-size: 0.85rem;
    line-height: 1.2;
}

.picker-item .check {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    color: var(--vp-primary);
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.picker-item:hover {
    border-color: var(--vp-primary-light);
    background: #f8fafc;
}

.picker-item.active {
    border-color: var(--vp-primary);
    background: rgba(16, 185, 129, 0.05);
}

.picker-item.active i:first-child {
    color: var(--vp-primary);
}

.picker-item.active .check {
    opacity: 1;
    transform: scale(1);
}

/* --- Manual MoMo Modal Styles --- */
.momo-payment-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.momo-step {
    display: flex;
    gap: 15px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--vp-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--vp-text-main);
    margin-bottom: 8px;
}

.momo-number-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--vp-border-soft);
    margin-bottom: 8px;
}

.momo-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--vp-primary-dark);
}

.btn_copy {
    background: white;
    border: 1px solid var(--vp-border-soft);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_copy:hover {
    border-color: var(--vp-primary);
    color: var(--vp-primary);
}

.momo-name {
    font-size: 0.85rem;
    color: var(--vp-text-muted);
}

.momo-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--vp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.momo-status-box span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vp-primary-dark);
}

.momo-info-alert {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e40af;
}

.momo-info-alert i {
    font-size: 1rem;
    margin-top: 2px;
}


