/* Modern Drizzle Showers Design - Refined V2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary: #000000;
    /* Black */
    --primary-light: #1a1a1a;
    /* Dark Grey */
    --primary-dark: #000000;
    /* Black */
    --secondary: #000000;
    /* Black */
    --accent: #FFD700;
    /* Gold */

    --text-main: #000000;
    /* Black */
    --text-muted: #404040;
    /* Dark Grey */
    --text-light: #94A3B8;

    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-secondary: #F1F5F9;

    --border-color: #E2E8F0;

    /* Functional Colors */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 30px -5px rgba(0, 0, 0, 0.15);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Modern Shop Now Button */
.btn-shop-now {
    display: inline-block;
    padding: 16px 48px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-shop-now:hover {
    background: transparent;
    color: white;
    box-shadow: 0 0 0 2px white;
    transform: translateY(-2px);
}

/* Dark variant for light backgrounds */
.btn-shop-now-dark {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-shop-now-dark:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 0.95rem;
    /* Reduced base font size */
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --- Navigation & Header --- */
.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.75rem;
    padding: 10px 0;
    font-weight: 500;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 20px;
}

.top-bar a:hover {
    color: white;
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Header Actions - FIXED HORIZONTAL */
.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.header-action {
    position: relative;
    padding: 6px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 50px;
    color: var(--text-muted);
}

.header-action:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

.header-action i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.header-action span:not(.badge-count) {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Counts */
.header-action .cart-count,
.header-action .wishlist-count {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
    margin-top: 10px;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.user-dropdown-menu a i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.user-dropdown-menu a:hover i {
    color: var(--primary);
}

.user-dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Search Bar */
.search-form {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    overflow: hidden;
    height: 42px;
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 38, 71, 0.1);
}

.search-form input {
    background: transparent;
    border: none;
    padding: 0 16px;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-main);
}

.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--primary-light);
}

/* Navigation Links */
.main-nav {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 999;
}

.nav-wrapper {
    height: 60px;
}

.category-dropdown {
    position: relative;
}

/* Bridge element to connect button to dropdown menu */
.category-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    display: none;
}

.category-dropdown:hover::after {
    display: block;
}

.nav-dropdown-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-content-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    overflow: hidden;
}

.category-dropdown:hover .dropdown-content-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content-menu .nav-link {
    display: block;
    padding: 12px 25px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.dropdown-content-menu .nav-link:hover,
.dropdown-content-menu .nav-link.active {
    background: #f1f5f9;
    color: #0f172a;
    padding-left: 30px;
}

.main-links {
    margin-left: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-main {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link-main:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* --- Hero Section --- */
.hero-carousel {
    padding: 0 40px;
    margin: 30px auto;
    max-width: 1600px;
}

/* --- Ethereal Hero Section --- */
.ethereal-hero {
    position: relative;
    min-height: 90vh;
    background: radial-gradient(circle at top right, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
    padding-top: 40px;
    display: flex;
    align-items: center;
}

.hero-content-left {
    position: relative;
    z-index: 10;
    padding-left: 2rem;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--secondary);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 450px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.btn-ethereal-primary {
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(10, 38, 71, 0.2);
}

.btn-ethereal-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(10, 38, 71, 0.3);
    background: var(--primary-light);
    color: white;
}

.btn-ethereal-link {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.btn-ethereal-link:hover {
    color: var(--secondary);
}

.hero-visual-right {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-visual-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 850px;
}

.hero-blob-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(44, 116, 179, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* Standard Rounded Rectangle */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 10;
    pointer-events: none;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.05);
}

/* Floating Cards - ENHANCED GLASSMORPHISM */
.hero-floating-card {
    position: absolute;
    z-index: 15;
    max-width: 250px;
    transition: transform 0.1s ease-out;
}

/* Shine effect on glass */
.hero-floating-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-floating-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    width: 100%;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.hero-floating-card.top-right {
    top: 100px;
    right: -40px;
    will-change: transform;
}

.hero-floating-card.top-right .hero-floating-card-inner {
    animation: float 6s ease-in-out infinite;
}

.hero-floating-card.bottom-left {
    bottom: 120px;
    left: -60px;
    will-change: transform;
}

.hero-floating-card.bottom-left .hero-floating-card-inner {
    animation: float 6s ease-in-out infinite 2s;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

.hero-floating-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    line-height: 1.2;
}

.hero-floating-card small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: mouseWheel 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes mouseWheel {
    0% {
        top: 8px;
    }

    50% {
        top: 20px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* ===== GOD RAYS / LIGHT BEAMS ===== */
.light-beams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, transparent 80%);
    transform: rotate(35deg);
    filter: blur(40px);
    opacity: 0.3;
    animation: beamUnfold 10s ease-in-out infinite alternate;
}

.light-beam:nth-child(2) {
    left: 10%;
    width: 150px;
    animation-delay: -3s;
    opacity: 0.2;
}

.light-beam:nth-child(3) {
    left: 40%;
    width: 100px;
    animation-delay: -7s;
    opacity: 0.15;
}

@keyframes beamUnfold {
    0% {
        opacity: 0.2;
        transform: rotate(35deg) translateX(-20px);
    }

    100% {
        opacity: 0.4;
        transform: rotate(35deg) translateX(20px);
    }
}

/* ===== SPARKLES ===== */
.sparkles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: twinkle var(--duration, 2s) ease-in-out infinite;
}

@keyframes twinkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* ===== BATHROOM/SHOWER SCROLL ANIMATIONS ===== */

/* Water Droplets Container */
.water-droplets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.water-droplet {
    position: absolute;
    width: var(--droplet-size, 8px);
    height: calc(var(--droplet-size, 8px) * 1.5);
    background: radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(173, 216, 230, 0.6) 40%,
            rgba(100, 180, 220, 0.4) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: dropletFall var(--fall-duration, 4s) linear infinite;
    animation-delay: var(--delay, 0s);
    left: var(--left-pos, 50%);
    box-shadow:
        inset -2px -2px 4px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes dropletFall {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
}

/* Water Ripple Effect at bottom */
.water-ripples {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.ripple {
    position: absolute;
    bottom: var(--ripple-bottom, 20px);
    left: var(--ripple-left, 50%);
    width: 0;
    height: 0;
    border: 2px solid rgba(100, 180, 220, 0.4);
    border-radius: 50%;
    opacity: 0;
    animation: rippleExpand var(--ripple-duration, 3s) ease-out infinite;
    animation-delay: var(--ripple-delay, 0s);
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
        transform: translate(-50%, 50%);
    }

    100% {
        width: 200px;
        height: 100px;
        opacity: 0;
        transform: translate(-50%, 50%);
    }
}

/* Flowing Wave Effect */
.wave-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 80px;
    pointer-events: none;
    z-index: 4;
}

.wave-overlay svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: rgba(240, 248, 255, 0.3);
    animation: waveFlow 8s ease-in-out infinite;
}

.wave-path-2 {
    fill: rgba(173, 216, 230, 0.2);
    animation: waveFlow 6s ease-in-out infinite reverse;
}

@keyframes waveFlow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }
}

/* Steam/Mist Effect */
.steam-container {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 40%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.steam {
    position: absolute;
    bottom: 0;
    width: var(--steam-size, 100px);
    height: var(--steam-size, 100px);
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: steamRise var(--steam-duration, 8s) ease-out infinite;
    animation-delay: var(--steam-delay, 0s);
    left: var(--steam-left, 50%);
    opacity: 0;
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-200px) scale(1.5);
        opacity: 0;
    }
}

/* Scroll-triggered parallax effect for hero elements */
.ethereal-hero.scroll-active .hero-content-left {
    transform: translateY(calc(var(--scroll-progress, 0) * -30px));
    transition: transform 0.1s ease-out;
}

.ethereal-hero.scroll-active .hero-visual-content {
    transform: translateY(calc(var(--scroll-progress, 0) * -15px));
    transition: transform 0.1s ease-out;
}

.ethereal-hero.scroll-active .hero-floating-card.top-right {
    transform: translateY(calc(var(--scroll-progress, 0) * -40px + var(--float-offset, 0px)));
}

.ethereal-hero.scroll-active .hero-floating-card.bottom-left {
    transform: translateY(calc(var(--scroll-progress, 0) * -20px + var(--float-offset, 0px)));
}

/* Shimmer effect on glass elements */
.hero-floating-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}

/* Bubble effect for extra shower feel */
.bubbles-container {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: var(--bubble-size, 15px);
    height: var(--bubble-size, 15px);
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(173, 216, 230, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: bubbleFloat var(--bubble-duration, 6s) ease-out infinite;
    animation-delay: var(--bubble-delay, 0s);
    left: var(--bubble-left, 50%);
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(-150px) translateX(20px) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-300px) translateX(-10px) scale(0.8);
        opacity: 0;
    }
}

/* Fade out hero animations on scroll */
.ethereal-hero .water-droplets,
.ethereal-hero .water-ripples,
.ethereal-hero .steam-container,
.ethereal-hero .bubbles-container,
.ethereal-hero .wave-overlay {
    opacity: calc(1 - var(--scroll-progress, 0) * 1.5);
    transition: opacity 0.3s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .ethereal-hero {
        min-height: auto;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content-left {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-label {
        padding-left: 0;
    }

    .hero-label::before {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual-right {
        justify-content: center;
    }

    .hero-visual-content {
        max-width: 100%;
        height: auto;
    }

    .hero-image-wrapper {
        height: 500px;
        border-radius: 20px;
    }

    .hero-image-wrapper::before {
        border-radius: 10px;
    }

    .hero-floating-card.top-right {
        top: 40px;
        right: 0;
    }

    .hero-floating-card.bottom-left {
        bottom: 40px;
        left: 0;
    }

    /* Hide scroll indicator on mobile - not needed and overlaps with hero content */
    .scroll-indicator {
        display: none;
    }
}

/* --- GRIDS & LAYOUT --- */

/* Section Headers */
.section-wrapper {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Elegant Glow Background */
.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(44, 116, 179, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Category Grid - HORIZONTAL SCROLL FIXED */
.category-navigation {
    position: relative;
    padding: 0 50px;
}

.category-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 20px 0;
    scroll-behavior: smooth;
    /* Limit width to show exactly 5 cards: 5*220px + 4*15px gap = 1160px */
    max-width: 1160px;
    margin: 0 auto;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-grid {
    display: flex;
    /* Changed from Grid to Flex for horizontal scroll */
    gap: 15px;
    width: max-content;
}

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 260px;
    width: 220px;
    /* Fit 5 in view */
    cursor: pointer;
    flex-shrink: 0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Ensure anchor-based category cards have no default link styling */
a.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Make category images pass through pointer events so right-click shows link menu, not image menu */
a.category-card .category-card-img,
a.category-card .category-card-body {
    pointer-events: none;
}

.category-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

.category-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: left;
}

.category-card-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.category-card-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--primary);
}

.category-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.category-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.category-arrow.left {
    left: 0;
}

.category-arrow.right {
    right: 0;
}

/* Product Grid - THE FIX */
.products-grid {
    display: grid;
    /* Force 4 columns on large screens (min-width > 1200px approx) */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    width: 100%;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.product-card-img-wrapper {
    height: 240px;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Wishlist Button on Product Card */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.wishlist-btn:hover i {
    color: white;
}

.wishlist-btn i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.wishlist-btn.wishlisted {
    background: var(--danger);
}

.wishlist-btn.wishlisted i {
    color: white;
}


.product-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.4;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ensure anchor tags in product cards don't have default link styles */
a.product-card-img-wrapper {
    text-decoration: none;
    display: flex;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Make images pass through pointer events so right-click shows link menu, not image menu */
a.product-card-img-wrapper img,
a.product-card-img-wrapper .no-image-placeholder {
    pointer-events: none;
}

/* Keep wishlist button clickable */
a.product-card-img-wrapper .wishlist-btn {
    pointer-events: auto;
}

a.product-name {
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.product-name:hover {
    color: var(--secondary);
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 500;
}

.discount-price {
    color: var(--danger);
    font-weight: 800;
}

.btn-add-cart {
    width: 100%;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.product-card:hover .btn-add-cart {
    background: var(--primary);
    color: white;
}

.btn-add-cart.added {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Why Choose Section - REDESIGNED */
.about-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(44, 116, 179, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(44, 116, 179, 0.2) 0%, transparent 20%);
    pointer-events: none;
}

.about-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.about-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
}

/* Footer - WEIRDNESS FIXED */
footer {
    background: linear-gradient(180deg, #0a1628 0%, #020617 100%);
    color: #94A3B8;
    padding-top: 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative glow effect */
.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(19, 70, 134, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Footer Brand Section */
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo h5 {
    margin: 0;
    font-size: 1.4rem;
}

.footer-section h5 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #94A3B8;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94A3B8;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0;
}

.social-links a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(32, 176, 200, 0.3);
    padding-left: 0;
}

/* Contact Section */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 0 !important;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(32, 176, 200, 0.3);
    transform: translateX(5px);
    padding-left: 15px !important;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, #000000 100%);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748B;
}

.footer-bottom a {
    color: #38bdf8 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: white !important;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* --- Mobile Improvements --- */
.bottom-nav {
    display: none;
    /* Default hidden */
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    position: relative;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .header-actions {
        display: none;
        /* Hide on mobile/tablet, show bottom nav */
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-glow {
        width: 400px;
        height: 200px;
    }

    .contact-item {
        padding: 10px 12px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        zoom: 0.85;
    }

    .top-bar {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    /* Only show here */

    .carousel-item {
        height: 400px;
    }

    .carousel-caption-custom {
        left: 20px;
        right: 20px;
        width: auto;
        padding: 30px;
        text-align: center;
    }

    .carousel-caption-custom h2 {
        font-size: 2rem;
    }

    .products-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: left;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand .footer-logo {
        justify-content: flex-start;
    }

    .footer-section h5::after {
        left: 0;
        transform: none;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-links a {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .contact-items {
        align-items: flex-start;
    }

    .contact-item {
        width: 100%;
        max-width: 100%;
    }

    /* Fix Review Count Positioning */
    .product-rating {
        flex-wrap: wrap;
    }

    .product-rating .review-count {
        width: 100%;
        margin-top: 4px;
        font-size: 0.8rem;
        color: var(--text-muted);
    }
}

/* Toast */
.custom-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast.success {
    border-left-color: var(--success);
}

.custom-toast.danger {
    border-left-color: var(--danger);
}

.custom-toast.info {
    border-left-color: var(--secondary);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Load More Button */
.btn-show-more {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-show-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 38, 71, 0.2);
}

/* --- Offcanvas & Cart Styles --- */
.offcanvas {
    background: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    background: var(--primary);
    color: white;
    padding: 20px 25px;
}

.offcanvas-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
    /* Fix visibility on navy background */
}

.offcanvas-body {
    padding: 25px;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary);
    transform: translateX(-2px);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    padding: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
    line-height: 1.3;
}

.cart-item-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    width: fit-content;
    padding: 4px 8px;
    border-radius: 20px;
}

.cart-item-quantity .btn-qty {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.cart-item-quantity .btn-qty:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.cart-item-quantity .btn-qty:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-item-quantity span {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

/* Cart Total & Checkout */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--success);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-checkout:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Wishlist Items (Reusing style) */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

/* --- Product Detail Page Styles --- */
.product-detail-section {
    padding: 40px 0;
}

.product-detail {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    perspective: 1000px;
    /* Add perspective for 3D effect */
}

/* Slider Structure */
.image-slider-container {
    width: 100%;
    overflow: hidden;
}

.image-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-out;
    cursor: grab;
}

.image-slider-track:active {
    cursor: grabbing;
}

.product-image {
    width: 100%;
    flex-shrink: 0;
    /* Prevent shrinking */
    height: auto;
    object-fit: contain;
    /* Ensure full image visibility */
    display: block;
    pointer-events: none;
    /* Prevent drag ghosting */
}

.product-image.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}



.category-badge {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stars {
    color: var(--warning);
}

.product-price-large {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;
    white-space: pre-line;
}

/* Product Gallery Navigation */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
}

.product-image-wrapper:hover .gallery-nav-arrow {
    opacity: 1;
}

.gallery-nav-arrow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-arrow.left {
    left: 15px;
}

.gallery-nav-arrow.right {
    right: 15px;
}

.image-counter-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.image-gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s;
    opacity: 0.7;
}

.gallery-thumbnail:hover {
    opacity: 1;
}

.gallery-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Page Buttons & Price */
.product-price-wrapper {
    margin-bottom: 20px;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price.discounted {
    color: var(--danger);
    margin-left: 10px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sale-badge {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

.original-price-detail {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.savings-info {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(19, 70, 134, 0.2);
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(19, 70, 134, 0.3);
    color: white;
}

.wishlist-btn-detail {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 14px;
    width: 100%;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.wishlist-btn-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

.wishlist-btn-detail.wishlisted {
    color: white;
    border-color: var(--danger);
    background: var(--danger);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--primary);
}

/* Features Section */
.features-section {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.features-section h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-section li:last-child {
    border-bottom: none;
}

.features-section li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Quantity Selector (Product Detail) */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quantity-selector input {
    width: 70px;
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.btn-add-to-cart-large {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart-large:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.related-products {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}


/* --- Checkout Page Styles --- */
.checkout-container {
    padding: 40px 0;
}

.section-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.checkout-container .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item:hover {
    background: var(--bg-secondary);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1rem;
}

.item-quantity {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.summary-totals {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.save-account-box {
    background: #e7f7fa;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.password-fields {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--primary);
}

.password-fields.show {
    display: block;
}

.btn-place-order {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-place-order:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-place-order:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.info-box {
    background: #e7f7fa;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 10px;
}

/* --- Auth Pages --- */
.auth-page-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: var(--bg-light);
}

.auth-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    background: var(--primary);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.auth-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-body {
    padding: 30px;
}

.auth-footer {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Bottom Navigation --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item .cart-count,
.bottom-nav-item .wishlist-count {
    position: absolute;
    top: 5px;
    right: 25%;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991.98px) {

    /* Header Adjustments */
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 10px 0;
    }

    .main-nav {
        display: none;
    }

    /* Hide desktop nav */

    .header-actions {
        gap: 15px;
    }

    .header-action span:not(.badge-count) {
        display: none;
        /* Hide labels on tablet/mobile header */
    }

    /* Grid Adjustments */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card-img-wrapper {
        height: 180px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {

    /* Mobile General */
    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    /* Mobile Bottom Nav */
    .bottom-nav {
        display: block;
    }

    /* Hide Desktop Header Actions that are in bottom nav */
    .header-actions {
        display: none;
    }

    /* Center Logo on Mobile */
    .logo img {
        height: 35px;
    }

    /* Search Bar Compact */
    .search-container {
        margin-top: 10px;
    }

    .search-form button {
        padding: 0 15px;
    }

    /* Load More Button Mobile */
    .btn-show-more {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-carousel {
        margin: 10px -15px;
        /* Full width on mobile */
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .carousel-item {
        height: 350px;
    }

    .carousel-caption-custom {
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: none;
        padding: 20px;
        text-align: center;
        background: rgba(255, 255, 255, 0.9);
    }

    .carousel-caption-custom h2 {
        font-size: 1.8rem;
    }

    /* Category Grid */
    .category-navigation {
        padding: 0;
    }

    .category-scroll-container {
        padding: 10px 15px;
        /* Add internal padding for safe scrolling */
        margin: 0 -15px;
        /* Negative margin to pull to edges */
        width: calc(100% + 30px);
    }

    .category-grid {
        padding-right: 30px;
        /* Space for end of scroll */
    }

    .category-card {
        width: 140px;
        height: 160px;
    }

    .category-card-body {
        padding: 10px;
    }

    .category-card-title {
        font-size: 1rem;
    }

    .category-arrow {
        display: none;
        /* Hide arrows on touch devices */
    }

    /* Filters */
    .filters-section .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Product Detail */
    .product-detail {
        padding: 15px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 2rem;
    }

    /* Cart Offcanvas */
    .offcanvas {
        width: 85%;
    }
}

/* --- WhatsApp Floating Icon --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
}

.whatsapp-float i {
    line-height: 0;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* --- Checkout Page Banners --- */
.login-banner,
.welcome-banner {
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
}

.login-banner .container,
.welcome-banner .container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.welcome-banner {
    background: #f0fdf4;
    border-color: #dcfce7;
    color: #166534;
}

.login-banner i,
.welcome-banner i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.welcome-banner i {
    color: #22c55e;
}

.btn-login,
.btn-logout {
    margin-left: auto;
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-login i,
.btn-logout i {
    color: white;
}

.btn-logout {
    background: #ef4444;
}

.btn-login:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    color: white;
}

@media (max-width: 768px) {

    .login-banner .container,
    .welcome-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .btn-login,
    .btn-logout {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}