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

:root {
    --brand-accent: #EE7017; /* Orange */
    --brand-darkest: #1A0538; /* Deepest Purple */
    --brand-primary: #381565; /* Mid Purple */
    --brand-light: #9E5DD1; /* Light Purple */
    --bg-white: #FEFEFE; /* Clean White */
    
    --text-dark: #1A0538;
    --text-muted: #6b7280;
    --bg-light: #f4f5f7;
    --border-light: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-white); color: var(--text-dark); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* TWO-TIER CORPORATE HEADER */
.corporate-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; flex-direction: column; }
.top-bar { background: var(--brand-primary); color: var(--bg-white); padding: 8px 0; font-size: 0.85rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--bg-white); transition: 0.3s; }
.social-icons a:hover { color: var(--brand-accent); }
.quick-links { display: flex; gap: 24px; }
.quick-links a { color: var(--bg-white); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s;}
.quick-links a:hover { color: var(--brand-accent); }

.main-bar { background: var(--bg-white); box-shadow: 0 4px 15px rgba(26, 5, 56, 0.08); padding: 15px 0; border-bottom: 3px solid var(--brand-accent); }
.main-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-logo-dark { display: flex; align-items: center; text-decoration: none; }
.brand-logo-dark img { height: 60px; width: auto; object-fit: contain; }

.main-nav { display: flex; gap: 32px; align-items: center; }
.nav-item { color: var(--brand-darkest); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.3s; display: flex; align-items: center; gap: 5px;}
.nav-item:hover { color: var(--brand-accent); }

.main-actions { display: flex; align-items: center; gap: 25px; }
.action-link { color: var(--brand-primary); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px;}
.cart-icon { position: relative; }
.cart-icon .badge { position: absolute; top: -10px; right: -15px; background: var(--brand-accent); color: var(--bg-white); font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; }
.btn-primary-solid { background: var(--brand-primary); color: var(--bg-white); padding: 10px 24px; border-radius: 4px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-primary-solid:hover { background: var(--brand-darkest); }

/* HERO SECTION */
.hero-cinematic { height: 250vh; position: relative; background: var(--brand-darkest); margin-top: 110px; }
.hero-sticky-container { position: sticky; top: 110px; height: calc(100vh - 110px); width: 100%; overflow: hidden; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.7; mix-blend-mode: screen; }
.hero-overlay { position: absolute; z-index: 5; width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }

.hero-content { max-width: 650px; background: rgba(26, 5, 56, 0.6); padding: 40px; border-radius: 16px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
#variant-subtitle { color: var(--brand-accent); font-weight: 800; letter-spacing: 3px; font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; }
#variant-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--bg-white); letter-spacing: -1px; }
#variant-desc { font-size: 1.1rem; color: #e5e7eb; margin-bottom: 30px; line-height: 1.6; }

.hero-ctas { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-ctas .btn-solid { background: var(--brand-accent); color: var(--bg-white); padding: 15px 35px; border-radius: 4px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; text-transform: uppercase;}
.hero-ctas .btn-solid:hover { background: var(--brand-light); }

.hero-nav { display: flex; flex-direction: column; align-items: center; gap: 15px; }
#variant-index { font-size: 6rem; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.3); }
.glass-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--bg-white); width: 60px; height: 60px; border-radius: 50%; cursor: pointer; font-weight: 800; transition: 0.3s; display:flex; flex-direction: column; align-items:center; justify-content:center; }
.glass-btn:hover { background: var(--brand-accent); border-color: var(--brand-accent); transform: scale(1.1); }

/* RESOLUTE STYLE SHOP GRID */
.shop-header { text-align: center; margin-bottom: 50px; padding: 40px; background: var(--bg-light); border-radius: 16px; border-left: 5px solid var(--brand-accent); }
.page-title { font-size: 3rem; font-weight: 900; color: var(--brand-darkest); }
.page-title span { color: var(--brand-accent); }

.product-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.product-card-light { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(26,5,56,0.05); transition: 0.3s; border: 1px solid var(--border-light); display: flex; flex-direction: column;}
.product-card-light:hover { box-shadow: 0 15px 30px rgba(26,5,56,0.1); transform: translateY(-5px); border-color: var(--brand-light); }
.product-img-wrapper { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #fff; padding: 20px; display: flex; align-items: center; justify-content: center;}
.product-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.4s; }
.product-card-light:hover .product-img-wrapper img { transform: scale(1.05); }

.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; border-top: 1px solid var(--border-light); background: #fafafa;}
.cat-tag { font-size: 0.75rem; color: var(--brand-light); text-transform: uppercase; font-weight: 700; margin-bottom: 8px;}
.product-info h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; line-height: 1.3;}
.product-info h3 a { color: var(--brand-darkest); text-decoration: none; }
.product-info h3 a:hover { color: var(--brand-accent); }
.price-action-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; }
.price-action-row .price { font-weight: 800; font-size: 1.2rem; color: var(--brand-primary); }
.add-to-cart-btn { background: var(--brand-primary); color: var(--bg-white); border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; transition: 0.3s; font-weight: bold;}
.add-to-cart-btn:hover { background: var(--brand-accent); }

/* ABOUT US POSTER & TEAM */
.about-poster { background: var(--brand-darkest); color: var(--bg-white); padding: 60px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-left: 8px solid var(--brand-accent); margin-bottom: 60px; }
.about-poster p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; color: #e5e7eb; }
.about-poster ul { margin-left: 20px; margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; color: var(--brand-light); font-weight: 600;}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-card { text-align: center; background: var(--bg-white); padding: 30px; border-radius: 12px; border: 1px solid var(--border-light); }
.team-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-light); margin-bottom: 15px; }
.team-card h3 { color: var(--brand-darkest); font-size: 1.2rem; margin-bottom: 5px; }
.team-card p { color: var(--brand-accent); font-weight: 600; margin-bottom: 10px; }
.team-card a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }

/* FOOTER */
.main-footer { background: var(--brand-darkest); color: var(--bg-white); padding: 60px 0 20px; margin-top: 80px; border-top: 5px solid var(--brand-primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--brand-accent); margin-bottom: 20px; text-transform: uppercase; font-size: 1rem; }
.footer-col a, .footer-col p { color: #d1d5db; text-decoration: none; margin-bottom: 10px; display: block; font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand-light); }
/* =========================================================
   RESTORING BROKEN GRIDS ("Our Offering")
   ========================================================= */
.grid-3 { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    width: 100%;
}
.feature-card-clickable { 
    display: block; 
    text-decoration: none; 
    background: var(--bg-white); 
    padding: 50px 40px; 
    border-radius: 12px; 
    border: 2px solid var(--border-light); 
    box-shadow: 0 4px 15px rgba(26,5,56,0.05); 
    transition: all 0.4s ease; 
    color: var(--text-dark);
    position: relative;
}
.feature-card-clickable:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(238, 112, 23, 0.15); 
    border-color: var(--brand-accent); 
}
/* =========================================================
   HEADER DROPDOWN MENUS
   ========================================================= */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--bg-white); min-width: 200px;
    box-shadow: 0 15px 30px rgba(26, 5, 56, 0.1); border-radius: 8px;
    border: 1px solid var(--border-light); z-index: 1001; overflow: hidden;
}
.dropdown-content a {
    color: var(--brand-darkest); padding: 15px 20px; text-decoration: none;
    display: block; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--border-light); transition: 0.3s;
}
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--brand-accent); padding-left: 25px; }
.nav-dropdown:hover .dropdown-content { display: block; animation: slideDown 0.3s ease forwards; }

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

/* =========================================================
   STRICT MOBILE RESPONSIVENESS (Fixing the broken UI)
   ========================================================= */
@media (max-width: 990px) {
    .top-bar { display: none; } 
    .main-nav { display: none; } 
    .main-actions .action-link { display: none; } 
    .main-actions .cart-icon { display: flex; } 
    
    .hero-cinematic { height: auto; min-height: 100vh; margin-top: 80px; }
    .hero-sticky-container { position: relative; top: 0; height: auto; overflow: visible; }
    #hero-canvas { display: none; } 
    
    .hero-overlay { position: relative; padding: 120px 5% 60px; background: var(--brand-darkest); }
    .hero-content { width: 100%; text-align: center; padding: 30px 20px; }
    .hero-ctas { justify-content: center; }
    .hero-nav { display: none; } 
    
    #variant-title { font-size: 2.5rem; }
    
    .grid-3 { grid-template-columns: 1fr; } 
    .product-grid-4 { grid-template-columns: 1fr; } 
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .about-poster { padding: 30px; }
}
/* =========================================================
   RESOLUTE-STYLE CREATIVE FLAIR
   ========================================================= */
.btn-primary-solid {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary-solid::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--brand-accent), transparent);
    z-index: -1; opacity: 0; transition: opacity 0.4s ease;
}
.btn-primary-solid:hover::after { opacity: 1; }

/* =========================================================
   FIXED TEAM PHOTOS
   ========================================================= */
.team-img { 
    width: 150px !important; 
    height: 150px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    flex-shrink: 0; 
    margin: 0 auto 15px auto;
    display: block;
}

/* =========================================================
   MOBILE HAMBURGER MENU
   ========================================================= */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--brand-darkest);
    cursor: pointer;
}

@media (max-width: 990px) {
    .mobile-menu-toggle { display: block; }
    .top-bar { display: none; }
    
    .main-nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
        border-top: 1px solid var(--border-light);
    }
    
    .main-nav.active { display: flex; }
    
    .nav-item { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--border-light); justify-content: space-between;}
    .nav-dropdown { width: 100%; }
    .dropdown-content { position: static; box-shadow: none; border: none; background: var(--bg-light); border-radius: 0; padding-left: 15px;}
    
    .main-actions .action-link { display: none; } 
    .main-actions .cart-icon { display: flex; margin-right: 15px; }
    .main-actions { justify-content: flex-end; }
}

/* =========================================================
   SWAGFUL PRODUCT CAROUSEL
   ========================================================= */
.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-track {
    display: flex; gap: 30px; overflow-x: auto; scroll-behavior: smooth;
    padding: 20px 10px; scrollbar-width: none; -ms-overflow-style: none; flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card { flex: 0 0 calc(25% - 22.5px); min-width: 260px; }

.carousel-btn {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    color: var(--bg-white); border: none; width: 55px; height: 55px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; box-shadow: 0 8px 20px rgba(238, 112, 23, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover {
    transform: translateY(-50%) scale(1.15); 
    box-shadow: 0 15px 30px rgba(56, 21, 101, 0.5); 
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-darkest));
}
.carousel-btn:active { transform: translateY(-50%) scale(0.95); }

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

@media (max-width: 1024px) { .carousel-card { flex: 0 0 calc(33.333% - 20px); } }
@media (max-width: 900px) {
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    .carousel-card { flex: 0 0 calc(50% - 15px); }
    .carousel-btn { width: 45px; height: 45px; font-size: 1.1rem; }
    .carousel-track { padding: 20px 50px; }
}
@media (max-width: 600px) { .carousel-card { flex: 0 0 100%; } }

body { overflow-x: clip; width: 100%; }

/* =========================================================
   NEW MOBILE FIXES (Tables, Search, Dropdowns)
   ========================================================= */
.table-responsive {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; display: block;
}

@media (max-width: 990px) {
    .main-actions .search-icon-mobile { display: flex !important; align-items: center; }
    .main-actions .search-icon-mobile span { display: none; }
    .nav-dropdown.active-mobile .dropdown-content { display: block !important; animation: none; margin-top: 5px; }
}

/* =========================================================
   UNIVERSAL MOBILE OVERFLOW FIX (V4 - Catches missing <form> tags)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Smash all side-by-side flex/grid layouts inside main content area */
    main div[style*="flex"],
    main div[style*="grid"],
    section div[style*="flex"],
    section div[style*="grid"],
    .grid-2, 
    .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important;
    }

    /* 2. Force ALL inputs universally to obey screen boundaries */
    main input,
    main select, 
    main textarea,
    section input,
    section select,
    section textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }

    /* 3. Ensure the white card itself is physically constrained */
    main div[style*="background: white"],
    main div[style*="background: #fff"],
    section div[style*="background: white"],
    .form-box,
    .feature-card-clickable {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Hard clip to prevent bleeding */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 4. Fix body overflow globally */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}