/* ============================================
   NEON TCG UNIVERSE - MASTER DESIGN
   Cyberpunk / Gaming / TCG Theme
   Colors: Neon Purple, Neon Red, Deep Black
   ============================================ */

/* Typography loaded in `base.html`: Poppins */ 
/* Font is imported in base.html */

:root {
    --neon-purple: #bf00ff;
    --neon-red: #ff0000;
    --neon-blue: #00f3ff; /* Accent */
    --accent-warm: #ff7a45;
    --void-black: #050505;
    --card-bg: #121212;
    --surface-1: rgba(14, 14, 14, 0.9);
    --surface-2: rgba(255, 255, 255, 0.04);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-soft: #d8d8d8;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-glow: 0 0 10px rgba(191, 0, 255, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 22px;
    
    /* Gradients */
    --grad-purple-red: linear-gradient(135deg, var(--neon-purple), var(--neon-red));
    --grad-dark: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--void-black);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at top left, rgba(191, 0, 255, 0.11), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(0, 243, 255, 0.08), transparent 22%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 0, 0.07), transparent 24%),
        linear-gradient(180deg, #080808 0%, #050505 50%, #030303 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding-top: 82px;
}

body.site-loading {
    overflow: hidden;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 44%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 19%, transparent 36%),
        radial-gradient(circle at 48% 42%, rgba(157, 78, 221, 0.18), transparent 20%),
        radial-gradient(circle at 58% 50%, rgba(191, 0, 255, 0.11), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(122, 45, 191, 0.12), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(191, 0, 255, 0.08), transparent 30%),
        linear-gradient(135deg, #010101 0%, #050208 44%, #020202 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.38s ease, visibility 0.38s ease;
    overflow: hidden;
}

.site-preloader::before,
.site-preloader::after {
    content: '';
    position: absolute;
    width: min(72vw, 520px);
    aspect-ratio: 1;
    border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
    filter: blur(38px);
    opacity: 0.22;
    pointer-events: none;
    animation: site-preloader-drift 5s ease-in-out infinite alternate;
}

.site-preloader::before {
    background: rgba(146, 55, 214, 0.52);
    transform: translate(-20%, -14%) rotate(12deg);
}

.site-preloader::after {
    background: rgba(191, 0, 255, 0.3);
    transform: translate(22%, 14%) rotate(-10deg);
    animation-delay: -1.6s;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-preloader-orb {
    position: relative;
    width: min(58vw, 280px);
    aspect-ratio: 1.45;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.site-preloader-orb::before {
    content: '';
    position: absolute;
    inset: 8% 0;
    border-radius: 48% 52% 46% 54% / 58% 42% 58% 42%;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.92) 42%, rgba(0, 0, 0, 0) 72%),
        linear-gradient(90deg, transparent 0%, rgba(191, 0, 255, 0.12) 48%, transparent 100%);
    filter: blur(7px);
    z-index: 0;
}

.site-preloader-orb::after {
    content: '';
    position: absolute;
    width: 132%;
    height: 2px;
    left: -16%;
    top: 50%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(191, 0, 255, 0.1), rgba(226, 173, 255, 0.72), rgba(191, 0, 255, 0.1), transparent);
    filter: blur(0.5px) drop-shadow(0 0 13px rgba(191, 0, 255, 0.52));
    opacity: 0.72;
    z-index: 1;
    animation: site-preloader-light-sweep 2.6s ease-in-out infinite;
}

.site-preloader-logo {
    width: min(220px, 82%);
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter:
        brightness(1.12)
        saturate(1.16)
        drop-shadow(0 0 18px rgba(191, 0, 255, 0.42))
        drop-shadow(0 0 34px rgba(89, 32, 138, 0.34));
    position: relative;
    z-index: 2;
    animation: site-preloader-float 2.8s ease-in-out infinite;
}

.site-preloader-aura {
    position: absolute;
    inset: 8%;
    border-radius: 44% 56% 52% 48% / 46% 45% 55% 54%;
    filter: blur(22px);
    opacity: 0.42;
    z-index: 1;
    animation: site-preloader-pulse 2.8s ease-in-out infinite;
}

.site-preloader-aura-one {
    background: radial-gradient(circle, rgba(191, 0, 255, 0.42), transparent 64%);
}

.site-preloader-aura-two {
    inset: 18% 2%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 66%);
    animation-delay: -1.1s;
}

.site-preloader-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: #d8b4fe;
    border-right-color: var(--neon-purple);
    animation: site-preloader-spin 0.9s linear infinite;
    box-shadow: 0 0 22px rgba(191, 0, 255, 0.28), inset 0 0 18px rgba(191, 0, 255, 0.12);
    position: relative;
    z-index: 2;
}

.site-preloader-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 2;
}

@keyframes site-preloader-spin {
    to { transform: rotate(360deg); }
}

@keyframes site-preloader-light-sweep {
    0%, 100% { transform: translateX(-10%) scaleX(0.62); opacity: 0.2; }
    45% { transform: translateX(0) scaleX(1); opacity: 0.78; }
    70% { transform: translateX(10%) scaleX(0.72); opacity: 0.32; }
}

@keyframes site-preloader-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes site-preloader-pulse {
    0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.52; }
    50% { transform: scale(1.12) rotate(6deg); opacity: 0.8; }
}

@keyframes site-preloader-drift {
    0% { border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; }
    100% { border-radius: 61% 39% 42% 58% / 52% 58% 42% 48%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-preloader,
    .site-preloader::before,
    .site-preloader::after,
    .site-preloader-logo,
    .site-preloader-aura,
    .site-preloader-ring {
        transition: none;
        animation: none;
    }
}

.font-orbitron,
.font-rajdhani,
h1, h2, h3, h4, h5, h6,
.display-font,
.nav-link,
.hero-btn,
.category-name,
.cart-hero-title,
.cart-item-details h5,
.cart-item-row h5 {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0;
    text-transform: none;
}

.main-app-shell {
    padding-bottom: 3rem;
}

.background-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 70%);
    opacity: 0.45;
}

.section-shell {
    margin-bottom: 3rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #dcdcdc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.section-title-clean {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.section-copy {
    color: var(--text-muted);
    margin: 0;
    max-width: 700px;
}

.surface-card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(8, 8, 8, 0.92));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.btn {
    border-radius: 10px;
}

.btn.rounded-pill {
    border-radius: 10px !important;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
}

.premium-surface {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(7, 7, 7, 0.94));
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.premium-inline-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    overflow: hidden;
}

.checkout-step {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.48);
    position: relative;
    z-index: 1;
}

.checkout-step-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.checkout-step strong,
.checkout-step small {
    display: block;
    line-height: 1.2;
}

.checkout-step strong {
    color: inherit;
    font-size: 0.95rem;
}

.checkout-step small {
    margin-top: 3px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.46);
}

.checkout-step-line {
    height: 1px;
    flex: 1 1 34px;
    min-width: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.22));
}

.checkout-step.is-active {
    color: #fff;
}

.checkout-step.is-active .checkout-step-icon {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 0 22px rgba(0, 243, 255, 0.22);
}

.checkout-step.is-complete:not(.is-active) {
    color: rgba(255, 255, 255, 0.82);
}

.checkout-step.is-complete:not(.is-active) .checkout-step-icon {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.45);
    color: #6ee7a8;
}

.cart-action-toast {
    min-width: min(360px, calc(100vw - 32px));
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.cart-action-toast .btn {
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .checkout-steps {
        align-items: flex-start;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x proximity;
    }

    .checkout-step {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .checkout-step-line {
        flex: 0 0 28px;
        margin-top: 21px;
    }
}

.premium-metric-card {
    min-width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-metric-card strong {
    color: #fff;
    font-size: 1.35rem;
}

.premium-metric-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-topbar {
    background: linear-gradient(90deg, rgba(191, 0, 255, 0.12), rgba(0, 243, 255, 0.12));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.site-topbar-copy,
.site-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d7d7d7;
    font-size: 0.95rem;
}

.site-topbar-copy i {
    color: var(--neon-blue);
    margin-right: 6px;
}

.site-topbar-links a {
    color: #fff;
    text-decoration: none;
}

.site-topbar-links a:hover {
    color: var(--neon-blue);
}

.premium-navbar {
    backdrop-filter: blur(18px);
    background: linear-gradient(90deg, rgba(24, 13, 38, 0.96) 0%, rgba(13, 10, 20, 0.96) 44%, rgba(11, 8, 16, 0.96) 100%) !important;
    padding: 0.55rem 0;
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2) !important;
    overflow: visible;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 1200;
    transform: translateY(0) !important;
}

.premium-navbar.navbar-dropdown-open {
    transform: none !important;
    z-index: 3000;
}

.premium-navbar-shell {
    gap: 18px;
    min-height: 64px;
    overflow: visible;
}

.premium-navbar-collapse,
.premium-navbar-links,
.premium-navbar-links .dropdown {
    overflow: visible;
}

.nav-categories-dropdown {
    position: relative;
    z-index: 3100;
}

.navbar-categories-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.navbar-categories-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.navbar-categories-chevron {
    font-size: 0.75rem;
    transition: transform 0.18s ease;
}

.navbar-categories-trigger[aria-expanded="true"] .navbar-categories-chevron {
    transform: rotate(180deg);
}

.premium-brand {
    margin-right: 0;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.premium-brand-mark {
    height: 56px;
    width: 154px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.premium-brand-mark::before {
    content: '';
    position: absolute;
    inset: 8px 4px;
    border-radius: 18px;
    background: radial-gradient(circle at left center, rgba(161, 87, 255, 0.18), transparent 58%);
    filter: blur(10px);
    opacity: 0.68;
}

.premium-brand-logo {
    height: 72px;
    width: auto;
    max-width: none;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.08) saturate(1.06) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.34));
    transform: scale(1);
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.premium-navbar-collapse {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.premium-navbar-links {
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    margin-right: 0.5rem;
    position: relative;
    z-index: 3;
}

.premium-navbar-links .nav-item {
    position: relative;
    z-index: 3;
}

.premium-navbar-links .nav-link {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.55rem 0.72rem !important;
    border-radius: 999px;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

.premium-navbar-links .nav-link:hover,
.premium-navbar-links .nav-link:focus,
.premium-navbar-links .show > .nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.premium-navbar-search {
    flex: 1 1 270px;
    max-width: 340px;
    position: relative;
    align-items: center;
    margin-left: auto;
    z-index: 1;
}

.premium-navbar-search input {
    min-width: 200px;
    border-radius: 999px;
    min-height: 42px;
    padding-left: 18px;
    padding-right: 56px;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    font-size: 0.92rem;
}

.premium-navbar-search input,
.premium-navbar-search input.form-control,
.premium-navbar-search input.form-control.bg-dark {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.premium-navbar-search input::placeholder,
.premium-navbar-search input.form-control::placeholder,
.premium-navbar-search input.form-control.bg-dark::placeholder {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1;
}

.premium-navbar-search input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.3) !important;
}

.premium-search-button {
    border-radius: 999px;
    min-width: 38px;
    width: 38px;
    height: 38px;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 70, 113, 0.75);
    background: linear-gradient(135deg, #ff365f, #ff6a00);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(255, 63, 92, 0.22);
}

.premium-search-button:hover,
.premium-search-button:focus {
    color: #fff;
    border-color: rgba(255, 120, 120, 0.9);
    box-shadow: 0 12px 24px rgba(255, 63, 92, 0.35);
}

.premium-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.premium-action-btn,
.premium-icon-btn {
    min-height: 38px;
    border-radius: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0.5rem 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.92rem;
}

.premium-action-btn:hover,
.premium-icon-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.premium-action-cart {
    border-color: rgba(0, 243, 255, 0.55);
    color: #8cf5ff;
}

.premium-action-admin {
    border-color: rgba(255, 199, 0, 0.65);
    color: #ffd54a;
}

.premium-icon-btn {
    width: 38px;
    padding: 0;
}

.premium-action-logout-form {
    display: inline-flex;
}

.premium-dropdown-menu {
    border-radius: 18px;
    padding: 10px;
    background: rgba(10, 10, 10, 0.98);
    border-color: rgba(255, 255, 255, 0.08) !important;
    min-width: 240px;
    z-index: 3200;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), 0 0 24px rgba(191, 0, 255, 0.2);
}

.nav-categories-dropdown .premium-dropdown-menu.show {
    display: block;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: auto;
    transform: none !important;
    margin: 0;
}

.premium-dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
}

.premium-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.navbar-categories-panel {
    position: fixed;
    width: min(300px, calc(100vw - 24px));
    padding: 10px;
    background: rgba(8, 8, 12, 0.98);
    border: 1px solid rgba(191, 0, 255, 0.4);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 30px rgba(191, 0, 255, 0.24);
    z-index: 99999;
    backdrop-filter: blur(16px);
}

.navbar-categories-panel[hidden] {
    display: none !important;
}

.navbar-categories-panel.is-open {
    display: grid;
    gap: 4px;
}

.navbar-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.navbar-category-link:hover,
.navbar-category-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.premium-trust-strip-wrapper {
    margin-top: -22px;
    position: relative;
    z-index: 3;
    margin-bottom: 28px;
}

.premium-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.premium-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.premium-trust-item i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 0, 255, 0.12);
    color: var(--neon-blue);
}

.premium-product-showcase {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.premium-catalog-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-header-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
    min-height: clamp(300px, 38vw, 480px);
    display: flex;
    align-items: center;
}

.catalog-header-shell .display-4 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 0.98;
}

.catalog-header-shell .lead {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.category-responsive-banner {
    height: clamp(300px, 52vh, 560px);
    min-height: 0;
    margin-top: -1.5rem;
    background: #050505;
    isolation: isolate;
}

.category-responsive-banner-bg,
.category-responsive-banner-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-responsive-banner-bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.82) contrast(1.05) saturate(1.08);
    transform: scale(1.015);
    transform-origin: center;
    z-index: 0;
}

.category-responsive-banner-bg-top {
    background-position: center top;
}

.category-responsive-banner-bg-mitos {
    transform: translateY(18px) scale(1.04);
    transform-origin: center top;
}

.category-responsive-banner-bg-gradient {
    background: linear-gradient(135deg, #050505 0%, #1a0a24 55%, #2a0752 100%);
    filter: none;
}

.category-responsive-banner-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
    z-index: 1;
}

.category-responsive-banner .container {
    z-index: 2;
}

.category-responsive-banner-title {
    z-index: 2;
    max-width: min(980px, 92vw);
    font-size: clamp(2.4rem, 9vw, 6.5rem) !important;
    line-height: 0.95;
    letter-spacing: clamp(0.03em, 0.9vw, 0.08em);
    text-wrap: balance;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.95), 0 0 28px var(--category-theme);
}

.premium-results-bar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-page {
    position: relative;
}

.cart-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 8px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-page-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-page-image,
.cart-page-image img,
.cart-page-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 18px;
}

.cart-page-image img {
    object-fit: cover;
}

.cart-page-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101010;
    color: var(--text-muted);
    font-size: 1.6rem;
}

.cart-page-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-value {
    min-width: 24px;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

.cart-page-price {
    text-align: right;
    color: #fff;
}

.cart-page-price strong {
    font-size: 1.25rem;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.cart-summary-trust {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cart-summary-trust i {
    color: var(--neon-blue);
    margin-right: 8px;
}

.cart-empty-state {
    min-height: 320px;
}

.checkout-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.checkout-card,
.checkout-summary-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.checkout-card-header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.checkout-card .form-control,
.checkout-card .form-select,
.checkout-summary-card .form-control,
.checkout-summary-card .form-select {
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.checkout-card .form-control::placeholder {
    color: #888;
}

.checkout-card .form-label,
.checkout-page .breadcrumb-item,
.checkout-page .breadcrumb-item a {
    color: var(--text-main);
}

.footer-premium-shell {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
    padding-top: 4.5rem;
    font-family: 'Poppins', sans-serif;
}

.footer-top-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.6rem;
    margin-bottom: 2.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-top-copy {
    color: #b8c0c8;
    max-width: 780px;
    text-align: left;
    font-size: 0.96rem;
    line-height: 1.85;
}

.footer-main-row {
    align-items: start;
}

.footer-corporate-grid {
    margin-bottom: 4rem;
}

.footer-brand-logo {
    height: 182px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: none;
}

.footer-brand-copy {
    color: #c6c6c6;
    font-size: 0.98rem;
    line-height: 1.9;
    max-width: 410px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0;
    margin-bottom: 1.4rem !important;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    font-size: 0.98rem;
    line-height: 1.95;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact-list li {
    color: #c9ced4;
    line-height: 1.85;
}

.footer-contact-stack {
    display: grid;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 0.98rem;
}

.footer-contact-item i {
    color: #f1f5f9;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.footer-contact-item span {
    color: #d6d6d6;
    line-height: 1.7;
}

.footer-newsletter-card {
    background: #0b0b0b;
    border-radius: 12px !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none;
}

.footer-newsletter-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.footer-newsletter-input {
    font-size: 0.92rem;
    min-height: 42px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: #111111;
    transition: all 0.25s ease;
    font-size: 1.4rem;
}

.social-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: #171717;
    transform: translateY(-2px);
}

.footer-social-copy {
    max-width: 270px;
}

.footer-social-row {
    align-items: center;
}

.footer-alliance-link {
    color: #f4f4f5;
    text-decoration: none;
    font-weight: 500;
}

.footer-alliance-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-bottom-row {
    gap: 1rem;
}

.footer-bottom-copy {
    line-height: 1.8;
    color: #9f9f9f !important;
}

.footer-payment-icons {
    font-size: 1.45rem;
    color: #8f8f8f;
}

.hover-scale {
    transition: transform 0.25s ease;
    cursor: pointer;
}

.hover-scale:hover {
    transform: scale(1.14);
    color: #fff !important;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 8px 22px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    transition: all 0.25s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0px 10px 24px rgba(37, 211, 102, 0.6);
}

.filter-panel {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.search-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.search-input:focus {
    box-shadow: 0 0 0 0.22rem rgba(0, 243, 255, 0.12) !important;
    border-color: rgba(0, 243, 255, 0.25) !important;
}

.catalog-header-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2.5rem;
    min-height: clamp(300px, 38vw, 480px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top center, rgba(0,243,255,0.1), transparent 30%), linear-gradient(180deg, rgba(9,9,9,0.95), rgba(5,5,5,0.98));
}

.catalog-sticky-offset {
    top: 102px;
}

.product-card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(9, 9, 9, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.product-card .ratio {
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.8));
}

.product-card .card-body,
.product-info {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.28));
}

.product-card .badge {
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.badge:not(.rounded-pill) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.inventory-badge,
.inventory-chip,
.inventory-chip-accent {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    color: var(--text-soft) !important;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links a,
.social-btn,
.whatsapp-float,
.premium-action-btn,
.premium-icon-btn,
.product-card,
.filter-panel,
.premium-surface {
    transition: all 0.25s ease;
}

@media (max-width: 991.98px) {
    .site-topbar-content,
    .cart-hero,
    .checkout-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .footer-top-copy {
        text-align: left;
    }

    .footer-corporate-grid {
        margin-bottom: 2.8rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 74px;
    }

    .premium-surface {
        padding: 20px;
        border-radius: 22px;
    }

    .premium-trust-strip {
        grid-template-columns: 1fr;
    }

    .premium-navbar {
        padding: 0.5rem 0;
        min-height: 74px;
    }

    .footer-title {
        margin-bottom: 1rem !important;
    }

    .social-btn {
        width: 46px;
        height: 46px;
    }

    .premium-navbar-shell {
        gap: 10px;
    }

    .premium-brand-mark {
        width: 132px;
        height: 50px;
    }

    .premium-brand-logo {
        height: 62px;
        transform: scale(1);
    }

    .premium-navbar-collapse {
        padding-top: 0.9rem;
        gap: 12px;
    }

    .premium-navbar-links {
        margin-bottom: 0.55rem;
        margin-right: 0;
        gap: 2px;
    }

    .premium-navbar-links .nav-link {
        padding: 0.6rem 0.72rem !important;
    }

    .premium-navbar-search {
        width: 100%;
        max-width: 100%;
        order: 3;
        margin-left: 0;
    }

    .premium-navbar-search input {
        min-width: 0;
        width: 100%;
    }

    .premium-navbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 18px;
        bottom: 18px;
        font-size: 28px;
    }

    .section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .premium-navbar-collapse {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .premium-navbar-links {
        flex: 1 1 100%;
        margin-right: 0;
        order: 1;
        justify-content: center;
    }

    .premium-navbar-search {
        flex: 1 1 320px;
        order: 2;
        margin-left: 0;
        max-width: none;
    }

    .premium-navbar-actions {
        order: 3;
        flex: 0 0 auto;
    }
}

@media (min-width: 992px) {
    .premium-navbar .navbar-collapse {
        gap: 14px;
    }

    .premium-navbar-links {
        flex: 0 0 auto;
    }

    .premium-navbar-search {
        margin-left: auto;
    }
}

/* ================== INVENTORY ADMIN ================== */
.inventory-admin-shell {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(5, 5, 5, 0.96));
    border: 1px solid rgba(191, 0, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 32px;
}

.inventory-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(191, 0, 255, 0.12);
    color: #f1d4ff;
    border: 1px solid rgba(191, 0, 255, 0.32);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inventory-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    text-shadow: 0 0 18px rgba(191, 0, 255, 0.35);
}

.inventory-hero-copy {
    max-width: 720px;
}

.inventory-hero-subtitle {
    max-width: 640px;
    font-size: 1.02rem;
}

.inventory-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inventory-upload-card,
.inventory-panel,
.inventory-section-card,
.inventory-map-card,
.inventory-stat-card,
.inventory-mini-card,
.inventory-product-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.inventory-upload-card,
.inventory-panel,
.inventory-section-card,
.inventory-product-card {
    padding: 24px;
}

.inventory-upload-card-hero {
    width: min(100%, 420px);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.95));
}

.inventory-upload-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 0, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    border: 1px solid rgba(191, 0, 255, 0.24);
}

.inventory-primary-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-red));
    border: none;
    color: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 12px 28px rgba(191, 0, 255, 0.18);
}

.inventory-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.inventory-panel-title {
    color: #fff;
    margin-bottom: 18px;
}

.inventory-help-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.inventory-help-note i {
    color: var(--neon-blue);
    margin-top: 2px;
}

.inventory-list {
    padding-left: 18px;
}

.inventory-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.inventory-flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.11), rgba(0, 243, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-flow-step span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    box-shadow: 0 0 22px rgba(191, 0, 255, 0.22);
}

.inventory-flow-step strong {
    color: #fff;
}

.inventory-flow-step small {
    color: var(--text-muted);
    line-height: 1.35;
}

.inventory-manual-form .form-control,
.inventory-manual-form .form-select {
    min-height: 48px;
    border-radius: 14px;
}

.inventory-manual-form textarea.form-control {
    min-height: 48px;
}

.inventory-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inventory-radio-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.inventory-radio-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 243, 255, 0.28);
    background: rgba(0, 243, 255, 0.06);
}

.inventory-radio-card input {
    margin-top: 4px;
    accent-color: var(--neon-blue);
}

.inventory-radio-card strong,
.inventory-radio-card small {
    display: block;
}

.inventory-radio-card strong {
    color: #fff;
    margin-bottom: 4px;
}

.inventory-radio-card small {
    color: var(--text-muted);
}

.inventory-checklist {
    display: grid;
    gap: 12px;
}

.inventory-checklist div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.inventory-checklist i {
    color: #65ffa4;
    margin-top: 2px;
}

.inventory-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inventory-stat-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inventory-stat-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.inventory-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.inventory-map-card,
.inventory-mini-card {
    padding: 18px;
}

.inventory-preview-banner {
    border-color: rgba(0, 243, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08), rgba(191, 0, 255, 0.08));
}

.inventory-empty-state {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.inventory-empty-state i {
    font-size: 2rem;
    color: rgba(0, 243, 255, 0.75);
}

.inventory-modal-content {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(5, 5, 5, 0.98));
    border: 1px solid rgba(191, 0, 255, 0.24);
    border-radius: 24px;
}

.inventory-modal-content .modal-header,
.inventory-modal-content .modal-footer {
    padding: 20px 24px;
}

.inventory-modal-content .modal-body {
    padding: 0 24px 24px;
}

.inventory-map-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.inventory-map-value {
    color: #fff;
    font-size: 1rem;
}

.inventory-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.inventory-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.inventory-section-tag,
.inventory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
}

.inventory-chip-accent {
    background: rgba(0, 243, 255, 0.12);
    color: #b8fbff;
}

.inventory-section-name {
    color: #fff;
    margin-top: 10px;
    margin-bottom: 0;
}

.inventory-section-units {
    text-align: right;
}

.inventory-section-units-value {
    display: block;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.inventory-section-units-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.inventory-products-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.inventory-product-card {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
}

.inventory-product-card:hover {
    transform: translateY(-5px);
}

.inventory-card-strip {
    width: 4px;
    z-index: 2;
}

.inventory-card-media {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.inventory-card-placeholder i {
    font-size: 2rem;
    opacity: 0.7;
}

.inventory-card-floating-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.inventory-card-body {
    flex: 1;
}

.inventory-card-title {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.inventory-card-description {
    min-height: 44px;
}

.inventory-card-footer {
    gap: 12px;
}

.inventory-card-stock {
    cursor: default;
    pointer-events: none;
}

.inventory-upload-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

.inventory-detailed-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.inventory-detailed-table {
    margin-bottom: 0;
}

.inventory-detailed-table thead th {
    background: rgba(191, 0, 255, 0.12);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.inventory-detailed-table tbody tr {
    border-color: rgba(255, 255, 255, 0.06);
}

.inventory-detailed-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.inventory-detailed-table td,
.inventory-detailed-table th {
    padding: 14px 16px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .catalog-header-shell {
        min-height: 260px;
        padding: 2.5rem 0 2.25rem;
        border-radius: 0 0 24px 24px;
    }

    .catalog-header-shell .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .premium-catalog-hero-chips {
        justify-content: center;
    }

    .category-responsive-banner {
        height: clamp(240px, 42vh, 360px);
        margin-top: -0.75rem;
        border-radius: 0 0 24px 24px !important;
    }

    .category-responsive-banner-bg {
        background-position: center center;
        transform: scale(1.02);
    }

    .category-responsive-banner-bg-mitos {
        background-position: center top;
        transform: translateY(8px) scale(1.08);
    }

    .category-responsive-banner-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68)),
            radial-gradient(circle at center, rgba(191, 0, 255, 0.12), transparent 62%);
    }

    .inventory-admin-shell {
        padding: 20px;
        border-radius: 20px;
    }

    .inventory-stats-grid,
    .inventory-flow-steps,
    .inventory-radio-grid,
    .inventory-upload-inline {
        grid-template-columns: 1fr;
    }

    .inventory-product-main,
    .inventory-section-head {
        flex-direction: column;
    }

    .inventory-upload-card-hero {
        width: 100%;
    }

    .inventory-section-units {
        text-align: left;
    }
}

/* ================== CUSTOM SCROLLBAR (Optimized) ================== */
::-webkit-scrollbar {
    width: 8px; /* Slightly thinner */
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

/* ================== PARALLAX EFFECT (Optimized) ================== */
.parallax-section {
    /* Retirado background-attachment: fixed para evitar jank en scroll */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
    border-top: 2px solid var(--neon-purple);
    border-bottom: 2px solid var(--neon-purple);
    margin-bottom: 50px;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ================== NAVBAR ================== */
.navbar {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(191, 0, 255, 0.3) !important;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-red);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ================== HERO SECTION ================== */
.hero-section {
    position: relative;
    padding: 100px 0;
    /* El background se maneja ahora desde el carrusel en HTML */
    overflow: hidden;
    color: white;
    text-align: center;
    border-bottom: 2px solid var(--neon-purple);
}

.hero-overlay {
    /* La posición absoluta ya está en el HTML con clases de Bootstrap, 
       pero mantenemos el gradiente aquí */
    background: rgba(5, 5, 5, 0.7);
    background: linear-gradient(0deg, var(--void-black) 0%, rgba(5,5,5,0.4) 100%);
    pointer-events: none; /* Permite clics si el overlay tapa algo, aunque está detrás del contenido */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, #bf00ff, #ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(191, 0, 255, 0.5);
    margin-bottom: 20px;
    animation: glitch 3s infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #fff;
    background: transparent;
    border: 2px solid var(--neon-red);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.4), transparent);
    transition: 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    background: var(--neon-red);
    color: black;
    box-shadow: 0 0 30px var(--neon-red);
}

/* ================== CARDS & PRODUCTS ================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }
    
    .product-card .product-image-container {
        padding-top: 100%; /* Keep square aspect ratio on mobile */
    }
    
    .product-card .product-name {
        font-size: 0.9rem; /* Smaller text on mobile */
    }
    
    .product-card .product-price {
        font-size: 1.1rem;
    }
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--neon-purple);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--neon-purple);
}

.product-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 5px 15px rgba(191, 0, 255, 0.3), inset 0 0 10px rgba(191, 0, 255, 0.05);
    z-index: 2;
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio default, maybe adjust for cards */
    overflow: hidden;
    background: #000;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keep card proportions */
    padding: 10px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-red);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-red);
    z-index: 2;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.5) 100%);
}

.product-category {
    font-size: 0.8rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-red);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
}

.btn-add-cart {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* ================== CATEGORIES ================== */
.category-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    transition: all 0.3s;
    height: 100%;
}

.category-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    transform: translateY(-5px);
}

.category-image {
    height: 150px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: all 0.5s;
}

.category-card:hover .category-image {
    filter: grayscale(0%);
}

.category-name {
    padding: 15px;
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* ================== CART OVERLAY (UPDATED) ================== */
/* Keeping the structure but updating colors */
#cart-overlay, #cart-game-overlay {
    background: rgba(5, 5, 5, 0.95); /* Void Black */
    backdrop-filter: blur(10px);
}

/* Override dynamically injected gradient */
#cart-game-overlay {
    background: radial-gradient(circle at center, #1a0b2e 0%, #000000 100%) !important;
}

/* Floating icons for Cart background - keeping logic but changing to card suits/symbols */
/* User asked for bones/bells before, but now TCG. I will style them generic or leave them be, 
   the JS/HTML defines the content, here I define the animation */
.bg-decoration, .cart-dynamic-bg {
    z-index: 0;
}

.floating-icon {
    text-shadow: 0 0 10px currentColor;
}

.cart-sidebar {
    background: #101010;
    box-shadow: -5px 0 30px rgba(191, 0, 255, 0.2);
    border-left: 1px solid #333;
}

.cart-header, .cart-header-custom {
    background: #000;
    border-bottom: 2px solid var(--neon-purple);
    color: white;
}

.cart-header-custom h2 {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
}

.cart-item, .cart-item-row {
    background: #151515 !important;
    border: 1px solid #333 !important;
    color: #fff;
}

.cart-item:hover, .cart-item-row:hover {
    border-color: var(--neon-red) !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2) !important;
}

.cart-item-details h5, .cart-item-row h5 {
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
}

.cart-item-price, .cart-item-row .text-primary {
    color: var(--neon-purple) !important;
}

.btn-checkout {
    background: var(--grad-purple-red);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.4);
    border: none;
}

.btn-checkout:hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

/* Custom Cart Glass Card Update */
.cart-card-glass {
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid var(--neon-purple) !important;
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.2) !important;
}

.quantity-control {
    border-color: #444 !important;
}

.quantity-control button {
    color: #fff !important;
}
.quantity-control button:hover {
    color: var(--neon-red) !important;
}

/* ================== FOOTER ================== */
footer {
    background: #000000;
    color: #888;
    padding: 50px 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--neon-red);
    padding-bottom: 10px;
    display: inline-block;
}

footer a {
    color: #888;
}

footer a:hover {
    color: var(--neon-purple);
    padding-left: 5px;
}

/* ================== UTILITIES ================== */
.text-neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }
.text-neon-red { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); }

@keyframes glitch {
    0% { transform: translate(0); text-shadow: 0 0 10px var(--neon-purple); }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 2px var(--neon-red); }
    40% { transform: translate(-2px, -2px); text-shadow: -2px -2px var(--neon-blue); }
    60% { transform: translate(2px, 2px); text-shadow: 0 0 10px var(--neon-purple); }
    80% { transform: translate(2px, -2px); text-shadow: 2px -2px var(--neon-red); }
    100% { transform: translate(0); text-shadow: 0 0 10px var(--neon-purple); }
}
