/* Color Systems Matrix */
/* ==========================================================================
   Theme Variables Matrix Configuration
   ========================================================================== */
/* Light Base Theme Mapping */
:root, html[data-theme="light"] {
    --primary-color: #0052cc;
    --dark-neutral: #1a202c;
    --light-neutral: #f7fafc;
    --card-bg: #ffffff;
    --accent-color: #e28743;
    --text-main: #4a5568;
    --border-color: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

/* Dark Base Theme Overrides */
html[data-theme="dark"] {
    --primary-color: #3b82f6;       /* Brighter neon blue for clear visibility on dark layout backgrounds */
    --dark-neutral: #f7fafc;        /* Off-white text reading surfaces */
    --light-neutral: #0f172a;       /* Deep slate base layout sheet background */
    --card-bg: #1e293b;             /* High-contrast lighter slate element containment card fills */
    --text-main: #94a3b8;           /* Muted reading gray contrast typography scale */
    --border-color: #334155;        /* Subdued structural line delimiters */
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
/* ==========================================================================
   Dark mode ecommerce
   ========================================================================== */
html[data-theme="dark"] .product,
html[data-theme="dark"] .featured-card,
html[data-theme="dark"] .testimonial,
html[data-theme="dark"] .modal-content {
    background: #1e293b;
    color: white;
}

html[data-theme="dark"] .category-pill {
    background: #334155;
    color: white;
}


/* Base element structural transitions */
body {
    background-color: var(--light-neutral);
    color: var(--dark-neutral);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Fluid color shifting */
}

/* Refactor structural layout nodes to support variables mapping */
.main-header, .sidebar-widget, .blog-card, .full-article, .sidebar-thumb-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-image-wrap, .print-table th, .calculator-output-panel {
    background-color: var(--light-neutral) !important;
    color: var(--dark-neutral) !important;
}

.card-badge {
    background-color: rgba(59, 130, 246, 0.1) !important; /* Semi-transparent color fill across variable steps */
    color: var(--primary-color) !important;
}
/* Base Document Formatting */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.small-container { max-width: 650px; }

/* Navigation Bar */
.main-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--text-primary); }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); margin-left: 24px; font-weight: 500; }
.nav-links a.active { color: var(--primary-color); }

/* Theme Swap Button */
.theme-toggle-btn {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 24px;
}


/* Archive Banner */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 64px 0;
    text-align: center;
    margin-bottom: 40px;
}
.blog-hero h1 { font-size: 42px; margin-bottom: 12px; font-weight: 800; }
.blog-hero p { font-size: 18px; opacity: 0.85; max-width: 700px; margin: 0 auto 24px; }
.search-container input { width: 100%; max-width: 500px; padding: 14px 20px; border: none; border-radius: var(--radius); font-size: 16px; color: #1a202c; }

/* Grid Layout Architecture */
.blog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-bottom: 64px; }
.sidebar-widget { background: var(--bg-surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.sidebar-widget h3 { margin-bottom: 16px; font-size: 18px; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 6px; }
.filter-btn { width: 100%; text-align: left; background: transparent; border: none; padding: 10px; font-size: 15px; cursor: pointer; border-radius: 6px; color: var(--text-muted); }
.filter-btn.active, .filter-btn:hover { background-color: var(--bg-main); color: var(--primary-color); font-weight: 600; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.card-badge { background-color: var(--card-badge-bg); color: var(--primary-color); padding: 4px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; width: max-content; margin: 20px 20px 0; border-radius: 4px; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h2 { font-size: 19px; margin-bottom: 10px; }
.card-content h2 a { text-decoration: none; color: var(--text-primary); }
.card-content p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 14px; font-size: 13px; color: var(--text-muted); }
.read-more { font-weight: 600; color: var(--primary-color); text-decoration: none; }

/* Form Processing Section Layout */
.quote-section { padding: 64px 0; background: var(--bg-surface); border-top: 1px solid var(--border-color); }
.quote-form-container h2 { font-size: 28px; margin-bottom: 8px; text-align: center; }
.quote-form-container p { text-align: center; color: var(--text-muted); margin-bottom: 32px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-group input, .form-group select { padding: 12px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-primary); border-radius: var(--radius); font-size: 15px; }
.form-group input:focus, .form-group select:focus { outline: 2px solid var(--primary-color); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Validator Output Strings */
.error-msg { font-size: 12px; color: #e53e3e; margin-top: 4px; display: none; }
.form-group.invalid input, .form-group.invalid select { border-color: #e53e3e; }
.form-group.invalid .error-msg { display: block; }
.submit-btn { background: var(--primary-color); color: #ffffff; border: none; padding: 14px; font-weight: 600; font-size: 16px; border-radius: var(--radius); cursor: pointer; width: 100%; margin-top: 10px; }
.submit-btn:hover { background: var(--primary-hover); }
.form-success-box { display: none; background: #c6f6d5; color: #22543d; padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 600; margin-top: 20px; }

/* Post Article Content View Split Wrapper */
.detail-wrapper { display: flex; gap: 40px; margin-top: 40px; position: relative; }
.article-detail-container { max-width: 800px; flex-grow: 1; margin-bottom: 64px; }

/* Sticky Left Side Dock Elements */
.sticky-share-panel { position: sticky; top: 120px; height: max-content; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px; }
.share-title { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-primary); font-weight: bold; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.share-btn:hover { transform: scale(1.08); color: var(--primary-color); }
.copy-alert { background: #48bb78; color: white; font-size: 11px; padding: 2px 6px; border-radius: 4px; display: none; }

/* In-Post Elements */
.back-link { display: inline-block; margin-bottom: 24px; color: var(--primary-color); text-decoration: none; font-weight: 500; }
.full-article { background: var(--bg-surface); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.full-article h1 { font-size: 34px; line-height: 1.3; margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.article-body h2 { font-size: 24px; margin: 32px 0 16px; }
.article-body p { font-size: 17px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.article-body ul { margin-bottom: 20px; padding-left: 24px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; }

.print-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.print-table th, .print-table td { padding: 12px; border: 1px solid var(--border-color); text-align: left; }
.print-table th { background-color: var(--bg-main); font-weight: 600; }

.cta-box { background: linear-gradient(135deg, #0052cc 0%, #003d99 100%); color: #ffffff; padding: 40px; border-radius: var(--radius); margin-top: 40px; text-align: center; }
.cta-box h3 { font-size: 24px; margin-bottom: 12px; color: #ffffff;}
.cta-box p { opacity: 0.9; max-width: 600px; margin: 0 auto 24px; color: #ffffff;}
.large-cta { background-color: var(--accent-color); color: white; text-decoration: none; padding: 14px 32px; border-radius: var(--radius); font-weight: 600; display: inline-block; }

.main-footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 32px 0; font-size: 14px; border-top: 1px solid #1e293b; }

/* Responsive Scale Layout shifts */
@media (max-width: 768px) {
    .blog-layout { grid-template-columns: 1fr; }
    .detail-wrapper { flex-direction: column-reverse; }
    .sticky-share-panel { position: static; flex-direction: row; justify-content: center; padding: 20px 0; border-top: 1px solid var(--border-color); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .nav-links a:not([href*="quote"]) { display: none; }
}

/* ==========================================================================
   Responsive Mobile Menu Additions
   ========================================================================== */

/* Hamburger Button Icon Configuration */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--dark-neutral, #1a202c);
    background: transparent;
    border: none;
    border-radius: var(--radius, 8px);
    cursor: pointer;
    position: relative;
    z-index: 110;
}

.menu-toggle .bar {
    display: block;
    position: absolute;
    left: 10px;
    width: 100%;
    max-width: 24px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.menu-toggle .bar:nth-child(1) { transform: translateY(-8px); }
.menu-toggle .bar:nth-child(2) { transform: translateY(0); }
.menu-toggle .bar:nth-child(3) { transform: translateY(8px); }

/* Page Layout Utility Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Interactive Accordion Layout */
/* ==========================================================================
   B2B Interactive Accordion Engine
   ========================================================================== */
.faq-item { 
    background-color: var(--card-bg) !important; 
    border: 1px solid var(--border-color) !important; 
    border-radius: var(--radius); 
    margin-bottom: 16px; 
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Question Header styling */
.faq-question { 
    width: 100%; 
    padding: 20px; 
    text-align: left; 
    background: none !important; /* Strips implicit global button fills */
    border: none !important; 
    font-size: 17px; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: color 0.2s ease;
    
    /* Dynamically evaluates: Deep charcoal black in Light Mode, crisp silver white in Dark Mode */
    color: var(--dark-neutral) !important; 
}

/* Visual Anchor Indicators (+/- status symbols) */
.faq-question::after { 
    content: '+'; 
    font-size: 22px; 
    font-weight: 600;
    color: var(--primary-color) !important; 
    transition: transform 0.2s; 
}

/* Rotate indicator icon slightly when container opens */
.faq-item.open .faq-question::after { 
    content: '−';
}

/* Hidden container channel block */
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease; 
    padding: 0 20px;
}

/* Open expansion variable state */
.faq-item.open .faq-answer { 
    /* Max-height uses dynamic script parameters. This block holds structural line-height thresholds */
    padding: 0 20px 20px 20px; 
}

/* Inside Paragraph Contrast Fix */
.faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    /* Soft dark gray reading text in Light Mode, clean light gray in Dark Mode */
    color: var(--text-main) !important; 
}


/* Contact Interface Inputs */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 15px; background: #ffffff; }
.form-group textarea { height: 120px; resize: vertical; }

/* Responsive Media Queries Override */
/* ==========================================================================
   Bulletproof Mobile Navigation System Engine
   ========================================================================== */
/* ==========================================================================
   Restored & Optimized Mobile Navigation Engine
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Force display of the hamburger toggle button */
    .menu-toggle { 
        display: flex !important; 
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        color: var(--dark-neutral, #1a202c);
        background: transparent;
        border: none;
        border-radius: var(--radius, 8px);
        cursor: pointer;
        position: relative;
        z-index: 1001; /* Keeps button over the sliding drawer panel */
    }

    .menu-toggle .bar {
        display: block;
        position: absolute;
        left: 10px;
        width: 100%;
        max-width: 24px;
        height: 3px;
        background-color: currentColor;
        border-radius: 2px;
        opacity: 1;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    /* 2. Base configuration for the hidden mobile slide-out drawer container */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Kept safely offscreen by default */
        width: 280px !important;
        height: 100vh !important;
        background-color: var(--card-bg, #ffffff) !important; /* White in light mode, deep slate in dark mode */
        box-shadow: -4px 0 12px rgba(0,0,0,0.15) !important;
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        
        padding: 80px 24px 24px 24px !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
    }

    /* 3. Script-triggered sliding state rule */
    .nav-links.active {
        right: 0 !important; /* Slides the drawer out cleanly */
    }

    /* 4. Text contrast formatting across light and dark modes */
    .nav-links a,
    .nav-links a:not(.cta-btn),
    .nav-links .theme-toggle-btn,
    #themeToggle {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 8px 0 !important;
        padding: 10px 0 !important;
        text-align: left !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        background: none !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
        
        /* Dynamic link color flip: Charcoal in Light Mode, crisp White in Dark Mode */
        color: var(--dark-neutral) !important; 
    }

    /* 5. Keep primary CTA button styling readable and isolated */
    .nav-links a.cta-btn {
        background-color: var(--primary-color, #0052cc) !important;
        color: #ffffff !important; /* Locks text color to white for optimal contrast */
        text-align: center !important;
        border-radius: var(--radius, 8px) !important;
        padding: 12px 20px !important;
        border-bottom: none !important;
        margin-top: 16px !important;
    }

    /* Animated cross icon states */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

    /* Layout column system collapse utility */
    .blog-layout, .grid-2 { grid-template-columns: 1fr !important; gap: 24px !important; }
}


@media (max-width: 900px) {
    /* Collapse sidebars into linear downward layout matrices */
    .article-split-layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .detail-sidebar {
        position: static !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Ensures link color flips safely to follow variables rather than hardcoded rules */
    .nav-links a,
    .nav-links a:not(.cta-btn),
    .nav-links .theme-toggle-btn {
        color: var(--dark-neutral) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .nav-links .cta-btn {
        color: #ffffff !important; /* Keep call to action links white text */
    }
}


.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* High index keeps it visible on top of cards and tables */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}
/* ==========================================================================
   Image Asset Media Aspect Handlers
   ========================================================================== */
.card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #edf2f7;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image cleanly inside its container bounding box */
    object-position: center;
    transition: transform 0.3s ease;
}

/* Hover Zoom Micro-interaction */
.blog-card:hover .card-img {
    transform: scale(1.05);
}

/* Adjust margin when image is placed above badge in feed cards */
.blog-card .card-badge {
    margin: 16px 20px 0 20px !important;
}
/* ==========================================================================
   Image Thumbnail Preview Component
   ========================================================================== */
.preview-thumbnail-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.preview-img-container {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    border: 2px solid var(--primary-color);
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--shadow);
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Ecommerce, index and products pages
   ========================================================================== */
   
   .whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(37,211,102,.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%{transform:scale(1);}
    50%{transform:scale(1.08);}
    100%{transform:scale(1);}
}

.wishlist-btn.active {
    background:#ef4444;
    color:#fff;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(900px,90%);
    background: white;
    border-radius: 20px;
    padding: 30px;
}



/* ==========================
   CART PAGE LAYOUT
========================== */

.cart-page{
    padding:60px 0;
}

.cart-page h1{
    font-size:2.5rem;
    margin-bottom:30px;
}

/* ==========================
   CART ITEM
========================== */

#cartItems{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.cart-item{
    display:grid;
    grid-template-columns:100px 1fr 120px 80px;
    gap:20px;
    align-items:center;

    background:var(--card-bg,#fff);
    padding:15px;

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.cart-item:hover{
    transform:translateY(-3px);
}

/* PRODUCT IMAGE */

.cart-item img{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:10px;
}

/* PRODUCT INFO */

.cart-item h3{
    margin:0;
    font-size:1.1rem;
}

.cart-item p{
    margin-top:5px;
    font-weight:700;
    color:var(--primary-color,#0052cc);
}

/* ==========================
   QUANTITY CONTROLS
========================== */

.qty-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.qty-controls button{
    width:32px;
    height:32px;

    border:none;
    border-radius:6px;

    background:#f1f5f9;
    cursor:pointer;

    font-size:18px;
}

.qty-controls span{
    font-weight:700;
}

/* ==========================
   REMOVE BUTTON
========================== */

.cart-item button{
    background:#ef4444;
    color:white;

    border:none;
    padding:8px 10px;

    border-radius:8px;

    cursor:pointer;

    transition:.2s;
}

.cart-item button:hover{
    opacity:.85;
}

/* ==========================
   CART SUMMARY
========================== */

.cart-summary{
    margin-top:40px;
    padding:25px;

    background:var(--card-bg,#fff);

    border-radius:16px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.cart-summary h2{
    font-size:1.6rem;
}

/* ==========================
   CHECKOUT BUTTON
========================== */

.checkout-btn{
    background:linear-gradient(135deg,#0052cc,#003d99);
    color:white;

    border:none;
    padding:14px 24px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;

    transition:.3s;
}

.checkout-btn:hover{
    transform:translateY(-2px);
}

/* ==========================
   EMPTY STATE
========================== */

.empty-state{
    text-align:center;
    padding:80px 20px;
}

.empty-state h2{
    font-size:2rem;
    margin-bottom:20px;
}

.empty-state a{
    display:inline-block;

    background:var(--primary-color,#0052cc);
    color:white;

    padding:12px 20px;

    border-radius:10px;

    text-decoration:none;

    font-weight:700;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */

@media(max-width:768px){

.cart-item{
    grid-template-columns:80px 1fr;
    grid-template-areas:
        "img info"
        "qty remove";
}

.cart-item img{
    width:80px;
    height:80px;
}

.qty-controls{
    justify-content:flex-start;
}

.cart-summary{
    flex-direction:column;
    align-items:flex-start;
}

.checkout-btn{
    width:100%;
}

}



/*Contact page and whatsapp*/



/* LAYOUT */
.container{
    max-width:1100px;
    margin:auto;
    padding:40px 20px;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

@media(max-width:768px){
    .grid{ grid-template-columns:1fr; }
}

/* CARD */
.card{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
}

/* FORM */
.form-group{ margin-bottom:15px; }

label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

input,textarea{
    width:100%;
    padding:12px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    outline:none;
}

input:focus,textarea:focus{
    border-color:#2563eb;
}

/* BUTTON */
button{
    width:100%;
    padding:14px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
}

button:hover{
    background:#1d4ed8;
}

/* INFO */
.info-box{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.info-item{
    margin-bottom:12px;
}

/* TOAST */
.toast{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    padding:12px 18px;
    border-radius:8px;
    opacity:0;
    transition:.3s;
}

.toast.show{
    opacity:1;
}

/* WHATSAPP */
.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    width:55px;
    height:55px;
    border-radius:50%;
    background:#25D366;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    text-decoration:none;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* Inverts the inner SVG path shape to crisp white */
.whatsapp svg {
    fill: #ffffff; 
    width: 32px;
    height: 32px;
}

/* Header topbar and pages dropdown */
.topbar {
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
}

.topbar .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
}

.topbar-contact a,
.topbar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

.topbar-contact a:hover,
.topbar-login:hover {
    background: var(--primary-color);
}

.topbar-login {
    width: auto;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
}

.nav-dropdown {
    position: relative;
    margin-left: 24px;
}

.pages-toggle {
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pages-toggle:hover,
.nav-dropdown:hover .pages-toggle,
.nav-dropdown:focus-within .pages-toggle {
    background: transparent;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(15,23,42,.14);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1002;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu a {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--dark-neutral);
}

.nav-links .dropdown-menu a:hover {
    background: var(--light-neutral);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

.header-actions .icon-link {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--dark-neutral);
    text-decoration: none;
    font-weight: 700;
}

.header-actions .icon-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn i,
.theme-toggle-btn i,
.trust-card h3 i,
.hero-card p i {
    margin-right: 6px;
}

@media(max-width:768px){
    .topbar .container {
        padding: 8px 20px;
    }

    .topbar-login span {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
        margin: 8px 0;
    }

    .pages-toggle {
        width: 100% !important;
        justify-content: space-between;
        padding: 0 0 10px 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        color: var(--dark-neutral) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-align: left;
    }

    .pages-toggle i {
        transition: transform .2s ease;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        overflow: hidden;
        padding: 0 0 0 14px;
        background: transparent;
        pointer-events: none;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
        padding: 4px 0 0 14px;
        pointer-events: auto;
    }

    .nav-dropdown.open .pages-toggle i {
        transform: rotate(180deg);
    }

    .nav-links .dropdown-menu a {
        width: 100% !important;
        margin: 6px 0 !important;
        padding: 8px 0 !important;
        border-radius: 0;
    }

    .header-flex {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .product-header-actions {
        order: 3;
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        justify-content: flex-end;
        border-top: 1px solid var(--border-color);
    }

    .product-header-actions .icon-link {
        min-width: 44px;
        min-height: 38px;
        padding: 0 14px;
        font-size: 15px;
    }
}

/* ==========================
   FOOTER LAYOUT
========================== */

.main-footer{
    background:#15161d;
    color:#b9babc;
}

.main-footer .container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* Four equal columns */

.footer-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:60px;
    padding:60px 0;
    align-items:start;
}

/* Each column */

.footer{
    width:100%;
}

.footer-title{
    color:#fff;
    font-size:24px;
    font-weight:700;
    margin-bottom:30px;
    text-transform:uppercase;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li{
    margin-bottom:15px;
}

.footer-links a{
    color:#b9babc;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#D10024;
}

.footer-links i{
    width:22px;
    color:#D10024;
    margin-right:10px;
}

.footer p{
    line-height:1.8;
    margin-bottom:20px;
}

/* Bottom Footer */

#bottom-footer{
    background:#1d1d29;
    text-align:center;
    padding:30px 0;
}

.footer-payments{
    list-style:none;
    padding:0;
    margin:0 0 20px;
}

.footer-payments li{
    display:inline-block;
    margin:0 8px;
}

.footer-payments li a{
    color:#fff;
    font-size:30px;
}

.footer-payments li a:hover{
    color:#D10024;
}

.copyright{
    color:#b9babc;
    font-size:14px;
}

/* Tablet */

@media(max-width:992px){

.footer-grid{
    grid-template-columns:repeat(2,1fr);
    gap:40px;
}

}

/* Mobile */

@media(max-width:768px){

.footer-grid{
    grid-template-columns:1fr;
    text-align:center;
}

.footer-links i{
    margin-right:8px;
}

}

/* =========================
   PAGE HEADER
========================= */

.page-header{
    background:linear-gradient(
    rgba(15,23,42,.8),
    rgba(15,23,42,.8)),
    url('img/products-banner.jpg');

    background-size:cover;
    background-position:center;

    color:white;
    text-align:center;

    padding:100px 20px;
}

.page-header h1{
    font-size:3rem;
    margin-bottom:10px;
}

/* =========================
   FILTER BAR
========================= */

.filter-bar{
    padding:30px 0;
}

.filter-wrap{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.filter-wrap input,
.filter-wrap select{

    flex:1;
    min-width:220px;

    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;

    font-size:16px;
}

/* =========================
   PRODUCTS
========================= */

.products-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(300px,1fr));

    gap:25px;

    padding-bottom:60px;
}

.product-card{

    position:relative;

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 20px 45px rgba(0,0,0,.15);
}

.product-card img{

    width:100%;
    height:240px;

    object-fit:cover;
}

.product-content{
    padding:20px;
}

.product-content h3{
    margin-bottom:10px;
}

.product-price{

    font-size:1.5rem;

    color:var(--primary-color);

    font-weight:700;

    margin:15px 0;
}

.product-actions{

    display:flex;

    gap:10px;

    flex-wrap:wrap;
}

.product-actions button{

    flex:1;

    padding:10px;

    border:none;

    border-radius:8px;

    cursor:pointer;
}

.btn-primary{
    background:var(--primary-color);
    color:white;
}

.btn-secondary{
    background:#f1f5f9;
}

/* =========================
   WISHLIST
========================= */

.wishlist-btn{

    position:absolute;

    top:15px;
    right:15px;

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:18px;
}

/* =========================
   PAGINATION
========================= */

.pagination{

    display:flex;

    justify-content:center;

    gap:10px;

    margin-bottom:80px;
}

.pagination button{

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    cursor:pointer;
}

.pagination .active{
    background:var(--primary-color);
    color:white;
}

/* =========================
   MODAL
========================= */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.8);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;
}

.modal.active{
    display:flex;
}

.modal-content{

    width:min(800px,90%);

    background:white;

    border-radius:16px;

    padding:25px;
}

.modal-content img{

    width:100%;

    max-height:400px;

    object-fit:cover;

    border-radius:10px;
}

.close-modal{

    float:right;

    cursor:pointer;

    font-size:24px;
}

@media(max-width:768px){

.page-header h1{
    font-size:2.2rem;
}

.products-grid{
    grid-template-columns:1fr;
}

}

.wishlist-btn.active{

    background:#ef4444;
    color:#fff;

}
