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

body { 
    background-color: #f1f3f6; 
    font-family: 'Roboto', Arial, sans-serif; 
    color: #212121; 
    overflow-x: hidden;
}

.hide { display: none !important; }
.card-shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,.15); border-radius: 4px; background: #fff; }
.product-card { transition: all 0.3s ease; }
.product-card:hover { box-shadow: 0 4px 16px 0 rgba(0,0,0,.15); transform: translateY(-3px); }

/* Scrollbars */
.scrollbar-hide::-webkit-scrollbar { display: none; } 
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
::-webkit-scrollbar { width: 5px; height: 5px; } 
::-webkit-scrollbar-track { background: #f1f1f1; } 
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }

/* Toast Notifications */
#toast { 
    visibility: hidden; 
    min-width: 250px; 
    background-color: #333; 
    color: #fff; 
    text-align: center; 
    border-radius: 4px; 
    padding: 12px; 
    position: fixed; 
    z-index: 10000; 
    left: 50%; 
    bottom: 80px; 
    transform: translateX(-50%); 
    font-size: 14px; 
    font-weight: bold; 
}
#toast.show { 
    visibility: visible; 
    animation: fadein 0.5s, fadeout 0.5s 2.5s; 
}
@keyframes fadein { from{bottom: 0; opacity: 0;} to{bottom: 80px; opacity: 1;} } 
@keyframes fadeout { from{bottom: 80px; opacity: 1;} to{bottom: 0; opacity: 0;} }

/* Product Badges & Image Overlay */
.gallery-thumb { transition: all 0.2s; border: 2px solid transparent; } 
.gallery-thumb:hover, .gallery-thumb.active { border-color: #2874f0; box-shadow: 0 0 4px rgba(40,116,240,0.5); }
.oos-overlay { background: rgba(255,255,255,0.85); backdrop-filter: blur(1px); }
.img-blur { filter: grayscale(100%) opacity(50%); }

.sd-trusted-badge { 
    background: linear-gradient(90deg, #2874f0, #1a5ebd); 
    padding: 4px 8px; 
    border-radius: 4px; 
    color: white; 
    font-size: 11px; 
    font-weight: bold; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}
.rating-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: rgba(255,255,255,0.95); 
    padding: 3px 6px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); 
    z-index: 10; 
    color: #388e3c; 
}
.featured-badge { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: #ff9f00; 
    color: #fff; 
    padding: 2px 6px; 
    border-radius: 2px; 
    font-size: 10px; 
    font-weight: bold; 
    z-index: 10; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
}

/* Slider & Banners */
.slider-scroll { scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.slider-scroll > div { scroll-snap-align: center; flex: 0 0 100%; position: relative; }
.adv-banner-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }

/* Category Grid */
.cat-group-header { 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #ffffff; 
    margin-top: 15px; 
    margin-bottom: 8px; 
    padding-bottom: 5px; 
    border-bottom: 2px solid rgba(255,255,255,0.3); 
    font-size: 14px; 
    padding-left: 5px; 
}
.category-grid-box { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 5px 8px 15px 8px; }
@media (min-width: 768px){ .category-grid-box { grid-template-columns: repeat(4,1fr); } }

.cat-box-item { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    text-align: center; 
    padding: 8px 5px; 
    cursor: pointer; 
    transition: all .2s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    position: relative; 
    overflow: hidden; 
}
.cat-box-item:hover { border-color: #2874f0; box-shadow: 0 4px 8px rgba(40,116,240,0.2); transform: scale(1.02); }
.cat-box-icon-wrapper { 
    width: 100%; 
    height: 95px; 
    border-radius: 12px; 
    background: #f8fafc; 
    padding: 0; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); 
}
.cat-box-icon { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-box-title { font-size: 11px; font-weight: 800; color: #212121; text-align: center; line-height: 1.2; }

/* Ticker Animations */
.wf-ticker-wrapper { display: flex; width: 100%; overflow: hidden; background-color: #172337; color: white; padding: 8px 0; border-bottom: 1px solid #333; position: relative; z-index: 60; }
.wf-ticker-track { display: flex; white-space: nowrap; animation: scrollUnlimited 25s linear infinite; width: max-content; }
.wf-ticker-track:hover { animation-play-state: paused; }
@keyframes scrollUnlimited { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.brand-ticker { background: #FFD700; padding: 15px 0; overflow: hidden; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: scrollLeft 20s linear infinite; }
.ticker-track img { height: 26px; max-width: 80px; object-fit: contain; }
@keyframes scrollLeft { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }

.brand-strip { background: #FFD700; padding: 25px 10px; text-align: center; }
.brand-title { font-size: 18px; font-weight: 700; color: #000; margin-bottom: 15px; }
.brand-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; }
.brand-row img { height: 28px; max-width: 80px; object-fit: contain; }

/* Utility Input and Buttons */
.input-box { width: 100%; border: 1px solid #d1d5db; padding: 10px; border-radius: 2px; outline: none; font-size: 14px; background: #f9fafb; transition: border-color 0.2s; }
.input-box:focus { border-color: #2874f0; }
.btn-primary { width: 100%; background: #fb641b; color: white; font-weight: bold; padding: 14px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: all 0.2s; }
.btn-primary:hover { background: #ea580c; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }