/* ==========================================================================
   1. CORE VARIABLES & DESIGN TOKENS (DARK BLUE & DARK RED THEME)
   ========================================================================== */
:root {
    /* Theme Color Palette - Midnight Navy Basis (Dark Blue) */
    --navy-primary: #0F172A;       /* Deep Midnight Navy */
    --navy-light: #1E293B;         /* Slate Blue / Dark Indigo Tint */
    --navy-bg: #0A0F1D;            /* Ultra-dark Blue Canvas Background */
    --white: #FFFFFF;
    
    /* Deep Crimson Accents (Dark Red) */
    --orange-solid: #991B1B;       /* Premium Crimson Red */
    --orange-gradient: linear-gradient(135deg, #DC2626 0%, #991B1B 50%, #450A0A 100%);
    
    /* Typography Colors */
    --text-dark: #E2E8F0;          /* Light Slate Body Text for Dark Theme readability */
    --text-muted: #94A3B8;         /* Muted Slate Blue Text */
    --text-light: #F8FAFC;         /* White-Blue Text over Dark Blocks */
    
    /* Layout & Shadows mapped to Dark Blue Accents */
    --max-width: 1200px;
    --shadow-sm: 0 4px 6px rgba(10, 15, 29, 0.3);
    --shadow-md: 0 8px 24px rgba(10, 15, 29, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--navy-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   3. GLOBAL LAYOUT COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    background: var(--orange-gradient);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(153, 27, 27, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(153, 27, 27, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   4. TOP UTILITY INFO BAR
   ========================================================================== */
.top-bar {
    background-color: #070A14; /* Darkest Navy shadow tint */
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-container {
    width: 100%;
    max-width: none; 
    padding: 0 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, 
.top-bar-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-left span, 
.top-bar-right span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.top-bar-left i, 
.top-bar-right i {
    color: var(--orange-solid);
    font-size: 14px;
}

/* ==========================================================================
   5. FLUID NAVIGATION HEADER & UTILITIES
   ========================================================================== */
header {
    background-color: var(--navy-primary);
    padding: 15px 0;
    position: relative;
    z-index: 1001;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: none; 
    padding: 0 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Search Form */
.header-search {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background-color: var(--navy-light);
    color: var(--white);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.header-search input:focus {
    outline: none;
    border-color: var(--orange-solid);
    background-color: var(--white);
    color: var(--navy-primary);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition-smooth);
}

.header-search input:focus + button {
    color: var(--navy-primary);
}

.header-search button:hover {
    color: var(--orange-solid);
}

/* Utilities (Login & Basket) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.action-icon {
    color: var(--text-light);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px;
}

.action-icon:hover {
    color: var(--orange-solid);
    transform: translateY(-2px);
}

.basket-icon {
    position: relative;
}

.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange-gradient);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy-primary);
}

/* Secondary Navigation Strip Bar */
.main-navigation {
    background-color: var(--navy-light);
    border-bottom: 3px solid var(--orange-solid);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 14px 0;
    transition: var(--transition-smooth);
    position: relative;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--orange-solid);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-gradient);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ==========================================================================
   6. HERO SECTION (HOME)
   ========================================================================== */
.hero {
    height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--text-light);
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   6B. 3-COLUMN FEATURES CONTAINER
   ========================================================================== */
.features-container {
    max-width: var(--max-width);
    margin: -80px auto 40px; 
    padding: 40px 24px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.feature-column {
    flex: 1;
    background: var(--navy-primary);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--navy-light);
    transition: var(--transition-smooth);
}

.feature-column:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--orange-solid);
}

.feature-icon {
    font-size: 32px;
    color: var(--orange-solid);
    margin-bottom: 20px;
}

.feature-column h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-column p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   6C. 2-COLUMN SHOWCASE COMPONENT
   ========================================================================== */
.showcase-container {
    margin-top: 60px;
    margin-bottom: 60px;
}

.showcase-split {
    display: flex;
    align-items: center;
    background: var(--navy-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    gap: 40px;
}

.showcase-image-col {
    flex: 1;
    min-width: 320px;
    align-self: stretch;
}

.showcase-image-col img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
}

.showcase-text-col {
    flex: 1;
    padding: 50px;
    min-width: 320px;
}

.showcase-text-col h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.showcase-text-col h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--orange-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

.showcase-text-col p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================================================
   6D. 4-COLUMN QUAD MATRIX GRID
   ========================================================================== */
.grid-four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.quad-column {
    background: var(--navy-primary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.quad-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(153, 27, 27, 0.3);
}

.quad-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.quad-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.quad-column:hover .quad-image-wrapper img {
    transform: scale(1.05);
}

.quad-column h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quad-column p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.quad-link {
    color: var(--orange-solid);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.quad-link:hover {
    color: #450A0A;
}

.quad-link i {
    transition: transform 0.2s ease;
}

.quad-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   6E. TESTIMONIALS ARCHITECTURE
   ========================================================================== */
.testimonials-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background: var(--navy-primary);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 28px;
    color: rgba(153, 27, 27, 0.2);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.reviewer-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-solid);
}

.reviewer-info h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.reviewer-title {
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================================
   7. STANDARD PRODUCTS MATRIX (LEGACY FALLBACK)
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--navy-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-solid);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    margin: 20px 15px 8px;
    color: var(--white);
    font-size: 20px;
}

.card .price {
    color: var(--orange-solid);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.card .btn {
    margin: 0 24px 24px;
}

/* ==========================================================================
   8. SPECIFIC PRODUCT DETAILS & SPECIFICATION BLOCKS
   ========================================================================== */
.details-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    background: var(--navy-primary);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
}

.details-image {
    flex: 0 0 25%; 
    min-width: 220px;
}

.details-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.details-info {
    flex: 1;
    min-width: 320px;
}

.details-info h2 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 12px;
}

.details-info .price {
    font-size: 26px;
    color: var(--orange-solid);
    font-weight: 700;
    margin-bottom: 24px;
}

/* Specifications Table elements */
.specs-section {
    margin-top: 40px;
    background: var(--navy-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--orange-solid);
}

.specs-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-dark);
}

.specs-label {
    font-weight: 700;
    color: var(--text-muted);
    width: 30%;
    background-color: rgba(255, 255, 255, 0.01);
}

.specs-value i {
    color: var(--orange-solid);
    margin-right: 8px;
}

/* ==========================================================================
   9. INPUT FORMS & CONTACT SPLIT LAYOUT
   ========================================================================== */
.contact-split-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.contact-column-left, 
.contact-column-right {
    flex: 1;
    min-width: 0;
}

.info-card {
    background: var(--navy-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--orange-solid);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    color: var(--orange-solid);
    width: 50px;
    text-align: center;
}

.info-text {
    color: var(--text-dark);
    font-size: 16px;
}

.info-text h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form {
    max-width: 100%;
    background: var(--navy-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--navy-light);
    height: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: var(--navy-light);
    color: var(--white);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-solid);
    background-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   10. ADVANCED 3-COLUMN GLOBAL FOOTER
   ========================================================================== */
.advanced-footer {
    background-color: var(--navy-primary);
    color: var(--text-light);
    padding: 60px 0 0 0;
    margin-top: 80px;
    border-top: 4px solid var(--orange-solid);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange-gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.footer-links a i {
    font-size: 10px;
    color: var(--orange-solid);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange-solid);
    opacity: 1;
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.footer-contact li i {
    color: var(--orange-solid);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-payment-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.payment-gateways {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gateway-icon {
    font-size: 38px;
    color: var(--text-light);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.gateway-icon:hover {
    opacity: 1;
    color: var(--orange-solid);
    transform: translateY(-2px);
}

.footer-bottom-bar {
    background-color: #070A14;
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-bar p {
    font-size: 13px;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* ==========================================================================
   11. HARDWARE-ACCELERATED ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   12. RESPONSIVE MEDIA QUERIES & BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-four-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .top-bar-container,
    .header-container {
        padding: 0 20px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 16px;
    }
    .header-search {
        width: 100%;
        max-width: 100%;
        order: 3;
    }
    nav ul {
        gap: 20px;
    }
    nav ul li a {
        padding: 10px 0;
        font-size: 14px;
    }
    .hero h2 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .features-container {
        margin-top: 20px;
        flex-direction: column;
        gap: 20px;
    }
    .showcase-split {
        flex-direction: column;
        gap: 0;
    }
    .showcase-image-col {
        width: 100%;
    }
    .showcase-image-col img {
        min-height: 250px;
        height: 250px;
    }
    .showcase-text-col {
        padding: 30px 20px;
        width: 100%;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-split-container {
        flex-direction: column;
    }
    .contact-column-left, 
    .contact-column-right {
        width: 100%;
    }
    .details-wrapper {
        padding: 24px;
        gap: 24px;
    }
    .details-image {
        flex: 1 1 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    .specs-table td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }
    .specs-label {
        background-color: transparent;
        padding-bottom: 2px;
        font-size: 14px;
    }
    .specs-value {
        padding-top: 2px;
    }
    .contact-form, .info-card {
        padding: 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }
    .footer-column h3 {
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    .grid-four-col {
        grid-template-columns: 1fr;
    }
}