:root {
    --primary: #1769ff;
    --primary-gradient: linear-gradient(135deg, #1769ff 0%, #6f42c1 100%);
    --primary-dark: #0751df;
    --primary-light: #eef4ff;
    --primary-rgb: 23, 105, 255;
    
    --secondary: #7657ff;
    --accent: #ff4058;
    --success: #16b979;
    --warning: #ffb800;
    
    --text: #0e172e;
    --text-muted: #5e6d8a;
    --text-light: #8996b0;
    
    --border: #e2e8f4;
    --border-light: #edf2f9;
    --bg-page: #f8faff;
    --bg-card: #ffffff;
    --surface-hover: #f1f5fd;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 12px rgba(18, 38, 77, 0.04);
    --shadow-sm: 0 8px 20px rgba(18, 38, 77, 0.06);
    --shadow-md: 0 16px 36px rgba(18, 38, 77, 0.09);
    --shadow-lg: 0 24px 54px rgba(18, 38, 77, 0.14);
    --shadow-primary: 0 10px 28px rgba(23, 105, 255, 0.28);
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.55;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

button, input, select {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header */
.header {
    height: 76px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 6px 20px rgba(16, 25, 54, 0.06);
}

.nav {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text);
    text-decoration: none;
    user-select: none;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(140deg, #7853ff 0%, #1769ff 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(120, 83, 255, 0.32);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -23px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   HERO PROMINENT SEARCH BAR
   ========================================================================== */
.hero-search-box {
    position: relative;
    max-width: 580px;
    width: 100%;
    margin-bottom: 26px;
    z-index: 40;
}

.hero-search-input-wrap {
    width: 100%;
    height: 56px;
    border: 2px solid #e2eaf8;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 8px 0 18px;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(18, 38, 77, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hero-search-input-wrap:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(23, 105, 255, 0.18), 0 0 0 4px rgba(23, 105, 255, 0.14);
    transform: translateY(-1px);
}

.hero-search-icon {
    width: 22px;
    height: 22px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.hero-search-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.hero-search-input-wrap:focus-within .hero-search-icon {
    color: var(--primary);
}

.hero-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    width: 100%;
    font-weight: 500;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.hero-search-kbd {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-light);
    background: #f1f5fd;
    border: 1px solid #dce5f5;
    border-radius: 6px;
    padding: 5px 9px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    user-select: none;
    transition: var(--transition);
}

.hero-search-input-wrap:focus-within .hero-search-kbd {
    background: #eaf1ff;
    color: var(--primary);
    border-color: #c4d7fc;
}

.hero-search-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.hero-search-tags .tag-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.hero-search-tags .tag-chip {
    background: rgba(23, 105, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(23, 105, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-search-tags .tag-chip:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(23, 105, 255, 0.25);
}

.search-box {
    position: relative;
    width: 320px;
}

.search-input-wrap {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #f8faff;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    transition: var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.15);
}

.search-icon {
    width: 17px;
    height: 17px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.search-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    display: block;
}

.search-input-wrap:focus-within .search-icon {
    color: var(--primary);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text);
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
    max-height: 380px;
    overflow-y: auto;
    z-index: 120;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-header {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    padding: 6px 10px;
    letter-spacing: 0.5px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.search-dropdown-item:hover {
    background: var(--surface-hover);
}

.search-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.search-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.cart-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    position: relative;
}

.cart-btn:hover {
    background: var(--surface-hover);
    border-color: #cbd7ed;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(255, 64, 88, 0.4);
}

.btn {
    height: 46px;
    border-radius: var(--radius-md);
    padding: 0 22px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--surface-hover);
    border-color: #cbd7ed;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 30px rgba(23, 105, 255, 0.38);
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #f8faff;
    border-color: #cbd8ee;
    color: var(--primary);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    place-items: center;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

/* ==========================================================================
   Heroicons System Utilities & Component Sizing
   ========================================================================== */
.heroicon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.heroicon-xs {
    width: 13px;
    height: 13px;
}

.heroicon-sm {
    width: 16px;
    height: 16px;
}

.heroicon-md {
    width: 20px;
    height: 20px;
}

.heroicon-lg {
    width: 24px;
    height: 24px;
}

.heroicon-xl {
    width: 32px;
    height: 32px;
}

.cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    color: var(--text);
    display: block;
}

.cart-btn:hover svg {
    color: var(--primary);
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.mobile-menu-close svg,
.close-drawer-btn svg,
.modal-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.cat-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    display: block;
}

.btn-icon-svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: inline-block;
    vertical-align: -2px;
}

.feature-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    color: var(--primary);
    display: block;
}

.gift-svg {
    width: 44px;
    height: 44px;
    stroke: #ffffff;
    display: block;
}

.cart-empty-icon svg {
    width: 52px;
    height: 52px;
    stroke: #94a3b8;
    display: block;
    margin: 0 auto;
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
}

/* Hero */
.hero {
    min-height: 520px;
    position: relative;
    background:
        radial-gradient(circle at 78% 25%, rgba(88, 135, 255, 0.18), transparent 35%),
        radial-gradient(circle at 12% 65%, rgba(122, 88, 255, 0.12), transparent 32%),
        linear-gradient(120deg, #ffffff 0%, #f7f9ff 45%, #eef4ff 100%);
    overflow: hidden;
    padding-bottom: 50px;
}

.hero-bg-orb {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 108, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    right: -150px;
    top: -200px;
    pointer-events: none;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe6fa;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #273756;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 14px rgba(23, 105, 255, 0.06);
    backdrop-filter: blur(8px);
}

.trust-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 185, 121, 0.25);
}

.trust-stars {
    color: #ffaa00;
    font-size: 13px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -1.8px;
    font-weight: 800;
    color: var(--text);
    margin: 0 auto 26px auto;
    max-width: 820px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero h1 span {
    background: linear-gradient(135deg, #1769ff 0%, #7657ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    word-break: break-word;
}

.hero-description {
    color: var(--text-muted);
    font-size: clamp(15px, 1.8vw, 17.5px);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 26px auto;
    word-break: break-word;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    max-width: 100%;
}

.hero-btn {
    height: 48px;
    padding: 0 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.hero-btn.primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary);
}

.hero-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(23, 105, 255, 0.4);
}

.hero-btn.secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-btn.secondary:hover {
    background: #f8faff;
    border-color: #cbd8ee;
    transform: translateY(-2px);
}

.hero-benefits {
    display: flex;
    gap: 20px;
    margin-top: 0;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #3b4b6d;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.1);
    color: var(--primary);
    font-size: 14px;
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(18, 38, 77, 0.15);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5fd;
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: #e2ebfa;
    color: var(--primary);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f0f5ff;
    color: var(--primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 23, 46, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   CATEGORIES FLOATING TAB BAR (FLAT DESIGN SEPARATED BY LINES)
   ========================================================================== */
.categories {
    max-width: 1400px;
    margin: -36px auto 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 25;
}

/* Mobile Trigger Bar */
.category-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    border-radius: 0;
    cursor: pointer;
}

.mobile-cat-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.mobile-cat-label {
    color: #64748b;
    font-weight: 500;
}

.mobile-cat-current {
    font-weight: 700;
    color: #0f172a;
}

.mobile-cat-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-cat-browse-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.mobile-cat-browse-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

.category-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}

.category-row::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1025px) {
    .category-row {
        overflow: visible;
    }
}

.category-btn {
    flex: 1;
    min-width: 112px;
    min-height: 60px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.category-btn:first-child {
    border-radius: 0;
}

.category-btn:last-child {
    border-right: none;
    border-radius: 0;
}

.category-btn:hover {
    color: var(--primary);
    background: #f8fafc;
}

.category-btn:hover .category-icon {
    color: var(--primary);
}

.category-btn.active {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
    box-shadow: none;
}

/* Crisp flat bottom indicator line */
.category-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 0;
}

/* Flat Icon - Clean without bubble background */
.category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.category-btn.active .category-icon {
    color: var(--primary);
    background: transparent !important;
    box-shadow: none !important;
}

.category-btn:hover .category-icon {
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   DESKTOP HOVER PREVIEW POPOVERS (Flat Square Design)
   ========================================================================== */
.category-popover {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    padding: 16px 18px;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    text-align: left;
    white-space: normal;
    cursor: default;
}

.category-popover.popover-align-right {
    left: auto;
    right: 0;
}

@media (min-width: 1025px) {
    .category-btn:hover .category-popover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.cat-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cat-popover-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.cat-popover-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cat-popover-tagline {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.cat-popover-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
}

.cat-popover-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.cat-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 0;
}

.cat-popover-footer {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   MOBILE CATEGORY PUSHOVER BOTTOM SHEET
   ========================================================================== */
.category-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #0f172a;
    border-radius: 0;
    z-index: 1300;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.18);
}

.category-bottom-sheet.active {
    transform: translateY(0);
}

@media (min-width: 641px) {
    .category-bottom-sheet {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: 620px;
        transform: translate(-50%, 100%);
        border-left: 2px solid #0f172a;
        border-right: 2px solid #0f172a;
    }
    .category-bottom-sheet.active {
        transform: translate(-50%, 0);
    }
}

.sheet-drag-handle-bar {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 6px;
    cursor: pointer;
}

.sheet-drag-handle {
    width: 44px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sheet-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sheet-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.sheet-close-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #f8fafc;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sheet-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.sheet-close-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.sheet-category-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(85vh - 75px);
}

.sheet-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 100%;
}

.sheet-cat-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sheet-cat-item.active {
    background: #f1f5f9;
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
}

.sheet-cat-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    flex-shrink: 0;
}

.sheet-cat-item.active .sheet-cat-icon {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

.sheet-cat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.sheet-cat-content {
    flex: 1;
    min-width: 0;
}

.sheet-cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.sheet-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.sheet-cat-item.active .sheet-cat-name {
    color: var(--primary);
}

.sheet-cat-count {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 0;
    letter-spacing: 0.2px;
}

.sheet-cat-item.active .sheet-cat-count {
    background: #eff6ff;
    color: var(--primary);
}

.sheet-cat-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    white-space: normal;
}

.sheet-cat-check {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    flex-shrink: 0;
}

.sheet-cat-item.active .sheet-cat-check {
    opacity: 1;
}

.sheet-cat-check svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Products */
.products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 38px 32px 50px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 26px;
    letter-spacing: -0.8px;
    font-weight: 800;
    color: var(--text);
}

.section-head p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.view-all-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 16px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: #cbd8ef;
}

.product-header {
    height: 100px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.bg-blue-gradient { background: linear-gradient(135deg, #ebf3ff 0%, #cfe3ff 100%); }
.bg-green-gradient { background: linear-gradient(135deg, #e9fbf3 0%, #c4f5de 100%); }
.bg-purple-gradient { background: linear-gradient(135deg, #f7efff 0%, #ecd9ff 100%); }
.bg-violet-gradient { background: linear-gradient(135deg, #fcf0ff 0%, #edd8fc 100%); }
.bg-orange-gradient { background: linear-gradient(135deg, #fff3e9 0%, #ffe3cb 100%); }

/* Product Icon Gradient Classes */
.gradient-blue {
    background: linear-gradient(135deg, #1769ff 0%, #0050db 100%) !important;
    color: #ffffff !important;
}

.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
}

.gradient-violet {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
    color: #ffffff !important;
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

.gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: #ffffff !important;
}

.product-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(20, 40, 80, 0.15);
}

.badge {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.badge-yellow { background: #ffd93d; color: #3b2a00; }
.badge-red { background: #ff485b; color: #fff; }
.badge-green { background: #28ca87; color: #fff; }
.badge-purple { background: #825aff; color: #fff; }
.badge-blue { background: #1769ff; color: #fff; }

.product-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.product-description {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.45;
    min-height: 38px;
    margin: 6px 0 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.stars {
    color: #ffaa00;
    letter-spacing: 1px;
}

.rating-val {
    color: #3f4e70;
    font-weight: 700;
}

.review-count {
    color: var(--text-light);
    font-size: 11px;
}

.price-row {
    margin: 12px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 500;
}

.price-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: #fff0f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    font-size: 10.5px;
    font-weight: 600;
    color: #556688;
    margin-top: auto;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    margin-top: 14px;
}

.product-btn {
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #f8faff;
    color: #3b4e74;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    transition: var(--transition);
}

.product-btn:hover {
    background: #eef3fc;
    border-color: #cbd8ee;
    color: var(--primary);
}

.product-btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.2);
}

.product-btn.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(23, 105, 255, 0.35);
}

/* Offer & Features */
.bottom-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 32px 60px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.offer {
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 40%, rgba(120, 80, 255, 0.85), transparent 45%),
        linear-gradient(125deg, #0c1753 0%, #1557e0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.offer-tag {
    font-size: 11px;
    letter-spacing: 1px;
    color: #ffe275;
    font-weight: 800;
    text-transform: uppercase;
}

.offer h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 6px 0 8px;
    line-height: 1.15;
}

.offer p {
    font-size: 13.5px;
    opacity: 0.9;
    max-width: 360px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.offer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.offer-btn {
    background: #fff;
    color: #1550d4;
    border-radius: var(--radius-sm);
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.offer-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.promo-code-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.promo-code-badge:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gift-box {
    position: absolute;
    right: 60px;
    top: 30px;
    width: 85px;
    height: 85px;
    border-radius: 18px;
    background: linear-gradient(135deg, #c3aeff 0%, #7649ff 100%);
    transform: rotate(-10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    font-size: 38px;
}

.discount-ribbon {
    position: absolute;
    right: 28px;
    bottom: 26px;
    background: #ff485b;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    transform: rotate(-4deg);
    box-shadow: 0 8px 20px rgba(255, 72, 91, 0.35);
}

/* 3D Visual Offer Banner Card */
.offer.offer-banner-card {
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer.offer-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(219, 39, 119, 0.14), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.offer-banner-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    pointer-events: auto;
}

.offer-hotspot-btn,
.offer-hotspot-copy {
    position: absolute;
    cursor: pointer;
    border-radius: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s ease;
    border: none;
    outline: none;
}

.offer-hotspot-btn {
    left: 4.4%;
    top: 65%;
    width: 21%;
    height: 9.5%;
}

.offer-hotspot-copy {
    left: 27.5%;
    top: 65%;
    width: 26%;
    height: 9.5%;
}

.offer-hotspot-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.offer-hotspot-copy:hover {
    background: rgba(236, 72, 153, 0.12);
}

.features-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.features-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    background: #eef4ff;
    border: 1px solid #d8e5fc;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    align-self: flex-start;
}

.features-box h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text);
}

.features-box-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.features-security-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 11px 15px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    font-size: 12px;
    color: #166534;
    font-weight: 500;
    line-height: 1.45;
}

.features-security-strip svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #16a34a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #f8faff;
    border: 1px solid #edf2f9;
    transition: var(--transition);
}

.feature:hover {
    border-color: #d1def3;
    background: #f2f6fe;
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(23, 105, 255, 0.12);
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.feature small {
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.4;
    display: block;
}

/* Footer */
.footer {
    background: #0d1527;
    color: #a4b3cf;
    padding: 60px 32px 30px;
    border-top: 1px solid #1c2742;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1b2641;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #8c9cb8;
    max-width: 320px;
    margin-bottom: 18px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: #8f9fb9;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-input {
    flex: 1;
    height: 42px;
    border-radius: var(--radius-sm);
    background: #141f38;
    border: 1px solid #233152;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 12.5px;
    color: #6d7f9e;
    flex-wrap: wrap;
    gap: 16px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
}

.pay-badge {
    background: #15223e;
    padding: 4px 10px;
    border-radius: 6px;
    color: #b7c7e6;
    border: 1px solid #203155;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 38, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-drawer-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--text-muted);
}

.close-drawer-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.cart-item-license {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-remove {
    color: #a4b3cf;
    font-size: 18px;
    padding: 4px;
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 14px 0 18px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.checkout-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 23, 46, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal-overlay.open {
    display: grid;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 680px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 244, 0.9);
    position: relative;
    padding: 34px;
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--text-muted);
    background: #f8faff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-product-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.modal-product-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(23, 105, 255, 0.25);
    flex-shrink: 0;
}

.modal-product-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.modal-product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
}

.spec-item small {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.spec-item strong {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 700;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.modal-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #3b4e74;
}

.modal-features-list li::before {
    content: "✓";
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: #dff8ee;
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.modal-product-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.modal-buy-btn {
    flex: 1;
    height: 56px;
    font-size: 16.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(23, 105, 255, 0.42);
}

.modal-back-btn {
    height: 56px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    padding: 0 24px;
}

/* ==========================================================================
   2-COLUMN SPLIT PRODUCT QUICK-VIEW MODAL (DESKTOP & RESPONSIVE BASE)
   ========================================================================== */
.modal-card.modal-card-split {
    width: 880px;
    max-width: 95vw;
    max-height: 90vh;
    padding: 32px 34px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
    align-items: start;
    background: #ffffff;
    box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.28);
    position: relative;
    border: 1px solid rgba(226, 232, 244, 0.85);
}

.modal-split-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-identity-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}

.modal-card-split .modal-product-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(23, 105, 255, 0.28);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.modal-identity-text {
    width: 100%;
}

.modal-product-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    line-height: 1.25;
}

.rating-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
}

.rating-row .stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 14px;
}

.rating-row .rating-val {
    font-weight: 700;
    color: #0f172a;
}

.rating-row .review-count {
    color: #64748b;
    font-size: 12.5px;
}

/* Hidden by default on Desktop (visible only in mobile header) */
.modal-price-row-mobile {
    display: none;
}

.modal-split-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    text-align: center;
    margin: 8px 0 14px;
}

/* Visual Transfer Banner */
.modal-visual-banner {
    background: linear-gradient(180deg, #edf5ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-banner-svg {
    width: 100%;
    height: auto;
    max-height: 175px;
    display: block;
}

/* Desktop 3 Trust Badges (Bottom Left) */
.modal-left-footer-badges {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    margin-top: auto;
}

.left-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    line-height: 1.25;
}

.left-badge-icon {
    width: 18px;
    height: 18px;
    color: #2563eb;
    flex-shrink: 0;
}

/* Right Column */
.modal-split-right {
    display: flex;
    flex-direction: column;
}

/* Specs Table */
.modal-specs-table {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.specs-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.specs-table-row:last-child {
    border-bottom: none;
}

.specs-table-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.specs-row-svg {
    width: 18px;
    height: 18px;
    color: #0f172a;
    flex-shrink: 0;
}

.specs-table-val-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.specs-table-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.specs-table-value.delivery-highlight {
    color: #16a34a;
    font-weight: 700;
}

.specs-chevron-svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* Key Features */
.modal-features-section {
    margin-bottom: 18px;
}

.modal-section-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.modern-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.modern-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.modern-check-list li::before {
    content: "✓";
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Desktop Price Row */
.modal-price-savings-row.desktop-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-top: 4px;
}

.price-left-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.modal-huge-price {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
}

.modal-huge-oldprice {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.modal-savings-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.savings-tag-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* CTA Buttons */
.modal-cta-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.modal-action-buy-btn {
    width: 100%;
    height: 50px;
    background: #0066ff;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 102, 255, 0.28);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-action-buy-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.4);
}

.cta-cart-svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.2;
}

.modal-action-back-btn {
    width: 100%;
    height: 46px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-action-back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.modal-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

.trust-shield-svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}


/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.toast {
    background: #0f1933;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
    .nav { gap: 20px; }
    .nav-links { gap: 18px; }
    .search-box { width: 240px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: grid; }
    .nav { padding: 0 24px; }
    .hero {
        min-height: auto;
        padding-bottom: 28px;
    }
    .hero-inner {
        padding: 34px 20px 14px;
    }
    .trust-badge {
        margin-bottom: 14px;
        font-size: 12px;
        padding: 5px 14px;
    }
    .hero h1 {
        font-size: 34px;
        line-height: 1.18;
        letter-spacing: -0.8px;
        margin-bottom: 16px;
    }
    .hero-search-box {
        max-width: 600px;
        margin-bottom: 14px;
    }
    .hero-search-input-wrap {
        height: 52px;
    }
    .hero-search-tags {
        margin-top: 10px;
    }
    .categories {
        margin-top: -18px;
        padding: 0 24px;
    }
    /* Hide the 9-tab row on tablet devices to avoid crowding, switch to mobile bar */
    .category-row {
        display: none !important;
    }
    .category-popover {
        display: none !important;
    }
    .category-mobile-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        padding: 13px 18px;
        border-radius: 0;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }
    .category-mobile-bar:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }
    .mobile-cat-icon-svg {
        color: var(--primary);
        width: 17px;
        height: 17px;
    }
    .bundle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .bottom-section { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* 2-Columns on Tablets / Mid-screens (900px - 601px) */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header { height: 64px; }
    .nav { padding: 0 16px; gap: 12px; }
    .logo { font-size: 20px; gap: 8px; }
    .logo-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
    .search-box, .nav-right .btn { display: none !important; }
    .mobile-menu-toggle { display: flex !important; align-items: center; justify-content: center; }
    .hero {
        min-height: auto;
        padding-bottom: 20px;
    }
    .hero-inner {
        padding: 24px 16px 10px;
    }
    .trust-badge {
        font-size: 11.5px;
        padding: 4px 12px;
        margin-bottom: 10px;
        gap: 8px;
    }
    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -0.6px;
        margin-bottom: 14px;
    }
    .hero-description {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .hero-search-box {
        margin-bottom: 12px;
    }
    .hero-search-input-wrap {
        height: 48px;
        padding: 0 10px 0 14px;
    }
    .hero-search-kbd {
        display: none;
    }
    .hero-search-tags {
        margin-top: 8px;
        gap: 6px;
    }
    .hero-search-tags .tag-chip {
        font-size: 11.5px;
        padding: 2px 10px;
    }
    .hero-actions {
        width: 100%;
        max-width: 320px;
        flex-direction: column;
        gap: 10px;
        margin: 0 auto 24px auto;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
        height: 46px;
    }
    .hero-benefits {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
        max-width: 340px;
        margin: 0 auto;
        text-align: left;
    }
    .benefit-item { font-size: 12px; }
    .benefit-icon { width: 28px; height: 28px; font-size: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .categories {
        margin-top: -24px;
        padding: 0 16px;
    }
    .category-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        padding: 12px 16px;
        border-radius: 0;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }
    .category-mobile-bar:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }
    .mobile-cat-icon-svg {
        color: var(--primary);
        width: 17px;
        height: 17px;
    }
    /* Completely remove the tab row from the mobile view */
    .category-row {
        display: none !important;
    }
    .category-popover {
        display: none !important;
    }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bundle-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .gift-box { display: none; }
    .cart-drawer { width: 100%; max-width: 100%; }

    /* Product Details Modal Mobile Responsiveness */
    .modal-overlay {
        padding: 16px 12px;
        align-items: center;
        justify-content: center;
    }

    .modal-card.modal-card-split {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 24px 20px 22px;
        border-radius: 28px;
        gap: 0;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
        border: 1px solid rgba(226, 232, 244, 0.9);
    }

    .modal-close-btn {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: #f1f5f9;
        border: none;
        color: #475569;
        border-radius: var(--radius-full);
        z-index: 10;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .modal-close-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: none;
    }

    .modal-split-left {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Top Identity Group: Row with App Icon on Left, Title + Rating + Price on Right */
    .modal-identity-group {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        margin-bottom: 12px;
        padding-right: 32px; /* clearance for close button */
    }

    .modal-card-split .modal-product-icon {
        width: 76px;
        height: 76px;
        min-width: 76px;
        border-radius: 20px;
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 0;
        box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
    }

    .modal-identity-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .modal-product-title {
        font-size: 22px;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.25;
        letter-spacing: -0.4px;
        margin-bottom: 4px;
    }

    .rating-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
        margin-bottom: 6px;
    }

    .rating-row .stars {
        color: #f59e0b;
        font-size: 13.5px;
        letter-spacing: 0.5px;
    }

    .rating-row .rating-val {
        font-size: 13.5px;
        font-weight: 700;
        color: #0f172a;
    }

    .rating-row .review-count {
        width: 100%;
        font-size: 12px;
        color: #64748b;
        margin-top: -2px;
    }

    /* Header Price Row (Mobile Only) */
    .modal-price-row-mobile {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-top: 2px;
        flex-wrap: wrap;
    }

    .modal-mobile-price {
        font-size: 26px;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .modal-mobile-oldprice {
        font-size: 15px;
        color: #94a3b8;
        text-decoration: line-through;
        font-weight: 500;
    }

    .modal-savings-tag {
        background: #e6f9ed;
        color: #16a34a;
        font-size: 12px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .savings-tag-icon {
        width: 13px;
        height: 13px;
        color: #16a34a;
        flex-shrink: 0;
    }

    /* Description */
    .modal-split-desc {
        font-size: 13.5px;
        line-height: 1.5;
        text-align: left;
        color: #64748b;
        margin: 10px 0 16px;
    }

    /* Visual Banner Card */
    .modal-visual-banner {
        border-radius: 18px;
        padding: 8px 10px;
        margin-bottom: 16px;
        background: linear-gradient(180deg, #edf5ff 0%, #dbeafe 100%);
        border: 1px solid #bfdbfe;
    }

    .modal-banner-svg {
        max-height: 165px;
    }

    /* Hide Desktop Left Trust Badges */
    .modal-left-footer-badges {
        display: none !important;
    }

    /* Right Column Block on Mobile */
    .modal-split-right {
        display: block;
        width: 100%;
    }

    /* Specs Table */
    .modal-specs-table {
        border-radius: 16px;
        margin-bottom: 18px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .specs-table-row {
        padding: 12px 16px;
    }

    .specs-table-label {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    .specs-table-label .specs-row-svg {
        width: 17px;
        height: 17px;
    }

    .specs-table-value {
        font-size: 13px;
        font-weight: 600;
    }

    .specs-chevron-svg {
        display: block;
        width: 14px;
        height: 14px;
        color: #94a3b8;
    }

    /* Features List */
    .modal-features-section {
        margin-bottom: 18px;
    }

    .modal-section-heading {
        font-size: 15px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .modern-check-list {
        gap: 10px;
    }

    .modern-check-list li {
        font-size: 13px;
        line-height: 1.45;
        gap: 10px;
    }

    .modern-check-list li::before {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 11px;
    }

    /* Hide Desktop Price Row on Mobile */
    .modal-price-savings-row.desktop-price-row {
        display: none !important;
    }

    /* Action Buttons */
    .modal-cta-column {
        gap: 10px;
        margin-bottom: 14px;
    }

    .modal-action-buy-btn {
        height: 50px;
        font-size: 15.5px;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(0, 102, 255, 0.28);
    }

    .modal-action-back-btn {
        height: 46px;
        font-size: 14.5px;
        border-radius: 14px;
    }

    .modal-trust-footer {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* 1-Column on Mobile Devices (<= 600px) */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: auto;
        padding-bottom: 14px;
    }
    .hero-inner {
        padding: 16px 12px 6px;
    }
    .trust-badge {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 8px;
        gap: 6px;
    }
    .hero h1 {
        font-size: 22px;
        line-height: 1.22;
        letter-spacing: -0.4px;
        margin-bottom: 10px;
    }
    .hero-description {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 10px;
    }
    .hero-search-box {
        margin-bottom: 8px;
    }
    .hero-search-input-wrap {
        height: 44px;
        padding: 0 8px 0 12px;
        gap: 8px;
    }
    .hero-search-icon svg {
        width: 18px;
        height: 18px;
    }
    .hero-search-input {
        font-size: 13px;
    }
    .hero-search-kbd {
        display: none;
    }
    .hero-search-tags {
        margin-top: 6px;
        gap: 5px;
    }
    .hero-search-tags .tag-label {
        font-size: 11px;
    }
    .hero-search-tags .tag-chip {
        padding: 2px 8px;
        font-size: 11px;
    }
    .hero-benefits {
        grid-template-columns: 1fr;
        max-width: 240px;
    }
    .categories {
        margin-top: -10px;
        padding: 0 10px;
    }
    .category-btn {
        min-width: 90px;
        min-height: 48px;
        padding: 6px 8px;
        font-size: 11px;
    }
    .product-grid { grid-template-columns: 1fr; }
    .product-actions { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .payment-methods { flex-wrap: wrap; justify-content: center; }
    /* Product Details Modal Mobile Optimization (<=520px) */
    .modal-overlay {
        padding: 10px;
    }
    .modal-card.modal-card-split {
        padding: 20px 16px 18px;
        max-height: 92vh;
        border-radius: 24px;
    }
    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    .modal-card-split .modal-product-icon {
        width: 66px;
        height: 66px;
        min-width: 66px;
        border-radius: 16px;
        font-size: 24px;
    }
    .modal-product-title {
        font-size: 19px;
        margin-bottom: 2px;
    }
    .modal-mobile-price {
        font-size: 22px;
    }
    .modal-mobile-oldprice {
        font-size: 14px;
    }
    .modal-savings-tag {
        font-size: 11px;
        padding: 2.5px 7px;
    }
    .modal-split-desc {
        font-size: 13px;
        line-height: 1.48;
        margin: 8px 0 14px;
    }
    .specs-table-row {
        padding: 11px 12px;
    }
    .specs-table-value {
        font-size: 12px;
    }
    .modern-check-list li {
        font-size: 12.5px;
        gap: 8px;
    }
    .modern-check-list li::before {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 10px;
    }
    .modal-action-buy-btn {
        height: 48px;
        font-size: 14.5px;
    }
    .modal-action-back-btn {
        height: 44px;
        font-size: 13.5px;
    }
    .cart-drawer-header, .cart-drawer-footer { padding: 16px; }
    .cart-items-list { padding: 16px; }
}

/* ==========================================================================
   SINGLE PAGE & SINGLE POST / PRODUCT DETAILS STYLES
   ========================================================================== */
.single-page-wrapper,
.single-post-wrapper {
    background: #ffffff;
    min-height: 70vh;
}

/* Breadcrumbs */
.single-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.single-breadcrumbs a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.single-breadcrumbs a:hover {
    color: var(--primary);
}

.single-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.single-breadcrumbs .current {
    color: var(--text);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero Section */
.single-hero {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 44px 0 36px;
}

.single-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
}

.single-container.page-narrow {
    max-width: 920px;
}

.single-hero-inner {
    max-width: 920px;
}

.single-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.single-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 18px;
}

.single-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13.5px;
    color: var(--text-muted);
    padding-top: 6px;
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.single-meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

/* Single Two-Column Layout */
.single-body-section {
    padding: 40px 0 80px;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

.single-main-col {
    min-width: 0;
}

.single-sidebar-col {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Featured Media */
.single-featured-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    background: #f8fafc;
}

.single-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

/* Software Identity Header Box (Inside Main Column) */
.software-hero-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 34px;
    box-shadow: var(--shadow-subtle);
}

.software-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(23, 105, 255, 0.28);
}

.software-hero-details h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.software-hero-details p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Specifications Grid Card */
.specs-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 34px;
    box-shadow: var(--shadow-subtle);
}

.specs-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-card-title svg {
    color: var(--primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.specs-grid-item {
    background: #f8faff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.specs-grid-item small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.specs-grid-item strong {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

/* Sidebar Pricing & CTA Card */
.pricing-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.pricing-sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.sidebar-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.sidebar-current-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.sidebar-old-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.sidebar-discount-badge {
    background: #fee2e2;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.sidebar-guarantee-tag {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}

.sidebar-buy-btn {
    width: 100%;
    height: 58px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 14px;
}

.sidebar-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(23, 105, 255, 0.42);
}

.sidebar-secondary-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.trust-badge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.trust-badge-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Sidebar Vendor / Publisher Card */
.vendor-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-subtle);
}

.vendor-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.vendor-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1769ff, #7657ff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
}

.vendor-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.vendor-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
}

.vendor-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   ENTRY CONTENT TYPOGRAPHY
   ========================================================================== */
.entry-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #334155;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 42px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}

.entry-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entry-content li {
    padding-left: 4px;
}

.entry-content blockquote {
    background: #f8faff;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-style: italic;
    color: #1e293b;
    font-size: 17px;
}

.entry-content blockquote cite {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
}

.entry-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
    background: #f1f5fd;
    color: var(--primary-dark);
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid #dce5f5;
}

.entry-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 22px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 28px 0;
    font-size: 14px;
    line-height: 1.6;
}

.entry-content pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.entry-content th {
    background: #f8faff;
    color: var(--text);
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.entry-content td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: #475569;
}

.entry-content tr:hover td {
    background: #fbfcfe;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* Post Tags & Share Bar */
.post-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 26px 0;
    margin-top: 36px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tag {
    font-size: 12px;
    font-weight: 600;
    background: #f1f5fd;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #ffffff;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin: 36px 0;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.author-box-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.author-box-bio {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Post Navigation (Prev / Next) */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 36px 0;
}

.post-nav-link {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.post-nav-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.post-nav-link.next {
    text-align: right;
    align-items: flex-end;
}

.nav-direction {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.4px;
}

.nav-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Comments Section */
.comments-area {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-body {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-subtle);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
}

.comment-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

.comment-respond {
    margin-top: 36px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comment-input,
.comment-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.comment-input:focus,
.comment-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.15);
}

.comment-textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-submit-btn {
    align-self: flex-start;
    height: 46px;
    padding: 0 28px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* Responsive Overrides for Single Pages & Posts */
@media (max-width: 991px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .single-sidebar-col {
        position: static;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-title {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .single-container {
        padding: 0 18px;
    }
    .single-hero {
        padding: 30px 0 24px;
    }
    .single-title {
        font-size: 24px;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .software-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    .software-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .comment-form-group {
        grid-template-columns: 1fr;
    }
}




/* Fail-safe SVG Dimensions */
.hero-search-icon svg,
.hero-search-svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
}
.cat-svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}
.feature-svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}
.heroicon-xs {
    width: 14px !important;
    height: 14px !important;
}
.heroicon-sm {
    width: 16px !important;
    height: 16px !important;
}
.heroicon-md {
    width: 20px !important;
    height: 20px !important;
}

/* WooCommerce Add to Cart & Variations */
.dg-wc-add-to-cart-wrapper form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}
.dg-wc-add-to-cart-wrapper .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    width: fit-content;
}
.dg-wc-add-to-cart-wrapper .quantity input.qty {
    width: 60px;
    height: 42px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    outline: none;
}
.dg-wc-add-to-cart-wrapper button.single_add_to_cart_button {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #1769ff 0%, #0c4ad0 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(23, 105, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.dg-wc-add-to-cart-wrapper button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.38);
    background: linear-gradient(135deg, #125bdc 0%, #093cb0 100%);
}
.dg-wc-add-to-cart-wrapper table.variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
.dg-wc-add-to-cart-wrapper table.variations td.label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    padding-bottom: 6px;
}
.dg-wc-add-to-cart-wrapper table.variations td.value select {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0 12px;
    font-size: 13.5px;
    background: #ffffff;
    outline: none;
}

/* ========================================================
   DesignGama React Standalone Marketplace Styles
   ======================================================== */
#designgama-shop-app,
#designgama-shop-root {
    display: block;
    width: 100%;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    box-sizing: border-box;
}

#designgama-shop-app *,
#designgama-shop-root * {
    box-sizing: border-box;
}

/* Base Typography & Color Utilities */
#designgama-shop-app .font-sans { font-family: "Plus Jakarta Sans", "Inter", sans-serif; }
#designgama-shop-app .antialiased { -webkit-font-smoothing: antialiased; }
#designgama-shop-app .text-slate-800 { color: #1e293b; }
#designgama-shop-app .text-slate-900 { color: #0f172a; }
#designgama-shop-app .text-slate-700 { color: #334155; }
#designgama-shop-app .text-slate-600 { color: #475569; }
#designgama-shop-app .text-slate-500 { color: #64748b; }
#designgama-shop-app .text-slate-400 { color: #94a3b8; }
#designgama-shop-app .text-slate-300 { color: #cbd5e1; }
#designgama-shop-app .text-blue-600 { color: #2563eb; }
#designgama-shop-app .text-emerald-600 { color: #059669; }
#designgama-shop-app .text-emerald-700 { color: #047857; }
#designgama-shop-app .text-emerald-800 { color: #065f46; }
#designgama-shop-app .text-amber-400 { color: #fbbf24; }
#designgama-shop-app .text-amber-500 { color: #f59e0b; }
#designgama-shop-app .text-amber-300 { color: #fcd34d; }
#designgama-shop-app .text-white { color: #ffffff; }

#designgama-shop-app .bg-slate-50 { background-color: #f8fafc; }
#designgama-shop-app .bg-slate-100 { background-color: #f1f5f9; }
#designgama-shop-app .bg-slate-900 { background-color: #0f172a; }
#designgama-shop-app .bg-white { background-color: #ffffff; }
#designgama-shop-app .bg-blue-50 { background-color: #eff6ff; }
#designgama-shop-app .bg-blue-600 { background-color: #2563eb; }
#designgama-shop-app .bg-emerald-50 { background-color: #ecfdf5; }
#designgama-shop-app .bg-emerald-400 { background-color: #34d399; }
#designgama-shop-app .bg-emerald-500 { background-color: #10b981; }
#designgama-shop-app .bg-amber-400 { background-color: #fbbf24; }

#designgama-shop-app .border { border-width: 1px; border-style: solid; }
#designgama-shop-app .border-slate-100 { border-color: #f1f5f9; }
#designgama-shop-app .border-slate-200 { border-color: #e2e8f0; }
#designgama-shop-app .border-blue-200 { border-color: #bfdbfe; }
#designgama-shop-app .border-blue-600 { border-color: #2563eb; }
#designgama-shop-app .border-emerald-200 { border-color: #a7f3d0; }

#designgama-shop-app .rounded-md { border-radius: 6px; }
#designgama-shop-app .rounded-lg { border-radius: 8px; }
#designgama-shop-app .rounded-xl { border-radius: 12px; }
#designgama-shop-app .rounded-2xl { border-radius: 16px; }
#designgama-shop-app .rounded-3xl { border-radius: 24px; }
#designgama-shop-app .rounded-full { border-radius: 9999px; }

#designgama-shop-app .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
#designgama-shop-app .shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
#designgama-shop-app .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
#designgama-shop-app .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
#designgama-shop-app .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Flexbox and Layout */
#designgama-shop-app .flex { display: flex; }
#designgama-shop-app .flex-col { flex-direction: column; }
#designgama-shop-app .flex-wrap { flex-wrap: wrap; }
#designgama-shop-app .items-center { align-items: center; }
#designgama-shop-app .justify-center { justify-content: center; }
#designgama-shop-app .justify-between { justify-content: space-between; }
#designgama-shop-app .gap-1 { gap: 4px; }
#designgama-shop-app .gap-1\.5 { gap: 6px; }
#designgama-shop-app .gap-2 { gap: 8px; }
#designgama-shop-app .gap-2\.5 { gap: 10px; }
#designgama-shop-app .gap-3 { gap: 12px; }
#designgama-shop-app .gap-4 { gap: 16px; }
#designgama-shop-app .gap-6 { gap: 24px; }
#designgama-shop-app .gap-8 { gap: 32px; }

/* Grid Systems */
#designgama-shop-app .grid { display: grid; }
#designgama-shop-app .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
#designgama-shop-app .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
    #designgama-shop-app .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    #designgama-shop-app .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #designgama-shop-app .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #designgama-shop-app .md\:flex-row { flex-direction: row; }
    #designgama-shop-app .md\:items-center { align-items: center; }
}
@media (min-width: 1024px) {
    #designgama-shop-app .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #designgama-shop-app .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #designgama-shop-app .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Gradients */
#designgama-shop-app .from-blue-600 { --tw-gradient-from: #2563eb; }
#designgama-shop-app .to-indigo-700 { --tw-gradient-to: #4338ca; }
#designgama-shop-app .from-emerald-600 { --tw-gradient-from: #059669; }
#designgama-shop-app .to-teal-700 { --tw-gradient-to: #0f766e; }
#designgama-shop-app .from-purple-600 { --tw-gradient-from: #9333ea; }
#designgama-shop-app .to-indigo-800 { --tw-gradient-to: #3730a3; }
#designgama-shop-app .from-violet-600 { --tw-gradient-from: #7c3aed; }
#designgama-shop-app .to-fuchsia-700 { --tw-gradient-to: #a21caf; }
#designgama-shop-app .from-sky-600 { --tw-gradient-from: #0284c7; }
#designgama-shop-app .to-blue-800 { --tw-gradient-to: #1e40af; }
#designgama-shop-app .from-amber-500 { --tw-gradient-from: #f59e0b; }
#designgama-shop-app .to-orange-700 { --tw-gradient-to: #c2410c; }
#designgama-shop-app .from-rose-600 { --tw-gradient-from: #e11d48; }
#designgama-shop-app .to-red-800 { --tw-gradient-to: #991b1b; }
#designgama-shop-app .from-cyan-600 { --tw-gradient-from: #0891b2; }
#designgama-shop-app .to-blue-700 { --tw-gradient-to: #1d4ed8; }
#designgama-shop-app .bg-gradient-to-br { background-image: linear-gradient(135deg, var(--tw-gradient-from, #2563eb), var(--tw-gradient-to, #4338ca)); }
#designgama-shop-app .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from, #2563eb), var(--tw-gradient-to, #4f46e5)); }
#designgama-shop-app .bg-clip-text { -webkit-background-clip: text; background-clip: text; }
#designgama-shop-app .text-transparent { color: transparent; }

/* Product Card Interactions */
#designgama-shop-app .group {
    transition: all 0.25s ease-in-out;
}
#designgama-shop-app .group:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #60a5fa;
}
#designgama-shop-app .transition-all { transition: all 0.25s ease-in-out; }
#designgama-shop-app .cursor-pointer { cursor: pointer; }

/* Modal Backdrop */
#designgama-shop-app .fixed { position: fixed; }
#designgama-shop-app .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
#designgama-shop-app .z-50 { z-index: 99999; }
#designgama-shop-app .backdrop-blur-xs { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* Modern Widescreen Width Utilities (Expanded to 1560px) */
#designgama-shop-app .max-w-7xl {
    max-width: 80rem;
}
#designgama-shop-app .max-w-6xl {
    max-width: 72rem;
}
#designgama-shop-app .max-w-5xl {
    max-width: 64rem;
}
#designgama-shop-app .max-w-4xl {
    max-width: 56rem;
}
#designgama-shop-app .max-w-3xl {
    max-width: 48rem;
}
#designgama-shop-app .max-w-\[1400px\],
#designgama-shop-app .max-w-\[1440px\] {
    max-width: 1400px;
}
#designgama-shop-app .max-w-\[1560px\],
#designgama-shop-app .max-w-\[1600px\] {
    max-width: 1560px;
}
#designgama-shop-app .hero-banner-section {
    margin-top: 104px;
    background-image: url('../images/hero-banner-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
@media (max-width: 768px) {
    #designgama-shop-app .hero-banner-section {
        margin-top: 64px;
    }
}
@media (min-width: 1024px) {
    #designgama-shop-app .hero-banner-section {
        margin-top: 112px;
    }
}
@media (min-width: 1536px) {
    #designgama-shop-app .\32xl\:max-w-\[1400px\] {
        max-width: 1400px;
    }
    #designgama-shop-app .\32xl\:max-w-\[1440px\] {
        max-width: 1440px;
    }
    #designgama-shop-app .\32xl\:max-w-\[1560px\] {
        max-width: 1560px;
    }
}

/* ==========================================================================
   AUTHENTIC FLOATING CATEGORY TAB BAR WITH HOVER PREVIEW POPOVERS
   ========================================================================== */
#designgama-shop-app .categories {
    max-width: 1560px;
    margin: -36px auto 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 40;
}
@media (max-width: 768px) {
    #designgama-shop-app .categories {
        padding: 0 16px;
        margin: -20px auto 0 auto;
    }
}
#designgama-shop-app .category-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}
#designgama-shop-app .category-row::-webkit-scrollbar {
    display: none;
}
@media (min-width: 1025px) {
    #designgama-shop-app .category-row {
        overflow: visible;
    }
}
#designgama-shop-app .category-btn {
    flex: 1;
    min-width: 112px;
    min-height: 60px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}
#designgama-shop-app .category-btn:last-child {
    border-right: none;
}
#designgama-shop-app .category-btn:hover {
    color: #1769ff;
    background: #f8fafc;
}
#designgama-shop-app .category-btn.active {
    background: #f1f5f9;
    color: #1769ff;
    font-weight: 700;
    box-shadow: none;
}
#designgama-shop-app .category-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1769ff;
    border-radius: 0;
}
#designgama-shop-app .category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b;
    transition: color 0.2s ease;
    flex-shrink: 0;
}
#designgama-shop-app .category-btn.active .category-icon,
#designgama-shop-app .category-btn:hover .category-icon {
    color: #1769ff;
    background: transparent !important;
}
#designgama-shop-app .cat-svg {
    width: 18px;
    height: 18px;
}
#designgama-shop-app .category-popover {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    padding: 16px 18px;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    text-align: left;
    white-space: normal;
    cursor: default;
}
#designgama-shop-app .category-popover.popover-align-right {
    left: auto;
    right: 0;
}
@media (min-width: 1025px) {
    #designgama-shop-app .category-btn:hover .category-popover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}
#designgama-shop-app .cat-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
#designgama-shop-app .cat-popover-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
#designgama-shop-app .cat-popover-badge {
    font-size: 10.5px;
    font-weight: 700;
    background: #eff6ff;
    color: #1769ff;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
#designgama-shop-app .cat-popover-tagline {
    font-size: 11.5px;
    font-weight: 700;
    color: #1769ff;
    margin-bottom: 6px;
}
#designgama-shop-app .cat-popover-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
}
#designgama-shop-app .cat-popover-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
#designgama-shop-app .cat-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 0;
}
#designgama-shop-app .cat-popover-footer {
    font-size: 11px;
    font-weight: 700;
    color: #1769ff;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   DesignGama Software Interface Showcase (Screenshots & Look and Feel)
   ========================================================================== */
.dg-software-showcase {
    margin-bottom: 34px;
}

.dg-showcase-window {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dg-showcase-window:hover {
    border-color: #334155;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.dg-window-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dg-window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 68px;
}

.dg-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.dg-dot-red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.4); }
.dg-dot-yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.4); }
.dg-dot-green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.4); }

.dg-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.dg-window-icon {
    width: 15px;
    height: 15px;
    color: #38bdf8;
    flex-shrink: 0;
}

.dg-window-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dg-screen-counter {
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dg-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dg-fullscreen-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.dg-fullscreen-btn svg {
    width: 13px;
    height: 13px;
}

.dg-window-viewport {
    position: relative;
    background: #020617;
    overflow: hidden;
}

.dg-screen-stage {
    position: relative;
    width: 100%;
    min-height: 380px;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #020617 100%);
    overflow: hidden;
}

.dg-screen-stage img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.dg-screen-stage:hover img {
    transform: scale(1.015);
}

.dg-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.2s ease;
}

.dg-arrow-prev { left: 14px; }
.dg-arrow-next { right: 14px; }

.dg-screen-stage:hover .dg-nav-arrow {
    opacity: 1;
}

.dg-nav-arrow:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
}

.dg-nav-arrow svg {
    width: 20px;
    height: 20px;
}

.dg-zoom-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 4;
}

.dg-screen-stage:hover .dg-zoom-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dg-zoom-hint svg {
    width: 13px;
    height: 13px;
    color: #38bdf8;
}

.dg-screen-placeholder {
    padding: 60px 24px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #020617 100%);
}

.dg-placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dg-placeholder-icon svg { width: 30px; height: 30px; }

.dg-placeholder-inner h3 {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}

.dg-placeholder-inner p {
    font-size: 13px;
    color: #94a3b8;
    max-width: 440px;
    margin: 0 auto;
}

.dg-thumbnails-strip {
    background: #090e17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
}

.dg-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dg-strip-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dg-strip-title svg {
    width: 14px;
    height: 14px;
    color: #38bdf8;
}

.dg-strip-hint {
    font-size: 11px;
    color: #64748b;
}

.dg-thumbs-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.dg-thumbs-scroll::-webkit-scrollbar {
    height: 5px;
}
.dg-thumbs-scroll::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.dg-thumb-item {
    flex: 0 0 110px;
    background: #1e293b;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dg-thumb-item:hover {
    border-color: #64748b;
    transform: translateY(-2px);
}

.dg-thumb-item.active {
    border-color: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.dg-thumb-img-wrap {
    width: 100%;
    height: 64px;
    background: #020617;
    overflow: hidden;
}

.dg-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dg-thumb-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    padding: 4px 6px;
    background: #0f172a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dg-thumb-item.active .dg-thumb-label {
    background: #2563eb;
    color: #ffffff;
}

.dg-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: dg_lb_fade_in 0.2s ease;
}

@keyframes dg_lb_fade_in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dg-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.dg-lb-bar {
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dg-lb-app-name {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
}

.dg-lb-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-left: 4px;
}

.dg-lb-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dg-lb-counter {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.dg-lb-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dg-lb-close:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.8);
}

.dg-lb-viewport {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 420px;
    max-height: calc(92vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    overflow: hidden;
    padding: 16px;
}

.dg-lb-viewport img {
    max-width: 100%;
    max-height: calc(92vh - 95px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dg-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.dg-lb-prev { left: 24px; }
.dg-lb-next { right: 24px; }

.dg-lb-nav:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.dg-lb-nav svg {
    width: 24px;
    height: 24px;
}



