/* =================================================== */
/* 1. CORE ARCHITECTURE SYSTEMS & VARIANT VARIABLES     */
/* =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --color-bg: #0b0612;          /* Luxury deep velvet night background */
    --color-surface: #150e22;     /* Card surface background */
    --color-border: #261a3a;      /* Modern structural boundary line */
    --color-text-main: #f8fafc;   /* Pristine white emphasis text */
    --color-text-muted: #94a3b8;  /* Clear readability description gray */
    --color-accent: #a855f7;      /* Royal brand accent purple */
    --color-accent-hover: #c084fc;
    --color-success: #10b981;
    --color-error: #ef4444;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =================================================== */
/* 2. RESPONSIVE NAVIGATION BAR SYSTEM                */
/* =================================================== */
header {
    background-color: rgba(11, 6, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 80px; /* Increased from 64px to give it a stronger presence */
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease; /* Smooth interaction */
}

/* Optional subtle micro-interaction on hover */
.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active-nav {
    color: var(--color-accent);
}

/* CART ACTION TRIGGER BUTTON */
.cart-trigger-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--color-text-main);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.cart-trigger-btn:hover {
    border-color: var(--color-accent);
    background: rgba(168, 85, 247, 0.18);
}

.cart-count-badge {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50px;
    min-width: 18px;
    text-align: center;
}

.header-badge {
    background-color: rgba(168, 85, 247, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =================================================== */
/* 3. HERO WELCOME COMPONENT                           */
/* =================================================== */
.welcome-hero {
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.05), transparent), radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.08), transparent 50%);
    padding: 60px 16px 40px 16px;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-tag {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.welcome-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.welcome-hero p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* =================================================== */
/* 4. BRAND VALUE ACCENT BADGES                        */
/* =================================================== */
.center-subtitle-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.center-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 4px;
}

.value-badges-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.value-badge-card {
    background: rgba(168, 85, 247, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.value-badge-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.value-badge-card i {
    font-size: 1.2rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.value-badge-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.value-badge-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* =================================================== */
/* 5. HUB MAIN PRODUCT CATALOG GRID                    */
/* =================================================== */
.catalog-section {
    max-width: 1200px;
    margin: 20px auto 20px auto;
    padding: 0 16px;
}

.catalog-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.catalog-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.special-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.catalog-img-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.catalog-img {
    width: 100%;
    height: auto;
    display: block;
}

.catalog-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.catalog-info p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.catalog-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
}

.cat-crossed {
    text-decoration: line-through;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
}

.cat-current {
    font-size: 1.25rem;
    font-weight: 800;
}

/* QUANTITY SELECTOR IN CARD */
.catalog-qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qty-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-accent);
}

.qty-value {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.catalog-view-btn {
    width: 100%;
    padding: 12px;
    background-color: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--color-border);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.catalog-card:hover .catalog-view-btn {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =================================================== */
/* 6. DEDICATED FULL-SCREEN CHECKOUT SCREEN SYSTEM    */
/* =================================================== */
#checkout-view {
    display: none; /* Controlled via script framework toggle */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.checkout-view-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.back-to-hub-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

/* LIVE ORDER SUMMARY CONTAINER */
.order-summary-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
}

.order-summary-box h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.15);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.02);
}

.item-row-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.item-row-details p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.item-row-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.cart-remove-btn:hover {
    opacity: 1;
}

.empty-cart-message {
    text-align: center;
    color: var(--color-text-muted);
    padding: 30px 0;
    font-size: 0.95rem;
}

/* SPLIT PANEL INPUT CARDS */
.checkout-input-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
}

.pricing-header {
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.price-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
}

.price-row-shipping {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: 6px; text-transform: uppercase;}
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #475569; font-size: 0.9rem;}

.checkout-input-card input, .checkout-input-card select {
    width: 100%; padding: 12px 14px 12px 40px; background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--color-border); border-radius: 8px; color: #ffffff; font-size: 0.95rem; outline: none;
    -webkit-appearance: none;
}

.checkout-submit-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg, var(--color-accent), #7e22ce);
    border: none; border-radius: 8px; color: #ffffff; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.checkout-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-box { display: none; padding: 14px; border-radius: 8px; margin-top: 16px; font-size: 0.85rem; gap: 10px; }
.state-success { background-color: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #34d399; }
.state-error { background-color: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: #f87171; }

/* =================================================== */
/* 7. HOMEPAGE UTILITY SUBSECTIONS                     */
/* =================================================== */
.homepage-content-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

.brand-section-box {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}

.brand-section-box.no-border-top {
    border-top: none;
    padding: 20px 0;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-section-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0 12px 0;
}

.brand-section-box p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.contact-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.channel-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
}

.channel-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.channel-card strong { display: block; margin-bottom: 4px; font-size: 1rem;}
.channel-card a { color: #ffffff; font-weight: 700; text-decoration: none; font-size: 0.95rem; word-break: break-all;}
.channel-card p { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 12px;}

.whatsapp-btn-link {
    display: inline-block;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* =================================================== */
/* 8. FAQ COMPONENT ACCORDION UI                       */
/* =================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.faq-question {
    padding: 16px;
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.faq-toggle-icon {
    color: var(--color-accent);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.faq-item.open .faq-answer {
    padding: 0 16px 16px 16px;
    max-height: 250px;
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}

/* GLOBAL FOOTER COMPONENT */
footer { padding: 30px 0; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.8rem; margin-top: 40px;}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.footer-legal a { color: var(--color-text-muted); text-decoration: none; }

/* =================================================== */
/* 9. PC HIGH-END INTERFACE MEDIA TRANSLATIONS       */
/* =================================================== */
@media (min-width: 580px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-channels { grid-template-columns: repeat(2, 1fr); }
    .value-badges-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 768px) {
    .welcome-hero { padding: 90px 24px 60px 24px; }
    .welcome-hero h1 { font-size: 3.2rem; }
    .welcome-hero p { font-size: 1.2rem; }
    
    .catalog-section { margin: 40px auto; }
    .catalog-title { font-size: 2.2rem; margin-bottom: 32px; }
    
    .center-section-title { font-size: 2rem; }
    .brand-section-box h3 { font-size: 2rem; }
    .value-badges-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 968px) {
    .brand-logo-img { height: 32px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    
    /* Dedicated Dual-Column layout on Desktop for Checkout View */
    .checkout-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
    .price-current { font-size: 2.4rem; }
}

@media (max-width: 580px) {
    .nav-container { justify-content: center; text-align: center; }
    .nav-links { width: 100%; justify-content: center; order: 3; }
    .header-badge { order: 2; }
    .welcome-hero h1 { font-size: 1.8rem; }
    .footer-container { flex-direction: column; gap: 12px; text-align: center; }
}