/* ==============================================================================
   MIP (МИР ИГРОВЫХ ПРИСТАВОК) - RED & PURPLE REDESIGN DESIGN SYSTEM
   File: public/assets/css/main.css
   ============================================================================== */

:root {
    --bg-dark: #0c0a12;
    --bg-card-dark: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
    --border-glass: rgba(255, 255, 255, 0.12);

    --primary-red: #ef4444;
    --primary-red-hover: #dc2626;
    --primary-purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);
    --red-glow: rgba(239, 68, 68, 0.4);

    --gradient-red-purple: linear-gradient(135deg, #ef4444 0%, #a855f7 100%);
    --gradient-purple-dark: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%);
    --gradient-glow: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-red: 0 0 25px rgba(239, 68, 68, 0.4);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FLOATING ANIMATED BACKGROUND CANVAS */
.floating-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

body>header,
body>main,
body>footer,
.mobile-nav-drawer,
.modal-overlay,
.filter-drawer-panel {
    position: relative;
    z-index: 1;
}

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

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(168, 85, 247, 0.14) 0%, transparent 45%);
}

/* HORIZONTAL QUICK CATEGORIES SCROLL BAR */
.horizontal-cat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 0%;
    padding: 0.35rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-cat-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.cat-btn-h {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.825rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-btn-h:hover,
.cat-btn-h.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-red);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* HEADER & NAVBAR */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.9rem 0;
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* SINGLE MORPHING BRAND LOGO: MIP -> МИР ИГРОВЫХ ПРИСТАВОК */
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    user-select: none;
    position: relative;
}

.logo-box {
    background: var(--gradient-red-purple);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1px;
}

.logo-abbrev {
    display: inline-block;
    opacity: 1;
    max-width: 80px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-expanded {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ON HOVER: MORPH MIP INTO МИР ИГРОВЫХ ПРИСТАВОК */
.brand-logo:hover .logo-box {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), 0 0 15px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px) scale(1.02);
}

.brand-logo:hover .logo-abbrev {
    max-width: 0;
    opacity: 0;
    margin: 0;
    transform: translateX(-10px);
}

.brand-logo:hover .logo-expanded {
    max-width: 380px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-red-purple);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ACTION BUTTONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-card-dark);
    border: 1px solid var(--border-glass);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.cart-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--primary-red);
}

/* HERO CAROUSEL CONTAINER */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-red);
}

.hero-carousel-wrapper .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.hero-carousel-wrapper .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-carousel-wrapper .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(12, 10, 18, 0.95) 0%, transparent 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator-dot.active {
    background: var(--primary-red);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-red);
}

/* MODAL OVERLAY & POPUP FORM */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 6, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #13101c;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.25rem;
    box-shadow: var(--shadow-glass), 0 0 40px rgba(239, 68, 68, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--text-muted);
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
    background: var(--primary-red);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-label span {
    color: var(--primary-red);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-error {
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.4rem;
    display: none;
}

/* MAIN LAYOUT: FULL WIDTH CATALOG CONTAINER */
.catalog-container {
    max-width: 1360px;
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 1.5rem;
}

/* OFF-CANVAS SLIDING FILTER DRAWER */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(8, 6, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: #13101c;
    border-right: 1px solid var(--border-glass);
    z-index: 999;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-glass), 0 0 50px rgba(239, 68, 68, 0.2);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.filter-drawer-overlay.active .filter-drawer-panel {
    transform: translateX(0);
}

/* HORIZONTAL QUICK CATEGORIES BAR ON TOOLBAR */
.horizontal-cat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-cat-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.cat-btn-h {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.825rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-btn-h:hover {
    border-color: var(--primary-red);
    color: #fff;
}

.cat-btn-h.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-red);
}

/* SIDE FILTER TRIGGER BUTTON */
.btn-filter-trigger {
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-filter-trigger:hover {
    background: var(--gradient-red-purple);
    border-color: transparent;
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

/* SIDEBAR FILTERS */
.sidebar {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    height: fit-content;
}

.sidebar-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BRAND CHIPS (SIDEBAR) */
.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.brand-chip {
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.brand-chip:hover {
    border-color: var(--primary-red);
    color: #fff;
}

.brand-chip.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-red);
}

.reset-filter-btn {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.reset-filter-btn:hover {
    color: #fff;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--primary-red);
    width: 16px;
    height: 16px;
}

/* STREAMLINED DYNAMIC CATALOG CONTROL PANEL */
.catalog-control-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.85) 0%, rgba(18, 14, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.catalog-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.horizontal-cat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.2rem 0;
    flex-grow: 1;
}

.horizontal-cat-bar::-webkit-scrollbar {
    display: none;
}

.cat-btn-h {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.cat-btn-h:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.cat-btn-h.active {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* DYNAMIC SUBFILTERS BAR (PULLED FROM DB CONFIGS) */
.category-subfilters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    width: 100%;
}
.catalog-subfilters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
}

.subfilter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subfilter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.subfilter-group {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subfilter-group::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.subfilter-chips-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subfilter-chips-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.subfilter-chip {
    padding: 0.32rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.subfilter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.subfilter-chip.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #f3e8ff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* QUICK RESET BUTTON */
.btn-quick-reset {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-reset:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

.sort-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.sort-select-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.view-modes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* E-COMMERCE PRODUCT CARDS GRID (FIXED EQUAL HEIGHT & WIDTH) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 2.5rem 1.5rem;
    width: 100%;
    align-items: stretch;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* TOP STOCK BADGE (CENTRED BLACK PILL) */
.card-stock-badge {
    background: #000000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 1.25rem;
    border-radius: 9999px;
    position: relative;
    z-index: 10;
    margin-bottom: -14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    font-family: var(--font-body);
    text-align: center;
    white-space: nowrap;
}

/* INNER CARD CONTAINER */
.product-card-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(23, 19, 36, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card-box:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.35);
}

/* TOP PHOTO HEADER (DARK GREEN) */
.card-photo-header {
    background: linear-gradient(180deg, #024a25 0%, #036836 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 28px 28px 0 0;
    min-height: 260px;
    height: 260px;
    position: relative;
    justify-content: space-between;
}

.card-badges-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    border-radius: 0;
}

.card-badge:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.card-badge:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.badge-grey {
    background: #6b7280;
}

.badge-green {
    background: #00a000;
}

.badge-purple {
    background: #800080;
}

.card-photo-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.25rem 0;
}

.card-photo-wrapper img {
    max-height: 200px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.product-card-box:hover .card-photo-wrapper img {
    transform: scale(1.06);
}

/* BOTTOM CARD BODY (DARK VIOLET SITE MATCHING CONTAINER) */
.card-body-content {
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
    color: #f8fafc;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    border-radius: 0 0 28px 28px;
    font-family: var(--font-body);
}

/* RATINGS GRID (2x2) */
.card-ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    min-height: 4rem;
    align-content: start;
}

.rating-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1.5px solid transparent;
}

.rating-pill:hover {
    transform: scale(1.03);
    opacity: 0.95;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    border-color: #ffffff;
}

/* SHIMMERING GOLD BAR ANIMATION FOR MIP RATING */
@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.rating-mip {
    background: linear-gradient(110deg, #b8860b 0%, #ffd700 25%, #fff8dc 45%, #ffd700 65%, #b8860b 100%);
    background-size: 220% 220%;
    animation: goldShimmer 3s ease infinite;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.rating-mip:hover {
    box-shadow: 0 0 18px rgba(255, 235, 130, 0.85), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.rating-wb {
    background: linear-gradient(135deg, #990080 0%, #770066 100%);
}

.rating-avito {
    background: linear-gradient(135deg, #009944 0%, #0055ff 50%, #7700cc 100%);
}

.rating-ozon {
    background: linear-gradient(135deg, #0044ff 0%, #0022bb 100%);
}

.rating-platform {
    font-weight: 800;
    opacity: 0.95;
    margin-right: 1px;
}

.rating-stars {
    letter-spacing: -1px;
    font-size: 0.75rem;
    color: #ffffff;
}

.rating-score {
    margin-left: 2px;
    font-weight: 800;
}

/* PRODUCT TITLE */
.card-product-title {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0.1rem 0 0.5rem;
    line-height: 1.25;
    min-height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-product-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-product-title a:hover {
    color: var(--primary-purple);
}

/* EXTRA BULLET POINTS */
.card-extra-info {
    margin-bottom: 0.85rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 5rem;
}

.extra-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}

.extra-bullets-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.2rem;
}

.extra-bullets-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    top: 0;
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.extra-bullets-spacer {
    height: 5rem;
}

/* BOTTOM PRICE & BUTTONS AREA */
.card-bottom-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin-top: auto;
}

.card-price-display {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.card-out-of-stock-display {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f87171;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-order-main {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
    outline: none;
    letter-spacing: 0.5px;
}

.btn-order-main:hover {
    background: linear-gradient(135deg, #c024ff 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(192, 36, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-order-main:active {
    transform: scale(0.98);
}

/* HIDE NON-WORKING UTILITY BUTTONS & PLACEHOLDER ASSORTMENT MATRIX */
#assortment {
    display: none !important;
}

.card-utility-buttons {
    display: none !important;
}

.util-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.util-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}

.util-btn:active {
    transform: scale(0.96);
}

.util-btn.active,
.util-btn.util-heart.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.price-old {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-decoration: line-through;
}

/* BUY BUTTON */
.btn-buy {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--gradient-red-purple);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-red);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    filter: brightness(1.1);
}

/* CONFIGURATOR WIDGET SECTION */
.configurator-section {
    max-width: 1360px;
    margin: 4rem auto 5rem;
    padding: 0 1.5rem;
}

.configurator-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.option-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.chip-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.chip-btn:hover {
    border-color: var(--primary-red);
}

.chip-btn.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-red);
}

.config-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 1rem;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
}

/* FOOTER */
.footer {
    background: rgba(6, 4, 10, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* PRODUCT DETAIL PAGE STYLES */
/* ==========================================================================
   ASSORTMENT & CATALOG RESPONSIVE GRID SYSTEM
   ========================================================================== */

.assortment-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.assortment-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.assortment-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.25);
}

.assortment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.assortment-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.assortment-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.assortment-link {
    color: var(--primary-purple);
    font-size: 0.8rem;
    font-weight: 700;
}

/* BLOG CARDS STYLES */
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.25);
}

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

.product-detail-container img {
    user-select: none;
}

.thumb-img:hover {
    border-color: var(--primary-red) !important;
}

.thumb-img.active {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-name {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.spec-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: right;
}

.tab-btn {
    transition: var(--transition);
}

.tab-btn:hover {
    color: #fff !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE ADAPTATION (@media Queries)
   ========================================================================== */

/* MOBILE HAMBURGER BUTTON & DRAWER */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-purple);
}

.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 6, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #13101c;
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #fff;
    padding-left: 0.5rem;
}

/* SELLER BADGE CHIP STYLES */
.card-seller-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    letter-spacing: 0.3px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .assortment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hide-mobile {
        display: none !important;
    }

    .product-detail-container>div {
        grid-template-columns: 1fr !important;
    }

    .specs-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    section,
    .catalog-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .catalog-container {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2-COLUMN SAFE GRID FOR ASSORTMENT ON SMARTPHONES */
    .assortment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .assortment-card {
        padding: 0.75rem 0.5rem !important;
    }

    .assortment-desc {
        display: none !important;
    }

    /* 2-COLUMN OPTIMIZED GRID FOR PRODUCTS ON SMARTPHONES (WB/OZON STYLE) */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .product-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .card-stock-badge {
        font-size: 0.65rem !important;
        padding: 0.18rem 0.55rem !important;
        margin-bottom: -10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        max-width: 90% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .product-card-box {
        border-radius: 18px !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* TOP PHOTO AREA - PROPORTIONAL FOR 150px IMAGE */
    .card-photo-header {
        height: 195px !important;
        min-height: 195px !important;
        padding: 0.45rem 0.4rem 0.35rem !important;
        border-radius: 18px 18px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .card-badges-row {
        margin-bottom: 0.2rem !important;
        gap: 0 !important;
    }

    .card-badge {
        font-size: 0.58rem !important;
        padding: 0.15rem 0.4rem !important;
        font-weight: 700 !important;
    }

    .card-photo-wrapper {
        padding: 0.1rem 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .card-photo-wrapper img {
        max-height: 150px !important;
        max-width: 90% !important;
        object-fit: contain !important;
    }

    /* BOTTOM CARD BODY - COMPACT PADDING */
    .card-body-content {
        padding: 0.65rem 0.55rem 0.75rem !important;
        border-radius: 0 0 18px 18px !important;
        gap: 0.2rem !important;
    }

    /* RATINGS - SLEEK SINGLE-STAR PILLS (NO WRAPPING / CUTOFF) */
    .card-ratings-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.22rem !important;
        min-height: auto !important;
        margin-bottom: 0.3rem !important;
    }

    .rating-pill {
        padding: 0.18rem 0.38rem !important;
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
        border-radius: 6px !important;
        gap: 0.15rem !important;
        font-weight: 700 !important;
    }

    .rating-platform {
        font-size: 0.62rem !important;
        margin-right: 2px !important;
        font-weight: 800 !important;
    }

    .rating-stars {
        display: none !important; /* Hide 5 repeated stars to fit in mobile card */
    }

    .rating-score {
        font-size: 0.62rem !important;
        font-weight: 800 !important;
    }

    .rating-score::before {
        content: "★ " !important;
        color: #ffd700 !important;
        font-size: 0.65rem !important;
    }

    /* PRODUCT TITLE - 2 CLEAN COMPACT LINES */
    .card-product-title {
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
        min-height: 1.95rem !important;
        max-height: 2.15rem !important;
        margin: 0 0 0.25rem !important;
        letter-spacing: 0.2px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* SELLER CHIP */
    .card-seller-row {
        margin-top: 0 !important;
        margin-bottom: 0.35rem !important;
    }

    .seller-badge-chip {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.4rem !important;
        border-radius: 6px !important;
    }

    /* BULLET POINTS - HIDE ON MOBILE 2-COL TO PREVENT TALL VOIDS */
    .card-extra-info {
        display: none !important;
    }

    .extra-bullets-spacer {
        display: none !important;
        height: 0 !important;
    }

    /* BOTTOM ACTIONS & PRICE */
    .card-bottom-actions {
        gap: 0.4rem !important;
        margin-top: auto !important;
        width: 100% !important;
    }

    .card-price-display {
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.2rem !important;
    }

    .card-out-of-stock-display {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .btn-order-main {
        width: 100% !important;
        padding: 0.48rem 0.6rem !important;
        font-size: 0.95rem !important;
        box-shadow: 0 3px 12px rgba(168, 85, 247, 0.4) !important;
        letter-spacing: 0.3px !important;
        border-radius: 9999px !important;
    }

    .card-utility-buttons {
        display: none !important;
    }

    /* CATALOG CONTROL PANEL MOBILE */
    .catalog-control-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0.75rem !important;
        gap: 0.6rem !important;
        margin-bottom: 1.25rem !important;
    }

    .catalog-toolbar-row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }

    .horizontal-cat-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 0.25rem !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .horizontal-cat-bar::-webkit-scrollbar {
        display: none !important;
    }

    .cat-btn-h {
        padding: 0.38rem 0.75rem !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }

    .sort-select-box,
    .sort-select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

        .category-subfilters {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.45rem !important;
    }

    .catalog-subfilters-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.45rem !important;
    }

    .subfilter-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        flex-wrap: nowrap !important;
        padding-bottom: 0.2rem !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .subfilter-group::-webkit-scrollbar {
        display: none !important;
    }

    .subfilter-chips-list {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .subfilter-chips-list::-webkit-scrollbar {
        display: none !important;
    }

    .subfilter-chip {
        flex-shrink: 0 !important;
    }

    .btn-quick-reset {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* CATALOG HINT BANNER MOBILE STACK & PADDING */
    .catalog-hint-section {
        padding: 0.75rem 0.5rem 0.25rem !important;
    }

    .catalog-hint-card {
        padding: 1.35rem 1.1rem !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        border-radius: 18px !important;
    }

    .catalog-hint-title {
        font-size: 1.45rem !important;
        margin-bottom: 0.5rem !important;
    }

    .catalog-hint-desc {
        font-size: 0.88rem !important;
        margin-bottom: 1.15rem !important;
    }

    .catalog-hint-arrow-box {
        width: 100% !important;
    }

    .catalog-hint-arrow-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .catalog-hint-help-box {
        width: 100% !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
    }
}

/* PRODUCT DETAIL PAGE STYLES (MATCHING MOCKUP & SITE THEME) */
.product-detail-section {
    width: 100%;
    box-sizing: border-box;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

.product-gallery-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* GALLERY MAIN CONTAINER (GREEN THEME HEADER) */
.detail-photo-header {
    background: linear-gradient(180deg, #024a25 0%, #036836 100%);
    border-radius: 28px;
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .detail-photo-header {
        height: 320px;
        border-radius: 20px;
    }
}

.detail-photo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.detail-photo-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gallery-nav-btn:hover {
    background: var(--primary-purple);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.nav-left {
    left: 1rem;
}

.nav-right {
    right: 1rem;
}

/* THUMBNAILS BAR */
.detail-thumbs-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: rgba(23, 19, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.thumb-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    user-select: none;
}

.thumb-nav-btn:hover {
    background: var(--primary-purple);
}

.thumb-nav-btn:active {
    transform: scale(0.95);
}

.thumbs-scroll-view {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
}

.thumbs-scroll-view::-webkit-scrollbar {
    display: none;
}

.thumb-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .thumb-box {
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }
}

.thumb-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    pointer-events: none;
}

.thumb-box.active,
.thumb-box:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

/* RIGHT COLUMN OPTIONS CONTAINER */
.product-options-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.option-pill-header {
    background: #000000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 1.25rem;
    border-radius: 9999px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.4rem;
    text-transform: lowercase;
}

.stock-header {
    background: #000000;
    color: #ffffff;
    text-transform: none;
}

/* PRICE & ORDER CARD */
.detail-purchase-card {
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.detail-price-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
}

.detail-price-text.out-of-stock {
    color: #f87171;
    font-size: 1.75rem;
}

.detail-old-price {
    font-size: 1.25rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 0.6rem;
}

/* OPTION CHIPS CONTAINER */
.option-block {
    display: flex;
    flex-direction: column;
}

.option-chips-box {
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.option-chip {
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-purple);
    transform: translateY(-1px);
}

.option-chip.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.option-chip.disabled,
.option-chip:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    text-decoration: line-through;
}

/* Cascade-disabled variant chip (hierarchical filter) */
.option-chip.is-disabled {
    position: relative;
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 2px;
    filter: grayscale(0.8);
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: all 0.25s ease;
}
.option-chip.is-disabled:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.option-chip.is-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: rgba(255, 75, 139, 0.6);
    transform: rotate(-12deg);
    pointer-events: none;
    border-radius: 1px;
}
.option-chip.is-disabled.active {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

/* USED / REFURBISHED ITEMS LIST */
.used-items-list {
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.used-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.used-item-row:hover,
.used-item-row.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--primary-purple);
    color: #ffffff;
}

.used-item-price {
    font-weight: 700;
    color: #34d399;
}

/* ==========================================================================
   HERO CATALOG HINT & GUIDANCE BANNER
   ========================================================================== */
.catalog-hint-section {
    padding: 1.5rem 1.5rem 0.5rem;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.catalog-hint-card {
    background: linear-gradient(135deg, rgba(28, 23, 44, 0.9) 0%, rgba(18, 14, 28, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.25rem;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.12);
}

.catalog-hint-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-hint-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-hint-main {
    flex: 1;
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.catalog-hint-badge {
    background: var(--gradient-red-purple);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.catalog-hint-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.3px;
}

.catalog-hint-title .highlight {
    background: var(--gradient-red-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.catalog-hint-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

/* BIG ANIMATED ARROW DOWN BUTTON */
.catalog-hint-arrow-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.catalog-hint-arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem 0.75rem 1.65rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(168, 85, 247, 0.28) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 9999px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.catalog-hint-arrow-btn:hover {
    background: var(--gradient-red-purple);
    border-color: transparent;
    transform: translateY(2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5), 0 0 25px rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

.big-arrow-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceDown 2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

.big-arrow-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

/* SIDE HELP BUTTON BOX */
.catalog-hint-help-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    width: 310px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.hint-help-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hint-help-icon-bubble {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hint-help-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.hint-help-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

.btn-hint-help {
    background: var(--gradient-red-purple);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    width: 100%;
}

.btn-hint-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.55);
}

/* ==========================================================================
   COOKIE & PRIVACY FLOATING BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9990;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(22, 17, 34, 0.96) 0%, rgba(14, 11, 22, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    padding: 1.15rem 1.35rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.cookie-icon-wrapper {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(255, 180, 0, 0.4));
}

.cookie-text-box {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.cookie-desc {
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.cookie-link {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #ffffff;
}

.cookie-actions {
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--gradient-red-purple);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
        max-width: calc(100% - 1.5rem);
        padding: 1rem 1.15rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .btn-cookie-accept {
        width: 100%;
        text-align: center;
        padding: 0.65rem 1rem;
    }
}

/* ==========================================================================
   PERSONAL DATA CONSENT CHECKBOX (IN LEAD FORM)
   ========================================================================== */
.form-consent-group {
    margin: 0.85rem 0 0.5rem;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox-mark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.consent-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-mark {
    background: var(--gradient-red-purple);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.consent-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-mark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.consent-checkbox-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.consent-privacy-link {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.consent-privacy-link:hover {
    color: #ffffff;
}

/* PLATFORM SELECTION CHIPS FOR HELP MODAL */
.platform-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

@media (max-width: 480px) {
    .platform-chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.platform-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ==========================================================================
   ORDER CHOICE MODAL (DIRECT ORDER VS ADD TO CART)
   ========================================================================== */
.order-choice-box {
    max-width: 500px;
    padding: 2rem 2.25rem;
    background: linear-gradient(150deg, rgba(28, 22, 46, 0.98) 0%, rgba(16, 12, 28, 0.99) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.2);
}

.order-choice-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.order-choice-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.order-choice-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.3px;
}

.order-choice-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* MINI PRODUCT PREVIEW STRIP */
.order-choice-product {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-choice-img-wrap {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    background: #024a25;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.order-choice-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.order-choice-info {
    flex: 1;
    min-width: 0;
}

.order-choice-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.order-choice-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.order-choice-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #4ade80;
}

.order-choice-options-tag {
    font-size: 0.75rem;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ACTION BUTTONS GRID */
.order-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.order-choice-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.choice-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.choice-btn-text {
    flex: 1;
    min-width: 0;
}

.choice-btn-title {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.choice-btn-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.choice-btn-arrow {
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

/* OPTION A: DIRECT FAST ORDER */
.btn-direct-order {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.btn-direct-order .choice-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-direct-order .choice-btn-desc {
    color: rgba(255, 255, 255, 0.85);
}

.btn-direct-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.55);
    filter: brightness(1.08);
}

.btn-direct-order:hover .choice-btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.btn-direct-order:active {
    transform: translateY(0);
}

/* OPTION B: ADD TO CART */
.btn-cart-order {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-cart-order .choice-btn-icon {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.btn-cart-order .choice-btn-title {
    color: #f3e8ff;
}

.btn-cart-order .choice-btn-desc {
    color: var(--text-muted);
}

.btn-cart-order:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-cart-order:hover .choice-btn-arrow {
    transform: scale(1.2);
    opacity: 1;
    color: #c084fc;
}

.btn-cart-order:active {
    transform: translateY(0);
}

/* ==========================================================================
   ARTICLE RENDERER & CONTAINER STYLES (PREVENTS OVERFLOW ON ALL DEVICES)
   ========================================================================== */
.article-container {
    max-width: 960px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.article-content-body {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow: hidden;
    /* Prevents any image, code or table from overflowing card */
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .article-container {
        padding: 0 1rem;
        margin: 1.5rem auto 3rem;
    }

    .article-content-body {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
    }
}

.article-content-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    margin: 1.75rem 0;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-content-body p {
    margin-bottom: 1.25rem;
}

.article-content-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2.25rem 0 1rem;
    line-height: 1.3;
}

.article-content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 1.85rem 0 0.85rem;
}

.article-content-body ul,
.article-content-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #cbd5e1;
}

.article-content-body li {
    margin-bottom: 0.5rem;
}

/* CAROUSEL CONTAINMENT */
.article-carousel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 2rem 0;
    background: #0d0a14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-carousel .carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.article-carousel .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.article-carousel .carousel-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: 420px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .article-carousel .carousel-slide img {
        height: 240px;
    }
}

.article-carousel .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 8, 18, 0.94) 100%);
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.article-carousel .carousel-prev,
.article-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
}

.article-carousel .carousel-prev:hover,
.article-carousel .carousel-next:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: translateY(-50%) scale(1.1);
}

.article-carousel .carousel-prev {
    left: 0.85rem;
}

.article-carousel .carousel-next {
    right: 0.85rem;
}

.article-carousel .carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.article-carousel .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.article-carousel .dot.active {
    background: #c084fc;
    width: 22px;
    border-radius: 6px;
}

/* PHOTO GALLERY GRID CONTAINMENT */
.article-gallery-grid {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-gallery-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.article-gallery-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .article-gallery-grid.cols-2,
    .article-gallery-grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

.article-gallery-grid .gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: zoom-in;
    background: #0d0a14;
    margin: 0;
}

.article-gallery-grid .gallery-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease;
}

.article-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.article-gallery-grid figcaption {
    padding: 0.65rem 0.85rem;
    background: rgba(18, 14, 28, 0.92);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* STYLED CALLOUT ALERT BOXES */
.article-callout {
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-callout .callout-header {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-callout .callout-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.article-callout-pro {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(126, 34, 206, 0.08) 100%);
    border-color: rgba(168, 85, 247, 0.35);
}

.article-callout-pro .callout-header {
    color: #c084fc;
}

.article-callout-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.35);
}

.article-callout-warning .callout-header {
    color: #f87171;
}

.article-callout-tip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(21, 128, 61, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.35);
}

.article-callout-tip .callout-header {
    color: #4ade80;
}

.article-callout-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.35);
}

.article-callout-info .callout-header {
    color: #60a5fa;
}

/* STYLED QUOTES */
blockquote.article-quote {
    position: relative;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary-purple);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #f1f5f9;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

blockquote.article-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

blockquote.article-quote cite {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    font-style: normal;
    color: #c084fc;
}

/* PRODUCT EMBED CARD IN ARTICLES */
.article-product-embed {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(180deg, rgba(28, 23, 44, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .article-product-embed {
        flex-direction: column;
        text-align: center;
    }
}

.article-product-embed .embed-img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px !important;
    padding: 0.4rem;
    margin: 0 !important;
}

.article-product-embed .embed-info {
    flex: 1;
}

.article-product-embed .embed-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-product-embed .embed-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0.2rem 0;
}

.article-product-embed .embed-price {
    font-size: 1rem;
    font-weight: 800;
    color: #4ade80;
}

.article-product-embed .embed-btn {
    padding: 0.65rem 1.2rem;
    background: var(--primary-purple);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.article-product-embed .embed-btn:hover {
    background: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* COMPARISON TABLES IN ARTICLES */
.article-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    background: rgba(18, 14, 28, 0.8);
}

.article-table th {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.article-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* LIGHTBOX MODAL */
.article-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 6, 14, 0.94);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.article-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.article-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.article-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.platform-chip:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-purple);
    transform: translateY(-1px);
}

.platform-chip.active {
    background: var(--gradient-red-purple);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.platform-icon {
    font-size: 0.95rem;
}

/* ARTICLE FILE DOWNLOAD CARD */
.article-file-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(20, 25, 38, 0.95) 0%, rgba(13, 10, 20, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.article-file-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
}

.article-file-card .file-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.article-file-card .file-card-details {
    flex: 1;
    min-width: 0;
}

.article-file-card .file-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    word-break: break-all;
}

.article-file-card .file-card-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.article-file-card .file-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
}

.article-file-card .file-badge {
    padding: 0.2rem 0.55rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 6px;
    color: #10b981;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.article-file-card .file-size {
    color: #cbd5e1;
    font-weight: 500;
}

.article-file-card .file-version {
    color: #f59e0b;
    font-weight: 600;
}

.article-file-card .file-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: #10b981;
    color: #0d0a14 !important;
    font-weight: 700;
    font-size: 0.925rem;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.article-file-card .file-download-btn:hover {
    background: #34d399;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #000000 !important;
}

@media (max-width: 640px) {
    .article-file-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.15rem;
    }

    .article-file-card .file-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FLOATING CART CIRCLE & CART MODAL
   ========================================================================== */
.floating-cart-circle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ef4444 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6), 0 0 20px rgba(239, 68, 68, 0.4);
    cursor: pointer;
    z-index: 9992;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: floatCartPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatCartPopIn {
    0% {
        transform: scale(0) rotate(-30deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.15) rotate(6deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.floating-cart-circle:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.8), 0 0 30px rgba(239, 68, 68, 0.6);
}

.floating-cart-circle:active {
    transform: scale(0.94);
}

.cart-circle-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.cart-circle-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.cart-circle-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #ffffff;
    color: #0f0926;
    font-size: 0.76rem;
    font-weight: 900;
    font-family: var(--font-heading);
    min-width: 22px;
    height: 22px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #1a103c;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-circle.bump .cart-circle-badge {
    transform: scale(1.35);
}

.floating-cart-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(192, 132, 252, 0.55);
    animation: cartPulseRing 2.8s infinite;
    pointer-events: none;
}

@keyframes cartPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    60% {
        transform: scale(1.28);
        opacity: 0;
    }
    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

/* CART MODAL */
.cart-modal-box {
    max-width: 620px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(26, 20, 42, 0.98) 0%, rgba(15, 11, 24, 0.99) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.2) !important;
}

.cart-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-items-count-tag {
    background: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.cart-modal-body {
    padding: 1.25rem 1.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 52vh;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.cart-item-card:hover {
    background: rgba(168, 85, 247, 0.07);
    border-color: rgba(168, 85, 247, 0.3);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #34d399;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-qty-controller {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.btn-qty {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-qty:hover {
    background: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.cart-qty-val {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: #ffffff;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.cart-empty-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #94a3b8;
}

.cart-empty-icon {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
    display: block;
    opacity: 0.8;
}

.cart-empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.cart-empty-desc {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: #94a3b8;
}

.cart-modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 20, 0.7);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
}

.cart-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
}

.cart-total-value {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #34d399;
}

.cart-footer-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-clear-cart:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 640px) {
    .floating-cart-circle {
        bottom: 20px;
        right: 18px;
        width: 56px;
        height: 56px;
    }
    .cart-item-title {
        max-width: 130px;
    }
    .cart-modal-header,
    .cart-modal-body,
    .cart-modal-footer {
        padding: 1rem 1.15rem;
    }
}