/* General Styles */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --success-color: #28a745;
    --success-dark: #1e7e34;
    --danger-color: #dc3545;
    --danger-dark: #bb2d3b;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shared "glossy" design tokens — used by the navbar (global) and the
       homepage layer (home.css). Kept here, not in home.css, so any page
       (navbar, buttons) can use them without depending on the homepage's
       page-specific stylesheet. */
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.35);
    --gradient-brand: linear-gradient(120deg, #007bff 0%, #06d6a0 55%, #28a745 100%);
    --gradient-warm: linear-gradient(120deg, #ff8a00 0%, #ffc107 100%);
}

/* ---------- Shared glossy / glass utilities (used site-wide) ---------- */

.gloss-text {
    background: var(--gradient-brand);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glossTextShift 6s ease-in-out infinite;
}

@keyframes glossTextShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Sheen sweep — a diagonal band of light that glides across an element on
   hover. Applied via ::after so it never fights with existing ::before glows. */
.sheen {
    position: relative;
    overflow: hidden;
}

.sheen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
}

.sheen:hover::after {
    left: 125%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

a, a:hover, a:focus, a:active, a:visited {
    text-decoration: none !important;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body > * {
    margin-top: 0 !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border: 0 !important;
    position: relative;
    z-index: 999;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.02), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container-fluid {
    margin: 0 !important;
    padding: 0 1.5rem !important;
}

.navbar-nav {
    margin: 0 !important;
    padding: 0.5rem 0 !important;
}

.nav-item {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    position: relative;
    color: #16324a !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

/* Icon badge next to the wordmark, instead of a bare Font Awesome glyph */
.navbar-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    background-size: 200% auto;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.32);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-position 0.6s ease;
    flex-shrink: 0;
}

.navbar-brand-badge i {
    color: #fff;
    font-size: 1.05rem;
    animation: heartbeat 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.navbar-brand:hover .navbar-brand-badge {
    transform: rotate(-8deg) scale(1.1);
    background-position: 100% 50%;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #28a745);
    transition: width 0.4s ease;
}

.navbar-brand:hover::before {
    width: 100%;
}

.navbar-brand:hover {
    color: #0056b3 !important;
    text-shadow: none;
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #333333 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem !important;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(0, 123, 255, 0.04));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
    left: 50%;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link:focus {
    color: #007bff !important;
    transform: translateY(-2px);
}

.nav-link.active::after {
    width: calc(100% - 2rem);
    background: var(--primary-color);
}

/* Icon buttons (cart / notifications) — circular glass buttons instead of
   plain inline icon+text, with a floating gradient badge for counts. */
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(0, 123, 255, 0.07);
    color: #16324a !important;
    font-size: 1.05rem;
    margin: 0 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn:hover,
.nav-icon-btn:focus {
    background: var(--gradient-brand);
    color: #fff !important;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 123, 255, 0.3);
}

.nav-icon-btn i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn:hover i {
    transform: scale(1.1) rotate(-6deg);
}

.nav-icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, var(--danger-color));
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(220, 53, 69, 0.5);
    animation: slideInFromTop 0.4s ease-out, heartbeat 1.8s ease-in-out 2s infinite;
}

/* User avatar dropdown trigger */
.nav-avatar-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem !important;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.06);
}

.nav-avatar-btn:hover {
    background: rgba(0, 123, 255, 0.12);
}

.nav-avatar-btn::after {
    display: none !important; /* hide Bootstrap's default caret, keep it clean */
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.32);
    flex-shrink: 0;
}

.nav-avatar-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #16324a;
}

/* Glossy pill CTA (Register) */
.btn-nav-glossy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-brand);
    background-size: 200% auto;
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1.35rem !important;
    border-radius: 999px;
    margin-left: 6px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
}

.btn-nav-glossy:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.4);
}

/* Dropdown menu polish */
.navbar .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 40, 70, 0.16);
    padding: 0.5rem;
    margin-top: 12px !important;
}

.navbar .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
    transform: translateX(3px);
}

.navbar .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* Navbar Toggler */
.navbar-toggler {
    transition: all 0.3s ease;
    border: 2px solid #333333;
    color: #333333 !important;
}

.navbar-toggler:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.08);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 4;
    padding: 60px 40px;
}

.slider-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slider-subtitle {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.slider-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
    animation: pulse 0.6s ease;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
    }

    .slider-title {
        font-size: 1.8rem;
    }

    .slider-subtitle {
        font-size: 1rem;
    }

    .slider-description {
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0) 0%,
        rgba(0, 123, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 12px 0 0;
    display: block;
}

.product-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.product-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
}

.product-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.product-card:hover .card-title {
    color: var(--primary-color);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.product-card .rating {
    margin-bottom: 0.75rem;
    animation: slideInFromLeft 0.5s ease-out;
}

.product-card .rating i {
    color: #ffc107;
    margin-right: 0.2rem;
}

.product-card .btn {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 6px;
}

.service-card {
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover {
    border-color: #007bff;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.15);
}

.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 300px !important;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.category-card-top {
    display: flex;
    align-items: flex-start;
}

.category-shop-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.category-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.category-card-name {
    color: white;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.category-card-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.category-card-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(4px);
}

.category-card:hover .category-card-overlay {
    opacity: 1;
}

.card-img-top {
    border-radius: 16px 16px 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .card-img-top {
    transform: scale(1.08);
}

.team-member-card {
    text-align: center;
    overflow: hidden;
}

.team-member-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: slideInFromTop 20s linear infinite;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    font-weight: 700;
    animation: slideInFromTop 0.8s ease-out 0.2s both;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    animation: slideInFromTop 0.8s ease-out 0.4s both;
    color: rgba(255, 255, 255, 0.95);
}

.hero .btn {
    animation: slideInFromTop 0.8s ease-out 0.6s both;
    margin-top: 1rem;
}

/* Sections */
.features-section {
    background: #f0f0f0;
    border-radius: 16px;
    margin: 30px;
    padding: 30px !important;
}

.features-section .feature-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.features-section .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.15);
}

.featured-products,
.services,
.categories,
.why-choose-us {
    padding: 60px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, var(--success-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #bb2d3b);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bb2d3b, var(--danger-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: ' ...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: ' .'; }
    33% { content: ' ..'; }
    66% { content: ' ...'; }
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    transition: var(--transition);
    background-color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path fill="%2328a745" d="M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.3rem rgba(40, 167, 69, 0.15);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" fill="none" stroke="%23dc3545" stroke-width="2"><circle cx="6" cy="6" r="5"/><path d="M6 3v6M3 6h6"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    animation: wiggle 0.5s ease-in-out;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.15);
}

/* Validation Feedback */
.invalid-feedback,
.valid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.3rem;
    animation: slideInFromTop 0.3s ease-out;
}

.invalid-feedback {
    color: #dc3545;
}

.valid-feedback {
    color: #28a745;
}

/* Input Loading State */
.form-control.loading {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Badges */
.badge {
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    border-top: 3px solid var(--primary-color);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    border-left: 4px solid;
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #856404;
}

.alert .btn-close {
    animation: rotateIn 0.3s ease-out;
}

.alert .btn-close:hover {
    animation: spin 0.6s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner {
    margin: 20px auto;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.text-monospace {
    font-family: 'Courier New', monospace;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 20px;
}

@supports (position: sticky) {
    .sticky-top {
        position: sticky;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Card Slider Styles */
/* Featured Products Slider Styling */
.products-slider-wrapper {
    position: relative;
    margin: 0 -40px;
    padding: 0 40px;
}

.featured-products h2 {
    color: #333;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.product-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
    transition: all 0.3s ease;
}

.product-card-link:hover,
.product-card-link:focus {
    text-decoration: none !important;
    color: inherit;
}

.card-slider-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    scroll-behavior: smooth;
    width: 100%;
    padding: 0;
}

/* Hide scrollbar while keeping functionality */
.card-slider-container::-webkit-scrollbar {
    height: 0;
}

.card-slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-slider-item {
    flex: 0 0 280px;
    min-width: 280px;
    animation: slideInFromLeft 0.5s ease;
}

.product-card {
    border: 1px solid #ebebeb;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 123, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 
        0 20px 48px rgba(0, 123, 255, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 123, 255, 0.35);
}

.product-card:hover .card-glow {
    opacity: 1;
}

.card-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
    transition: background 0.3s ease;
}

.product-card:hover .card-header-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
}

.btn-wishlist {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #666;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.btn-wishlist::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-wishlist:active::before {
    width: 100px;
    height: 100px;
}

.btn-wishlist:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: #ff4757;
    color: #ff4757;
}

.btn-wishlist.active {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

.btn-wishlist.active i {
    animation: heartBeat 0.6s ease;
}

.badge-sale {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.35);
    position: relative;
    overflow: hidden;
    animation: badgePulse 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
}

.badge-text {
    position: relative;
    z-index: 2;
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

.badge-sale-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

.countdown-timer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.countdown-display {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
    animation: slideInFromTop 0.4s ease-out;
}

.countdown-days,
.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
    padding: 2px 3px;
}

.countdown-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

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

.btn-add-cart {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.28);
    letter-spacing: 0.1px;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-add-cart:active::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart > * {
    position: relative;
    z-index: 1;
}

.product-card:hover .btn-add-cart {
    opacity: 1;
    transform: translateY(-2px);
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.38);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    box-shadow: 
        0 10px 26px rgba(0, 123, 255, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-add-cart:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 
        0 4px 12px rgba(0, 123, 255, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    pointer-events: none;
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.15) rotate(2deg);
}

.product-card .card-body {
    padding: 16px 16px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-category-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #007bff;
    background: rgba(0, 123, 255, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 7px;
    width: fit-content;
}

.product-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    text-align: left;
}

.product-card:hover .card-title {
    color: #007bff;
}

.product-rating {
    display: flex;
    gap: 2px;
    font-size: 0.78rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px !important;
    line-height: 1;
}

.product-rating i {
    color: #ffc107;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.82rem;
}

.product-rating i:hover {
    transform: scale(1.25) rotate(12deg);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.product-rating i.far {
    color: #e8e8e8;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 12px !important;
    flex-wrap: wrap;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.price-sale {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
}

.product-card:hover .price-sale {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    color: #aaa;
    text-decoration: line-through;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.product-card:hover .price-original {
    color: #bbb;
}

/* ================================
   Quantity Stepper
   ================================ */
.qty-stepper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 10px;
    overflow: hidden;
    height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qty-stepper:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.qty-stepper-btn {
    background: transparent;
    border: none;
    color: #007bff;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.qty-stepper-btn:hover {
    background: #007bff;
    color: #fff;
}

.qty-stepper-btn:active {
    background: #0056b3;
    color: #fff;
}

.qty-stepper-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #18181b;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-left: 1px solid rgba(0, 123, 255, 0.2);
    border-right: 1px solid rgba(0, 123, 255, 0.2);
    background: rgba(0, 123, 255, 0.03);
}

/* Larger stepper for product detail page */
.qty-stepper-detail {
    height: 52px;
    border-radius: 10px;
    border-width: 2px;
}

.qty-stepper-detail .qty-stepper-btn {
    width: 52px;
    font-size: 1rem;
}

.qty-stepper-detail .qty-stepper-value {
    font-size: 1.25rem;
}

/* Cart page stepper - fixed width */
.cart-qty-stepper {
    min-width: 120px;
    max-width: 130px;
}

.product-desc-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.product-stock-badge i {
    font-size: 0.85rem;
}

.product-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 123, 255, 0.85);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav-btn:hover {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.slider-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-nav-prev {
    left: 0;
}

.slider-nav-next {
    right: 0;
}

@media (max-width: 768px) {
    .card-slider-item {
        flex: 0 0 calc(100% - 1.5rem);
        min-width: calc(100% - 1.5rem);
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .products-slider-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .product-card .card-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    /* Show Add to Cart button always on mobile */
    .btn-add-cart {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 576px) {
    .card-slider-item {
        flex: 0 0 calc(100% - 1.5rem);
        min-width: calc(100% - 1.5rem);
    }

    .slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .products-slider-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .product-image-wrapper {
        height: 180px;
    }

    .product-card .card-body {
        padding: 12px;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }

    .btn-wishlist {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .badge-sale {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}
    }
}

@media (max-width: 576px) {
    .card-slider-item {
        flex: 0 0 calc(100% - 1.5rem);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1deg);
    }
    75% {
        transform: rotate(1deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

/* ================================================
   FILTER SIDEBAR
   ================================================ */

.filter-sidebar-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.filter-sidebar-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 18px;
}

.filter-clear-all {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 2px 10px;
    transition: all 0.2s;
}
.filter-clear-all:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
}

.filter-section {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f3f6;
}
.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 10px;
}

.filter-search-input {
    border-radius: 8px 0 0 8px !important;
    border-color: #e2e8f0;
    font-size: 0.85rem;
}
.filter-search-btn {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    border-radius: 0 8px 8px 0 !important;
    border: none;
    padding: 0 12px;
}
.filter-search-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
}

.filter-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.filter-checkbox-list::-webkit-scrollbar {
    width: 4px;
}
.filter-checkbox-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 2px;
}
.filter-checkbox-label:hover {
    background: #f0f9ff;
    color: #0284c7;
}
.filter-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0ea5e9;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-count-badge {
    margin-left: auto;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.filter-checkbox-label:hover .filter-count-badge {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}
.filter-checkbox-label input:checked ~ .filter-count-badge {
    background: #0ea5e9;
    color: #fff;
    border-color: #0284c7;
}

.price-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.price-display-val {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0369a1;
    min-width: 62px;
    text-align: center;
}
.price-range-sep {
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Dual range slider */
.dual-range-wrapper {
    position: relative;
    height: 36px;
    margin: 4px 0 6px;
}
.dual-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 5px;
    background: #e2e8f0;
    border-radius: 5px;
    pointer-events: none;
}
.dual-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    border-radius: 5px;
}
.dual-range {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    outline: none;
}
.dual-range-min { z-index: 3; }
.dual-range-max { z-index: 4; }

.dual-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #0ea5e9;
    box-shadow: 0 2px 6px rgba(14,165,233,0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.dual-range::-webkit-slider-thumb:hover,
.dual-range::-webkit-slider-thumb:active {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.18);
    transform: scale(1.15);
}
.dual-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #0ea5e9;
    box-shadow: 0 2px 6px rgba(14,165,233,0.35);
    cursor: pointer;
    pointer-events: auto;
}

.filter-apply-btn {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px;
    transition: all 0.2s;
}
.filter-apply-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    transform: translateY(-1px);
}

/* Active filter tags */
.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 3px 10px;
    transition: all 0.2s;
}
.filter-tag:hover {
    background: #fde8e8;
    color: #b91c1c;
    border-color: #fca5a5;
}

.filter-tag-remove {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}


@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.animate-slide-in-top {
    animation: slideInFromTop 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.animate-heartbeat {
    animation: heartbeat 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Badge Animations */
.badge {
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    animation: slideInFromTop 0.4s ease-out;
}

.badge-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Toast Notifications */
.toast {
    animation: slideInFromRight 0.4s ease-out;
}

.toast.hide {
    animation: slideInFromRight 0.4s ease-out reverse;
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

.spinner-border {
    animation: spin 0.75s linear infinite;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1);
    transform-origin: 50% 50%;
    pointer-events: none;
}

.ripple:active::after {
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(40);
        opacity: 0;
    }
}

/* Smooth Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow var(--transition);
}

.hover-shadow:hover {
    box-shadow: var(--box-shadow-lg);
}

/* Disabled State */
:disabled,
.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Shimmer Loading Effect */
.shimmer {
    background-color: #e8e8e8;
    background-image: linear-gradient(
        90deg,
        #e8e8e8 0px,
        #f5f5f5 40px,
        #e8e8e8 80px
    );
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ================================
   Toast Notifications
   ================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInToastRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid #007bff;
    min-height: 60px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-text strong {
    color: #222;
    font-size: 0.9rem;
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin-left: 12px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fdf4, white);
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fef2f2, white);
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f0f9fc, white);
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0, white);
}

.toast-warning .toast-icon {
    color: #ffc107;
}

/* Animations */
@keyframes slideInToastRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-fade-out {
    animation: slideOutToastRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.toast-animated {
    animation: slideInToastRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast-notification {
        padding: 14px;
        min-height: 55px;
    }
    
    .toast-message {
        font-size: 0.9rem;
    }
}
