:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --accent: #2563eb;
    --text-main: #020617;
    --text-muted: #475569;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* --- Header --- */
.top-banner {
    background: #cc0000;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    color: var(--text-muted);
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

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

.cart-icon {
    position: relative;
    font-size: 1.6rem;
    /* Increased from 1.25rem */
    color: var(--text-main);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #dc2626;
    /* Red */
    color: white;
    font-size: 0.9rem;
    padding: 1px 6px;
    border-radius: 50%;
    font-weight: 800;
}

.btn-login {
    background: var(--bg-alt);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

/* --- Components --- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

.badge-best-seller {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

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

.footer-col ul a {
    color: #94a3b8;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 2rem;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Hero Section --- */
.hero-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-img {
    display: flex;
    justify-content: center;
}

.hero-img img {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
}

/* --- Category Section --- */
.category-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cat-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

/* --- PDP & Catalog Components --- */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Desktop: 50% Image, 50% Content */
    gap: 4rem;
    padding: 60px 0;
    align-items: start;
    /* Align top */
}

/* Mobile: Stack columns */
@media (max-width: 992px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        /* Mobile: 100% width stacking */
        gap: 2rem;
        padding: 40px 0;
    }

    .pdp-gallery {
        margin-bottom: 1rem;
    }
}

.pdp-img {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-img img {
    width: 100%;
    max-width: 500px;
}

.pdp-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pdp-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pdp-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.spec-item {
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    font-size: 0.9rem;
}

.spec-item strong {
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
}

.pdp-variants {
    margin-bottom: 3rem;
}

.variant-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.v-opt {
    border: 2px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    background: white;
    transition: all 0.2s;
}

.v-opt.active {
    border-color: var(--primary);
    color: var(--primary);
    border-width: 2px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 50px 0;
}

.filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.variant-selector {
    margin-bottom: 1.5rem;
}

.variant-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.variant-btn {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: white;
    text-align: center;
    transition: all 0.2s;
}

.variant-btn.active {
    border-color: var(--primary);
    background: #fdf2f2;
    color: var(--primary);
}

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

.price-val {
    font-size: 1.5rem;
    font-weight: 900;
}

.price-vat {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.cat-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Virtual Warehouse Hero --- */
/* --- Virtual Warehouse Hero (Light Studio Theme) --- */
.warehouse-scene {
    position: relative;
    width: 100%;
    height: 450px;
    background: radial-gradient(circle at 50% 100%, #ffffff, #f8fafc);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.warehouse-shelf {
    position: absolute;
    bottom: 0;
    width: 90%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    margin-bottom: 40px;
}

.warehouse-shelf::after {
    display: none;
}

.product-group {
    display: flex;
    align-items: flex-end;
    gap: -15px;
    margin-bottom: 52px;
    z-index: 5;
    transform-style: preserve-3d;
}

.product-group img {
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Perspective sizes */
.reel-small {
    width: 160px;
    z-index: 3;
    transform: translateX(30px) scale(0.9);
}

.reel-medium {
    width: 200px;
    z-index: 4;
}

.reel-large {
    width: 240px;
    z-index: 2;
    transform: translateX(-30px) scale(0.95);
    filter: brightness(0.98);
}

@media (max-width: 768px) {
    .warehouse-scene {
        height: 350px;
    }

    .reel-small {
        width: 100px;
        transform: translateX(15px) scale(0.9);
    }

    .reel-medium {
        width: 130px;
    }

    .reel-large {
        width: 160px;
        transform: translateX(-15px) scale(0.95);
    }

    .product-group {
        margin-bottom: 50px;
    }
}

/* --- PDP Gallery --- */
.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-img-container img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb.active {
    border-color: var(--primary);
}

/* --- Hero Carousel --- */
.hero-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3rem;
    justify-content: center;
    /* Center items if they don't overflow */
}

/* Hide scrollbar */
.hero-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    width: 100%;
}

.carousel-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 0;
    /* Allow shrinking */
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Mobile: Revert to scrolling flex */
@media (max-width: 768px) {
    .hero-carousel {
        justify-content: flex-start;
    }

    .carousel-track {
        display: flex;
        gap: 1rem;
    }

    .carousel-item {
        flex: 0 0 200px;
    }
}



.carousel-item span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

/* --- Recommendation Section --- */
.recommend-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.recommend-container {
    background: var(--bg-alt);
    padding: 4rem;
    border-radius: var(--radius);
    text-align: center;
}

.recommend-container h2 {
    margin-bottom: 1rem;
}

.recommend-container p {
    margin: 0 auto 2rem;
    max-width: 600px;
}

.recommend-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.recommend-form input {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .recommend-form {
        flex-direction: column;
    }

    .recommend-container {
        padding: 2rem 1.5rem;
    }
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
        margin-bottom: 2rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        background: var(--bg-alt);
        padding: 2rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }

    .hero-grid,
    .pdp-grid,
    .story-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-text h1 {
        font-size: 2.5rem !important;
    }

    .hero-text p {
        font-size: 1.1rem !important;
    }

    .spec-grid {
        grid-template-columns: 1fr !important;
    }

    .pdp-img {
        max-width: 400px;
        margin: 2rem auto;
        padding: 2rem;
    }

    .hero-banner,
    .category-section,
    .about-hero {
        padding: 50px 0 !important;
    }

    .pdp-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header {
        height: auto;
        padding: 1rem 0;
        position: relative;
    }

    header .container {
        flex-direction: row;
        /* Keep row for Logo + Actions */
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        /* Allow nav to break to new line */
    }

    .header-actions {
        width: auto;
        justify-content: flex-end;
        gap: 1rem;
    }

    .btn-login {
        display: none;
        /* Hide full login button on strict mobile, maybe show icon instead? Or keep if space permits. Let's keep for now but potentially hide text. */
    }

    /* Mobile Menu Toggle */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-main);
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Mobile Nav */
    nav {
        display: none;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        margin-top: 1rem;
        animation: slideDown 0.3s ease-out;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-alt);
        color: var(--text-main);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

/* Hide toggle on desktop */
.mobile-menu-btn {
    display: none;
}

/* VAT Toggle Styles */
.vat-toggle {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s ease;
}

.vat-toggle:hover {
    color: var(--primary) !important;
}

.vat-inc {
    color: var(--text-muted);
}

/* Flashing Promo Text */
@keyframes flashText {
    0% {
        color: #dc2626;
        opacity: 1;
    }

    50% {
        color: #dc2626;
        opacity: 0.4;
    }

    100% {
        color: #dc2626;
        opacity: 1;
    }
}

.flashing-promo {
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    animation: flashText 1.5s infinite ease-in-out;
    color: #dc2626;
    /* Red Base */
    display: inline-block;
}