/* 
 * CasyBazar Design System
 * Theme Color: #FFE15A
 */

:root {
    /* Colors */
    --primary: #FFE15A; 
    --primary-dark: #E6CB51;
    --success: #27ae60;
    --price-red: #e74c3c;
    --secondary: #111111;
    --text-dark: #1c1e21;
    --text-light: #606770;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #f1f1f1;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 70px;
    --footer-nav-height: 65px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
    transition: 0.2s ease;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Global Product Grid */
.home-product-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
    padding: 15px 0;
}
@media (min-width: 768px) {
    .home-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .home-product-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Product Card - Professional Compact */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.product-card:hover .product-image-box img {
    transform: scale(1.1);
}

.product-info-compact {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.product-name-sm {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cur-price-sm {
    font-size: 1rem;
    font-weight: 900;
    color: var(--price-red);
}

.old-price-sm {
    font-size: 0.7rem;
    color: #999;
    text-decoration: line-through;
}

.add-btn-sm {
    background: var(--primary);
    color: #000;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    transition: 0.3s;
}

.add-btn-sm:hover {
    background: #111;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.25rem;
    transition: 0.2s;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wishlist-btn.active {
    color: var(--price-red);
}

/* Sticky Bottom Nav (Ghorer Bazar Style) */
.sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 0 4px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #000;
    flex: 1;
    text-decoration: none;
    gap: 2px;
    padding: 5px 0;
    position: relative;
    transition: 0.2s;
    text-transform: uppercase;
}

.nav-item i {
    font-size: 1.4rem;
    line-height: 1;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #000;
    border-radius: 50%;
}

/* Sidebar & Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    display: none;
}

.overlay.active {
    display: block;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Global Header Enhancements */
header {
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    position: relative; /* Base for absolute logo */
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-actions {
        position: absolute;
        right: 15px;
        display: flex;
        gap: 15px; /* Tighter gap */
        align-items: center;
        color: #333;
    }
    .header-actions a {
        font-size: 1.4rem;
        position: relative;
    }
    .header-actions .cart-count {
        position: absolute;
        top: -6px;
        right: -8px;
        background: var(--primary);
        color: #000;
        min-width: 17px;
        height: 17px;
        border-radius: 50%;
        font-size: 0.65rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #fff;
    }
    .menu-trigger {
        position: absolute;
        left: 5px;
        font-size: 1.6rem;
        background: none;
        border: none;
        color: #111 !important; 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        z-index: 10;
        cursor: pointer;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 36px;
    transition: 0.3s;
}

/* Universal Footer */
.store-footer {
    background: #111;
    color: #fff;
    padding: 40px 20px 100px;
    text-align: center;
    border-top: 5px solid var(--primary);
}

.store-footer h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.store-footer .f-block {
    margin-bottom: 25px;
}

.store-footer p, .store-footer a {
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.8;
}

.store-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.store-footer .social-icons a {
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s;
}

.store-footer .social-icons a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

/* Sticky Floating Cart */
/* Compact Sticky Floating Cart */
.sticky-cart-btn {
    position: fixed;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px 0 0 10px;
    z-index: 1500;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: -5px 5px 25px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    border-right: none;
    min-width: 60px;
}

.fc-top {
    background: var(--primary);
    color: #000;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    width: 100%;
}

.fc-top i {
    font-size: 1.1rem !important;
}

.fc-top span {
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.fc-bottom {
    background: #fff;
    color: var(--price-red);
    padding: 3px 4px;
    width: 100%;
    text-align: center;
    font-weight: 900;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Professional Sidebar - Ultra Compact */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;  /* More compact width */
    width: 260px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}

.sidebar-header {
    background: var(--primary); /* Orange Card */
    padding: 25px 20px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    border-radius: 0 0 20px 20px;
    margin-bottom: 10px;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    opacity: 0.7;
}

.sidebar-avatar {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.sidebar-greeting h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.sidebar-greeting span {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Sidebar Submenu Accordion */
.sidebar-submenu {
    display: none;
    background: #fcfcfc;
    border-left: 3px solid var(--primary);
}

.sidebar-submenu .side-link-pro {
    padding-left: 45px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.side-link-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid #f9f9f9;
}

.side-link-pro i {
    font-size: 0.8rem;
    color: #ccc;
}

.quick-links-section {
    padding-top: 15px;
}

.quick-links-title {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #555;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.quick-link-item i {
    width: 20px;
    font-size: 1.1rem;
    color: #888;
}

.sidebar-content ul li a {
    padding: 12px 18px;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.sidebar-content ul li a:hover {
    background: #fffcf0;
    color: var(--primary-dark);
    padding-left: 25px;
}

/* Multi-Banner Slider */
.hero-slider {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Category Sections */
.category-card-new {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.category-card-new:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Inline Search Overlay */
.search-overlay {
    position: fixed;
    top: -100%; /* Start off-screen */
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,1);
    z-index: 5000;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.search-overlay.active {
    top: 0; 
}

.search-bar-wrap {
    padding-top: 60px; /* Space for logo/close button */
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-pro {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
    background: #f9f9f9;
}

.search-input-pro:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.search-tags-container {
    margin-top: 25px;
    padding: 0 10px;
}

.search-tags-container h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 800;
}

.search-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overlay-tag {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.overlay-tag:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary-dark);
}

.search-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f9f9f9;
    object-fit: contain;
}

.search-result-info p {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.search-result-info span {
    color: var(--price-red);
    font-weight: 800;
    font-size: 0.8rem;
}

.search-highlight {
    background: #fff3bf; /* Soft yellow highlight */
    color: #000;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 2px;
}

.search-clear-btn {
    position: absolute;
    right: 55px;
    top: 18px;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
}

.search-clear-btn.active {
    display: block;
}

.recent-searches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-searches-header button {
    background: none;
    color: var(--price-red);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.4s ease forwards;
}

/* Professional Sticky Action Bars */
.sticky-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    z-index: 1500;
    display: flex;
    gap: 12px;
}

.sticky-actions-bar .btn-primary {
    flex: 1;
    height: 55px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 225, 90, 0.4);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--primary);
    color: #333;
}

/* Floating WhatsApp Widget */
.whatsapp-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1400;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
}

.side-link-pro {
    display: flex; align-items: center; gap: 15px; padding: 12px; margin-bottom: 8px;
    border-radius: 12px; font-weight: 600; color: #333; text-decoration: none; transition: 0.2s;
}

/* Compact Upsell Styles */
.upsell-item-card-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.upsell-item-card-compact:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.upsell-img-wrap {
    width: 50px;
    height: 50px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.upsell-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upsell-info-wrap {
    flex: 1;
    min-width: 0;
}

.upsell-item-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.upsell-item-price {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary);
}

.upsell-add-btn-sm {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.upsell-item-card-compact:hover .upsell-add-btn-sm {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}
.side-link-pro:hover {
    background: var(--primary);
    color: #000;
}
.side-link-pro .icon-box {
    width: 38px; height: 38px; border-radius: 10px; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: #111; transition: 0.2s;
}
.side-link-pro:hover .icon-box {
    background: #fff;
    color: #000;
}

/* Section Layouts */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 30px 15px 15px;
    text-align: center;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.view-all {
    font-size: 0.75rem;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(255, 225, 90, 0.3);
}

.view-all:hover {
    background: #000;
    color: var(--primary);
}

/* Category Slider System */
.category-slider-wrap {
    overflow-x: auto;
    padding: 10px 15px;
    display: flex;
    gap: 12px;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
}

.category-slider-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-card-premium {
    min-width: 90px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.category-card-premium .img-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #f0f0f0;
    padding: 5px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.category-card-premium:hover .img-wrapper {
    border-color: var(--primary);
    transform: scale(1.08);
}

.category-card-premium span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Secure Checkout Header */
.checkout-header {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    text-align: center;
}

.checkout-header h1 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.checkout-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-head {
    background: #fdfdfd;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-head h2 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-head i {
    color: var(--primary-dark);
}

.form-group-p {
    padding: 15px;
}

.input-pro, .select-pro {
    width: 100%;
    padding: 12px;
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    outline: none;
    transition: 0.3s;
}

.input-pro:focus, .select-pro:focus {
    border-color: var(--primary);
    background: #fff;
}

/* Global Icon Styling */
.menu-trigger i {
    font-size: 1.4rem;
    color: var(--text-dark);
}

/* Side-Drawer Cart */
.side-cart {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 2500;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 400px) {
    .side-cart {
        width: 100%;
        right: -100%;
    }
}

.side-cart.active {
    right: 0;
}

.side-cart-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.side-cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
}

/* Compact Cart Item */
.cart-item-compact {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-compact img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: #fafafa;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

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

/* Compact Form Layout */
.compact-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.compact-form-row > div {
    flex: 1;
}

.form-group.compact label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 3px;
    display: block;
}

.form-group.compact input, 
.form-group.compact textarea {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    background: #fcfcfc;
}

/* Sticky Nav Enhancement */
.sticky-nav .nav-item.active {
    color: #000;
    font-weight: 700;
}

.sticky-nav .nav-item.active i {
    color: var(--primary-dark);
}

/* ==========================================================================
   PREMIUM SIDE CART STYLES
   ========================================================================== */
.side-cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    z-index: 3000 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.side-cart.active {
    right: 0;
}

.side-cart-header {
    background: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.side-cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #111;
    transition: 0.3s;
}

.side-cart-close-btn:hover {
    background: #111;
    color: var(--primary);
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item-premium {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.item-img-box {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-header-row h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remove-item-btn {
    background: none;
    color: #ff4d4d;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.6;
    transition: 0.2s;
}

.remove-item-btn:hover {
    opacity: 1;
}

.item-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.item-price-pro {
    font-weight: 800;
    color: var(--price-red);
    font-size: 0.95rem;
}

.item-qty-control-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f6f8;
    padding: 4px 10px;
    border-radius: 20px;
}

.item-qty-control-pro button {
    background: transparent;
    font-size: 0.75rem;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty-control-pro span {
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 15px;
    text-align: center;
}

.side-cart-footer {
    padding: 25px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.03);
}

.side-cart-total-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.side-cart-checkout-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: var(--primary);
    padding: 18px 25px;
    border-radius: 15px;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.side-cart-checkout-btn:hover {
    transform: translateY(-3px);
    background: #000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.side-cart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    background: #fff8d6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.side-cart-empty h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.side-cart-empty p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
}

/* Upsell Styles */
.side-cart-upsell-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px dashed #ddd;
}

.upsell-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 950;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.upsell-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.upsell-item-card {
    min-width: 100px;
    max-width: 100px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    border: 1px solid #f0f0f0;
}

.upsell-item-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.upsell-item-name {
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.upsell-item-price {
    font-size: 0.75rem;
    font-weight: 900;
    color: #111;
}

.upsell-add-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #111;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Premium Cart Loading Overlay */
.cart-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-cart-container {
    background: white;
    padding: 20px; /* Compact padding */
    border-radius: 16px; /* Slightly tighter corners */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Softer shadow */
    text-align: center;
    animation: zoomInOverlay 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-cart-container img {
    width: 60px; /* Much smaller/compact */
    height: auto;
    margin-bottom: 12px;
}

.loading-text-pro {
    font-size: 0.75rem; /* Smaller text */
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Header Menu Icon Refinement */
.menu-trigger {
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-trigger img {
    width: 24px; /* Standard premium menu icon size */
    height: auto;
    object-fit: contain;
}

@keyframes zoomInOverlay {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   REFINED PERFECT SEARCH UI
   ========================================================================== */
.search-overlay.drawer-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-overlay.drawer-style.active {
    transform: translateY(0);
}

.search-overlay-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    background: #fff;
}

.search-logo-wrap img {
    height: 25px;
    opacity: 0.6;
    filter: grayscale(1);
}

.search-close-btn {
    width: 34px;
    height: 34px;
    background: #f4f6f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #111;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.search-close-btn:hover {
    background: #000;
    color: #fff;
}

.search-bar-wrap-premium {
    padding: 20px;
    background: #fff;
}

.search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon-left {
    position: absolute;
    left: 18px;
    top: 15px;
    font-size: 1.2rem;
    color: #999;
    z-index: 5;
}

.search-input-refined {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    background: #fbfbfb;
    transition: 0.3s;
    outline: none;
}

.search-input-refined:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 1.5rem;
    color: #ccc;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.search-clear-btn.active {
    visibility: visible;
    opacity: 1;
}

.search-suggestions-panel {
    margin-top: 15px;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #bbb;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.suggestion-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    padding: 8px 18px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: 0.3s;
}

.suggestion-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

.search-results-list-refined {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 100px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #f8f9fa;
    transition: 0.25s;
}

.search-result-item:hover, .search-result-item.highlighted {
    background: #fffef2;
    border-color: #ffe066;
    transform: translateX(5px);
}

.result-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: #fbfbfb;
    padding: 5px;
    flex-shrink: 0;
    border: 1px solid #f5f5f5;
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.result-meta {
    margin-bottom: 3px;
}

.result-cat {
    font-size: 0.6rem;
    font-weight: 900;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-price {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--price-red);
}

.result-arrow {
    color: #eee;
    font-size: 1rem;
    padding-right: 5px;
}

.recent-panel {
    padding-top: 10px;
}

.recent-searches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.recent-searches-header .h-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #aaa;
    letter-spacing: 0.5px;
}

.clear-history-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.recent-list {
    display: grid;
    gap: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fbfbfb;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.recent-item:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.recent-item span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.recent-item i {
    color: #bbb;
    font-size: 1rem;
}

.search-highlight {
    background: #fff3bf;
    color: #000;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 2px;
}

/* Loading Spinner - Perfect Search UI */
.loading-spinner-sm {
    width: 28px;
    height: 28px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

