:root {
    --bg: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(138, 43, 226, 0.15);
    --card-dark: rgba(255, 255, 255, 0.03);
    --card-light: rgba(255, 255, 255, 0.08);
    --card-lighter: rgba(255, 255, 255, 0.12);
    --accent: #00d2ff;
    --accent-hover: #00a8cc;
    --accent-light: rgba(0, 210, 255, 0.1);
    --accent-glow: rgba(0, 210, 255, 0.35);
    --accent-glow-strong: rgba(0, 210, 255, 0.55);
    --primary: #8a2be2;
    --primary-dark: #6a1cb0;
    --neutral: rgba(255, 255, 255, 0.08);
    --neutral-hover: rgba(255, 255, 255, 0.18);
    --text-dark: #ffffff;
    --text-muted: #b0b0d0;
    --text-light: #e0e0ff;
    --text-inverse: #030506;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --info: #38bdf8;
    --success: #10b981;

    --focus-ring: 0 0 0 3px rgba(0, 210, 255, 0.45);
    --container-width: min(1200px, 92vw);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.65rem;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    --transition-base: 0.3s ease;
    --font-base: clamp(15px, 1.05vw, 17px);
    
    /* Enhanced Responsive Breakpoints */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 640px;
    --breakpoint-lg: 768px;
    --breakpoint-xl: 1024px;
    --breakpoint-2xl: 1200px;
    --breakpoint-3xl: 1440px;
    
    /* Fluid Typography */
    --text-xs: clamp(0.75rem, 2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 2.5vw, 1rem);
    --text-base: clamp(1rem, 3vw, 1.125rem);
    --text-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 4vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 5vw, 2rem);
    --text-3xl: clamp(2rem, 6vw, 2.5rem);
    
    /* Fluid Spacing */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1.5vw, 0.75rem);
    --space-md: clamp(0.75rem, 2vw, 1rem);
    --space-lg: clamp(1rem, 2.5vw, 1.5rem);
    --space-xl: clamp(1.5rem, 3vw, 2rem);
    --space-2xl: clamp(2rem, 4vw, 3rem);
    
    /* Fluid Container */
    --container-width: clamp(280px, 92vw, 1200px);
    
    /* Enhanced Card Variables */
    --card-padding: clamp(1rem, 3vw, 1.5rem);
    --card-radius: clamp(0.75rem, 2vw, 1.25rem);
    --card-gap: clamp(0.75rem, 2vw, 1.5rem);
    --card-shadow: 0 4px clamp(8px, 2vw, 20px) rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px clamp(16px, 3vw, 40px) rgba(0, 0, 0, 0.15);
}

.checkout-modal-overlay[hidden] {
    display: none !important;
}

/* ==========================================================================
   Base Reset & Layout Tokens
   ========================================================================== */

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

body {
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-base);
    background: var(--bg);
    background-image: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-dark);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    padding: clamp(1rem, 2vw, 2rem);
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--container-width);
    margin: clamp(2.5rem, 4vw, 4rem) auto;
    padding-inline: clamp(1rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Images */
img,
svg {
    max-width: 100%;
    display: block;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow-strong);
}

/* Section / Card */
section,
article {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.9rem);
    box-shadow: var(--shadow);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

/* Slight hover lift for premium feel */
section:hover,
section:focus-within,
article:hover,
article:focus-within {
    border-color: var(--accent);
    box-shadow: 0 25px 55px var(--shadow);
    transform: translateY(-2px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Headings */
h1,
h2,
h3 {
    font-weight: 600;
    color: var(--text-dark);
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
p {
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Page-Level Layout
   ========================================================================== */

/* Apply background globally for all main page templates */
.home-page,
.admin-page,
.details-page {
    background: var(--bg);
    background-image: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-dark);
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Add animated orbs like ourbots.html */
.home-page::before,
.admin-page::before,
.details-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 { 
    top: 10%; 
    left: 5%; 
    width: 300px; 
    height: 300px; 
    background: rgba(138, 43, 226, 0.25); 
}

.orb-2 { 
    bottom: 15%; 
    right: 5%; 
    width: 250px; 
    height: 250px; 
    background: rgba(0, 210, 255, 0.2); 
}

/* Support Mode – hides product list when needed */
.support-only #product-list {
    display: none;
}

/* Highlight active nav in support-only mode */
.support-only .site-nav a[href="#contact"],
.support-only .site-nav a[href="index.html#contact"] {
    opacity: 1;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow-strong);
    transition: 0.25s ease;
}

/* Main wrappers for each page type */
.home-main,
.admin-main,
.details-main {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: 0 clamp(1rem, 4vw, 2.5rem) var(--space-xxl);
}


/* ==========================================================================
   Header – Glass Morphism Theme
   ========================================================================== */
.site-header,
.admin-header,
.details-header {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 0 0 24px 24px;
    margin-bottom: 20px;
}

/* Inner layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Logo + Text */
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    border: 1px solid rgba(93, 214, 255, 0.35);
    box-shadow: 0 0 10px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    letter-spacing: 0.05em;
    color: var(--accent);
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Navigation (Desktop) */
.site-navigation ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.site-navigation a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0.25rem;
    transition: 0.25s ease;
}

.site-navigation a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Hamburger (Mobile) */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.hamburger span {
    height: 3px;
    border-radius: 999px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile toggle animation */
.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 800px) {
    .site-navigation {
        position: absolute;
        top: 100%;
        right: 1rem;
        background: rgba(11, 15, 18, 0.98);
        border: 1px solid rgba(93, 214, 255, 0.18);
        box-shadow: 0 0 12px rgba(93, 214, 255, 0.2);
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        backdrop-filter: blur(6px);
        transform: scale(0.85);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }

    .site-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle:checked ~ .site-navigation {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }
}


/* ==========================================================================
   Navigation – Neon Dark Theme
   ========================================================================== */

.site-navigation {
    margin-top: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.site-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Links */
.site-nav a {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.85;
    padding: 0.4rem 0.2rem;
    transition: 
        opacity 0.2s ease,
        transform 0.2s ease,
        text-shadow 0.25s ease,
        color 0.25s ease;
}

/* Hover Glow */
.site-nav a:hover,
.site-nav a:focus-visible {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Current Page */
.nav-link.active {
    color: var(--accent);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-glow-strong);
}

/* Smooth mobile alignment */
@media (max-width: 800px) {
    .site-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .site-nav a {
        display: block;
        width: 100%;
    }
}


/* ========================================================================== */
/* Products & Cards                                                           */
/* ========================================================================== */

/* Enhanced Product Grid */
.product-list {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.home-category-collection {
    display: grid;
    gap: var(--space-lg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 280px), 1fr));
    gap: var(--card-gap);
}

/* Responsive Grid Adjustments */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Section intro layout */
.section-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.section-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-end;
    align-items: center;
}

.section-pill {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(59, 130, 246, 0.12);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Category chips container */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-filter-panel {
    display: grid;
    gap: var(--space-md);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.category-filter-title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-filter-button {
    flex: 1 1 220px;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.category-filter-button:hover,
.category-filter-button:focus-visible {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.category-filter-button.active {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.category-filter-summary {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.catalog-support-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border-radius: 1.5rem;
    background: rgba(13, 19, 30, 0.75);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.catalog-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
}

.catalog-highlights li::before {
    content: '• ';
    color: var(--accent);
}

@media (max-width: 640px) {
    .category-filter-panel {
        padding: 1rem;
    }

    .category-filter-button {
        flex-basis: 100%;
    }

    .category-filter-summary {
        font-size: 0.9rem;
    }

    .section-highlights {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .cta-ribbon {
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* Chip buttons */
.chip {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background 0.2s ease, 
                color 0.2s ease, 
                border-color 0.2s ease, 
                transform 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Secondary chip */
.chip.secondary {
    background: rgba(59, 130, 246, 0.12);
    border-color: transparent;
}

/* Dashed outline chip */
.chip.outline {
    border-style: dashed;
}

/* Category title inside grid */
.product-list > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

/* Category grouping wrapper */
.product-category {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.product-category + .product-category {
    margin-top: 0.5rem;
}

/* Hero section – Glass Morphism */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

/* Hero content block */
.hero-content {
    display: grid;
    gap: var(--space-md);
}

.hero-meta {
    display: grid;
    gap: var(--space-md);
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(8, 12, 18, 0.75);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.hero-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

/* Hero card styling */
.hero-card {
    background: var(--card-bg);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-card ul {
    padding-left: 1.25rem;
    color: var(--text-muted);
}

/* Owner special card */
.hero-card.owner {
    background: #0f172a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-card.owner .card-label {
    color: rgba(255, 255, 255, 0.7);
}

.hero-card.owner .button {
    background: #38bdf8;
    color: #0f172a;
}

.hero-card.owner .button:hover,
.hero-card.owner .button:focus-visible {
    background: #0ea5e9;
}

/* Glass effect */
.hero-card.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.4);
}





/* ========================================================================== */
/* Category Headers, Product Cards, CTA Ribbon                                */
/* ========================================================================== */

/* Category section header */
.category-header {
    padding: 1.1rem 1.4rem;
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

/* Product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-lg);
}

/* Empty state card */
.empty-state {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

/* Category Cards Styling */
.category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
    border-color: var(--accent);
}

.category-card .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-card .category-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.category-card .category-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.category-card .category-actions {
    display: flex;
    justify-content: center;
}

.category-card .view-category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.category-card .view-category-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.category-card .view-category-btn i {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-card .category-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 1rem;
    }
    
    .category-card .view-category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Enhanced Product Card wrapper */
.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: clamp(280px, 40vw, 350px);
    padding: var(--card-padding);
    background: var(--card-bg);
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(138, 43, 226, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Enhanced Hover elevation */
.product-card:hover,
.product-card:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    background: var(--card-bg-hover);
    border-color: var(--primary);
}

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

/* Enhanced Product title */
.product-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

/* Enhanced Product price */
.product-price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
}

/* Meta row */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Pills (tags) */
.product-pill {
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
}

.product-pill.bots {
    background: rgba(59, 130, 246, 0.25);
    color: var(--accent);
}

/* Divider */
.card-divider {
    border-bottom: 1px solid var(--border);
    margin: 0.35rem 0 0.65rem;
}

/* Product description */
.product-description {
    color: var(--text-muted);
    white-space: pre-line;
    font-size: 0.95rem;
}

.product-description-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.product-description-list li::before {
    content: '•';
    color: var(--accent);
    margin-right: 0.35rem;
}

.product-description-list li {
    display: flex;
    align-items: flex-start;
}

/* Enhanced Buy button anchor to bottom */
.product-card .buy-now-button {
    margin-top: auto;
    width: 100%;
    font-size: var(--text-base);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 999px;
    min-height: clamp(44px, 8vw, 48px);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card .buy-now-button::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.6s ease;
}

.product-card .buy-now-button:hover::before {
    left: 100%;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.product-card .card-actions {
    flex-direction: column;
}

@media (min-width: 640px) {
    .product-card .card-actions {
        flex-direction: row;
    }

    .product-card .buy-now-button {
        width: auto;
        min-width: 180px;
    }
}

/* CTA Ribbon – Glass Morphism */
.cta-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.cta-ribbon h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* CTA action buttons container */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: var(--space-sm);
    align-items: center;
    justify-content: flex-start;
    min-width: 240px;
}


/* ========================================================================== */
/* Buttons & Interactive Elements                                             */
/* ========================================================================== */

button,
.button,
.button-link {
    padding: 0.8rem 1.65rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    width: fit-content;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: 
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Hover / Focus */
button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 14px var(--accent-glow-strong);
}

.button,
.button:hover,
.button:focus-visible {
    color: #0b0f12;
}

/* Secondary Button */
.button-link.secondary {
    background: var(--neutral);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.button-link.secondary:hover,
.button-link.secondary:focus-visible {
    background: var(--neutral-hover);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-2px);
}

/* Danger Button */
.button-link.danger {
    background: var(--danger);
    color: #fff;
}

.button-link.danger:hover,
.button-link.danger:focus-visible {
    background: var(--danger-hover);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.35);
    transform: translateY(-2px);
}

/* Action buttons layout */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.card-actions .button-link,
.action-buttons .button-link {
    flex: 1 1 auto;
    min-width: 140px;
}

/* ========================================================================== */
/* Footer                                                                     */

/* Footer – Glass Morphism Theme */
.admin-footer,
.details-footer,
.site-footer {
    padding: 3rem 1rem 3.5rem;
    text-align: center;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 24px 24px 0 0;
    color: var(--text-muted);
}

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

/* ========================================================================== */

.qr-payment {
    margin-top: 1.8rem;
    padding: 1.75rem;
    border: 1px dashed var(--accent-glow);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* QR Image */
.qr-image {
    width: min(420px, 90vw);   /* MUCH bigger */
    aspect-ratio: 16 / 9;      /* TALL image shape */
    width: clamp(160px, 40vw, 240px);
    border-radius: 1.2rem;
    background: #0a0a0a;
    border: 1px solid var(--accent-glow);
    box-shadow: 0 0 18px var(--accent-glow);
}

/* Download QR Button/Link */
.qr-download {
    margin-top: 0.35rem;
    color: #000 !important;       /* FORCE BLACK ALWAYS */
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
    text-decoration: none;
}

.qr-download:hover,
.qr-download:active,
.qr-download:focus,
.qr-download:visited {
    color: #000 !important;       /* STILL BLACK ON HOVER */
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}


/* ========================================================================== */
/* Forms                                                                      */
/* ========================================================================== */
form {
    display: grid;
    gap: 0.75rem;
}

input,
select,
textarea {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    font: inherit;
    background: #fff;
}

.form-hint {
    margin: -0.25rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

textarea {
    resize: vertical;
}

/* ========================================================================== */
/* Login Page                                                                 */
/* ========================================================================== */
.login-page {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2), transparent 55%) var(--bg);
    min-height: 100vh;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.login-card {
    width: min(400px, 100%);
    background: var(--card-bg);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.login-card form {
    margin-top: 1rem;
}

.login-hint a {
    color: var(--accent);
    text-decoration: none;
}

.login-hint a:hover,
.login-hint a:focus-visible {
    text-decoration: underline;
}

/* ========================================================================== */
/* Admin Panel                                                                */
/* ========================================================================== */
.product-editor {
    margin: 1.5rem 0;
    background: var(--card-bg);
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.management-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.admin-card {
    border-style: dashed;
    gap: 0.75rem;
    display: grid;
    padding: 1.25rem;
    border-color: rgba(37, 99, 235, 0.4);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-card:hover,
.admin-card:focus-within {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.admin-card h3 {
    margin-bottom: 0.4rem;
}

.product-table-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.category-block {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.product-table-section .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-page .empty-state-row {
    text-align: center;
    color: var(--text-muted);
    background: #f8fafc;
}

.admin-page th,
.admin-page td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-page th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.product-row:hover {
    background: black;
}

.form-feedback,
.login-feedback,
#checkout-feedback {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent);
}

.orders-layout,
.support-layout {
    display: grid;
    gap: 1.25rem;
}

.orders-summary,
.support-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.summary-card h3 {
    margin-bottom: 0.35rem;
}

.metric {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
}

.orders-table,
.support-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orders-table th,
.orders-table td,
.support-table th,
.support-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill.success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill.warning {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
}

.status-pill.info {
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
}

.ticket-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.ticket-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.5rem;
}

.ticket-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-footer .button-link {
    padding: 0.5rem 1rem;
}

/* ========================================================================== */
/* Product Details                                                            */
/* ========================================================================== */
.details-article {
    display: grid;
    gap: 1.5rem;
}

.details-section {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--card-bg);
}

.details-section .section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: 1rem;
}

.details-field-group {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.checkout-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkout-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
}

.checkout-form-grid label {
    grid-column: span 2;
}

.checkout-form-grid input,
.checkout-form-grid select,
.checkout-form-grid .form-hint {
    grid-column: span 2;
}

@media (min-width: 640px) {
    .checkout-form-grid label,
    .checkout-form-grid input,
    .checkout-form-grid select,
    .checkout-form-grid .form-hint {
        grid-column: span 1;
    }
}

.primary-block {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    margin-top: 1rem;
}

.checkout-support-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(8, 12, 18, 0.65);
    box-shadow: var(--shadow-soft);
}

.checkout-support-card h3 {
    margin-bottom: 0.75rem;
}

.checkout-support-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--text-muted);
}

.checkout-support-list li::before {
    content: '•';
    color: var(--accent);
    margin-right: 0.4rem;
}

.checkout-pop-card {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(93, 214, 255, 0.45);
    background: rgba(93, 214, 255, 0.08);
    color: var(--text-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    box-shadow: 0 15px 35px rgba(93, 214, 255, 0.18);
}

.checkout-pop-card p {
    margin: 0;
    flex: 1 1 auto;
}

.details-field {
    margin-bottom: 0.6rem;
}

.checkout-form {
    max-width: 480px;
}

.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 200;
    backdrop-filter: blur(6px);
}

.checkout-modal-card {
    width: min(420px, 100%);
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    display: grid;
    gap: var(--space-sm);
    text-align: center;
    animation: checkout-pop-in 280ms ease;
}

.checkout-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    background: var(--accent-light);
    border: 1px solid rgba(93, 214, 255, 0.4);
    color: var(--accent);
}

.checkout-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-sm);
    margin: 0;
}

.checkout-modal-details dt {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-modal-details dd {
    margin: 0;
    font-weight: 600;
}

@keyframes checkout-pop-in {
    from {
        transform: translateY(20px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced Visual Effects & Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Glass Morphism */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    transform: scale(1.02);
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .orb,
    .site-header,
    .footer,
    .fab {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .product-card::before {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .site-header,
    .admin-header,
    .details-header {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        padding-inline: 1.5rem;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border-radius: 0 0 1rem 1rem;
    }

    .nav-toggle:not(:checked) ~ .site-navigation {
        pointer-events: none;
    }

    .nav-toggle:checked ~ .site-navigation {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0 1.5rem;
    }

    .site-nav a {
        width: 100%;
        padding: 0.4rem 0;
    }

    main {
        width: 94vw;
        margin: 2rem auto 3rem;
    }

    section,
    article {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .product-table-section .section-header,
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    button,
    .button,
    .button-link {
        width: 100%;
        text-align: center;
    }

    .admin-page table {
        min-width: 100%;
    }

    .ticket-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cta-ribbon,
    .section-intro {
        flex-direction: column;
    }
}
