:root {
    --shoppi-orange: #f7931e;
    --shoppi-orange-dark: #e8841b;
    --shoppi-navy: #2d324c;
    --shoppi-navy-light: #3d4466;
    --shoppi-red: #ff4757;
    --shoppi-red-dark: #ee3a4a;
    --bg-light: #f8fafc;
    --border-radius-lg: 24px;
    --shadow-premium: 0 10px 40px rgba(0,0,0,0.03);
}
/* SHOPPI RESET: KILLING CONFLICTS & DUPLICATES */
body {
    background-color: var(--bg-light) !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    overflow-x: hidden;
}

ul, li { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

a { 
    text-decoration: none !important; 
    color: inherit; 
}

/* HIDE THE INFAMOUS MOBILE TRASH & DUPLICATES */
.mobile-menu, 
.mobile-menu-overlay, 
.hamburger-menu,
.navbar-mobile-right,
.mobile-menu-item,
footer:nth-of-type(2) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

.d-none { display: none !important; }

/* FontAwesome 6 Override - Force Font Family */
.fas, .fa-solid { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
.far, .fa-regular { font-family: "Font Awesome 6 Free" !important; font-weight: 400 !important; }

/* Fix for AI Search robot icon */
.ai-assistant-toggle i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
/* SHOPPI NAVBAR: PREMIUM HEADER & CART */
.search-top-bar {
    background: var(--shoppi-navy) !important;
    color: white !important;
    padding: 10px 0 !important;
}
.search-top-bar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.search-top-bar a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    margin-left: 20px !important;
}

.navbar {
    background: white !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}
.navbar .container {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

.navbar-brand img {
    height: 42px !important;
    width: auto !important;
}

/* SEARCH BAR ICONS & WRAPPER */
.navbar-search {
    flex-grow: 1 !important;
    max-width: 650px !important;
}
.search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border-radius: 50px !important;
    padding: 0 15px !important;
}
.search-input {
    border: none !important;
    background: transparent !important;
    padding: 14px 10px !important;
    flex-grow: 1 !important;
    font-size: 15px !important;
}

.search-input-wrapper i {
    color: var(--shoppi-navy) !important;
    opacity: 0.5;
    transition: all 0.3s ease !important;
}

.ai-assistant-toggle label, .passport-btn {
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#aiSearchToggle:checked + label i {
    color: var(--shoppi-orange) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* PREMIUM CART (MATCHING HOME) */
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.nav-cart {
    position: relative !important;
    background: #f1f5f9 !important;
    border-radius: 50px !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
.nav-cart:hover {
    background: white !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}
.nav-cart i {
    color: var(--shoppi-navy) !important;
    font-size: 1.2rem !important;
    opacity: 1 !important;
}

.cart-count {
    position: absolute !important;
    background: var(--shoppi-red) !important;
    color: white !important;
    border-radius: 50px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-width: 18px !important;
    height: 18px !important;
    top: -5px;
    right: -8px;
    padding: 3px 6px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 6px rgba(255, 71, 87, 0.3) !important;
}

/* Cart Drawer Overrides */
.ls-cart-drawer img,
.cart-drawer img,
.shoppi-cart-item img,
.cart-item-image img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
}

.btn-nav-primary {
    background: var(--shoppi-red) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}
.btn-nav-primary:hover {
    background: var(--shoppi-red-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3) !important;
}
/* SHOPPI GRID: TABS, CATEGORIES, VIEW CONTROLS, GRID LAYOUT */
.search-tabs-container {
    background: white !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.search-tabs {
    display: flex !important;
    gap: 20px !important;
    padding: 15px 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}
.search-tabs::-webkit-scrollbar { display: none !important; }

.search-tab {
    padding: 10px 24px !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    background: #f1f5f9 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.3s !important;
}
.search-tab.active {
    background: var(--shoppi-orange) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.2) !important;
}

.category-container {
    padding: 10px 0 30px !important;
}
#categoryScroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 10px 0 !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}
#categoryScroll::-webkit-scrollbar { display: none !important; }

.no-scrollbar::-webkit-scrollbar { display: none !important; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.category-chip {
    padding: 8px 18px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.category-chip.active {
    background: var(--shoppi-navy) !important;
    color: white !important;
    border-color: var(--shoppi-navy) !important;
}

/* VIEW CONTROLS */
.view-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 25px !important;
    background: white !important;
    border-radius: 20px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

/* PRODUCT GRID */
#product-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    align-items: stretch !important;
}

@media (max-width: 1400px) { #product-container.grid-view { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; } }
@media (max-width: 1100px) { #product-container.grid-view { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 800px) { #product-container.grid-view { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { #product-container.grid-view { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; } }

/* SKELETON LOADERS */
.skeleton-card {
    background: white !important;
    border-radius: 24px !important;
    height: 400px !important;
    padding: 20px !important;
}
/* 
   SHOPPI SEARCH PREMIUM REDESIGN: ATOMIC CSS 
   Force-applying premium styles to search cards.
*/

/* 1. RESET & CONTAINER */
.shoppi-search-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    padding: 20px 0 !important;
    width: 100% !important;
}

@media (max-width: 1200px) { .shoppi-search-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 992px) { .shoppi-search-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 576px) { .shoppi-search-grid { grid-template-columns: 1fr !important; } }

/* 2. THE CARD (ULTRA-SPECIFIC) */
html body .shoppi-premium-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 480px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    color: inherit !important;
}

html body .shoppi-premium-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
    border-color: rgba(247, 147, 30, 0.3) !important;
    z-index: 5 !important;
}

/* 3. IMAGE WRAPPER */
.spc-image-wrapper {
    position: relative !important;
    padding-top: 100% !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
}

.spc-image-wrapper img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: contain !important;
    padding: 20px !important;
    transition: transform 0.6s ease !important;
}

.shoppi-premium-card:hover .spc-image-wrapper img {
    transform: scale(1.1) !important;
}

/* 4. CONTENT AREA */
.spc-content {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
}

.spc-merchant {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
}
.spc-merchant i { color: #f7931e !important; margin-right: 5px !important; }

.spc-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0d1b3e !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    height: 48px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.spc-price-box {
    margin-top: auto !important;
    margin-bottom: 20px !important;
}
.spc-price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #f7931e !important;
}
.spc-old-price {
    font-size: 14px !important;
    color: #cbd5e1 !important;
    text-decoration: line-through !important;
    margin-left: 8px !important;
}

/* 5. ACTIONS */
.spc-actions {
    display: flex !important;
    gap: 10px !important;
}

.spc-btn-buy {
    flex-grow: 1 !important;
    background: linear-gradient(135deg, #f7931e 0%, #ff7849 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.2) !important;
    transition: all 0.3s !important;
}
.spc-btn-buy:hover {
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.4) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.spc-btn-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0d1b3e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}
.spc-btn-icon:hover {
    border-color: #f7931e !important;
    color: #f7931e !important;
    background: #fffaf5 !important;
}

/* 6. BADGES & HEART */
.spc-heart {
    position: absolute !important;
    top: 15px !important; right: 15px !important;
    width: 40px !important; height: 40px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    color: #cbd5e1 !important;
    z-index: 10 !important;
    border: none !important;
}
.spc-heart.active { color: #ff4757 !important; }

.spc-discount {
    position: absolute !important;
    top: 15px !important; left: 15px !important;
    background: #ff4757 !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    z-index: 10 !important;
}
/* SHOPPI FILTERS: SIDEBAR DRAWER */
.filter-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 380px !important;
    height: 100% !important;
    background: white !important;
    z-index: 3000 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
}

.filter-drawer.open {
    transform: translateX(0) !important;
}

.filter-header {
    padding: 20px !important;
    background: var(--shoppi-navy) !important;
    color: white !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.filter-header h3 {
    margin: 0 !important;
    color: white !important;
    font-size: 18px !important;
}

.filter-body {
    padding: 25px !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
}

.filter-section {
    margin-bottom: 25px !important;
}

.section-title {
    display: block !important;
    font-weight: 700 !important;
    color: var(--shoppi-navy) !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

.filter-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 2999 !important;
    display: none !important;
}

.filter-overlay.open {
    display: block !important;
}

.filter-footer {
    padding: 20px !important;
    border-top: 1px solid #eee !important;
}
