/* Global Overrides & Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #ef4444;
    /* Red */
    border-right-color: #eab308;
    /* Yellow */
    border-bottom-color: #22c55e;
    /* Green */
    border-left-color: #f97316;
    /* Orange */
    animation: spin 1.5s linear infinite;
}

.preloader-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    animation: pulse 1.5s infinite ease-in-out;
    position: relative;
    z-index: 2;
    /* Optional: nice touch if logo is square */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

:root {
    /* Color Palette - Premium Corporate Blue & Gold/Orange Accent */
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Top Bar */
    --topbar-bg: #0f172a;
    --topbar-text: #cbd5e1;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-float:hover {
    transform: translateY(-5px);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Social Icons Brand Colors */
.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: white;
}

.social-facebook:hover {
    background: #1877f2;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-linkedin:hover {
    background: #0077b5;
}

.social-whatsapp:hover {
    background: #25d366;
}

.social-tiktok:hover {
    background: #000000;
}

/* Top Bar */
.top-bar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 8px 0;
    font-size: 0.85rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    /* Ensure it is higher than Bootstrap navbar (1030) */
    transition: all 0.3s ease;
}

.top-bar a {
    color: var(--topbar-text);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--accent-color);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Bootstrap Button Overrides for Premium Feel */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-warning:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header & Nav */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    position: relative;
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Carousel */
.hero-carousel-item {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease infinite alternate;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Much lighter gradient: Dark only behind text, transparent elsewhere */
    background: linear-gradient(to right, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    /* Base color removed, handled by specific rules below */
    z-index: 20;
    /* In front of overlay (1) */
    animation: floatIcon 6s ease-in-out infinite;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Softer shadow for colored icons */
    font-size: 2rem;
    pointer-events: none;
    /* Non-blocking */
}

/* Color cycling for icons: Green, Orange, Red */
.floating-icon:nth-of-type(1) {
    color: #22c55e;
}

/* Green */
.floating-icon:nth-of-type(2) {
    color: #f97316;
}

/* Orange */
.floating-icon:nth-of-type(3) {
    color: #ef4444;
}

/* Red */

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-color);
    height: 5px;
    border-radius: 2px;
}

/* Cards */
.card-product {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.card-product:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-accent {
    background-color: var(--accent-color);
    color: white;
}

.card-body {
    padding: 1.5rem;
}

.product-title a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* Promo Boxes */
.promo-box {
    border-radius: 15px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.promo-bg-dark {
    background: var(--primary-color);
}

.promo-bg-light {
    background: white;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}

/* Brands */
.brand-item {
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--secondary-color);
}

.brand-item:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.brand-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Brands Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

.brand-item {
    margin: 0 40px;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
}

.brand-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

.brand-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding-top: 80px;
    padding-bottom: 30px;
}

footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-color);
}

/* Utilities */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .sidebar {
        margin-bottom: 30px;
    }
}