/* CSS Design System for Muslim Media Store Storefront */

:root {
    /* Color Tokens (OKLCH) */
    --bg-base: oklch(0.12 0.005 250);
    --bg-surface: oklch(0.16 0.01 250);
    --bg-surface-elevated: oklch(0.20 0.015 250);
    --border-surface: oklch(0.25 0.01 250 / 0.4);
    --border-surface-hover: oklch(0.82 0.17 82 / 0.3);
    
    --accent-primary: oklch(0.82 0.17 82);       /* Brand Gold/Yellow #F7C125 */
    --accent-hover: oklch(0.87 0.15 85);
    --accent-glow: oklch(0.82 0.17 82 / 0.12);
    --accent-glow-strong: oklch(0.82 0.17 82 / 0.25);
    
    --text-ink: oklch(0.97 0.005 250);
    --text-muted: oklch(0.72 0.01 250);
    
    /* Brand Colors */
    --whatsapp: #25d366;                         /* Official WhatsApp Green */
    --success: oklch(0.75 0.15 140);
    --danger: oklch(0.60 0.18 20);
    
    /* Layout */
    --max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions & Easing */
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography Tokens */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Readex Pro', sans-serif;

    --font-size-xs: 0.72rem;
    --font-size-sm: 0.85rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.15rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.6rem;
    --font-size-4xl: 2.6rem;

    --line-height-tight: 1.25;
    --line-height-snug: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.7;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-ink);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-ink);
    line-height: var(--line-height-tight);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: oklch(0.12 0.005 250);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 15px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-surface);
    color: var(--text-ink);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-glow {
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--accent-glow-strong);
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 24px;
}

/* Header & Navbar Layout */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: oklch(0.12 0.005 250 / 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-surface);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: var(--font-size-xl);
    color: var(--accent-primary);
    line-height: var(--line-height-tight);
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Search bar in header */
.search-bar-wrapper {
    position: relative;
    max-width: 480px;
    width: 100%;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    color: var(--text-ink);
    border-radius: 40px;
    padding: 10px 48px 10px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-surface-elevated);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Left actions (Login/Cart) */
.nav-actions-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}





/* View Switcher Panels */
.view-panel {
    display: none;
    animation: panelFadeIn 0.35s ease-out;
}

.view-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VIEW 1: Storefront Homepage Styles */

/* Hero Banner Card */
.store-hero {
    padding: 40px 0 20px;
}

.hero-banner-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, oklch(0.14 0.01 250) 100%);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--accent-primary);
    opacity: 0.08;
    pointer-events: none;
}

.hero-banner-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: var(--line-height-tight);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.hero-banner-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 24px;
}

.hero-coupon-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background-color: oklch(0.12 0.005 250 / 0.5);
    border: 1px dashed var(--accent-primary);
    color: var(--text-ink);
    font-size: 0.85rem;
}

.coupon-code {
    color: var(--accent-primary);
    font-weight: 800;
}

.hero-banner-graphic {
    display: flex;
    justify-content: center;
    position: relative;
}

.glowing-orb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    filter: blur(50px);
    opacity: 0.18;
    animation: orbPulse 6s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.2); opacity: 0.28; }
}

/* Store Categories */
.categories-section {
    padding: 30px 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: var(--line-height-tight);
    margin-bottom: 28px;
    position: relative;
    letter-spacing: -0.01em;
}

.text-center {
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid var(--border-surface);
}

.category-card span {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-ink);
}

/* Products Grid Section */
.store-products-section {
    padding: 40px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover:not(.disabled) {
    transform: translateY(-6px);
    border-color: var(--border-surface-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent-primary);
    color: oklch(0.12 0.005 250);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 2;
}

.coming-soon {
    background-color: var(--bg-surface-elevated) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-surface);
}

.product-image-container {
    height: 180px;
    background-color: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-surface);
    padding: 0;
    overflow: hidden;
}

.product-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-svg-logo {
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.25));
}

.product-detail-header-logo {
    margin-bottom: 20px;
}

.detail-gemini-logo {
    width: 180px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
}

.product-summary {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: var(--line-height-normal);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-tags {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-ink);
    font-family: 'Cairo', sans-serif;
}

.price-orig {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Disabled styling for placeholders */
.product-card.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* VIEW 2: Integrated Product Details View Styles */
.product-breadcrumbs {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-surface);
    background-color: oklch(0.10 0.005 250);
}

.breadcrumbs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-back-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-back-link:hover {
    text-decoration: underline;
}

.bread-curr {
    color: var(--text-ink);
}

.product-intro-section {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
}

.detail-badge-promo {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    background-color: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.product-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: var(--line-height-tight);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.product-main-desc {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 36px;
    max-width: 65ch;
}

.features-checklist-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.check-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.check-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
    font-weight: 700;
}

.check-item p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
}

.detail-warranty-banner {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.detail-warranty-banner h4 {
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.detail-warranty-banner ul {
    list-style: none;
}

.detail-warranty-banner li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.detail-warranty-banner li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: 900;
}

/* Sidebar Price Box styling */
.product-price-sidebar {
    position: relative;
}

.sidebar-price-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 110px;
}

.sidebar-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-primary);
}

.card-promo-eyebrow {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.sidebar-price-display .price-val {
    font-size: 3.8rem;
    line-height: 1;
}

.price-slash-val {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--danger);
    margin-right: auto;
}

.price-desc-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-surface);
    padding-bottom: 16px;
}

.activation-hint-box {
    margin-top: 24px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.activation-hint-box strong {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.activation-hint-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.activation-hint-box p:last-child {
    margin-bottom: 0;
}

/* Timeline steps */
.product-steps-section {
    padding: 80px 0;
    background-color: oklch(0.10 0.005 250);
    border-top: 1px solid var(--border-surface);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--border-surface-hover);
    transform: translateY(-4px);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-primary);
    color: oklch(0.12 0.005 250);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: var(--font-size-xl);
    margin-bottom: 20px;
}

.step-title {
    font-size: var(--font-size-lg);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: var(--line-height-snug);
}

.step-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
}

/* FAQ Accordion Section */
.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-surface);
    background-color: var(--bg-base);
}

.faq-container {
    max-width: 800px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-surface-hover);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-ink);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: right;
    gap: 20px;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background-color: oklch(0.12 0.005 250 / 0.4);
}

.faq-content p {
    padding: 0 24px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Opened FAQ state */
.faq-item.active .faq-content {
    max-height: 250px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer Section */
.main-footer {
    padding: 80px 0 24px;
    background-color: oklch(0.08 0.005 250);
    border-top: 1px solid var(--border-surface);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 50ch;
}

.footer-contacts h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-contacts p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

/* Official styled Whatsapp button inside circular background */
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon.wa-btn:hover {
    color: #fff;
    background-color: var(--whatsapp);
    border-color: var(--whatsapp);
    transform: translateY(-2px);
}

.social-icon.fb-btn:hover {
    color: #fff;
    background-color: #1877F2;
    border-color: #1877F2;
    transform: translateY(-2px);
}

/* Correct footer direction rendering to prevent overlap */
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-surface);
    color: var(--text-muted);
    font-size: 0.82rem;
    direction: rtl;
}

/* LTR class wrap helper for English phrases inside RTL text */
.ltr-inline {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
}

/* Floating WhatsApp Widget */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Positioned on the right as requested */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Checkout Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 620px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s var(--ease-out-expo);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: var(--line-height-tight);
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: var(--line-height-normal);
}

.modal-price-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-surface);
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: 24px;
    color: var(--text-ink);
}

/* Payment tabs in modal */
.payment-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-surface);
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.payment-tabs::-webkit-scrollbar {
    display: none;
}

.payment-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.payment-tab.active {
    background-color: var(--accent-glow);
    color: var(--accent-primary);
}

/* Panels */
.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
    animation: panelFadeIn 0.35s var(--ease-out-expo) both;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-base);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    gap: 16px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-value {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-primary);
}

.text-sm {
    font-size: 1rem !important;
}

.text-xs {
    font-size: 0.85rem !important;
}

.btn-copy {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-surface);
    color: var(--text-ink);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-copy.success {
    background-color: var(--success);
    color: oklch(0.12 0.005 250);
    border-color: var(--success);
}

.payment-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 12px;
}

/* PayPal Button styling inside modal */
.paypal-info-container {
    background-color: var(--bg-base);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-sm);
    padding: 24px;
}

.paypal-info-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.accepted-cards-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
}

.card-badge.visa {
    background-color: #0b4a99;
    color: #fff;
}

.card-badge.mastercard {
    background-color: #eb001b;
    color: #fff;
}

.card-text-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.paypal-button-embed-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.paypal-button-embed-wrapper > div {
    width: 100%;
    max-width: 320px;
}

/* Activation Form */
.activation-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.activation-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.activation-form-group input {
    background-color: var(--bg-base);
    border: 1px solid var(--border-surface);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-ink);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.activation-form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px oklch(0.82 0.17 82 / 0.1);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 24px;
    }
    
    .hero-banner-card {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-banner-graphic {
        display: none;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-price-sidebar {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }
    
    .sidebar-price-card {
        position: relative;
        top: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        padding-top: 130px; /* Height adjustment for mobile stacked header */
    }
    
    .navbar-container {
        height: auto;
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .search-bar-wrapper {
        margin: 0;
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-timeline {
        grid-template-columns: 1fr;
    }
    
    .modal-card {
        padding: 24px;
    }
    
    .payment-tabs {
        padding-bottom: 12px;
    }
    
    .payment-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .flex-column-mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .flex-column-mobile .btn-copy {
        width: 100%;
        text-align: center;
    }
}

/* Easing curves and button states override */
.btn {
    transition: var(--transition-fast);
}

/* Staggered entrance reveal keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrance animation triggers scoped by active views */
#storefront-view.active .hero-banner-card {
    animation: fadeInUp 0.9s var(--ease-out-expo) both;
}

#storefront-view.active .product-card {
    animation: fadeInUp 0.75s var(--ease-out-expo) both;
}
#storefront-view.active .product-card:nth-child(1) { animation-delay: 100ms; }
#storefront-view.active .product-card:nth-child(2) { animation-delay: 200ms; }
#storefront-view.active .product-card:nth-child(3) { animation-delay: 300ms; }

#storefront-view.active .showcase-card {
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
#storefront-view.active .showcase-card:nth-child(1) { animation-delay: 150ms; }
#storefront-view.active .showcase-card:nth-child(2) { animation-delay: 210ms; }
#storefront-view.active .showcase-card:nth-child(3) { animation-delay: 270ms; }
#storefront-view.active .showcase-card:nth-child(4) { animation-delay: 330ms; }
#storefront-view.active .showcase-card:nth-child(5) { animation-delay: 390ms; }

#product-detail-view.active .breadcrumbs-row,
#product-detail-view.active .detail-badge-promo,
#product-detail-view.active .product-main-title,
#product-detail-view.active .product-main-desc,
#product-detail-view.active .product-price-sidebar {
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
}
#product-detail-view.active .breadcrumbs-row { animation-delay: 30ms; }
#product-detail-view.active .detail-badge-promo { animation-delay: 60ms; }
#product-detail-view.active .product-main-title { animation-delay: 100ms; }
#product-detail-view.active .product-main-desc { animation-delay: 150ms; }
#product-detail-view.active .product-price-sidebar { animation-delay: 200ms; }

#product-detail-view.active .check-item {
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}
#product-detail-view.active .check-item:nth-child(1) { animation-delay: 250ms; }
#product-detail-view.active .check-item:nth-child(2) { animation-delay: 310ms; }
#product-detail-view.active .check-item:nth-child(3) { animation-delay: 370ms; }
#product-detail-view.active .check-item:nth-child(4) { animation-delay: 430ms; }
#product-detail-view.active .check-item:nth-child(5) { animation-delay: 490ms; }

#product-detail-view.active .detail-warranty-banner {
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 550ms;
}

#product-detail-view.active .step-card {
    animation: fadeInUp 0.75s var(--ease-out-expo) both;
}
#product-detail-view.active .step-card:nth-child(1) { animation-delay: 150ms; }
#product-detail-view.active .step-card:nth-child(2) { animation-delay: 220ms; }
#product-detail-view.active .step-card:nth-child(3) { animation-delay: 290ms; }
#product-detail-view.active .step-card:nth-child(4) { animation-delay: 360ms; }
#product-detail-view.active .step-card:nth-child(5) { animation-delay: 430ms; }

/* Reduced Motion overrides */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* PayPal Hosted Button Overrides to hide duplicate form fields and headers */
#paypal-container-TXBFZADFZ2VY4 .item-header,
#paypal-container-TXBFZADFZ2VY4 .item-description,
#paypal-container-TXBFZADFZ2VY4 label,
#paypal-container-TXBFZADFZ2VY4 .selectContainer,
#paypal-container-TXBFZADFZ2VY4 textarea,
#paypal-container-TXBFZADFZ2VY4 .error-label,
#paypal-container-TXBFZADFZ2VY4 #generic-error,
#paypal-container-TXBFZADFZ2VY4 #browser-error,
#paypal-container-TXBFZADFZ2VY4 #inventory-error {
    display: none !important;
}

/* Showcase grid matching user's layout */
.payment-methods-showcase-section {
    padding: 60px 0;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-surface);
}

.showcase-title-centered {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-ink);
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
    letter-spacing: -0.01em;
}

.payment-methods-showcase-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-surface);
    border-radius: 12px;
    padding: 16px 24px;
    min-height: 70px;
    transition: var(--transition-smooth);
    width: calc(33.33% - 14px);
    box-sizing: border-box;
}

.showcase-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.showcase-card-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--text-ink);
    letter-spacing: 0.02em;
}

.logo-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-box.white-box {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-rect {
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-rect.white-rect {
    background-color: #fff;
    padding: 0 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive layout for showcase */
@media (max-width: 768px) {
    .payment-methods-showcase-grid {
        gap: 12px;
    }
    .showcase-card {
        width: calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .showcase-card {
        width: 100%;
    }
}
