
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Palette — Warm Indigo + Gold */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);

    /* Secondary / Accent */
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --accent-color: #f59e0b;
    --accent-warm: #e11d48;

    /* Surfaces */
    --bg-color: #fafafa;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: #ffffff;
    --card-bg-hover: #fefefe;
    --surface-elevated: rgba(255, 255, 255, 0.85);
    --surface-warm: #f8f6f3;

    /* Text */
    --text-color: #1a1a2e;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #f1f5f9;
    --text-on-primary: #ffffff;
    --text-primary: var(--text-color);

    /* Borders & Dividers */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --divider: rgba(0, 0, 0, 0.06);

    /* Shadows — More refined */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);

    /* Radius — Softer */
    --radius-sm: 0.375rem;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions — Smooth */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--bg-dark);
    color: #e2e8f0;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1001;
}

.announcement-bar strong {
    color: #a78bfa;
}

.announcement-bar a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.announcement-bar a:hover {
    color: #c4b5fd;
}

/* ============================================
   HEADER — Clean Impulse Style (Centered Logo)
   ============================================ */
/* Announcement Bar */
.announcement-bar {
    background: var(--bg-dark);
    /* Fallback or use variable */
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    /* Higher than header to stay on top if needed, or let header cover it */
}

.announcement-bar a {
    color: var(--accent-color);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10000;
    /* Increased z-index */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Increased visibility */
    transition: all var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.main-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 72px;
}

.logo {
    grid-column: 2;
    text-align: center;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.main-nav {
    grid-column: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 40%;
}

.header-actions {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.header-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
}

.header-tool:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.header-tool i,
.header-tool svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    color: #cbd5e1;
    /* Light gray default */
    stroke: currentColor;
    /* Ensure SVG uses text color */
}

.header-tool:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.header-tool:hover i,
.header-tool:hover svg {
    color: #ffffff;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-warm);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    line-height: 1;
    border: 2px solid #0f172a;
}

.user-menu-wrapper {
    display: flex;
    align-items: center;
}

.user-menu {
    margin-left: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.user-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.user-link:hover {
    color: #ffffff !important;
}

.user-logout {
    color: #fca5a5 !important;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.user-logout:hover {
    opacity: 1;
}

/* ============================================
   SEARCH OVERLAY — Premium Full Screen
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    /* Deep dark blue/almost black */
    backdrop-filter: blur(20px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.search-overlay.active .search-container {
    transform: scale(1);
    opacity: 1;
}

/* Promotions Styles - Keep these as they were mixed in */
.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.875rem !important;
}

.new-price {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* Search Controls */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.search-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 3.5rem;
    /* Huge font */
    font-weight: 700;
    /* Bold */
    letter-spacing: -0.02em;
    padding: 1rem 0;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.search-input-group input:focus {
    border-color: var(--primary-color);
}

.search-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.search-input-group input:focus+.search-btn {
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
}

@media (max-width: 768px) {
    .search-input-group input {
        font-size: 2rem;
    }

    .search-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .search-container {
        padding: 1.5rem;
    }
}

/* --- AJAX Search Results --- */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 1rem 0;
    margin-top: 1rem;
}

.search-results-grid::-webkit-scrollbar {
    width: 4px;
}

.search-results-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.4s forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #1e293b;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.result-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-result-item:hover .result-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

.search-no-results,
.search-error {
    text-align: center;
    color: #94a3b8;
    padding: 3rem 1rem;
    font-style: italic;
}

/* ============================================
   BUTTONS — Clean & Minimal
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--text-color);
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-remove:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--text-color);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline-dark:hover {
    background: var(--text-color);
    color: #ffffff;
}

/* ============================================
   HERO SECTION — Full Viewport Impulse Style
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: heroPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

@keyframes heroPulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #c4b5fd;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #ffffff;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    background: none;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION STYLES — Shared
   ============================================ */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   CATEGORY SHOWCASE — Tiles with Hover
   ============================================ */
.category-showcase {
    padding: 5rem 0 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    background: #e2e8f0;
}

.category-tile-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover .category-tile-bg {
    transform: scale(1.08);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background var(--transition);
}

.category-tile:hover .category-tile-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */
.product-carousel-wrapper {
    position: relative;
    padding: 0 1rem;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.product-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.carousel-btn:hover {
    background: var(--text-color);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: -24px;
}

.next-btn {
    right: -24px;
}

.badge-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }

    .carousel-item {
        width: 240px;
    }
}

.category-tile-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.category-tile-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ============================================
   PRODUCTS — Impulse-Style Cards
   ============================================ */
.featured-products {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Tablet: 2 Columns */
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 Columns (Default for Store) */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Modifier for 4 columns (Home/Featured) */
    .product-grid.grid-4-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card::after {
    display: none;
}

.product-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.product-image {
    height: 280px;
    background-color: #f1f0ee;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Quick-add overlay on hover */
.product-card .quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    transform: translateY(100%);
    transition: transform var(--transition);
    z-index: 5;
}

.product-card:hover .quick-add {
    transform: translateY(0);
}

.product-info {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-color);
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-block;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 0.65rem;
    background: var(--text-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    margin-top: auto;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.add-to-cart:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.no-products {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 2rem;
    font-size: 1.05rem;
}

/* Category Links (store page) */
.category-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.category-links a {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: white;
}

.category-links a:hover,
.category-links a.active-cat {
    background: var(--text-color);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ============================================
   PROMOTIONAL BANNER — Split Layout
   ============================================ */
.promo-banner {
    padding: 3rem 0 5rem;
}

.promo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-warm);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
}

.promo-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    background-color: #e8e4df;
    background-image: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 50%, #f5f3ff 100%);
}

.promo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}

.promo-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.promo-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.trust-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.newsletter-section .section-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-section .section-subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: #64748b;
}

.newsletter-form button {
    padding: 0.9rem 1.75rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

/* ============================================
   FOOTER — Multi-Column Impulse Style
   ============================================ */
.main-footer {
    background: var(--bg-darker);
    color: #94a3b8;
    padding: 0;
    margin-top: 0;
    border-top: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-brand h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #64748b;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #e2e8f0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #475569;
}

.footer-admin {
    margin-top: 0;
}

.footer-admin a {
    color: #475569;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.footer-admin a:hover {
    opacity: 1;
    color: #94a3b8;
}

/* Page Layout Spacing */
.page-container {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.section-spacing-top {
    padding-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mt-4 {
    margin-top: 4rem !important;
}

/* Breadcrumb Styles */
.ui-breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ui-breadcrumb a {
    color: var(--text-secondary);
    font-weight: 500;
}

.ui-breadcrumb .separator {
    margin: 0 0.5rem;
}

.ui-breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Detail Utilities */
.product-detail-hero-img {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.product-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    opacity: 0.3;
}

.product-title-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.discount-badge-large {
    font-size: 0.9rem;
    background: #fee2e2;
    color: #ef4444;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-dot.in-stock {
    background: #10b981;
}

.stock-dot.out-of-stock {
    background: #ef4444;
}

.stock-text {
    font-weight: 600;
}

.stock-text.in-stock {
    color: #065f46;
}

.stock-text.out-of-stock {
    color: #991b1b;
}

.purchase-actions-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
}

.quantity-control-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.quantity-control-btn {
    border: none;
    background: #f1f5f9;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: background 0.2s;
}

.quantity-control-btn.minus {
    border-right: 1px solid #cbd5e1;
}

.quantity-control-btn.plus {
    border-left: 1px solid #cbd5e1;
}

.quantity-input-field {
    width: 80px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    padding: 0.5rem 0;
}

/* Cart Specific Styles */
.cart-empty-message {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--radius-xl);
}

.cart-empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.2;
}

/* ============================================
   AUTHENTICATION & PROFILE
   ============================================ */
.auth-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-xl);
}

.auth-card.wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.auth-switch a:hover {
    text-decoration: none;
    color: var(--primary-hover);
}

.styled-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.styled-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.styled-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.cart-layout-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .cart-layout-container {
        flex-direction: row;
        align-items: start;
    }

    .cart-items-wrapper {
        flex: 1;
    }
}

.cart-items-wrapper {
    overflow-x: auto;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.cart-table-styled {
    width: 100%;
    border-collapse: collapse;
}

.cart-table-styled th {
    padding: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cart-table-styled td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-table-styled tr:last-child td {
    border-bottom: none;
}

.cart-product-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05rem;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-img-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-light);
}

.cart-summary-card {
    margin-left: auto;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

@media (min-width: 1024px) {
    .cart-summary-card {
        width: 400px;
        position: sticky;
        top: 120px;
        /* Spacing from header */
    }
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cart-summary-line.total {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    font-size: 1.4rem;
    font-weight: 800;
}

.cart-summary-total-amount {
    color: var(--primary-color);
}

.cart-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
    padding: 3rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.checkout-form-container,
.order-summary-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* ============================================
   FORMS — Glow Focus
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    background: white;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
    padding: 3rem 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-table th,
.cart-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table input[type="number"] {
    width: 70px;
    padding: 0.4rem 0.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.cart-table input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ============================================
   ALERTS — Modern Clean Style
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

/* ============================================
   UI UTILITIES (T-UI-1 & T-UI-2 Refactor)
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols for footer seems better balanced than 4 if content is sparse */
    }
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.ui-error-box {
    background: #ef4444;
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    z-index: 9999;
    position: relative;
    margin: 1rem 0;
    font-weight: 500;
}

.catalog-link-wrapper {
    text-align: center;
    margin-top: 4rem;
}

.promo-actions {
    display: flex;
    gap: 1rem;
}

.old-price-styled {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-right: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-light);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

/* ============================================
   ADMIN PANEL — Polished Dark Sidebar
   ============================================ */
.admin-panel {
    background-color: #f1f5f9;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 1.75rem 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin: 0.15rem 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #94a3b8;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.sidebar-nav li.active a {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.sidebar-nav .logout-link {
    color: #f87171 !important;
    opacity: 0.7;
}

.sidebar-nav .logout-link:hover {
    opacity: 1;
    background: rgba(248, 113, 113, 0.1) !important;
    color: #f87171 !important;
}

.admin-content {
    padding: 2rem 2.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

/* ============================================
   ADMIN TABLE
   ============================================ */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
}

.admin-table th {
    text-align: left;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--border-color);
    background: #f8fafc;
}

.admin-table td {
    text-align: left;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color var(--transition-fast);
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.pending::before {
    background: #f59e0b;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.completed::before {
    background: #10b981;
}

.status-badge.shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.shipped::before {
    background: #3b82f6;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.cancelled::before {
    background: #ef4444;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.action-btn:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

.action-btn.delete:hover {
    background: #fee2e2;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* Stat Cards for Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

/* ============================================
   MODALS — Backdrop Blur
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    position: sticky;
    bottom: -2rem;
    background: white;
    padding: 1rem 0;
    margin: 1rem -2rem -2rem -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    line-height: 1;
    z-index: 5;
}

.close:hover {
    color: var(--text-color);
}

/* ============================================
   ORDER DETAIL MODAL
   ============================================ */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-group h4,
.order-items-section h4,
.status-update-form h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.info-group p {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.items-table th,
.items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.items-table th {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-update-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.inline-form {
    display: flex;
    gap: 0.75rem;
}

.inline-form select {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
}

.inline-form select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ============================================
   INVOICE & SUCCESS PAGES
   ============================================ */
.invoice-container,
.success-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* ============================================
   MY ORDERS
   ============================================ */
.orders-page {
    padding: 3rem 0;
}

.order-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* ============================================
   PRODUCT DETAILS PAGE
   ============================================ */
.product-detail-page {
    padding: 3rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-detail-info {
    padding: 1rem 0;
}

.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Variant selector */
.variant-selector {
    margin-bottom: 1.5rem;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    font-family: inherit;
}

.variant-btn:hover {
    border-color: var(--primary-light);
}

.variant-btn.selected {
    border-color: var(--primary-color);
    background: #eef2ff;
    color: var(--primary-color);
}

/* ============================================
   ADMIN LOGIN
   ============================================ */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 2rem;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* ============================================
   STORE LAYOUT & FILTERS
   ============================================ */
.store-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 90px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.filters-sidebar h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.filters-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filters-sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filters-sidebar a:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(3px);
}

.filters-sidebar a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.product-listing {
    min-height: 500px;
}

/* Product Image Rendering */
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    font-size: 4rem;
    opacity: 0.5;
    filter: grayscale(1);
}


/* ============================================
   HELPER CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-color);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.styled-form .form-group {
    margin-bottom: 1.25rem;
}

/* Qty input (admin billing) */
.qty-input {
    width: 70px;
    padding: 0.4rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
}

.qty-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 220px 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .filters-sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filters-sidebar a {
        padding: 0.5rem 1rem;
        background: white;
        border: 1px solid var(--border-color);
    }

    .filters-sidebar a.active {
        border-color: transparent;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .sidebar-nav li {
        margin: 0.15rem;
    }

    .sidebar-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Mobile Navigation Toggle */
    .mobile-menu-toggle {
        display: none;
        cursor: pointer;
        color: #ffffff;
        padding: 0.5rem;
    }

    .mobile-menu-header {
        display: none;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 2rem;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
    }
}

@media (max-width: 1024px) {
    .main-header .container {
        grid-template-columns: auto 1fr auto;
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
        grid-column: 1;
    }

    .logo {
        grid-column: 2;
    }

    .header-actions {
        grid-column: 3;
    }

        .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        z-index: auto;
        transition: none;
        display: flex;
        align-items: center;
        box-shadow: none;
    }

    .main-nav.mobile-active {
        left: auto;
    }

    .mobile-menu-header {
        display: flex;
    }

    .main-nav ul {
        flex-direction: row;
        padding: 0;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0;
    }

    .main-nav a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .main-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-newsletter form {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .header-tool {
        width: 36px;
        height: 36px;
    }

    .announcement-bar {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {

    .main-header,
    .main-footer,
    .no-print {
        display: none !important;
    }
}

/* ============================================
   ADMIN LAYOUT EXTENSIONS
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: #f1f5f9;
}

/* Fix for mobile responsiveness in admin */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100% !important;
        min-height: auto !important;
        position: relative !important;
    }
}

/* Custom Confirmation Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
    transform: scale(1);
}

.custom-modal-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.custom-modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.custom-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Premium Hero Improvements */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Button Refinement */
.btn-large {
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* FORCE FIX for Admin Table Layout - Preventing Mobile Collapse */
.admin-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.admin-table thead {
    display: table-header-group !important;
}

.admin-table tbody {
    display: table-row-group !important;
}

.admin-table tr {
    display: table-row !important;
}

.admin-table th,
.admin-table td {
    display: table-cell !important;
    vertical-align: middle !important;
}

/* RESET Delete Button in Admin Table - Removing Red Block */
.admin-table form button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    display: inline-block !important;
    margin: 0 !important;
}

.admin-table form button i {
    color: #ef4444 !important;
    /* Force red icon color */
    font-size: 1.1rem !important;
}

.admin-table form button:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-radius: 4px;
    cursor: pointer;
}
/* ============================================
   PRODUCT GALLERY & LIGHTBOX (T-UI-5.3)
   ============================================ */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-hero-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    cursor: zoom-in;
    transition: transform var(--transition);
}

.product-detail-hero-img:hover {
    transform: scale(1.01);
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.thumb-item:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

/* ============================================
   CHECKOUT PROGRESS BAR (T-UI-6)
   ============================================ */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 120px;
    text-decoration: none;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
}

/* Active State */
.progress-step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Completed State */
.progress-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-step.completed .step-label {
    color: #10b981;
}

/* Connector Lines */
.progress-line {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: #10b981;
    width: 0%;
    transition: width 0.5s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .checkout-progress {
        margin-bottom: 2rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .progress-line {
        top: 16px;
    }
}

/* ============================================
   ADMIN GALLERY (T-ADMIN-GALLERY)
   ============================================ */
.dropzone-area.drag-active {
    background: #e0e7ff !important;
    border-color: #4f46e5 !important;
}

.dropzone-area.uploading {
    opacity: 0.5;
    pointer-events: none;
}

.gallery-grid {
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.gallery-item .img-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.btn-delete-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-item:hover .btn-delete-img {
    opacity: 1;
}

.btn-delete-img:hover {
    background: #fee2e2;
    transform: scale(1.1);
}
/* ============================================
   HEADER & MOBILE MENU OVERRIDES
   Moved from header.php inline styles
   ============================================ */

/* Critical Icon Styles */
.lucide {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    vertical-align: middle;
    color: inherit;
    display: inline-block;
}

/* FORCE WHITE CONTRAST HEADER */
.main-header {
    color: #ffffff !important;
}

.main-header a {
    color: #ffffff !important;
    text-decoration: none;
}

.main-header .nav-icon {
    color: #ffffff !important;
}

.main-header .lucide {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Scrolled State Overrides */
.main-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    /* Dark background */
}

.main-header.scrolled .nav-icon,
.main-header.scrolled a,
.main-header.scrolled .lucide {
    color: #ffffff !important;
}

.header-actions a i,
.header-actions button i,
.mobile-menu-toggle i {
    display: inline-block;
    color: #ffffff !important;
}

.logo h1 a {
    color: #ffffff !important;
}

/* Mobile Menu Sidebar Styles */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: min(86vw, 320px);
    height: 100dvh;
    background: #2f2118;
    z-index: 20000;
    transition: left 0.3s ease;
    padding: 1.25rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(242, 206, 174, 0.18);
    overflow-y: auto;
}

.mobile-menu-sidebar.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 8, 0.58);
    z-index: 19999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(242, 206, 174, 0.14);
}

.mobile-menu-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #F8F3EE;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 206, 174, 0.18);
    color: #F8F3EE;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mobile-menu-links a {
    display: block;
    font-size: 1.02rem;
    color: #FFF8F2 !important;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(242, 206, 174, 0.12);
    transition: all 0.25s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    color: #ffffff !important;
    background: rgba(242, 193, 182, 0.16);
    border-color: rgba(242, 193, 182, 0.28);
    transform: translateX(2px);
}

.mobile-menu-links .divider {
    height: 1px;
    background: rgba(242, 206, 174, 0.16);
    margin: 0.3rem 0 0.5rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444; /* Rojo vibrante */
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* HERO: mejorar legibilidad */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 240, 0.30);
  backdrop-filter: blur(1.5px);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero-title {
  text-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
  color: #3b2a1f !important;
}

/* =========================================
   BOTON FLOTANTE DE WHATSAPP (DYNAMIC)
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    /* Forzado al Marrón Oscuro de Coccolino */
    background-color: #735236 !important; 
    /* Icono Blanco Fijo */
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 999999; 
    transition: all 0.3s ease;
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    /* Forzado al Rosa Palo al pasar el mouse */
    background-color: #F2C1B6 !important; 
    /* El icono se pinta en Marrón para hacer contraste */
    color: #735236 !important;
    animation: none; 
}

.whatsapp-float .wa-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-wa {
    0% {
        /* Parpadeo Sombra en Marrón Oscuro */
        box-shadow: 0 0 0 0 rgba(115, 82, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(115, 82, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(115, 82, 54, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-float .wa-icon {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   GLOBO DE SALUDO FLOTANTE WHATSAPP
========================================= */
.whatsapp-greeting {
    position: fixed;
    /* Ubicado por encima del botón de whatsapp de tu altura 60px */
    bottom: 105px;  
    right: 30px;
    background-color: #ffffff;
    color: #334155;
    padding: 12px 18px;
    border-radius: 12px;
    /* Crea la ilusión visual de una punta de chat */
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 999998; 
    /* El globo entrará invisible */
    opacity: 0;
    transform: translateY(15px);
    /* Aparece a los 2 segundos exactos usando la animación abajo */
    animation: wa-popup-bubble 0.5s ease 2s forwards;
    cursor: default;
    border: 1px solid #e2e8f0;
}

@keyframes wa-popup-bubble {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reducción en Celulares para proteger legibilidad */
@media (max-width: 768px) {
    .whatsapp-greeting {
        bottom: 85px;  /* Más abajo en celular */
        right: 20px;
        font-size: 0.88rem;
        padding: 10px 14px;
        max-width: 220px;
    }
}

/* =========================================
   ENLACES REDES SOCIALES (FOOTER DINAMICO)
========================================= */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    /* Fondo Blanco puro para crear alto contraste contra el fondo café del sitio */
    background-color: #ffffff;
    border-radius: 50%;
    /* Íconos obligatoriamente de color NEGRO según las directrices */
    color: #000000 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Forzar que cualquier elemento dibuje en el negro estipulado en el padre */
.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}
.social-icon svg[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

/* Interacción Mágica en PC (Puntero encima) */
.social-icon:hover {
    transform: translateY(-6px) scale(1.1);
    /* Se pintará suavemente del tono Rosado/Palo corporativo */
    background-color: var(--secondary-color, #F2C1B6);
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
    color: #735236 !important; /* El icono pasa al chocolate puro para contrastar su fondo rosado */
}
