:root {
    --bp-primary: #00B14F;
    --bp-primary-dark: #008f3f;
    --bp-primary-light: #00d15e;
    --bp-primary-soft: #e8f7ee;
    --bp-accent: #FFB800;
    --bp-dark: #1a1a1a;
    --bp-gray-50: #f9fafb;
    --bp-gray-100: #f3f4f6;
    --bp-gray-200: #e5e7eb;
    --bp-gray-300: #d1d5db;
    --bp-gray-600: #6b7280;
    --bp-gray-900: #111827;
    --bp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --bp-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --bp-shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
    --bp-shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --bp-radius-sm: 8px;
    --bp-radius-md: 12px;
    --bp-radius-lg: 16px;
    --bp-radius-full: 999px;
    --bp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== DESKTOP HEADER ===== */
@media (min-width: 992px) {
    .header-top {
        background: var(--bp-dark) !important;
        padding: 8px 0 !important;
        font-size: 12px;
    }
    
    .header-middle {
        background: var(--bp-primary) !important;
        padding: 14px 0 !important;
        box-shadow: 0 2px 12px rgba(0, 177, 79, 0.15);
    }
    
    .header-middle .logo img {
        max-height: 48px !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .header-middle .form--quick-search {
        background: rgba(255,255,255,0.95) !important;
        border-radius: var(--bp-radius-full) !important;
        padding: 4px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        transition: var(--bp-transition) !important;
    }
    
    .header-middle .form--quick-search:focus-within {
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(0, 177, 79, 0.2) !important;
        transform: translateY(-1px);
    }
    
    .header-middle .product-category-select {
        border: none !important;
        background: transparent !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--bp-gray-900) !important;
        padding: 10px 14px !important;
    }
    
    .header-middle .input-search-product {
        border: none !important;
        background: transparent !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        color: var(--bp-dark) !important;
        font-weight: 500 !important;
    }
    
    .header-middle .input-search-product::placeholder {
        color: var(--bp-gray-600) !important;
    }
    
    .header-middle .form--quick-search button {
        background: var(--bp-primary) !important;
        border: none !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: var(--bp-transition) !important;
        box-shadow: 0 2px 8px rgba(0, 177, 79, 0.3) !important;
    }
    
    .header-middle .form--quick-search button:hover {
        background: var(--bp-primary-dark) !important;
        transform: scale(1.05);
    }
    
    .header-middle .form--quick-search button i {
        color: #fff !important;
        font-size: 16px !important;
    }
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 991px) {
    .header-middle {
        background: var(--bp-primary) !important;
        padding: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 177, 79, 0.15);
    }
    
    .header-middle .logo img {
        max-height: 42px !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .header-middle .header-action-icon-2 {
        background: rgba(255,255,255,0.2) !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: var(--bp-transition) !important;
        backdrop-filter: blur(10px);
    }
    
    .header-middle .header-action-icon-2:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.3) !important;
    }
    
    .header-middle .header-action-icon-2 a,
    .header-middle .header-action-icon-2 i {
        color: #fff !important;
        font-size: 18px !important;
    }
    
    .header-middle .header-action-icon-2 .pro-count {
        background: #fff !important;
        color: var(--bp-primary) !important;
        border: 2px solid var(--bp-primary) !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    .header-middle .form--quick-search {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(255,255,255,0.95) !important;
        border-radius: var(--bp-radius-full) !important;
        padding: 4px !important;
        margin-top: 12px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        transition: var(--bp-transition) !important;
        backdrop-filter: blur(10px);
    }
    
    .header-middle .form--quick-search:focus-within {
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(0, 177, 79, 0.2) !important;
    }
    
    .header-middle .product-category-select {
        border: none !important;
        background: transparent !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--bp-gray-900) !important;
        padding: 8px 12px !important;
        max-width: 130px !important;
    }
    
    .header-middle .input-search-product {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
        color: var(--bp-dark) !important;
        font-weight: 500 !important;
    }
    
    .header-middle .input-search-product::placeholder {
        color: var(--bp-gray-600) !important;
    }
    
    .header-middle .form--quick-search button {
        background: var(--bp-primary) !important;
        border: none !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: var(--bp-transition) !important;
        box-shadow: 0 2px 8px rgba(0, 177, 79, 0.3) !important;
    }
    
    .header-middle .form--quick-search button:active {
        transform: scale(0.95);
        background: var(--bp-primary-dark) !important;
    }
    
    .header-middle .form--quick-search button i {
        color: #fff !important;
        font-size: 16px !important;
    }
}

/* ===== LIVE SEARCH RESULTS DROPDOWN ===== */
.panel--search-result {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--bp-radius-md);
    box-shadow: var(--bp-shadow-xl);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    border: 1px solid var(--bp-gray-200);
}

.panel--search-result.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.panel--search-result .panel__content {
    padding: 8px;
}

.panel--search-result .product-cart-wrap {
    padding: 12px !important;
    margin-bottom: 4px !important;
    border-radius: var(--bp-radius-sm) !important;
    border: 1px solid transparent !important;
    transition: var(--bp-transition) !important;
    background: #fff !important;
}

.panel--search-result .product-cart-wrap:hover {
    background: var(--bp-gray-50) !important;
    border-color: var(--bp-primary) !important;
    transform: translateX(4px);
    box-shadow: var(--bp-shadow-sm);
}

@media (max-width: 991px) {
    .header-middle .panel--search-result {
        position: fixed !important;
        top: 160px !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100vh - 180px) !important;
    }
}

/* ===== PRODUCT CARDS ===== */
.product-cart-wrap {
    border-radius: var(--bp-radius-md) !important;
    border: 1px solid var(--bp-gray-200) !important;
    transition: var(--bp-transition) !important;
    overflow: hidden !important;
    background: #fff !important;
}

.product-cart-wrap:hover {
    box-shadow: var(--bp-shadow-lg) !important;
    transform: translateY(-4px);
    border-color: var(--bp-primary) !important;
}

.product-cart-wrap .product__title {
    font-weight: 600 !important;
    color: var(--bp-dark) !important;
    transition: var(--bp-transition) !important;
}

.product-cart-wrap:hover .product__title {
    color: var(--bp-primary) !important;
}

.product-cart-wrap .product-price span:first-child {
    color: var(--bp-primary) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.product-cart-wrap .product-price .old-price {
    color: var(--bp-gray-600) !important;
    font-size: 14px !important;
}

/* ===== MOBILE: 2-COLUMN PRODUCT GRID - SIMPLE BOOTSTRAP OVERRIDE ===== */
@media (max-width: 575px) {
    .product-grid > div.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    .product-grid {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }
    
    .product-cart-wrap {
        margin-bottom: 8px !important;
    }
    
    .product-cart-wrap .product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    .product-cart-wrap .product-price span:first-child {
        font-size: 15px !important;
    }
}

/* ===== BUTTONS ===== */
.button-add-to-cart,
.btn.bg-brand,
.btn-primary {
    background: linear-gradient(135deg, var(--bp-primary) 0%, var(--bp-primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--bp-radius-sm) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.25) !important;
    transition: var(--bp-transition) !important;
    color: #fff !important;
}

.button-add-to-cart:hover,
.btn.bg-brand:hover {
    background: linear-gradient(135deg, var(--bp-primary-dark) 0%, var(--bp-primary) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 177, 79, 0.35) !important;
}

html {
    scroll-behavior: smooth;
}

/* ===== MOBILE SEARCH BAR BORDER FOR VISIBILITY ===== */
@media (max-width: 991px) {
    .header-middle .form--quick-search {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .header-middle .form--quick-search:focus-within {
        border-color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* ===== MOBILE SEARCH BAR BORDER FOR VISIBILITY ===== */
@media (max-width: 991px) {
    .header-middle .form--quick-search {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .header-middle .form--quick-search:focus-within {
        border-color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* ===== MOBILE SEARCH BAR - VISIBLE BORDER ===== */
@media (max-width: 991px) {
    .header-middle .form--quick-search {
        border: 2px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .header-middle .form--quick-search:focus-within {
        border-color: #00B14F !important;
    }
}

/* ===== TRUST STRIP - SMOOTH HORIZONTAL SCROLL ANIMATION ===== */
.bp-trust-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    position: relative !important;
    white-space: nowrap !important;
}

.bp-trust-strip-item {
    flex-shrink: 0 !important;
    animation: scrollTrust 20s linear infinite !important;
}

@keyframes scrollTrust {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Duplicate items for seamless loop */
.bp-trust-strip::after {
    content: '100% Authentic • Pay on Delivery (Lagos) • 5-Day Returns • Order on WhatsApp' !important;
    position: absolute !important;
    white-space: nowrap !important;
    animation: scrollTrust 20s linear infinite !important;
    animation-delay: 10s !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* ===== REMOVE BROKEN TRUST STRIP ANIMATION ===== */
.bp-trust-strip-item {
    animation: none !important;
}

.bp-trust-strip::after {
    display: none !important;
}

/* ===== FIX SEARCH BAR BORDER ===== */
@media (max-width: 991px) {
    .header-middle .input-search-product {
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 20px !important;
    }
    
    .header-middle .form--quick-search {
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* ===== WHITE BORDER FOR SEARCH BAR ===== */
@media (max-width: 991px) {
    .header-middle .form--quick-search {
        border: 2px solid rgba(255, 255, 255, 0.8) !important;
    }
    
    .header-middle .form--quick-search:focus-within {
        border-color: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    }
}
