/* 
    2nd Chance Cycles - Premium Design System (Version 4.0)
    Modern, Energetic, and Trustworthy
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors (Vibrant Blue Palette) */
    --navy: #050A30;
    --electric-blue: #0047AB;
    --sky-blue: #87CEEB;
    --cyan: #00FFFF;
    --teal: #008080;
    --neon-blue: #00E5FF;
    
    /* Semantic Colors */
    --primary: var(--electric-blue);
    --secondary: var(--navy);
    --accent: var(--cyan);
    --text-main: #1A1A1A;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8fbff;
    --bg-gradient: linear-gradient(135deg, var(--navy) 0%, var(--electric-blue) 100%);
    --blue-gradient: linear-gradient(90deg, var(--electric-blue), var(--cyan));
    
    /* UI Tokens */
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 71, 171, 0.15);
    --shadow-lg: 0 20px 50px -10px rgba(5, 10, 48, 0.2);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(12px);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Typography Utilities */
.text-gradient {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    gap: 10px;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    color: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: var(--white);
    transform: translateY(-3px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 71, 171, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
}

.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions i {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--navy);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(0.6) contrast(1.1);
}

/*
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 10%, rgba(2, 6, 23, 0.4) 50%, transparent 100%);
    z-index: 2;
}
*/

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-btns {
        flex-direction: column;
    }
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.trust-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.trust-card:hover {
    transform: translateY(-10px);
}

.trust-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.trust-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }
}

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

/* Category Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 10, 48, 0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: var(--white);
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, var(--electric-blue) 0%, transparent 100%);
}

.category-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-weight: 500;
    color: var(--cyan);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

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

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 71, 171, 0.1);
}

.product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-img img {
    max-height: 100%;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.add-to-cart {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--electric-blue);
    transform: rotate(90deg);
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Why Choose Us */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item i {
    width: 50px;
    height: 50px;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

/* Testimonials */
.testimonial-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 20px 0 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 400px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.review-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.stars {
    color: #FFD700;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.reviewer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.reviewer-meta {
    font-size: 0.8rem;
}

.google-badge {
    color: #87CEEB;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .testimonial-card {
        min-width: 100%;
    }
}

/* CTA Banner */
.cta-banner {
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    padding: 5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 3rem 1.5rem;
    }
    .cta-banner h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
}


/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-info p {
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Shop Page Specific */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group h4 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
}

.filter-item input {
    width: 18px;
    height: 18px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1.5rem;
    padding-left: 3rem;
    border-radius: var(--radius-full);
    border: 1px solid #ddd;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* In real app, would be a mobile drawer */
    }
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background: var(--navy);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--cyan);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.map-container {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 3rem;
    background: #eee;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Minimal Footer Styles */
.footer-minimal {
    padding: 4rem 0 2rem;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-minimal .social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-minimal .social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-minimal .social-links a:hover {
    color: var(--cyan);
}

.footer-minimal .contact-strip {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-minimal .contact-strip span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-minimal .contact-strip i {
    color: var(--cyan);
}

.footer-minimal .copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}


/* Premium Booking Form Border */
.booking-form-premium {
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    background: var(--white);
    transition: all 0.4s ease;
}

.booking-form-premium:focus-within {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
    border-color: var(--cyan);
}


/* ULTRA PREMIUM SERVICE DESIGN */
.workshop-section {
    background: #020617;
    position: relative;
    padding: 8rem 4rem;
    margin: 4rem 2rem;
    border-radius: 50px;
    overflow: hidden;
}

.workshop-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.tech-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.tech-card {
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.tech-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.tech-card:hover::before {
    opacity: 0.05;
}

.tech-card:hover {
    background: rgba(0, 102, 255, 0.08);
    transform: translateY(-20px);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
}

.tech-card .tech-icon {
    font-size: 4rem;
    margin-bottom: 3rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.tech-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.tech-card .tech-price {
    font-size: 1.5rem;
    color: var(--cyan);
    font-family: "Courier New", monospace;
    margin-bottom: 3rem;
    display: block;
    position: relative;
    z-index: 2;
}

.tech-card .tech-list {
    list-style: none;
    padding: 0;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.tech-card .tech-list li {
    padding: 1rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.tech-card .tech-list li::after {
    content: "[OK]";
    color: var(--teal);
    font-family: monospace;
    font-size: 0.8rem;
}

.tech-card .btn {
    margin-top: auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 1024px) {
    .tech-card-grid {
        grid-template-columns: 1fr;
    }
    .tech-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    }
}



.text-glow {
    color: var(--white) !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 
   2CC AUTOMATIC E-COMMERCE IMAGE BACKGROUND REMOVER
   Instantly blends out solid white or light-grey backgrounds on all product catalog, detail page, 
   cart drawer, and checkout summary photos, making images appear perfectly transparent against any 
   dark-blue or glassmorphic background layer.
*/
.product-img img, 
.product-detail-images img, 
.thumb-card img,
.cart-item-img img,
.summary-item-img img {
    mix-blend-mode: multiply;
    filter: contrast(1.05) brightness(1.02);
}

.text-white {
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
}

/* Category Enhancement Styles */
.level-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-beginner {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.level-intermediate {
    background: rgba(5, 10, 48, 0.55);
    color: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.level-advanced {
    background: rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.category-specs {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-specs {
    transform: translateY(0);
    opacity: 1;
}

.category-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-specs li i {
    font-size: 0.7rem;
    color: var(--cyan);
}

/* Advanced Card Premium Look */
.card-advanced {
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.card-advanced:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    border-color: var(--cyan);
}

.card-advanced .category-overlay {
    background: linear-gradient(to top, rgba(5, 10, 48, 0.95) 0%, transparent 80%);
}

.card-advanced:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 71, 171, 0.9) 0%, transparent 100%);
}

/* ==========================================================================
   Shopping Cart Drawer & Badge Styles
   ========================================================================== */

/* Cart Icon Badge */
.cart-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.cart-badge.active {
    transform: scale(1);
    opacity: 1;
}

/* Cart Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 10, 48, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: rgba(5, 10, 48, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 229, 255, 0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    color: var(--white);
    box-shadow: -10px 0 30px rgba(5, 10, 48, 0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0;
}

/* Drawer Header */
.cart-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-header h3 i {
    color: var(--cyan);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cyan);
}

/* Cart Items List */
.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Scrollbar styles for cart drawer */
.cart-drawer-items::-webkit-scrollbar {
    width: 6px;
}

.cart-drawer-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-drawer-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

/* Individual Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.cart-item-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--sky-blue);
}

.cart-item-price {
    font-weight: 700;
    color: var(--cyan);
}

.cart-item-qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--electric-blue);
    color: var(--white);
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.remove-cart-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem;
}

.remove-cart-item:hover {
    color: #ff4757;
}

/* Empty Cart State */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0;
}

.cart-empty i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.cart-empty p {
    font-size: 1rem;
    max-width: 250px;
}

/* Drawer Footer */
.cart-drawer-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 10, 48, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.cart-summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
}

.cart-checkout-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--blue-gradient);
    color: var(--navy);
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1.2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: var(--transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    color: var(--navy);
}

.cart-checkout-btn i {
    font-size: 1.1rem;
}

/* Responsive adjustments for mobile drawer */
@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
    }
}

/* ==========================================================================
   6. CUSTOM PREMIUM HEADLESS CHECKOUT STYLES
   ========================================================================== */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.checkout-card {
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
    /* Gradient border — white interior */
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #0066ff 0%, #00e5ff 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 4px 24px rgba(0, 102, 255, 0.08), var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.checkout-card:hover {
    box-shadow: 0 8px 36px rgba(0, 102, 255, 0.16), var(--shadow-md);
}

.checkout-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 71, 171, 0.08);
    padding-bottom: 1rem;
}

.checkout-card h3 i {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.responsive-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(5, 10, 48, 0.15);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--navy);
    background: var(--bg-light);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

/* Payment Method Cards Selector */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.payment-method-card {
    border: 2px solid rgba(5, 10, 48, 0.08);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method-card i {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.payment-method-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
}

.payment-method-card:hover {
    border-color: rgba(0, 71, 171, 0.3);
    background: var(--bg-light);
}

.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(0, 71, 171, 0.03);
}

.payment-method-card.active i {
    color: var(--primary);
}

.payment-method-card.active span {
    color: var(--navy);
}
/* Accepted Payment Logos */
.accepted-payments-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 52px;
    padding: 6px 10px;
    background: var(--white);
    border: 1.5px solid rgba(5, 10, 48, 0.12);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

.payment-logo-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.payment-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.payment-logo-badge:hover {
    border-color: rgba(0, 71, 171, 0.3);
    box-shadow: 0 2px 8px rgba(0,71,171,0.12);
    transform: translateY(-1px);
}

.accepted-payments-logos-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.75rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 71, 171, 0.03);
    border: 1px solid rgba(0, 71, 171, 0.08);
}

.we-accept-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

/* Stunning Interactive Credit Card */
.card-preview-area {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.credit-card-wrapper {
    width: 100%;
    max-width: 400px;
    height: 240px;
    perspective: 1000px;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 2rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(5, 10, 48, 0.25);
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, #091353 0%, #120078 50%, #9d0191 100%);
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.card-back {
    background: linear-gradient(135deg, #9d0191 0%, #120078 50%, #091353 100%);
    transform: rotateY(180deg);
    padding: 2rem 0;
    justify-content: flex-start;
    gap: 1.5rem;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #f0d57b, #d4af37);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.4);
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px);
}

.card-logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    align-self: flex-end;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-number-display {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 1.2rem 0;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-magnetic-strip {
    height: 50px;
    background: #000;
    width: 100%;
}

.card-signature-area {
    padding: 0 2rem;
    width: 100%;
}

.signature-strip {
    height: 40px;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Order Summary Column */
.order-summary-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.summary-product-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 5px;
}

/* Webkit Scrollbar for Product List */
.summary-product-list::-webkit-scrollbar {
    width: 6px;
}
.summary-product-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
}
.summary-product-list::-webkit-scrollbar-thumb {
    background: rgba(5, 10, 48, 0.15);
    border-radius: var(--radius-full);
}

.summary-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 71, 171, 0.06);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(5, 10, 48, 0.05);
    flex-shrink: 0;
}

.summary-item-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.summary-item-details {
    flex-grow: 1;
    min-width: 0;
}

.summary-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.summary-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Promo Code */
.promo-code-wrap {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 71, 171, 0.08);
}

.promo-input-row {
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0, 71, 171, 0.2);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--navy);
    background: var(--bg-light);
    transition: border-color 0.2s;
    outline: none;
    text-transform: uppercase;
}

.promo-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.promo-input:disabled {
    background: #f0f4ff;
    color: #888;
    cursor: not-allowed;
}

.promo-apply-btn {
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    border: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-apply-btn:hover:not(:disabled) {
    background: #0066ff;
    transform: translateY(-1px);
}

.promo-apply-btn:disabled {
    cursor: default;
}

.promo-message {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 6px 10px;
}

.promo-success {
    background: rgba(46, 213, 115, 0.1);
    color: #1a9e55;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.promo-error {
    background: rgba(255, 71, 87, 0.08);
    color: #d63031;
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.promo-discount-row {
    color: #1a9e55 !important;
    font-weight: 600;
}

.promo-discount-row i {
    color: #2ed573;
    font-size: 0.85rem;
}

.summary-calc-rows {
    border-top: 1px solid rgba(0, 71, 171, 0.1);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
}

.calc-row.total-row {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    border-top: 1px solid rgba(0, 71, 171, 0.1);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.calc-row.total-row span:last-child {
    color: var(--primary);
}

.place-order-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-full);
    background: var(--blue-gradient);
    color: var(--navy);
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.place-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

/* Custom Bank-Grade Checkout Processing Overlay */
.secure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 48, 0.7);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.secure-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.secure-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 229, 255, 0.15);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.secure-overlay.active .secure-box {
    transform: scale(1);
}

.secure-header {
    margin-bottom: 2rem;
}

.secure-shield-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 71, 171, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2.5rem;
    border: 2px solid rgba(0, 71, 171, 0.1);
    position: relative;
}

.secure-shield-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ripple 2s linear infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.secure-box h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.secure-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.secure-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2.5rem 0;
    text-align: left;
}

.secure-step {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(5, 10, 48, 0.4);
    transition: var(--transition);
}

.secure-step i.step-icon {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(5, 10, 48, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: var(--transition);
}

.secure-step.loading {
    color: var(--navy);
}

.secure-step.loading i.step-icon {
    border-color: var(--primary);
    color: var(--primary);
    animation: stepSpin 1s linear infinite;
    border-style: dashed;
}

@keyframes stepSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.secure-step.complete {
    color: #2ed573;
}

.secure-step.complete i.step-icon {
    border-color: #2ed573;
    background: #2ed573;
    color: var(--white);
    border-style: solid;
}

.secure-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
}

.secure-footer-badge i {
    color: #2ed573;
}

/* ==========================================================================
   7. PREMIUM SUCCESS LANDING PAGE STYLES
   ========================================================================== */

.success-container {
    max-width: 650px;
    margin: 80px auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 71, 171, 0.05);
}

.success-icon-wrap {
    width: 100px;
    height: 100px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #2ed573;
    font-size: 3.5rem;
    border: 3px solid rgba(46, 213, 115, 0.2);
    position: relative;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #2ed573;
    animation: ripple 2.5s linear infinite;
}

.success-container h1 {
    font-size: 2.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.success-container p.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 450px;
    margin: 0 auto 2.5rem;
}

.receipt-card {
    background: var(--bg-light);
    border: 2px dashed rgba(5, 10, 48, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.receipt-row:last-child {
    margin-bottom: 0;
    border-top: 1px solid rgba(5, 10, 48, 0.08);
    padding-top: 1rem;
}

.receipt-label {
    font-weight: 600;
}

.receipt-val {
    font-weight: 700;
    color: var(--navy);
}

.receipt-val.price-highlight {
    color: var(--primary);
    font-size: 1.15rem;
}

.delivery-card {
    background: rgba(0, 71, 171, 0.02);
    border: 1px solid rgba(0, 71, 171, 0.06);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.delivery-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 71, 171, 0.06);
    border-radius: var(--radius-sm);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.delivery-info h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 2px;
}

.delivery-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.success-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .success-container {
        padding: 2.5rem 1.5rem;
    }
    .success-btn-group {
        flex-direction: column;
    }
}

/* Single Product Detail Page */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.product-detail-images {
    position: relative;
    background: #f8fbff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 71, 171, 0.05);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 520px;
}

.product-detail-images .level-badge {
    top: 1.5rem;
    right: 1.5rem;
}

.product-detail-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    border-radius: var(--radius-md);
}

.product-detail-images:hover img {
    transform: scale(1.08) rotate(-2deg);
}

/* Gallery layout & thumbnails */
.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
    min-width: 0;
}

.product-detail-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
}

.product-detail-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-detail-gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
}

.product-detail-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

.thumb-card {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    background: #f8fbff;
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 71, 171, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-card img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.thumb-card:hover img {
    transform: scale(1.08);
}

.thumb-card.active {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-category {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.product-detail-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-detail-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-detail-desc p {
    margin-bottom: 0.5rem;
}

.product-detail-desc p:last-child {
    margin-bottom: 0;
}

.product-selection-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-picker {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.size-pill {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 71, 171, 0.12);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--navy);
    background: var(--white);
}

.size-pill:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.size-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.25);
}

.size-pill.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    text-decoration: line-through;
    background: rgba(0, 0, 0, 0.03);
}

.qty-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.qty-picker-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(0, 71, 171, 0.12);
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--navy);
}

.qty-picker-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-picker-val {
    font-weight: 800;
    font-size: 1.25rem;
    min-width: 40px;
    text-align: center;
    color: var(--navy);
}

.product-action-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.1rem;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.2);
}

.btn-add-to-cart i {
    font-size: 1.1rem;
}

.product-guarantees {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 71, 171, 0.08);
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    flex: 1;
    min-width: 120px;
}

.guarantee-item i {
    color: #2ed573;
    font-size: 1.5rem;
}

.specs-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 71, 171, 0.08);
}

.specs-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2.5rem;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0, 71, 171, 0.06);
}

.spec-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 700;
    text-align: right;
}

/* Related Products */
.related-section {
    margin-top: 7rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(0, 71, 171, 0.08);
}

.related-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 3.5rem;
    text-align: center;
}

/* Clickable card pointer */
.product-card {
    cursor: pointer;
}

@media (max-width: 991px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-detail-images {
        height: 400px;
        padding: 2rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .product-detail-layout {
        gap: 2rem;
        margin-bottom: 3rem;
    }
    .product-detail-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .product-detail-price {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    .product-detail-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .product-guarantees {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 1.5rem;
    }
    .guarantee-item {
        min-width: 100%;
    }
}

/* Shipping Method & Province Selector Custom Styles */
select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23050A30'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.shipping-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.shipping-method-card {
    border: 2px solid rgba(5, 10, 48, 0.08);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.shipping-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shipping-method-card i {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.shipping-method-card span.method-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    transition: var(--transition);
}

.shipping-method-card span.method-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: var(--transition);
}

.shipping-method-card:hover {
    border-color: rgba(0, 71, 171, 0.3);
    background: var(--bg-light);
}

.shipping-method-card.active {
    border-color: var(--primary);
    background: rgba(0, 71, 171, 0.03);
}

.shipping-method-card.active i {
    color: var(--primary);
}

.shipping-method-card.active span.method-title {
    color: var(--primary);
}

/* Google Reviews & Carousel Layout Styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        text-align: center;
    }
}

.google-rating-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.google-rating-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.1);
}

.google-rating-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.google-rating-header svg.google-icon {
    width: 22px;
    height: 22px;
}

.google-rating-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.google-rating-body .rating-number {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.google-rating-body .rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.05rem;
    display: flex;
    gap: 3px;
}

.google-rating-body .review-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Carousel controls */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
    color: var(--white);
}

.carousel-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

@media (max-width: 1100px) {
    .carousel-nav.prev {
        left: -10px;
    }
    .carousel-nav.next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .carousel-nav {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        background: rgba(0, 71, 171, 0.75);
        top: calc(50% - 15px);
    }
    .carousel-nav.prev {
        left: -8px;
    }
    .carousel-nav.next {
        right: -8px;
    }
}

.reviews-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5rem 0;
    color: rgba(255, 255, 255, 0.7);
    gap: 1rem;
}

.reviews-loader i {
    font-size: 2.5rem;
    color: var(--primary);
}

.reviews-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Card Updates */
.testimonial-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.testimonial-card .review-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.testimonial-card .reviewer-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.testimonial-card .google-badge {
    font-size: 0.75rem;
    color: rgba(5, 10, 48, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.testimonial-card .google-badge i {
    color: #4285F4;
    font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE AUDIT OVERRIDES & UI REFINEMENTS
   ========================================================================== */

/* Fluid Typography & Page Header Heading Sizing */
.hero h1 {
    font-size: clamp(2.3rem, 8vw, 5.5rem) !important;
}
.page-header-title {
    font-size: clamp(2.2rem, 6vw, 4rem) !important;
    font-weight: 800;
    line-height: 1.1;
}
.section-title h2 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
}

/* Default Header (Transparent state on index.html) */
header:not(.scrolled) {
    background: transparent;
}
header:not(.scrolled) .logo {
    color: var(--white);
}
header:not(.scrolled) .nav-links a {
    color: var(--white);
}
header:not(.scrolled) .nav-actions i,
header:not(.scrolled) .mobile-toggle {
    color: var(--white);
}

/* Scrolled Header Style Overrides (Ensure dark navy readable contrast) */
header.scrolled .logo {
    color: var(--navy) !important;
}
header.scrolled .nav-links a {
    color: var(--navy) !important;
}
header.scrolled .nav-actions i,
header.scrolled .mobile-toggle {
    color: var(--navy) !important;
}

/* Touch Target Standardizations (Min 44px) */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
}
.cart-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}
@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex; /* Flex display on tablet/mobile */
    }
}

/* Mobile Menu Drawer Overlay Backdrop */
.nav-links-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 48, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001; /* just under navlinks drawer */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-links-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Nav links active drawer state */
@media (max-width: 1024px) {
    .nav-links {
        display: flex !important; /* Force flex display when visible */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -320px; /* Offscreen */
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: rgba(5, 10, 48, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0, 229, 255, 0.15);
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        z-index: 1002; /* higher than overlay */
        box-shadow: -10px 0 30px rgba(5, 10, 48, 0.5);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links.active {
        right: 0 !important;
    }
    .nav-links a,
    header.scrolled .nav-links a {
        font-size: 1.25rem;
        color: var(--white) !important; /* always white inside deep navy drawer */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0.75rem;
        width: 100%;
    }
    .nav-links a:hover,
    header.scrolled .nav-links a:hover {
        color: var(--cyan) !important;
        padding-left: 10px;
    }
    
    /* When drawer open, force toggle button on top and colored white */
    .mobile-toggle.active {
        position: relative;
        z-index: 1003;
        color: var(--white) !important;
    }
    
    /* Ensure header stacks above the body overlay when mobile menu is active */
    header.active-nav {
        z-index: 1005 !important;
    }
}

/* Shop Mobile Filter Drawer Overlay */
.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 48, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10001; /* just under filter drawer */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.filter-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Shop Filter Drawer Overrides */
@media (max-width: 1024px) {
    .sidebar {
        display: block !important; /* Override display: none */
        position: fixed;
        top: 0;
        left: -320px; /* Offscreen left */
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--white);
        box-shadow: 10px 0 30px rgba(5, 10, 48, 0.15);
        z-index: 10002; /* above overlay */
        padding: 2rem;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    .sidebar.active {
        left: 0 !important;
    }
    .sidebar-header {
        display: flex !important;
    }
}

/* Filter Header */
.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.sidebar-header h3 {
    margin: 0;
    font-weight: 800;
    color: var(--navy);
}
.close-filters {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

/* Shop controls and sorting header layout */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.mobile-filter-btn {
    display: none;
    height: 44px;
    padding: 0 1.5rem;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .mobile-filter-btn {
        display: inline-flex;
    }
    .shop-header-actions {
        justify-content: space-between;
        width: 100%;
        flex: none;
    }
    .search-bar {
        flex: 1;
        min-width: 200px;
    }
    .sort-select {
        min-width: 150px;
        height: 44px;
        padding: 0 1rem;
        border-radius: var(--radius-sm);
        border: 1px solid #ddd;
        outline: none;
    }
}

@media (max-width: 576px) {
    .shop-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .mobile-filter-btn, .search-bar, .sort-select {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile layout grid stacking adjustments */
@media (max-width: 768px) {
    .workshop-section {
        padding: 4rem 1.5rem !important;
        margin: 2rem 1rem !important;
        border-radius: 24px !important;
    }
    .tech-card {
        padding: 2.5rem 1.5rem !important;
    }
    .booking-form-premium {
        padding: 2rem 1.25rem !important;
    }
    .secure-box {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .product-detail-images {
        height: 280px !important;
        padding: 1rem !important;
    }
    .admin-layout {
        padding: 0 1rem !important;
        margin-top: 100px !important;
    }
    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .dashboard-title h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }
}

@media (max-width: 1024px) {
    .order-summary-sidebar {
        position: static !important;
        height: auto !important;
    }
    .order-summary-sidebar .checkout-card {
        position: static !important;
    }
}

@media (max-width: 600px) {
    .checkout-card {
        padding: 1.5rem 1rem !important;
    }
}





