/* ==========================================================================
   HUB CANNABIS - Premium E-Commerce Theme
   A futuristic, immersive shopping experience
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES - Design Tokens
   ========================================================================== */

:root {
    /* -------------------------------------------------------------------------
       Primary Palette - Deep Luxurious Greens
       ------------------------------------------------------------------------- */
    --color-primary: #0a1f14;
    --color-primary-light: #163d2a;
    --color-primary-dark: #050f0a;
    --color-primary-glow: rgba(22, 61, 42, 0.4);

    /* -------------------------------------------------------------------------
       Accent - Liquid Gold
       ------------------------------------------------------------------------- */
    --color-accent: #e5b94e;
    --color-accent-light: #f5d87a;
    --color-accent-dark: #c9a033;
    --color-accent-glow: rgba(229, 185, 78, 0.35);

    /* -------------------------------------------------------------------------
       Secondary - Fresh Botanical
       ------------------------------------------------------------------------- */
    --color-secondary: #2d8a5e;
    --color-secondary-light: #45b87a;
    --color-secondary-glow: rgba(45, 138, 94, 0.3);

    /* -------------------------------------------------------------------------
       Neutrals - Premium Warm Tones
       ------------------------------------------------------------------------- */
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-muted: #7a7a7a;
    --color-bg: #fafaf8;
    --color-bg-warm: #f5f3ef;
    --color-bg-glass: rgba(255, 255, 255, 0.7);
    --color-white: #ffffff;
    --color-border: #e8e6e1;
    --color-border-light: #f0eeea;

    /* -------------------------------------------------------------------------
       Effects & Shadows - Depth & Dimension
       ------------------------------------------------------------------------- */
    --shadow-xs: 0 1px 2px rgba(10, 31, 20, 0.04);
    --shadow-sm: 0 4px 12px rgba(10, 31, 20, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 31, 20, 0.1);
    --shadow-lg: 0 20px 50px rgba(10, 31, 20, 0.15);
    --shadow-xl: 0 30px 80px rgba(10, 31, 20, 0.2);
    --shadow-glow-gold: 0 0 40px var(--color-accent-glow);
    --shadow-glow-green: 0 0 40px var(--color-secondary-glow);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* -------------------------------------------------------------------------
       Glass Effect
       ------------------------------------------------------------------------- */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);

    /* -------------------------------------------------------------------------
       Border Radius - Organic & Fluid
       ------------------------------------------------------------------------- */
    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-2xl: 64px;
    --radius-full: 9999px;
    --radius-blob: 60% 40% 50% 50% / 50% 50% 40% 60%;

    /* -------------------------------------------------------------------------
       Transitions - Smooth & Satisfying
       ------------------------------------------------------------------------- */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: 0.15s var(--ease-smooth);
    --transition: 0.3s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);
    --transition-bounce: 0.4s var(--ease-bounce);
}

/* ==========================================================================
   2. KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--color-accent-glow); }
    50% { box-shadow: 0 0 40px var(--color-accent-glow), 0 0 60px var(--color-accent-glow); }
}

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

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

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-right {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }
    25% { border-radius: 50% 60% 40% 50% / 40% 50% 60% 50%; }
    50% { border-radius: 40% 50% 60% 50% / 50% 40% 50% 60%; }
    75% { border-radius: 50% 40% 50% 60% / 60% 50% 40% 50%; }
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.05); }
    50% { transform: translate(-5px, 10px) scale(0.95); }
    75% { transform: translate(-15px, -5px) scale(1.02); }
}

/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
}

/* Selection styling */
::selection {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   4. LAYOUT & CONTAINER
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

header {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
}

/* Logo */
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.02);
    color: var(--color-white) !important;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow-gold);
}

.logo span {
    color: var(--color-white);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
    z-index: -1;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    opacity: 1;
}

/* Nav Search */
.nav-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-search-input {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: inherit;
    transition: all var(--transition);
    width: 160px;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
    width: 200px;
}

.nav-store-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-store-filter:focus {
    outline: none;
    border-color: var(--color-accent);
}

.nav-store-filter option {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-nav {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.btn-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-gold);
}

.btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-color: transparent;
}

.btn-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

header ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

header li a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

header li a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

header li a.active {
    color: var(--color-accent);
}

/* ==========================================================================
   6. HERO BANNER - Homepage
   ========================================================================== */

.hero-banner {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    padding: 4rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    /* contain: layout paint; */
    animation: fadeIn 0.8s var(--ease-smooth);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 20, 0.92) 0%,
        rgba(22, 61, 42, 0.75) 40%,
        rgba(45, 138, 94, 0.5) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: leaf-float 15s ease-in-out infinite;
}

.floating-leaf:nth-child(1) {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.floating-leaf:nth-child(2) {
    top: 60%;
    right: 10%;
    font-size: 1.5rem;
    animation-delay: -5s;
}

.floating-leaf:nth-child(3) {
    top: 40%;
    right: 35%;
    font-size: 2.5rem;
    animation-delay: -10s;
}

@keyframes leaf-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -30px) rotate(10deg); }
    50% { transform: translate(10px, -15px) rotate(-5deg); }
    75% { transform: translate(-10px, 20px) rotate(5deg); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.title-word {
    display: inline-block;
    animation: word-reveal 0.8s var(--ease-bounce) backwards;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }

.title-word.highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: word-reveal 0.8s var(--ease-bounce) 0.3s backwards, gradient-shift 4s ease infinite;
}

@keyframes word-reveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-20deg);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

/* Hero Subtitle with Rotating Words */
.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.5s backwards;
}

.rotating-words {
    display: inline-block;
    position: relative;
    height: 1.5em;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 120px;
}

.rotating-words .word {
    position: absolute;
    left: 0;
    opacity: 0;
    font-weight: 700;
    color: var(--color-accent);
    transform: translateY(100%);
    transition: all 0.5s var(--ease-smooth);
}

.rotating-words .word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-words .word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.7s backwards;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.9s backwards;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: inline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.hero-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Hero CTA Button */
.btn-shop {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-primary-dark);
    padding: 1.1rem 2.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-bounce);
    box-shadow: 0 8px 30px var(--color-accent-glow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-shop svg {
    transition: transform 0.3s var(--ease-bounce);
}

.btn-shop:hover svg {
    transform: translateX(4px);
}

.btn-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-shop:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px var(--color-accent-glow);
    color: var(--color-primary-dark);
}

.btn-shop:hover::before {
    left: 100%;
}

.btn-shop:active {
    transform: translateY(-2px) scale(1);
}

/* ==========================================================================
   7. HERO SECTION (Alternative)
   ========================================================================== */

.hero {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-warm) 100%);
    border-radius: var(--radius-2xl);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-blob);
    pointer-events: none;
    animation: morph 15s ease-in-out infinite, blob-float 20s ease-in-out infinite;
    filter: blur(60px);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: var(--color-secondary-glow);
    border-radius: var(--radius-blob);
    pointer-events: none;
    animation: morph 18s ease-in-out infinite reverse, blob-float 25s ease-in-out infinite reverse;
    filter: blur(50px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    position: relative;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
}

/* ==========================================================================
   8. BUTTONS - Premium Interactive
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: 1rem 2.25rem;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm), 0 4px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 6px 0 rgba(0, 0, 0, 0.1);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm), 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-sm), 0 4px 0 var(--color-accent-dark);
}

.btn-accent:hover {
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. SECTION HEADERS
   ========================================================================== */

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.section-top h2 {
    font-size: 1.85rem;
    margin: 0;
    position: relative;
}

.section-top h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-full);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.view-all:hover {
    color: var(--color-accent);
    background: rgba(229, 185, 78, 0.1);
}

.view-all span {
    transition: transform var(--transition);
}

.view-all:hover span {
    transform: translateX(5px);
}

.featured-stores,
.products-section,
.stores-section {
    margin-bottom: 4rem;
}

/* ==========================================================================
   10. PRODUCT CARDS - Premium Interactive
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInUp 0.6s var(--ease-smooth) backwards;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02) rotate(0.5deg);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.product-card .product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.product-card .product-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin: 1rem;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-slow);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

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

.product-card .product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-sm);
}

.product-card .product-image .no-image span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(4px);
}

/* Product Content */
.product-card .product-content {
    padding: 1.5rem;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card .product-content h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color var(--transition);
}

.product-card:hover .product-content h3 {
    color: var(--color-accent-dark);
}

.product-card .product-content .store-name {
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-card .product-content .store-name::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--color-secondary-glow);
}

.product-card .product-content .brand {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card .product-content .description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

.product-meta .price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.product-meta .stock {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-meta .stock.in-stock {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.15);
}

.product-meta .stock.out-of-stock {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* External Link Button */
.product-external-link {
    display: block;
    text-align: center;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.product-external-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 94, 0.3);
    color: var(--color-white);
}

.product-external-link:hover::before {
    opacity: 1;
}

.product-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   11. STORE CARDS
   ========================================================================== */

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.store-card {
    display: block;
    text-decoration: none;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-secondary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.store-card:hover {
    transform: translateY(-12px) scale(1.02) rotate(-0.5deg);
    box-shadow: var(--shadow-xl);
}

.store-card:hover::before {
    opacity: 0.5;
}

.store-card .store-image {
    width: calc(100% - 1.5rem);
    margin: 0.75rem auto 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.store-card .store-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-slow);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.12));
}

.store-card:hover .store-image img {
    transform: scale(1.08);
}

.store-card .store-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-sm);
}

.store-card .store-image .no-image span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.store-card .store-content {
    padding: 1.75rem;
    text-align: center;
}

.store-card h2,
.store-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    transition: color var(--transition);
}

.store-card:hover h2,
.store-card:hover h3 {
    color: var(--color-accent-dark);
}

.store-card h3 a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.store-card h3 a:hover {
    color: var(--color-accent);
}

.store-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.store-card .rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(229, 185, 78, 0.1);
    border-radius: var(--radius-full);
}

.store-card .rating::before {
    content: "★";
    font-size: 1.1rem;
}

.store-card .location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.store-card .location::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   12. CAROUSEL
   ========================================================================== */

.products-carousel,
.stores-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

.products-carousel::-webkit-scrollbar,
.stores-carousel::-webkit-scrollbar {
    height: 8px;
}

.products-carousel::-webkit-scrollbar-track,
.stores-carousel::-webkit-scrollbar-track {
    background: var(--color-border-light);
    border-radius: var(--radius-full);
}

.products-carousel::-webkit-scrollbar-thumb,
.stores-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-full);
}

.carousel-card {
    flex: 0 0 240px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    scroll-snap-align: start;
}

.carousel-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 170px;
    margin: 0.75rem 0.75rem 0;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.card-image .no-image span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(10, 31, 20, 0.9);
    color: var(--color-white);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.card-info {
    padding: 1.25rem;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info h3 a {
    color: var(--color-primary);
    transition: color var(--transition);
}

.card-info h3 a:hover {
    color: var(--color-accent);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.card-meta .price {
    font-weight: 700;
    color: var(--color-primary);
}

.card-meta .rating {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   13. PAGES - Products & Stores
   ========================================================================== */

.stores-page,
.products-page {
    padding: 3rem 0;
    min-height: 100vh;
    background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 25%, #a5d6a7 50%, #c8e6c9 75%, #e8f5e9 100%);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.stores-page::before,
.products-page::before {
    content: "";
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(229, 185, 78, 0.2);
    border-radius: var(--radius-blob);
    pointer-events: none;
    animation: morph 20s ease-in-out infinite, blob-float 30s ease-in-out infinite;
    filter: blur(80px);
}

.stores-page::after,
.products-page::after {
    content: "";
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(45, 138, 94, 0.15);
    border-radius: var(--radius-blob);
    pointer-events: none;
    animation: morph 25s ease-in-out infinite reverse, blob-float 35s ease-in-out infinite reverse;
    filter: blur(70px);
}

.stores-page h1,
.products-page h1 {
    font-size: 2.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    animation: fadeInUp 0.6s var(--ease-smooth);
}

.stores-page > p,
.products-page > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.1s backwards;
}

/* Search Box */
.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.2s backwards;
}

.search-input {
    flex: 1;
    padding: 1.1rem 1.75rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md), 0 0 0 4px var(--color-accent-glow);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-results-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* Lazy Loading */
.lazy-sentinel {
    height: 1px;
    width: 100%;
}

.lazy-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.store-filter {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    min-width: 160px;
}

.store-filter:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md), 0 0 0 4px var(--color-accent-glow);
}

/* ==========================================================================
   14. DETAIL PAGES - Store & Product
   ========================================================================== */

.store-detail,
.product-detail {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    animation: scale-in 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.store-detail::before,
.product-detail::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-blob);
    pointer-events: none;
    animation: morph 12s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.5;
}

/* Breadcrumb */
.breadcrumb a, span {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    color: var(--color-text-muted);
}

.store-detail .breadcrumb,
.product-detail .breadcrumb,
.category-detail .breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.store-detail .breadcrumb a,
.product-detail .breadcrumb a,
.category-detail .breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.store-detail .breadcrumb a:hover,
.product-detail .breadcrumb a:hover,
.category-detail .breadcrumb a:hover {
    color: var(--color-accent);
}

/* Store Detail */
.store-detail .store-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.store-detail .store-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-warm);
}

.store-detail .store-image img {
    width: 100%;
    height: auto;
    display: block;
}

.store-detail .store-image .no-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.store-detail .store-image .no-image span {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
}

.store-detail .store-info .location {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.store-detail .store-info .rating {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.store-detail .store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.store-detail .store-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.store-detail .badge-verified  { background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light)); }
.store-detail .badge-delivery  { background: #2e7d32; }
.store-detail .badge-shipping  { background: #1565c0; }
.store-detail .badge-physical  { background: #6a1b9a; }
.store-detail .badge-payment   { background: #e65100; }

/* legacy — keep working if still referenced */
.store-detail .verified-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-detail .description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.store-detail .cta .btn-primary,
.product-detail .cta .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm), var(--shadow-glow-gold);
}

.store-detail .cta .btn-primary:hover,
.product-detail .cta .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

/* Galleries */
.store-detail .store-gallery,
.product-detail .product-gallery {
    margin-top: 2.5rem;
}

.store-detail .gallery-grid,
.product-detail .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.store-detail .gallery-grid img,
.product-detail .gallery-grid img {
    width: 100%;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.product-detail .gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Product Detail Specific */
.product-detail .product-header {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3rem;
}

.product-detail .product-gallery-container,
.product-detail .product-info {
    min-width: 0;
}

.product-detail .product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-warm);
}

.product-detail .product-image img {
    width: 100%;
    height: auto;
}

.product-detail .product-image .no-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.product-detail .product-info h1 {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-detail .product-info .section-label,
.store-detail .store-info .section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 1.5rem 0 0.4rem;
}

.product-detail .brand {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.product-detail .category {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.product-detail .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.product-detail .stock {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.product-detail .stock.in-stock {
    color: var(--color-secondary);
}

.product-detail .stock.out-of-stock {
    color: #dc3545;
}

.product-detail .description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-detail .description * {
    max-width: 100%;
}

.product-detail .store-info {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--color-bg-warm), var(--color-bg));
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border-light);
}

.product-detail .store-info a {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   15. TAGS & BADGES
   ========================================================================== */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--color-bg-warm);
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    transition: all var(--transition-bounce);
}

.tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.tag-accent {
    background: rgba(229, 185, 78, 0.15);
    color: var(--color-accent-dark);
    border-color: rgba(229, 185, 78, 0.3);
}

.tag-accent:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

footer, .site-footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

footer::before, .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

footer p, .site-footer p {
    font-size: 0.95rem;
    margin: 0;
}

footer a, .site-footer a {
    color: var(--color-accent-light);
    transition: color var(--transition);
}

footer a:hover, .site-footer a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   17. LOADING STATES
   ========================================================================== */

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--color-text-muted);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 1rem;
    vertical-align: middle;
}

.empty-msg {
    color: var(--color-text-muted);
    text-align: center;
    width: 100%;
    padding: 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

/* ==========================================================================
   19. DASHBOARD - Backend
   ========================================================================== */

.dashboard-wrapper {
    display: flex;
    min-height: 90vh;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 160px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.sidebar-header h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu li a {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--color-white);
    transition: all var(--transition);
}

.sidebar-menu li a.active,
.sidebar-menu li a:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    min-width: 0;
    width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-primary-dark);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: var(--shadow-glow-gold);
}

.dashboard-header p {
    margin-bottom: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--color-border-light);
}

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

.card h3 {
    font-size: 1.1rem;
    margin: 0.75rem 0;
    color: var(--color-primary);
}

.card p {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: 'Space Grotesk', sans-serif;
}

.card-icon {
    font-size: 2.5rem;
}

.card-users .card-icon { color: var(--color-accent); }
.card-stores .card-icon { color: var(--color-secondary); }
.card-orders .card-icon { color: #e57373; }
.card-revenue .card-icon { color: #ffb74d; }

/* ==========================================================================
   20. FORMS - Banner & General
   ========================================================================== */

.banner-form {
    background: var(--color-bg-warm);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.banner-form label {
    font-weight: 600;
    color: var(--color-primary);
}

.banner-form input[type="file"] {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--color-border);
    transition: border-color var(--transition);
}

.banner-form input[type="file"]:hover {
    border-color: var(--color-accent);
}

.banner-form button {
    align-self: start;
}

.banner-item.banner-active {
    border: 4px solid var(--color-secondary) !important;
    box-shadow: 0 0 20px var(--color-secondary-glow);
}

/* ==========================================================================
   21. RESPONSIVE DESIGN
   ========================================================================== */

/* Hamburger button — escondido em desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Header */
    header nav {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0.875rem 1.25rem;
        position: relative;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    /* Search sempre visível no mobile — fica na topbar */
    .nav-search {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-search-input {
        width: 130px;
        min-width: 0;
    }

    .nav-store-filter {
        display: none;
    }

    /* Menu dropdown mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    /* Estado aberto */
    .nav-menu.open {
        display: flex;
    }

    /* Main */
    main {
        padding: 2rem 1.25rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 1.5rem;
        border-radius: var(--radius-lg);
    }

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

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

    .hero-banner {
        min-height: 400px;
        padding: 2rem;
        border-radius: var(--radius-lg);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .floating-leaf {
        display: none;
    }

    /* Grids */
    .stores-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .store-card {
        padding: 1.5rem;
    }

    /* Pages */
    .products-page h1,
    .stores-page h1 {
        font-size: 2rem;
    }

    /* Cards */
    .product-card:hover {
        transform: translateY(-6px);
    }

    .product-card .product-image {
        aspect-ratio: 16/10;
    }

    .product-card .product-content {
        padding: 1.25rem;
    }

    .product-meta .price {
        font-size: 1.15rem;
    }

    /* Carousel */
    .carousel-card {
        flex: 0 0 200px;
    }

    .card-image {
        height: 140px;
    }

    /* Details — edge-to-edge no mobile */
    .store-detail,
    .product-detail {
        padding: 1.25rem;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }

    .store-detail h1 {
        font-size: 1.75rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .store-detail .store-header,
    .product-detail .product-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tipografia produto no mobile */
    .product-detail .product-info h1 {
        font-size: 1.5rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .product-detail .price {
        font-size: 1.75rem;
    }

    /* Section */
    section h2 {
        font-size: 1.5rem;
    }

    /* Dashboard */
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem;
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 0.5rem;
    }

    .sidebar-menu li a:hover {
        opacity: 0.85;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .btn-shop {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   22. PRINT STYLES
   ========================================================================== */

@media print {
    header, footer, .nav-actions, .sidebar {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .product-card, .store-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   SWIPER - Product Image Carousels
   ========================================================================== */

/* PDP - Main Swiper */
.product-gallery-container {
    max-width: 500px;
}

.product-main-swiper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-main-swiper .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--color-bg-warm);
}

.product-thumbs-swiper {
    margin-top: 10px;
}

.product-thumbs-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
}

.product-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--color-accent);
}

.product-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-swiper .swiper-button-next,
.product-main-swiper .swiper-button-prev {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.product-main-swiper .swiper-button-next::after,
.product-main-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* Card Mini Swiper - Homepage */
.card-swiper {
    width: 100%;
    height: 100%;
}

.card-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-swiper .swiper-pagination {
    bottom: 8px;
}

.card-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.card-swiper .swiper-pagination-bullet-active {
    background: #000;
}
/* ==========================================================================
   CATEGORIES
   ========================================================================== */

.categories-page {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.categories-page h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.section-subtitle {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin: 4px;
    padding: 8px;
}

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

.category-card .category-image {
    height: 180px;
    background: var(--color-bg-warm);
    overflow: hidden;
    padding: 10px;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card .category-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-accent);
    font-size: 3rem;
    font-weight: 700;
}

.category-card .category-content {
    padding: var(--spacing-md);
}

.category-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.category-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Category Detail */
.category-detail {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.category-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.category-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.category-products h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */

.legal-page {
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.legal-page h2 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.legal-page section {
    margin-bottom: var(--spacing-lg);
}

.legal-page p, .legal-page li {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page ul li {
    margin-bottom: 0.4rem;
}

.legal-updated {
    margin-top: var(--spacing-xl);
    color: var(--color-text-muted);
}

/* ==========================================================================
   ARTICLES
   ========================================================================== */

/* Articles listing */
.articles-list {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    padding: 10px;
}

.article-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.article-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    padding: 5px;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.03);
}

.article-card__body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.article-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

.article-card__title a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-card__title a:hover {
    color: var(--color-accent);
}

.article-card__excerpt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.article-card__cta {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.article-card__cta:hover {
    text-decoration: underline;
}

/* Article detail */
.article-detail {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 860px;
    margin: 0 auto;
}

.article-full__header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 10px;
}

.article-full__header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-bg);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

.article-full__meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: var(--spacing-sm);
}

.article-full__image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-full__image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-full__content {
    color: var(--color-text);
    line-height: 1.85;
    font-size: 1.05rem;
}

.article-full__content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-full__content h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.article-full__content p {
    margin-bottom: var(--spacing-md);
}

.article-full__content ul,
.article-full__content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.article-full__content li {
    margin-bottom: 0.4rem;
}

.article-full__content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.article-full__content a:hover {
    text-decoration: none;
}

.article-full__content dl {
    margin-bottom: var(--spacing-md);
}

.article-full__content dt {
    color: var(--color-primary);
    margin-top: var(--spacing-md);
}

.article-full__content dd {
    color: var(--color-text-muted);
    margin-left: 1rem;
    line-height: 1.7;
}

.article-full__footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.article-full__footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
}

@media (max-width: 768px) {
    .article-full__header h1 {
        font-size: 1.6rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}
