/* ========== RESET حداقلی ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn FD NL', sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.5;
}

a{
        text-decoration: none;
}













/* ============================================
   HEADER ULTIMATE - حرفه‌ای، مینیمال، ریسپانسیو
   بهینه برای موبایل و دسکتاپ
   ============================================ */

:root {
    --header-bg: #ffffff;
    --header-border: #eef2f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    --accent-dark: #2563eb;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --header-height-desktop: 80px;
    --header-height-mobile: 64px;
}

/* ========== HEADER MAIN ========== */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-top {
    padding: 0;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ========== LOGO ========== */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* ========== SEARCH BUTTON ========== */
.header-search {
    flex-shrink: 0;
}

.search-toggle {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* ========== DESKTOP NAVIGATION ========== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 40px;
    transition: all var(--transition-fast);
}

.nav-list > li > a:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Dropdown Menu */
.nav-list .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--header-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    list-style: none;
    margin: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
    border: 1px solid var(--header-border);
}

.nav-list > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: var(--text-primary);
    padding-right: 24px;
}

/* ========== CATEGORY MENU ========== */
.category-menu-wrapper {
    position: relative;
    flex-shrink: 0;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 48px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-toggle span{
    font-family: vazirmatn fd nl, sans-serif !important;
}

.category-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.category-toggle i {
    font-size: 1rem;
}

.category-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--header-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 200;
    border: 1px solid var(--header-border);
}

.category-menu-wrapper:hover .category-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 60vh;
}

.category-list li {
    position: relative;
}

.category-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-list > li > a:hover {
    background: #f8fafc;
    color: var(--text-primary);
    padding-right: 24px;
}

.category-list .has-children > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Sub-category in category menu */
.category-list .sub-menu {
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 260px;
    background: var(--header-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
    border: 1px solid var(--header-border);
}

.category-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========== HEADER ACTIONS ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f8fafc;
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--header-border);
}

.auth-btn i {
    font-size: 1rem;
}

.auth-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ========== CART DROPDOWN ========== */
.cart-dropdown {
    position: relative;
}

.cart-icon-btn {
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--header-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.cart-icon-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: var(--shadow-sm);
}

.cart-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--header-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    border: 1px solid var(--header-border);
    overflow: hidden;
}

.cart-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.cart-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: var(--header-bg);
    transform: rotate(45deg);
    border-top: 1px solid var(--header-border);
    border-left: 1px solid var(--header-border);
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--header-border);
}

.cart-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-header span {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Cart Items */
.cart-items {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    margin-bottom: 8px;
}

.cart-item:hover {
    background: #f8fafc;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    background: #f1f5f9;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 4px 8px;
    width: fit-content;
}

.qty-btn {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: white;
}

.cart-item-qty span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

/* Cart Footer */
.cart-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--header-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.cart-total strong {
    font-size: 1.25rem;
    color: var(--success-color);
}

.cart-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    background: #f1f5f9;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.cart-btn.primary {
    background: var(--accent-color);
    color: white;
    margin-bottom: 0;
}

.cart-btn.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-btn:hover:not(.primary) {
    background: #e2e8f0;
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    padding: 48px 24px;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Skeleton Loading */
.cart-loading-skeleton {
    padding: 20px;
}

.skeleton-header {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 50%;
}

.skeleton-item {
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 16px;
    margin-bottom: 12px;
}

.skeleton-footer {
    height: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 16px;
    margin-top: 16px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== MOBILE MENU TOGGLE ========== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

/* ========== FULL SCREEN SEARCH ========== */
.full-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.full-search-overlay.active {
    display: flex;
}

.full-search-container {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    position: relative;
}

.full-search-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-search-close:hover {
    background: var(--danger-color);
    color: white;
}

#fullSearchInput {
    width: 100%;
    border: none;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.8rem;
    padding: 20px 0;
    background: transparent;
    text-align: center;
    outline: none;
    font-weight: 500;
    color: var(--text-primary);
}

#fullSearchInput::placeholder {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.full-search-container button[type="submit"] {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--accent-color);
    cursor: pointer;
}

.search-suggestions {
    margin-top: 30px;
    text-align: center;
}

/* ========== MOBILE SIDEBAR MENU ========== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--header-bg);
    box-shadow: var(--shadow-xl);
    z-index: 1500;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1499;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--header-border);
}

.mobile-sidebar-logo img {
    height: 40px;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-sidebar-nav {
    flex: 1;
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--header-border);
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav-list .dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px 0;
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 20px;
    display: none;
}

.mobile-dropdown-menu.open {
    display: block;
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--header-border);
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 48px;
    font-weight: 600;
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .category-toggle span {
        display: none;
    }
    
    .category-toggle {
        padding: 10px 16px;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .auth-btn {
        padding: 8px 14px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height-desktop: 64px;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 12px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .search-toggle,
    .cart-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-toggle {
        padding: 8px 12px;
    }
    
    .category-toggle i {
        font-size: 1rem;
    }
    
    .auth-btn {
        padding: 8px 12px;
    }
    
    .auth-btn i {
        font-size: 1rem;
    }
    
    .cart-dropdown-menu {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin-top: 0;
        height: calc(100vh - var(--header-height-mobile));
        overflow-y: auto;
    }
    
    .cart-dropdown-menu::before {
        display: none;
    }
    
    .cart-items {
        max-height: calc(100vh - 280px);
    }
    
    .full-search-container {
        padding: 20px;
    }
    
    #fullSearchInput {
        font-size: 1.2rem;
    }
    
    .full-search-container button[type="submit"] {
        left: 20px;
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        gap: 8px;
    }
    
    .logo-text {
        display: none;
    }
    
    .category-toggle {
        padding: 8px 10px;
    }
    
    .auth-btn {
        padding: 8px 10px;
    }
    
    .cart-icon-btn,
    .search-toggle {
        width: 38px;
        height: 38px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ========== UTILITY CLASSES ========== */
.scroll-locked {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}











/* ============================================
   HEADER REWRITE - هماهنگ با هویت فعلی پوسته
   ============================================ */

.nix-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eef2f6;
    backdrop-filter: saturate(160%) blur(14px);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.nix-header.header-sticky {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.nix-header.header-hidden {
    transform: translateY(-100%);
}

.nix-header__inner {
    width: min(100%, 1440px);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.nix-header__brand,
.nix-header__actions,
.nix-header__logo {
    display: flex;
    align-items: center;
}

.nix-header__brand {
    gap: 12px;
    min-width: 0;
}

.nix-header__logo {
    gap: 10px;
    color: var(--text-primary);
    white-space: nowrap;
}

.nix-header__logo .custom-logo,
.nix-header__logo .logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.nix-header__nav {
    min-width: 0;
}

.nix-header__nav .nav-list {
    justify-content: center;
    gap: 4px;
}

.nix-header__nav .nav-list > li > a {
    min-height: 42px;
    padding: 9px 14px;
    color: #475569;
    font-weight: 650;
    border-radius: 12px;
}

.nix-header__nav .nav-list > li.current-menu-item > a,
.nix-header__nav .nav-list > li > a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nix-header__nav .dropdown-menu,
.category-nav {
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.nix-header__actions {
    justify-content: flex-end;
    gap: 10px;
}

.nix-header__icon,
.nix-header__menu-toggle,
.search-toggle,
.cart-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nix-header__icon,
.search-toggle,
.cart-icon-btn {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    color: #334155;
}

.nix-header__icon:hover,
.search-toggle:hover,
.cart-icon-btn:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
    color: var(--accent-color);
    transform: translateY(-1px);
}

.nix-header__menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid #e8edf3;
    color: #0f172a;
    cursor: pointer;
}

.nix-category-menu {
    position: relative;
    display: inline-flex;
}

.category-toggle {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe7ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.category-toggle:hover,
.category-menu-wrapper.is-open .category-toggle {
    border-color: #bae6fd;
    background: #eff6ff;
    color: var(--accent-color);
}

.category-toggle__chevron {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.category-menu-wrapper.is-open .category-toggle__chevron {
    transform: rotate(180deg);
}

.category-nav {
    top: calc(100% + 10px);
    display: block;
    min-width: 320px;
    right: 0;
    left: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e8edf3;
}

.category-menu-wrapper.is-open .category-nav,
.category-menu-wrapper:hover .category-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-list .dropdown-menu,
.category-list .sub-menu {
    position: absolute;
    top: -8px;
    right: 100%;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
    border: 1px solid var(--header-border);
}

.category-list li:hover > .dropdown-menu,
.category-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.category-list .dropdown-menu a,
.category-list .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-list .dropdown-menu a:hover,
.category-list .sub-menu a:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.auth-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: #fff;
    color: #334155;
}

.cart-count {
    top: -6px;
    right: -6px;
    border: 2px solid #fff;
}

.mobile-sidebar {
    width: min(88vw, 380px);
    border-left: 1px solid #eef2f6;
}

.mobile-sidebar-header {
    min-height: 76px;
    padding: 16px 20px;
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 800;
}

.mobile-sidebar-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
}

.mobile-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.mobile-menu-divider {
    height: 1px;
    background: #eef2f6;
    margin: 18px 0;
}

.mobile-menu-title {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #eef2f6;
}

.mobile-nav-list > li > a,
.mobile-nav-list .dropdown-menu a,
.mobile-nav-list .sub-menu a {
    min-height: 46px;
}

.mobile-nav-list .dropdown-menu,
.mobile-nav-list .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0 14px 10px 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.mobile-nav-list .dropdown-menu.open,
.mobile-nav-list .sub-menu.open {
    display: block;
}

.mobile-nav-list .dropdown-menu a,
.mobile-nav-list .sub-menu a {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.88rem;
}

.mobile-nav-list .menu-item-has-children > a i,
.mobile-nav-list .dropdown > a i {
    margin-right: auto;
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.mobile-nav-list .menu-item-has-children.is-open > a i,
.mobile-nav-list .dropdown.is-open > a i {
    transform: rotate(180deg);
}

@media (max-width: 1180px) {
    .nix-header__inner {
        gap: 16px;
    }

    .nix-header__nav .nav-list > li > a {
        padding-inline: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .nix-header__inner {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nix-header__nav,
    .nix-category-menu {
        display: none;
    }

    .nix-header__menu-toggle {
        display: inline-flex;
    }

    .nix-header__brand {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .nix-header__inner {
        padding: 0 14px;
        gap: 10px;
    }

    .nix-header__logo .custom-logo,
    .nix-header__logo .logo-img {
        width: 36px;
        height: 36px;
    }

    .nix-header__logo .logo-text {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
    }

    .nix-header__actions {
        gap: 8px;
    }

    .auth-btn {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .auth-btn span {
        display: none;
    }

    .mobile-sidebar {
        width: min(92vw, 360px);
    }
}

/* Home hero simple rebuild */
.home-hero--dark {
    min-height: auto !important;
    padding: clamp(36px, 7vw, 86px) 0 !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .12), transparent 42%),
        #070b12 !important;
}

.home-hero--dark::before {
    display: none !important;
}

.home-hero--dark .home-hero__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
    gap: clamp(24px, 5vw, 64px) !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.home-hero--dark .home-hero__content {
    display: grid !important;
    gap: 16px !important;
    max-width: 690px !important;
    text-align: right !important;
}

.home-hero__eyebrow {
    width: fit-content !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(96, 165, 250, .24) !important;
    border-radius: 8px !important;
    background: rgba(96, 165, 250, .1) !important;
    color: #bfdbfe !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
}

.home-hero--dark h1 {
    max-width: 760px !important;
    margin: 0 !important;
    color: #f8fafc !important;
    font-size: clamp(2.15rem, 5.4vw, 4.75rem) !important;
    font-weight: 950 !important;
    line-height: 1.16 !important;
}

.home-hero--dark .home-hero__desc {
    max-width: 620px !important;
    margin: 0 !important;
    color: #a7b4c8 !important;
    font-size: clamp(.98rem, 1.8vw, 1.1rem) !important;
    line-height: 2 !important;
}

.home-hero__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 4px !important;
}

.home-hero--dark .home-hero__button {
    min-height: 48px !important;
    padding: 0 18px !important;
    border: 1px solid #2563eb !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

.home-hero--dark .home-hero__button:hover {
    transform: translateY(-1px) !important;
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.home-hero--dark .home-hero__button--ghost {
    background: transparent !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.home-hero--dark .home-hero__button--ghost:hover {
    background: rgba(255, 255, 255, .05) !important;
    border-color: #475569 !important;
}

.home-hero__points {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.home-hero__points li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #cbd5e1 !important;
    font-size: .86rem !important;
    font-weight: 750 !important;
}

.home-hero__points i {
    width: 20px !important;
    height: 20px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: rgba(34, 197, 94, .13) !important;
    color: #86efac !important;
    font-size: .72rem !important;
}

.home-hero__visual {
    min-height: auto !important;
    display: grid !important;
    place-items: center !important;
}

.home-hero__image,
.home-hero__placeholder {
    width: min(100%, 500px) !important;
    aspect-ratio: 1.08 / .86 !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 8px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32) !important;
}

.home-hero__image {
    object-fit: cover !important;
    background: #111827 !important;
}

.home-hero__placeholder {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 14px !important;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(34, 197, 94, .08)),
        #111827 !important;
    color: #e2e8f0 !important;
}

.home-hero__placeholder i {
    color: #93c5fd !important;
    font-size: clamp(4rem, 10vw, 7rem) !important;
}

.home-hero__placeholder span {
    color: #cbd5e1 !important;
    font-weight: 900 !important;
}

.home-hero__kicker,
.home-hero__status,
.home-hero__showcase,
.home-hero__floating-card,
.home-hero__metrics,
.home-hero__product-scene,
.home-hero__device {
    display: none !important;
}

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

    .home-hero__visual {
        order: -1 !important;
    }

    .home-hero__image,
    .home-hero__placeholder {
        width: min(100%, 560px) !important;
        aspect-ratio: 16 / 10 !important;
    }
}

@media (max-width: 560px) {
    .home-hero--dark {
        padding: 24px 0 34px !important;
    }

    .home-hero__actions,
    .home-hero--dark .home-hero__button {
        width: 100% !important;
    }

    .home-hero__points {
        display: grid !important;
        gap: 9px !important;
    }
}

@media (max-width: 380px) {
    .nix-header__logo .logo-text {
        display: none;
    }

    .nix-header__icon,
    .nix-header__menu-toggle,
    .search-toggle,
    .cart-icon-btn,
    .auth-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* ========== HEADER CART PANEL OVERHAUL ========== */
.cart-dropdown {
    position: relative;
}

.cart-dropdown-menu {
    left: 0;
    right: auto;
    width: min(440px, calc(100vw - 28px));
    max-width: none;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

.cart-dropdown-menu.show {
    transform: translateY(0) scale(1);
}

.cart-dropdown-menu::before {
    left: 22px;
    background: #ffffff;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    max-height: min(680px, calc(100vh - 112px));
}

.cart-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cart-panel__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.cart-panel__header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.cart-panel__close {
    width: 38px;
    height: 38px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-panel__close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--danger-color);
}

.cart-items {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    margin: 0;
    border-radius: 14px;
    border: 1px solid transparent;
}

.cart-item + .cart-item {
    margin-top: 8px;
}

.cart-item:hover {
    background: #f8fafc;
    border-color: #eef2f6;
}

.cart-item.is-updating {
    opacity: 0.62;
    pointer-events: none;
}

.cart-item.is-updating::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.58), transparent);
    animation: cart-row-loading 1.1s infinite;
}

.cart-item__media {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    background: #f1f5f9;
    overflow: hidden;
    display: block;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: start;
}

.cart-item-info h5 {
    margin: 0;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.65;
}

.cart-item-info h5 a {
    color: inherit;
}

.cart-item-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.7;
}

.cart-item-meta dl,
.cart-item-meta p {
    margin: 0;
}

.cart-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.cart-item-qty {
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    font-size: 0.78rem;
}

.qty-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

.cart-item-qty__value {
    min-width: 24px;
    text-align: center;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 800;
}

.cart-item-price {
    margin: 0;
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 850;
    white-space: nowrap;
}

.cart-item-remove {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e8edf3;
}

.cart-footer {
    padding: 16px 18px 18px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
}

.cart-total {
    margin-bottom: 14px;
}

.cart-total span {
    color: #64748b;
    font-size: 0.82rem;
}

.cart-total strong {
    color: #0f172a;
    font-size: 1.12rem;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

.cart-btn {
    margin: 0;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-btn.primary {
    background: #2563eb;
}

.cart-empty {
    padding: 34px 24px 28px;
}

.cart-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.cart-empty i {
    margin: 0;
    opacity: 1;
}

.cart-empty p {
    color: #64748b;
    font-size: 0.9rem;
}

.cart-loading-skeleton {
    min-width: 360px;
    padding: 18px;
}

@keyframes cart-row-loading {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    body.cart-drawer-open {
        overflow: hidden;
    }

    .cart-dropdown-menu {
        position: fixed;
        top: var(--header-height-mobile);
        right: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        max-width: none;
        border-radius: 18px 18px 0 0;
        border-right: 0;
        border-left: 0;
        transform: translateY(18px);
        transform-origin: bottom center;
    }

    .cart-dropdown-menu.show {
        transform: translateY(0);
    }

    .cart-dropdown-menu::before {
        display: none;
    }

    .cart-panel {
        height: 100%;
        max-height: none;
    }

    .cart-items {
        padding: 8px 10px 12px;
    }

    .cart-panel__header {
        padding: 16px;
    }

    .cart-footer {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 430px) {
    .cart-item {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .cart-item__media {
        width: 66px;
        height: 66px;
    }

    .cart-item__bottom {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .cart-actions {
        grid-template-columns: 1fr;
    }
}

/* Home hero overhaul */
.home-hero--dark {
    position: relative;
    min-height: min(760px, calc(100vh - 72px));
    padding: clamp(34px, 6vw, 78px) 0 clamp(28px, 5vw, 64px);
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .16), transparent 32%),
        linear-gradient(315deg, rgba(34, 197, 94, .11), transparent 34%),
        #070b12;
}

.home-hero--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

.home-hero--dark .home-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    min-height: 0;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .9), rgba(11, 17, 28, .72)),
        rgba(11, 17, 28, .82);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(18px);
}

.home-hero--dark .home-hero__content {
    display: grid;
    gap: 18px;
    text-align: right;
}

.home-hero__kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.home-hero__eyebrow,
.home-hero__status {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 900;
}

.home-hero__eyebrow {
    width: fit-content;
    border: 1px solid rgba(96, 165, 250, .25);
    background: rgba(96, 165, 250, .12);
    color: #bfdbfe;
}

.home-hero__status {
    border: 1px solid rgba(34, 197, 94, .22);
    background: rgba(34, 197, 94, .1);
    color: #bbf7d0;
}

.home-hero__status i {
    color: #22c55e;
    font-size: .48rem;
}

.home-hero--dark h1 {
    max-width: 760px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2.3rem, 5.7vw, 5.3rem);
    font-weight: 950;
    line-height: 1.12;
}

.home-hero--dark .home-hero__desc {
    max-width: 650px;
    margin: 0;
    color: #b7c4d7;
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 2.05;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.home-hero--dark .home-hero__button {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .28);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.home-hero--dark .home-hero__button:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.home-hero--dark .home-hero__button--ghost {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(148, 163, 184, .25);
    color: #f8fafc;
    box-shadow: none;
}

.home-hero--dark .home-hero__button--ghost:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(203, 213, 225, .36);
}

.home-hero__visual {
    min-height: 460px;
    display: grid;
    place-items: center;
}

.home-hero__showcase {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1 / 1.02;
    display: grid;
    place-items: center;
}

.home-hero__showcase::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(96, 165, 250, .24), transparent 58%),
        radial-gradient(circle at 72% 28%, rgba(34, 197, 94, .18), transparent 42%);
    filter: blur(6px);
}

.home-hero__image,
.home-hero__product-scene {
    position: relative;
    z-index: 1;
    width: min(86%, 420px);
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.home-hero__image {
    object-fit: cover;
    background: #111827;
}

.home-hero__product-scene {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background:
        linear-gradient(160deg, rgba(37, 99, 235, .24), rgba(15, 23, 42, .1)),
        #101826;
}

.home-hero__product-scene i {
    color: #93c5fd;
    font-size: clamp(5rem, 12vw, 9rem);
}

.home-hero__product-scene span {
    color: #e2e8f0;
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: 1px;
}

.home-hero__floating-card {
    position: absolute;
    z-index: 2;
    min-height: 54px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: rgba(17, 24, 39, .86);
    color: #f8fafc;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    font-size: .84rem;
    font-weight: 900;
}

.home-hero__floating-card i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(96, 165, 250, .14);
    color: #93c5fd;
}

.home-hero__floating-card--top {
    top: 10%;
    right: 0;
}

.home-hero__floating-card--bottom {
    left: 2%;
    bottom: 14%;
}

.home-hero__floating-card--bottom i {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
}

.home-hero__metrics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.home-hero__metrics span {
    min-height: 78px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: #a7b4c8;
    font-size: .82rem;
}

.home-hero__metrics i {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(96, 165, 250, .12);
    color: #93c5fd;
}

.home-hero__metrics strong {
    color: #f8fafc;
    font-size: 1.18rem;
    line-height: 1;
}

@media (max-width: 980px) {
    .home-hero--dark .home-hero__inner {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        min-height: 360px;
        order: -1;
    }

    .home-hero__showcase {
        width: min(100%, 420px);
    }
}

@media (max-width: 640px) {
    .home-hero--dark {
        min-height: auto;
    }

    .home-hero--dark .home-hero__inner {
        padding: 14px;
    }

    .home-hero__visual {
        min-height: 300px;
    }

    .home-hero__floating-card {
        min-height: 46px;
        padding: 8px 10px;
        font-size: .76rem;
    }

    .home-hero__floating-card i {
        width: 30px;
        height: 30px;
    }

    .home-hero__metrics {
        grid-template-columns: 1fr;
    }

    .home-hero__actions,
    .home-hero--dark .home-hero__button {
        width: 100%;
    }

    .home-hero--dark .home-hero__button {
        justify-content: center;
    }
}








/* ========== فوتر ========== */
.footer {
    background: #111;
    color: #aaa;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* ستون‌های فوتر */
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* شبکه‌های اجتماعی */
.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #fff;
}

/* لینک‌ها */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 3px;
}

/* اطلاعات تماس */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.footer-contact i {
    width: 20px;
    color: #666;
}

/* پایین فوتر */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    font-size: 0.8rem;
}

.footer-copyright p {
    color: #666;
}

.footer-copyright strong {
    color: #888;
}

.footer-payment img {
    height: 30px;
    opacity: 0.6;
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}














/* ========== INDEX PAGE STYLES ========== */

.home-page {
    background: #fff;
}

.home-hero {
    padding: clamp(48px, 7vw, 92px) 0 42px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
}

.home-hero__content {
    max-width: 720px;
}

.home-hero h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.18;
}

.home-hero__subtitle {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 700;
}

.home-hero__desc {
    margin: 0 0 26px;
    color: #64748b;
    font-size: 0.96rem;
}

.home-hero__button,
.home-section__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.home-hero__button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    transition: all var(--transition-fast);
}

.home-hero__button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.home-hero__panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.home-hero__panel span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-weight: 750;
}

.home-hero__panel i {
    color: #2563eb;
}

.home-section {
    padding: clamp(34px, 5vw, 68px) 0;
}

.home-section--soft {
    background: #f8fafc;
}

.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.home-section__head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 850;
}

.home-section__link {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-section__link:hover {
    color: #2563eb;
}

.home-category-grid,
.home-products-grid,
.home-blog-grid {
    display: grid;
    gap: 16px;
}

.home-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-category-card,
.home-product-card,
.home-blog-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.home-category-card:hover,
.home-product-card:hover,
.home-blog-card:hover {
    transform: translateY(-3px);
    border-color: #dbeafe;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.home-category-card {
    min-height: 150px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-category-card img,
.home-category-card > i {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eff6ff;
}

.home-category-card img {
    object-fit: cover;
}

.home-category-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.35rem;
}

.home-category-card span {
    display: grid;
    gap: 4px;
}

.home-category-card strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.home-category-card small {
    color: #64748b;
    font-size: 0.76rem;
}

.home-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product-card__media,
.home-blog-card__media {
    position: relative;
    display: block;
    background: #f8fafc;
    overflow: hidden;
}

.home-product-card__media {
    aspect-ratio: 1;
}

.home-product-card__media img,
.home-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.home-product-card:hover img,
.home-blog-card:hover img {
    transform: scale(1.04);
}

.home-product-card__body {
    min-height: 116px;
    padding: 13px;
    display: grid;
    align-content: space-between;
    gap: 12px;
}

.home-product-card__body strong {
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-card__price {
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 850;
}

.home-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.home-badge.sale {
    background: #dc2626;
}

.home-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-blog-card__media {
    aspect-ratio: 16 / 10;
}

.home-blog-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.home-blog-card__body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.home-blog-card__body small {
    color: #64748b;
    font-size: 0.76rem;
}

.home-blog-card__body strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.55;
}

.home-blog-card__body span {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
    }

    .home-hero__panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-products-grid,
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-section__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-products-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .home-hero__panel {
        grid-template-columns: 1fr;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.view-all {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.view-all:hover {
    color: #000;
}

.view-all i {
    font-size: 0.7rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: #666;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    transition: 0.2s;
}

.hero-btn:hover {
    background: #333;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

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

.category-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8f8f8;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-card:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.category-card i {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.category-card h3 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.category-card span {
    font-size: 0.75rem;
    color: #888;
}

/* Products Grid */
.products-section {
    padding: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-hot {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e33629;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.product-price .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e33629;
}

/* Media Section */
.media-section {
    padding: 4rem 0;
    background: #fafafa;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
}

.media-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover {
    background: #e33629;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-info {
    padding: 1.2rem;
}

.media-type {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.media-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.media-info p {
    font-size: 0.8rem;
    color: #666;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 16px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.reviewer img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.reviewer span {
    font-size: 0.7rem;
    color: #888;
}

.review-product {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e33629;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #ffb800;
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #fafafa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-info {
    padding: 1.2rem;
}

.blog-date {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.blog-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.blog-info p {
    font-size: 0.8rem;
    color: #666;
}

/* Subscribe Section */
.subscribe-section {
    padding: 4rem 0;
}

.subscribe-card {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
}

.subscribe-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subscribe-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subscribe-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
}

.subscribe-form .form-group {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 0.5rem;
    background: #fff;
    border-radius: 50px;
    padding: 0.2rem;
}

.subscribe-form .form-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.subscribe-form input {
    flex: 1;
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: none;
    background: transparent;
    font-family: inherit;
    direction: ltr;
    text-align: right;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.subscribe-form button:hover {
    background: #333;
}

.form-note {
    display: block;
    font-size: 0.7rem;
    color: #777;
    margin-top: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .subscribe-form .form-group {
        flex-direction: column;
        background: transparent;
        padding: 0;
    }
    
    .subscribe-form input {
        background: #fff;
        border-radius: 50px;
        padding: 0.8rem 1rem;
    }
    
    .subscribe-form button {
        width: 100%;
        padding: 0.8rem;
    }
}














/* ========== ARCHIVE PRODUCT PAGE STYLES ========== */

/* Archive Header */
.archive-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.archive-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #666;
    font-size: 0.9rem;
}

/* Archive Layout */
.archive-layout {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
}

/* Sidebar Styles */
.widget-area {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a1a1a;
    display: inline-block;
}

/* Category Widget */
.product-categories,
.brand-list,
.stock-status {
    list-style: none;
}

.product-categories li,
.brand-list li,
.stock-status li {
    margin-bottom: 0.5rem;
}

.product-categories a,
.brand-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
}

.product-categories span,
.brand-list span {
    color: #999;
    font-size: 0.7rem;
}

.product-categories li:hover a {
    color: #1a1a1a;
}

/* Price Filter */
.price-filter {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
}

.price-slider {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 1rem 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
}

.price-inputs span {
    color: #999;
}

.price-filter-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

/* Main Content */
.content-area {
    flex: 1;
    min-width: 0;
}

/* WooCommerce Sorting */
.woocommerce-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.woocommerce-result-count {
    color: #666;
    font-size: 0.85rem;
}

.woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Product Card Extensions */
.product-card {
    position: relative;
}

.badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e33629;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.product-rating-mini {
    margin-top: 0.5rem;
}

.product-rating-mini .stars {
    font-size: 0.6rem;
    color: #ffb800;
}

/* Pagination */
.woocommerce-pagination {
    text-align: center;
    padding: 2rem 0;
}

.page-numbers {
    display: inline-flex;
    gap: 0.3rem;
    list-style: none;
}

.page-numbers a,
.page-numbers span {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: #555;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.85rem;
}

.page-numbers .current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.page-numbers a:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* Filter Toggle Button (Mobile) */
.filter-toggle-btn {
    display: none;
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 0.8rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.filter-toggle-btn i {
    font-size: 1rem;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .archive-header {
        padding: 1rem 0;
    }
    
    .archive-title {
        font-size: 1.4rem;
    }
    
    .archive-description {
        font-size: 0.8rem;
    }
    
    .filter-toggle-btn {
        display: flex;
    }
    
    .archive-layout {
        position: relative;
    }
    
    /* Sidebar becomes mobile drawer */
    .widget-area {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .widget-area.active {
        right: 0;
    }
    
    .sidebar-inner {
        position: static;
        padding: 1rem;
    }
    
    .sidebar-header {
        display: flex;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .woocommerce-sorting {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-title {
        font-size: 0.75rem;
    }
    
    .product-price .price {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card {
        padding: 0.8rem;
    }
    
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}










/* ========== SEARCH PAGE STYLES ========== */

/* Search Header */
.search-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1rem;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.search-input-wrapper i {
    padding: 0 1rem;
    color: #999;
}

.search-input-wrapper input {
    flex: 1;
    padding: 0.9rem 0;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
}

.search-input-wrapper input:focus {
    outline: none;
}

.search-input-wrapper button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.search-input-wrapper button:hover {
    background: #333;
}

.search-query {
    margin-top: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.search-query strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: #1a1a1a;
}

.tab-btn.active {
    color: #1a1a1a;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background: #1a1a1a;
}

.tab-count {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    margin-right: 0.4rem;
}

.tab-btn.active .tab-count {
    background: #1a1a1a;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search Result Header */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.result-count {
    color: #666;
    font-size: 0.85rem;
}

.result-sorting select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.02);
}

.post-info {
    padding: 1rem;
}

.post-date {
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.post-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f8f8;
    border-radius: 16px;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #666;
    margin-bottom: 1.5rem;
}

.no-results-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.no-results-btn:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-header {
        padding: 1rem 0;
    }
    
    .search-title {
        font-size: 1.4rem;
    }
    
    .search-input-wrapper {
        flex-wrap: wrap;
        border-radius: 16px;
    }
    
    .search-input-wrapper i {
        display: none;
    }
    
    .search-input-wrapper input {
        width: 100%;
        padding: 0.8rem;
        border-bottom: 1px solid #eee;
    }
    
    .search-input-wrapper button {
        width: 100%;
        padding: 0.8rem;
        border-radius: 0 0 16px 16px;
    }
    
    .search-tabs {
        gap: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .search-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}









/* ========== PAGE TEMPLATE STYLES ========== */

.page-template{
    background: #f8f9fa;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Page Content */
.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.page-content p {
    margin-bottom: 1.2rem;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content blockquote {
    background: #f8f8f8;
    border-right: 3px solid #1a1a1a;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content th,
.page-content td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: right;
}

.page-content th {
    background: #f8f8f8;
    font-weight: 600;
}

.page-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .page-template {
        padding: 1rem 0 3rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-content {
        font-size: 0.9rem;
    }
    
    .page-content h2 {
        font-size: 1.2rem;
    }
    
    .page-content h3 {
        font-size: 1rem;
    }
}

/* ============================================
   FINAL THEME POLISH: HEADER, FOOTER, HOME CARDS
   ============================================ */

.nix-header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nix-header__inner {
    min-height: 72px;
    grid-template-columns: minmax(290px, auto) minmax(0, 1fr) auto;
    gap: 18px;
}

.nix-header__brand {
    gap: 10px;
}

.nix-header__logo {
    min-height: 46px;
    padding: 4px 6px;
    border-radius: 8px;
    color: #fff;
}

.nix-header__logo:hover {
    color: #fff;
}

.nix-header__logo .custom-logo,
.nix-header__logo .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nix-header__nav .nav-list {
    margin: 0;
    padding: 0;
}

.nix-header__nav .nav-list > li > a {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.nix-header__nav .nav-list > li.current-menu-item > a,
.nix-header__nav .nav-list > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nix-header__nav .dropdown-menu {
    padding: 8px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
}

.nix-header__icon,
.nix-header__menu-toggle,
.search-toggle,
.cart-icon-btn,
.auth-btn {
    border-radius: 8px;
}

.nix-header__icon,
.search-toggle,
.cart-icon-btn,
.nix-header__menu-toggle {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nix-header__icon:hover,
.search-toggle:hover,
.cart-icon-btn:hover,
.nix-header__menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.auth-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
}

.auth-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.cart-count {
    background: #2563eb;
    color: #fff;
    border-color: #0f172a;
}

.nix-category-menu {
    isolation: isolate;
}

.category-toggle {
    min-height: 44px;
    gap: 9px;
    padding: 0 13px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: #fff;
    font-weight: 850;
}

.category-toggle > i:first-child {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.84rem;
}

.category-toggle:hover,
.category-menu-wrapper.is-open .category-toggle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.category-toggle:hover > i:first-child,
.category-menu-wrapper.is-open .category-toggle > i:first-child {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.category-nav {
    width: 318px;
    max-width: calc(100vw - 32px);
    top: calc(100% + 12px);
    right: 0;
    padding: 8px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
    z-index: 1200;
}

.category-nav .category-list,
.category-nav .dropdown-menu {
    margin: 0;
    padding: 6px;
    list-style: none;
}

.category-nav .category-list li {
    position: relative;
}

.category-nav .category-list a {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.category-nav .category-list a:hover,
.category-nav .category-list li:hover > a,
.category-nav .category-list li:focus-within > a {
    background: #f1f5f9;
    color: #0f172a;
}

.category-nav .category-list li.menu-item-has-children > a::after,
.category-nav .category-list li.dropdown > a::after {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #94a3b8;
    font-size: 0.72rem;
}

.category-nav .category-list > li > a i {
    display: none;
}

.category-nav .dropdown-menu,
.category-nav .sub-menu {
    position: absolute;
    top: 0;
    right: calc(100% + -18px);
    min-width: 270px;
    display: block;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 1220;
}

.category-nav .dropdown-menu .dropdown-menu,
.category-nav .sub-menu .sub-menu {
    top: 0;
    right: calc(100% + 8px);
}

.category-nav li:hover > .dropdown-menu,
.category-nav li:hover > .sub-menu,
.category-nav li:focus-within > .dropdown-menu,
.category-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.home-product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 8px;
}

.home-product-card__link,
.home-product-card__title {
    color: inherit;
    text-decoration: none;
}

.home-product-card__body {
    min-height: 150px;
}

.home-product-card__title {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-card__cart {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
    transition: all 0.18s ease;
}

.home-product-card__cart:hover,
.home-product-card__cart.adding,
.home-product-card__cart.added {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.woocommerce a.added_to_cart.wc-forward,
.archive-products .added_to_cart.wc-forward,
.home-products-grid .added_to_cart.wc-forward {
    display: none !important;
}

.nixstore-notification {
    min-width: min(420px, calc(100vw - 28px));
    text-align: center;
}

.nixstore-notification-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-footer {
    margin-top: clamp(40px, 6vw, 76px);
    padding: 0;
    background: #0f172a;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 38px 0 18px;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.site-footer__brand p {
    max-width: 390px;
    margin: 14px 0 18px;
    color: #94a3b8;
    line-height: 1.9;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    text-decoration: none;
}

.site-footer__logo img,
.site-footer__logo .custom-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.site-footer__social {
    display: flex;
    gap: 8px;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-footer__social a:hover {
    background: #2563eb;
    color: #fff;
}

.site-footer__nav,
.site-footer__contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 850;
}

.site-footer__nav a,
.site-footer__contact a,
.site-footer__contact > span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover,
.site-footer__bottom a:hover {
    color: #fff;
}

.site-footer__contact i {
    color: #38bdf8;
}

.site-footer__bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom div {
    display: flex;
    gap: 14px;
}

.site-footer__bottom a {
    color: #94a3b8;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .nix-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (max-width: 1024px) {
    .nix-header__inner {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nix-category-menu {
        display: none;
    }

    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nix-header__inner {
        padding-inline: 12px;
    }

    .home-product-card__body {
        min-height: 138px;
        padding: 11px;
    }

    .home-product-card__cart {
        min-height: 38px;
        font-size: 0.8rem;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final default page template redesign */
.page-template {
    background: #f8fafc;
}

.page-container {
    max-width: 980px;
    display: grid;
    gap: 18px;
}

.page-template .page-header {
    margin: 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.page-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 850;
}

.page-template .page-title {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    font-weight: 900;
    line-height: 1.35;
}

.page-featured-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    background: #fff;
}

.page-featured-image img {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: cover;
}

.page-template .page-content {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.98rem;
    line-height: 2;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.page-template .page-content > *:first-child {
    margin-top: 0;
}

.page-template .page-content > *:last-child {
    margin-bottom: 0;
}

.page-template .page-content h2,
.page-template .page-content h3 {
    color: #0f172a;
    border: 0;
    padding: 0;
    line-height: 1.5;
}

.page-template .page-content a {
    color: #2563eb;
    font-weight: 750;
}

.page-template .page-content blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border: 0;
    border-right: 4px solid #2563eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.page-template .page-content table {
    overflow: hidden;
    border-radius: 8px;
}

.page-links {
    margin-top: 22px;
    color: #64748b;
    font-weight: 800;
}

/* Full width page template */
.page-fullwidth {
    width: 100%;
    min-height: 60vh;
    background: #fff;
}

.page-fullwidth__content {
    width: 100%;
}

.page-fullwidth__content > *:first-child {
    margin-top: 0;
}

.page-fullwidth__content > *:last-child {
    margin-bottom: 0;
}

.page-fullwidth__content img,
.page-fullwidth__content video,
.page-fullwidth__content iframe {
    max-width: 100%;
}

/* Unified product grid cards */
.home-products-grid,
.products-grid.woocommerce-products-grid,
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.nix-product-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nix-product-card:hover {
    transform: translateY(-2px);
    border-color: #dbe3ee;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.nix-product-card .home-product-card__link,
.nix-product-card .product-image {
    display: block;
    color: inherit;
    text-decoration: none;
}

.nix-product-card .home-product-card__media,
.nix-product-card .product-image {
    position: relative;
    aspect-ratio: 1 / 0.86;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.nix-product-card .home-product-card__media img,
.nix-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.2s ease;
}

.nix-product-card:hover .home-product-card__media img,
.nix-product-card:hover .product-image img {
    transform: scale(1.03);
}

.nix-product-card .badge-sale,
.nix-product-card .home-badge.sale {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.18);
}

.nix-product-card .home-product-card__body,
.nix-product-card .product-card__body {
    min-height: 132px;
    padding: 13px;
    display: grid;
    align-content: start;
    gap: 10px;
    text-align: center;
}

.nix-product-card .home-product-card__title,
.nix-product-card .product-title,
.nix-product-card .product-title a {
    min-height: 48px;
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.65;
    text-align: center;
    text-decoration: none;
}

.nix-product-card .home-product-card__title,
.nix-product-card .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nix-card-price,
.nix-product-card .product-price,
.nix-product-card .home-product-card__price {
    min-height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #111827 !important;
    text-align: center;
    font-size: 0.94rem;
    font-weight: 950;
    line-height: 1.7;
}

.nix-card-price *,
.nix-product-card .product-price *,
.nix-product-card .home-product-card__price * {
    color: #111827 !important;
}

.nix-card-price__separator {
    color: #64748b !important;
    font-weight: 850;
}

.nix-card-price__old,
.nix-card-price del {
    color: #94a3b8 !important;
    font-size: 0.78rem;
    font-weight: 750;
}

.nix-card-price__old *,
.nix-card-price del * {
    color: #94a3b8 !important;
}

.nix-product-card .product-add-cart,
.nix-product-card .home-product-card__cart {
    min-height: 40px;
    margin: 0 13px 13px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.nix-product-card .product-add-cart:hover,
.nix-product-card .home-product-card__cart:hover,
.nix-product-card .product-add-cart.adding,
.nix-product-card .product-add-cart.added,
.nix-product-card .home-product-card__cart.adding,
.nix-product-card .home-product-card__cart.added {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .home-products-grid,
    .products-grid.woocommerce-products-grid,
    .related-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nix-product-card .home-product-card__media,
    .nix-product-card .product-image {
        padding: 10px;
    }

    .nix-product-card .home-product-card__body,
    .nix-product-card .product-card__body {
        min-height: 124px;
        padding: 10px;
        gap: 8px;
    }

    .nix-product-card .home-product-card__title,
    .nix-product-card .product-title,
    .nix-product-card .product-title a {
        min-height: 44px;
        font-size: 0.78rem;
    }

    .nix-card-price,
    .nix-product-card .product-price {
        font-size: 0.8rem;
    }

    .nix-product-card .product-add-cart,
    .nix-product-card .home-product-card__cart {
        min-height: 38px;
        margin: 0 10px 10px;
        font-size: 0.74rem;
    }
}

/* Unified product cards - visual redesign v2 */
.home-products-grid,
.products-grid.woocommerce-products-grid,
.related-products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.nix-product-card {
    min-height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.nix-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.nix-product-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.nix-product-card .home-product-card__media,
.nix-product-card .product-image {
    aspect-ratio: 1 / 0.9;
    margin: 10px 10px 0;
    padding: 16px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.nix-product-card .home-product-card__media img,
.nix-product-card .product-image img {
    max-width: 92%;
    max-height: 92%;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.08));
}

.nix-product-card:hover .home-product-card__media img,
.nix-product-card:hover .product-image img {
    transform: scale(1.04);
}

.nix-product-card .badge-sale,
.nix-product-card .home-badge.sale {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 0.68rem;
    box-shadow: none;
}

.nix-product-card .home-product-card__body,
.nix-product-card .product-card__body {
    min-height: 136px;
    padding: 14px 14px 12px;
    align-content: center;
    gap: 12px;
}

.nix-product-card .home-product-card__title,
.nix-product-card .product-title,
.nix-product-card .product-title a {
    min-height: 50px;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.75;
}

.nix-card-price,
.nix-product-card .product-price,
.nix-product-card .home-product-card__price {
    min-height: 34px;
    padding-top: 2px;
    color: #111827 !important;
    font-size: 0.96rem;
    font-weight: 950;
}

.nix-card-price__amount .woocommerce-Price-currencySymbol,
.nix-card-price .woocommerce-Price-currencySymbol {
    margin-right: 3px;
    color: #111827 !important;
    font-size: 0.76rem;
    font-weight: 850;
}

.nix-card-price__old {
    order: 2;
    width: 100%;
    margin-top: -4px;
}

/* Product card price states */
.nix-card-price,
.nix-product-card .product-price,
.nix-product-card .home-product-card__price {
    flex-direction: row;
    color: #16a34a !important;
}

.nix-card-price *,
.nix-product-card .product-price *,
.nix-product-card .home-product-card__price * {
    color: inherit !important;
}

.nix-card-price__amount,
.nix-card-price__amount--current {
    color: #16a34a !important;
    white-space: nowrap;
}

.nix-card-price__old {
    order: 0;
    width: auto;
    margin: 0;
    color: #dc2626 !important;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #dc2626;
    white-space: nowrap;
}

.nix-card-price__old *,
.nix-card-price__old bdi,
.nix-card-price__old .woocommerce-Price-currencySymbol {
    color: #dc2626 !important;
}

.nix-card-price__amount .woocommerce-Price-currencySymbol,
.nix-card-price .woocommerce-Price-currencySymbol {
    color: inherit !important;
}

.nix-product-card .product-add-cart,
.nix-product-card .home-product-card__cart {
    min-height: 44px;
    margin: 0;
    border-radius: 0;
    background: #111827;
    color: #fff;
    font-size: 0.84rem;
    letter-spacing: 0;
}

.nix-product-card .product-add-cart i,
.nix-product-card .home-product-card__cart i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

.nix-product-card .product-add-cart:hover,
.nix-product-card .home-product-card__cart:hover,
.nix-product-card .product-add-cart.adding,
.nix-product-card .product-add-cart.added,
.nix-product-card .home-product-card__cart.adding,
.nix-product-card .home-product-card__cart.added {
    background: #2563eb;
    transform: none;
}

.nix-product-card .product-add-cart--details {
    background: #f1f5f9;
    color: #111827;
}

@media (max-width: 560px) {
    .home-products-grid,
    .products-grid.woocommerce-products-grid,
    .related-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .nix-product-card .home-product-card__media,
    .nix-product-card .product-image {
        margin: 8px 8px 0;
        padding: 10px;
    }

    .nix-product-card .home-product-card__body,
    .nix-product-card .product-card__body {
        min-height: 124px;
        padding: 10px;
        gap: 8px;
    }

    .nix-product-card .home-product-card__title,
    .nix-product-card .product-title,
    .nix-product-card .product-title a {
        min-height: 44px;
        font-size: 0.78rem;
        line-height: 1.65;
    }

    .nix-card-price,
    .nix-product-card .product-price,
    .nix-product-card .home-product-card__price {
        min-height: 30px;
        font-size: 0.8rem;
    }

    .nix-product-card .product-add-cart,
    .nix-product-card .home-product-card__cart {
        min-height: 40px;
        font-size: 0.72rem;
    }
}

/* ============================================
   DARK THEME FOUNDATION
   ============================================ */

:root {
    --dark-bg: #070b12;
    --dark-bg-soft: #0b111c;
    --dark-surface: #111827;
    --dark-surface-2: #162033;
    --dark-line: #263247;
    --dark-line-soft: rgba(148, 163, 184, 0.18);
    --dark-text: #f8fafc;
    --dark-muted: #a7b4c8;
    --dark-muted-2: #7f8ea5;
    --dark-primary: #60a5fa;
    --dark-primary-strong: #3b82f6;
    --dark-success: #22c55e;
    --dark-danger: #f87171;
    --dark-warning: #fbbf24;
    --text-primary: var(--dark-text);
    --text-secondary: var(--dark-muted);
    --border-color: var(--dark-line);
}

html,
body {
    background: var(--dark-bg);
    color: var(--dark-text);
}

body,
.home-page,
.page-template,
.page-fullwidth,
.archive-page,
.search-page,
.single-post,
.single-product,
.archive-products,
.blog-archive {
    background: var(--dark-bg);
    color: var(--dark-text);
}

a {
    color: var(--dark-primary);
}

a:hover {
    color: #93c5fd;
}

input,
select,
textarea {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
}

input::placeholder,
textarea::placeholder {
    color: var(--dark-muted-2);
}

.container {
    color: inherit;
}

.nix-header {
    background: rgba(7, 11, 18, 0.96);
    border-bottom-color: var(--dark-line-soft);
}

.nix-header.header-sticky {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.36);
}

.nix-header__nav .dropdown-menu,
.category-nav,
.category-nav .dropdown-menu,
.category-nav .sub-menu,
.cart-dropdown-menu,
.full-search-container,
.mobile-sidebar {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.category-nav .category-list a,
.nix-header__nav .dropdown-menu a,
.mobile-nav-list a {
    color: var(--dark-muted);
}

.category-nav .category-list a:hover,
.category-nav .category-list li:hover > a,
.category-nav .category-list li:focus-within > a,
.nix-header__nav .dropdown-menu a:hover,
.mobile-nav-list a:hover {
    background: var(--dark-surface-2);
    color: var(--dark-text);
}

.mobile-sidebar-header,
.mobile-menu-divider,
.mobile-nav-list > li {
    border-color: var(--dark-line);
}

.mobile-sidebar-logo,
.mobile-menu-title {
    color: var(--dark-text);
}

.full-search-overlay {
    background: rgba(2, 6, 23, 0.82);
}

.full-search-container form {
    background: var(--dark-bg-soft);
    border-color: var(--dark-line);
}

.full-search-container input {
    color: var(--dark-text);
}

.cart-panel,
.cart-panel--empty,
.cart-empty,
.cart-item,
.cart-loading-skeleton {
    background: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-line);
}

.cart-panel__header,
.cart-footer,
.cart-item__bottom,
.cart-item-meta {
    border-color: var(--dark-line);
}

.cart-panel__eyebrow,
.cart-item-meta,
.cart-empty p,
.cart-total span {
    color: var(--dark-muted);
}

.cart-item h5 a,
.cart-item h5,
.cart-total strong,
.cart-item-price {
    color: var(--dark-text);
}

.cart-item__media,
.cart-item-qty,
.qty-btn,
.cart-panel__close,
.cart-item-remove {
    background: var(--dark-bg-soft);
    border-color: var(--dark-line);
    color: var(--dark-muted);
}

.home-hero,
.home-section,
.home-section--soft {
    background: var(--dark-bg);
}

.home-hero__inner,
.home-category-card,
.home-blog-card,
.page-template .page-header,
.page-template .page-content,
.page-featured-image,
.archive-post-card,
.post-card,
.error-content,
.error-categories,
.account-card,
.auth-card {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.home-hero__content h1,
.home-section__head h2,
.home-category-card strong,
.home-blog-card strong,
.page-template .page-title,
.page-template .page-content h2,
.page-template .page-content h3,
.archive-title,
.archive-post-card .post-title,
.blog-title,
.error-title,
.error-code {
    color: var(--dark-text);
}

.home-hero__subtitle,
.home-hero__desc,
.home-category-card small,
.home-blog-card small,
.home-blog-card__body span,
.page-template .page-content,
.archive-description,
.archive-label,
.archive-post-card .post-excerpt,
.archive-post-card .post-meta,
.blog-description,
.error-message {
    color: var(--dark-muted);
}

.home-hero__panel span,
.home-category-card img,
.home-category-card > i,
.home-blog-card__placeholder,
.page-template .page-content blockquote,
.error-search-form,
.error-cat-link {
    background: var(--dark-bg-soft);
    border-color: var(--dark-line);
    color: var(--dark-muted);
}

.home-hero__button,
.error-home-btn,
.error-search-form button {
    background: var(--dark-primary-strong);
    color: #fff;
}

.home-section__link,
.page-template .page-content a {
    color: var(--dark-primary);
}

.site-footer {
    background: #050812;
    border-color: var(--dark-line-soft);
}

.site-footer__bottom {
    border-color: var(--dark-line-soft);
}

.nix-product-card,
.home-product-card,
.product-card {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.nix-product-card:hover {
    border-color: #3a4a64;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.nix-product-card .home-product-card__media,
.nix-product-card .product-image {
    background: linear-gradient(180deg, #172033 0%, #101827 100%);
    border-color: var(--dark-line);
}

.nix-product-card .home-product-card__media img,
.nix-product-card .product-image img {
    mix-blend-mode: normal;
}

.nix-product-card .home-product-card__title,
.nix-product-card .product-title,
.nix-product-card .product-title a {
    color: var(--dark-text);
}

.nix-card-price,
.nix-product-card .product-price,
.nix-product-card .home-product-card__price,
.nix-card-price__amount,
.nix-card-price__amount--current {
    color: var(--dark-success) !important;
}

.nix-card-price__old,
.nix-card-price__old *,
.nix-card-price__old bdi,
.nix-card-price__old .woocommerce-Price-currencySymbol {
    color: var(--dark-danger) !important;
    text-decoration-color: var(--dark-danger);
}

.nix-product-card .product-add-cart,
.nix-product-card .home-product-card__cart {
    background: #2563eb;
    color: #fff;
}

.nix-product-card .product-add-cart:hover,
.nix-product-card .home-product-card__cart:hover {
    background: #1d4ed8;
}

/* Dark theme coverage for search and common legacy sections */
.search-header,
.search-form-container,
.search-results-section,
.search-result-header,
.no-results,
.pagination,
.blog-pagination,
.woocommerce-pagination,
.page-content table,
.page-content th,
.page-content td {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-text);
}

.search-title,
.search-query,
.search-result-title,
.no-results h2,
.no-results h3 {
    color: var(--dark-text);
}

.search-description,
.search-result-count,
.no-results p {
    color: var(--dark-muted);
}

.search-input-wrapper,
.search-tabs,
.tab-btn,
.no-results-btn {
    background: var(--dark-bg-soft);
    border-color: var(--dark-line);
    color: var(--dark-muted);
}

.tab-btn.active,
.tab-btn:hover,
.no-results-btn,
.woocommerce-pagination .page-numbers li span.current,
.woocommerce-pagination .page-numbers li a:hover {
    background: var(--dark-primary-strong);
    border-color: var(--dark-primary-strong);
    color: #fff;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.blog-pagination .page-numbers a {
    background: var(--dark-surface);
    border-color: var(--dark-line);
    color: var(--dark-muted);
}

/* Dark templates: thank you, search, archive */
.nix-thankyou,
.nix-search-page,
.nix-archive-page {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding: clamp(28px, 5vw, 68px) 0;
}

.nix-thankyou {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.nix-thankyou__card,
.nix-thankyou__details,
.nix-search-hero,
.nix-archive-hero,
.nix-search-tabs,
.nix-post-card,
.no-results {
    background: var(--dark-surface);
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.nix-thankyou__card {
    padding: clamp(24px, 5vw, 48px);
    text-align: center;
}

.nix-thankyou__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    color: #86efac;
    font-size: 1.5rem;
}

.nix-thankyou__card--failed .nix-thankyou__icon {
    background: rgba(248, 113, 113, .12);
    color: var(--dark-danger);
}

.nix-thankyou__eyebrow,
.nix-search-hero > span,
.nix-archive-hero > span {
    color: var(--dark-primary);
    font-size: .8rem;
    font-weight: 900;
}

.nix-thankyou h1,
.nix-thankyou h2,
.nix-search-hero h1,
.nix-archive-hero h1,
.nix-post-card__body h2,
.nix-post-card__body h2 a {
    color: var(--dark-text);
}

.nix-thankyou p,
.nix-search-hero p,
.nix-archive-hero p,
.nix-post-card__body p,
.nix-post-card__body div,
.nix-thankyou__summary span {
    color: var(--dark-muted);
}

.nix-thankyou__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.nix-thankyou__summary div,
.nix-thankyou__item {
    background: var(--dark-bg-soft);
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    padding: 12px;
}

.nix-thankyou__summary strong {
    display: block;
    margin-top: 6px;
    color: var(--dark-text);
}

.nix-thankyou__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nix-thankyou__btn,
.nix-search-hero button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--dark-primary-strong);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 850;
}

.nix-thankyou__btn--ghost {
    background: var(--dark-bg-soft);
    border: 1px solid var(--dark-line);
    color: var(--dark-text);
}

.nix-thankyou__details {
    padding: 18px;
}

.nix-thankyou__items {
    display: grid;
    gap: 10px;
}

.nix-thankyou__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.nix-thankyou__item-media img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.nix-search-hero,
.nix-archive-hero {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: clamp(20px, 4vw, 34px);
}

.nix-search-hero form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.nix-search-hero input {
    min-height: 48px;
    border-radius: 8px;
    background: var(--dark-bg-soft);
    border: 1px solid var(--dark-line);
    color: var(--dark-text);
    padding: 0 14px;
}

.nix-search-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 18px;
}

.nix-search-tabs a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: var(--dark-muted);
    text-decoration: none;
    font-weight: 850;
}

.nix-search-tabs a.is-active {
    background: var(--dark-primary-strong);
    color: #fff;
}

.nix-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.nix-post-card {
    overflow: hidden;
}

.nix-post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--dark-bg-soft);
    overflow: hidden;
}

.nix-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nix-post-card__media span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--dark-muted);
    font-size: 2rem;
}

.nix-post-card__media em {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .92);
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 850;
}

.nix-post-card__body {
    padding: 14px;
}

.nix-post-card__body h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .nix-thankyou__summary,
    .nix-thankyou__item,
    .nix-search-hero form {
        grid-template-columns: 1fr;
    }
}

/* Comments dark component */
.nix-comments {
    display: grid;
    gap: 18px;
}

.nix-comments__head,
.nix-comment__body,
.nix-comment-form,
.nix-comments__closed {
    background: var(--dark-surface);
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.nix-comments__head {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nix-comments__head span,
.comment-notes,
.nix-comment__content header span,
.nix-comment__text,
.nix-comments__closed {
    color: var(--dark-muted);
}

.nix-comments__head h2,
.comment-reply-title,
.nix-comment__content header strong {
    margin: 0;
    color: var(--dark-text);
}

.nix-comments__jump,
.nix-comment__reply a,
.nix-comment-submit {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--dark-primary-strong);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 850;
}

.nix-comment-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nix-comment-list .children {
    margin: 12px 24px 0 0;
    padding: 0;
    list-style: none;
}

.nix-comment__body {
    padding: 14px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
}

.nix-comment__avatar img {
    border-radius: 999px;
}

.nix-comment__content header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.nix-comment__pending {
    color: var(--dark-warning);
}

.nix-comment-form {
    padding: 18px;
}

.nix-comment-form p {
    margin: 0 0 12px;
}

.nix-comment-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark-text);
    font-weight: 800;
}

.nix-comment-form input,
.nix-comment-form textarea {
    width: 100%;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: var(--dark-bg-soft);
    color: var(--dark-text);
    padding: 10px 12px;
    font-family: inherit;
}

.nix-comments__pagination {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Header search and dropdown redesign */
.full-search-overlay {
    background: rgba(2, 6, 23, .88) !important;
    backdrop-filter: blur(18px);
    padding: 16px;
}

.full-search-container {
    width: min(100%, 760px);
    max-width: 760px;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #111827, #0b111c);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.full-search-close {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: var(--dark-text);
}

.full-search-close:hover {
    background: var(--dark-danger);
    color: #fff;
}

/* Floating phone */
.nix-floating-phone {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9990;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
    transition: width .24s ease, box-shadow .2s ease, background .2s ease;
}

.nix-floating-phone__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    direction: ltr;
    font-size: .92rem;
    font-weight: 850;
    white-space: nowrap;
}

.nix-floating-phone__link i,
.nix-floating-phone__toggle i {
    font-size: .95rem;
}

.nix-floating-phone__toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.nix-floating-phone__toggle:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.nix-partner-price-label,
.nix-partner-price {
    display: inline-block;
    vertical-align: middle;
}

.nix-partner-price-label {
    color: #93c5fd;
    font-size: .82rem;
    font-weight: 900;
}

.nix-partner-price {
    color: #22c55e;
    font-weight: 950;
}

.nix-partner-min-qty {
    display: block;
    margin-top: 4px;
    color: #a7b4c8;
    font-size: .78rem;
    font-weight: 800;
}

.nix-floating-phone.is-collapsed {
    grid-template-columns: 42px;
    padding: 7px;
}

.nix-floating-phone.is-collapsed .nix-floating-phone__link {
    display: none;
}

@media (max-width: 640px) {
    .nix-floating-phone {
        right: 12px;
        bottom: 12px;
    }

    .nix-floating-phone__link {
        min-height: 40px;
        padding: 0 10px;
        font-size: .84rem;
    }

    .nix-floating-phone__toggle {
        width: 40px;
        height: 40px;
    }
}

/* Swiper product rail slider, excluding shop/archive grids */
.nix-product-slider-shell {
    position: relative;
    margin-top: 8px;
}

.nix-product-swiper {
    grid-template-columns: none !important;
    display: block !important;
    width: 100%;
    overflow: hidden;
    padding: 2px 2px 34px;
}

.nix-product-swiper .swiper-slide {
    height: auto;
    direction: rtl;
}

.nix-product-swiper .nix-product-card,
.nix-product-swiper .home-product-card,
.nix-product-swiper .product-card {
    height: 100%;
}

.nix-product-slider-controls {
    position: absolute;
    top: -54px;
    left: 0;
    display: inline-flex;
    gap: 8px;
}

.nix-product-slider-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.nix-product-slider-btn:hover {
    transform: translateY(-1px);
    border-color: #2563eb;
    color: #2563eb;
}

.nix-product-slider-pagination {
    bottom: 0 !important;
}

.nix-product-slider-pagination .swiper-pagination-bullet {
    background: #94a3b8;
    opacity: .7;
}

.nix-product-slider-pagination .swiper-pagination-bullet-active {
    background: #2563eb;
    opacity: 1;
}

@media (max-width: 560px) {
    .nix-product-slider-controls {
        position: static;
        justify-content: flex-end;
        margin-top: 12px;
    }
}

/* Comments rewrite */
.nix-comments {
    --comments-bg: #ffffff;
    --comments-soft: #f8fafc;
    --comments-line: #e2e8f0;
    --comments-text: #0f172a;
    --comments-muted: #64748b;
    --comments-primary: #2563eb;
    --comments-warning: #f59e0b;
    display: grid;
    gap: 16px;
    color: var(--comments-text);
}

.nix-comments__head,
.nix-comment__body,
.nix-comment-form,
.nix-comments__closed {
    background: var(--comments-bg);
    border: 1px solid var(--comments-line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.nix-comments__head {
    padding: clamp(14px, 2.4vw, 20px);
}

.nix-comments__head span,
.comment-notes,
.nix-comment__content header span,
.nix-comment__text,
.nix-comments__closed {
    color: var(--comments-muted);
}

.nix-comments__head h2,
.comment-reply-title,
.nix-comment__content header strong {
    color: var(--comments-text);
}

.nix-comments__jump,
.nix-comment__reply a,
.nix-comment-submit {
    border: 0;
    border-radius: 8px;
    background: var(--comments-primary);
    color: #fff;
    cursor: pointer;
}

.nix-comment-list {
    gap: 14px;
}

.nix-comment-list .children {
    margin: 14px 18px 0 0;
    border-right: 2px solid var(--comments-line);
    padding-right: 14px;
}

.nix-comment__body {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: clamp(14px, 2.4vw, 18px);
}

.nix-comment__avatar img {
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.nix-comment__content header {
    align-items: center;
}

.nix-comment__text {
    line-height: 1.9;
}

.nix-comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: clamp(16px, 2.6vw, 22px);
}

.nix-comment-form .comment-reply-title,
.nix-comment-form .comment-notes,
.nix-comment-form .comment-form-comment,
.nix-comment-form .comment-form-cookies-consent,
.nix-comment-form .form-submit,
.nix-comment-form .comment-form-rating {
    grid-column: 1 / -1;
}

.nix-comment-form p {
    margin: 0;
}

.nix-comment-form label {
    color: var(--comments-text);
}

.nix-comment-form input,
.nix-comment-form textarea,
.nix-comment-form select {
    min-height: 46px;
    border: 1px solid var(--comments-line);
    border-radius: 8px;
    background: var(--comments-soft);
    color: var(--comments-text);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.nix-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.nix-comment-form input:focus,
.nix-comment-form textarea:focus,
.nix-comment-form select:focus {
    border-color: var(--comments-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.comment-form-cookies-consent input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.comment-form-rating label {
    margin-bottom: 8px;
}

.comment-form-rating .stars,
.comment-form-rating [role="group"],
.woocommerce p.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    margin: 0;
}

.comment-form-rating .stars a,
.comment-form-rating [role="group"] a,
.woocommerce p.stars a {
    position: relative;
    width: 28px;
    height: 28px;
    overflow: hidden;
    color: transparent !important;
    text-indent: 999px;
    white-space: nowrap;
}

.comment-form-rating .stars a::before,
.comment-form-rating [role="group"] a::before,
.woocommerce p.stars a::before {
    content: "\f005";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    font-family: "Font Awesome 5 Free";
    font-size: 1.28rem;
    font-weight: 900;
    text-indent: 0;
    transition: color .16s ease, transform .16s ease;
}

.comment-form-rating .stars a:hover::before,
.comment-form-rating .stars a:hover ~ a::before,
.comment-form-rating .stars.selected a.active::before,
.comment-form-rating .stars.selected a.active ~ a::before,
.comment-form-rating [role="group"] a:hover::before,
.comment-form-rating [role="group"] a:hover ~ a::before,
.comment-form-rating [role="group"] a[aria-checked="true"]::before,
.comment-form-rating [role="group"] a[aria-checked="true"] ~ a::before,
.woocommerce p.stars a:hover::before,
.woocommerce p.stars a:hover ~ a::before,
.woocommerce p.stars.selected a.active::before,
.woocommerce p.stars.selected a.active ~ a::before {
    color: var(--comments-warning);
    transform: scale(1.06);
}

@media (max-width: 640px) {
    .nix-comments__head,
    .nix-comment__content header,
    .nix-comments__pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .nix-comment__body {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .nix-comment__avatar img {
        width: 42px;
        height: 42px;
    }

    .nix-comment-list .children {
        margin-right: 8px;
        padding-right: 10px;
    }

    .nix-comment-form {
        grid-template-columns: 1fr;
    }
}

.full-search-container form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    margin-top: 34px;
    padding: 8px;
    border-radius: 8px;
    background: var(--dark-bg-soft);
    border: 1px solid var(--dark-line);
}

#fullSearchInput {
    min-height: 54px;
    border: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--dark-text);
    font-size: clamp(1rem, 3vw, 1.4rem);
    text-align: right;
}

#fullSearchInput::placeholder {
    color: var(--dark-muted-2);
    font-size: 1rem;
}

.full-search-container button[type="submit"] {
    position: static;
    transform: none;
    width: 52px;
    min-height: 52px;
    border-radius: 8px;
    background: var(--dark-primary-strong);
    color: #fff;
    font-size: 1.1rem;
}

.search-suggestions {
    margin-top: 18px;
    color: var(--dark-muted);
}

.nix-header__nav .dropdown-menu,
.category-nav,
.category-nav .dropdown-menu,
.category-nav .sub-menu {
    background: #0b111c !important;
    border-color: #263247 !important;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

.nix-header__nav .dropdown-menu a,
.category-nav .category-list a {
    color: #cbd5e1 !important;
}

.nix-header__nav .dropdown-menu a:hover,
.category-nav .category-list a:hover,
.category-nav .category-list li:hover > a,
.category-nav .category-list li:focus-within > a {
    background: #162033 !important;
    color: #fff !important;
}

.cart-dropdown-menu {
    background: #0b111c !important;
    border-color: #263247 !important;
    border-radius: 8px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
}

.cart-dropdown-menu::before {
    background: #0b111c !important;
    border-color: #263247 !important;
}

.cart-panel,
.cart-panel--empty {
    background: #0b111c !important;
}

.cart-item {
    background: #111827 !important;
    border: 1px solid #263247;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .full-search-container form {
        grid-template-columns: 1fr;
    }

    .full-search-container button[type="submit"] {
        width: 100%;
    }
}

/* Cart dropdown final redesign */
.nix-header .cart-dropdown-menu {
    width: min(430px, calc(100vw - 24px));
    overflow: hidden;
    border-radius: 8px !important;
    background: #080d16 !important;
    border: 1px solid #263247 !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58) !important;
}

.nix-header .cart-dropdown-menu::before {
    background: #080d16 !important;
    border-color: #263247 !important;
}

.nix-header .cart-panel {
    background: #080d16 !important;
    color: #f8fafc;
}

.nix-header .cart-panel__header {
    padding: 16px 18px;
    background: linear-gradient(180deg, #111827 0%, #0b111c 100%) !important;
    border-bottom: 1px solid #263247 !important;
}

.nix-header .cart-panel__eyebrow {
    color: #60a5fa !important;
    font-weight: 900;
}

.nix-header .cart-panel__header h4 {
    color: #f8fafc !important;
}

.nix-header .cart-panel__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid #263247 !important;
    color: #cbd5e1 !important;
}

.nix-header .cart-panel__close:hover {
    background: rgba(248, 113, 113, .14) !important;
    border-color: rgba(248, 113, 113, .38) !important;
    color: #fca5a5 !important;
}

.nix-header .cart-items {
    padding: 10px;
    background: #080d16;
}

.nix-header .cart-item {
    border-radius: 8px;
    border: 1px solid #263247 !important;
    background: #111827 !important;
}

.nix-header .cart-item:hover {
    background: #162033 !important;
    border-color: #334155 !important;
}

.nix-header .cart-item__media {
    border-radius: 8px;
    background: #0b111c !important;
    border: 1px solid #263247;
}

.nix-header .cart-item-img {
    border-radius: 8px;
    object-fit: cover;
}

.nix-header .cart-item-info h5,
.nix-header .cart-item-info h5 a,
.nix-header .cart-item-qty__value,
.nix-header .cart-total strong {
    color: #f8fafc !important;
}

.nix-header .cart-item-meta,
.nix-header .cart-total span,
.nix-header .cart-empty p {
    color: #a7b4c8 !important;
}

.nix-header .cart-item__bottom {
    border-color: #263247 !important;
}

.nix-header .cart-item-qty {
    border: 1px solid #263247;
    border-radius: 8px;
    background: #0b111c !important;
}

.nix-header .qty-btn,
.nix-header .cart-item-remove {
    border-radius: 8px;
    background: #111827 !important;
    border: 1px solid #263247 !important;
    color: #cbd5e1 !important;
}

.nix-header .qty-btn:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.nix-header .cart-item-remove:hover {
    background: rgba(248, 113, 113, .14) !important;
    border-color: rgba(248, 113, 113, .38) !important;
    color: #fca5a5 !important;
}

.nix-header .cart-item-price {
    color: #22c55e !important;
}

.nix-header .cart-footer {
    padding: 16px 18px;
    background: linear-gradient(180deg, #0b111c 0%, #080d16 100%) !important;
    border-top: 1px solid #263247 !important;
}

.nix-header .cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nix-header .cart-actions {
    grid-template-columns: 1fr;
}

.nix-header .cart-btn {
    min-height: 44px;
    border-radius: 8px;
    background: #162033 !important;
    color: #f8fafc !important;
    border: 1px solid #263247;
}

.nix-header .cart-btn.primary {
    background: #2563eb !important;
    border-color: #2563eb;
    color: #fff !important;
}

.nix-header .cart-empty {
    background: #080d16 !important;
}

.nix-header .cart-empty__icon {
    border-radius: 8px;
    background: rgba(96, 165, 250, .12) !important;
    color: #60a5fa !important;
}

.nix-header .cart-loading-skeleton {
    background: #080d16 !important;
}

/* Homepage dark redesign */
.home-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(37, 99, 235, .16), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(34, 197, 94, .09), transparent 24%),
        #070b12;
}

.home-hero--dark {
    min-height: min(720px, calc(100vh - 72px));
    padding: clamp(46px, 8vw, 96px) 0;
    display: flex;
    align-items: center;
    background: transparent;
}

.home-hero--dark .home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    min-height: 0;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(17, 24, 39, .86), rgba(11, 17, 28, .92));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}

.home-hero__eyebrow {
    width: fit-content;
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(96, 165, 250, .12);
    border: 1px solid rgba(96, 165, 250, .24);
    color: #93c5fd;
    font-size: .82rem;
    font-weight: 900;
}

.home-hero--dark .home-hero__content {
    display: grid;
    gap: 18px;
    text-align: right;
}

.home-hero--dark h1 {
    max-width: 760px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 950;
    line-height: 1.15;
}

.home-hero--dark .home-hero__desc {
    max-width: 640px;
    margin: 0;
    color: #a7b4c8;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 2;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.home-hero--dark .home-hero__button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    font-weight: 900;
}

.home-hero--dark .home-hero__button--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(148, 163, 184, .22);
    color: #f8fafc;
}

.home-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.home-hero__metrics span,
.home-hero__device span {
    min-height: 76px;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: #a7b4c8;
}

.home-hero__metrics strong {
    color: #f8fafc;
    font-size: 1.18rem;
}

.home-hero__visual {
    min-height: 420px;
    display: grid;
    place-items: center;
}

.home-hero__device {
    width: min(100%, 390px);
    min-height: 430px;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .2);
    background:
        linear-gradient(180deg, rgba(96, 165, 250, .16), transparent 34%),
        #0b111c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 28px 70px rgba(0,0,0,.38);
}

.home-hero__image {
    width: min(100%, 460px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 28px 70px rgba(0,0,0,.38);
}

.home-promo-hero {
    position: relative;
    min-height: clamp(300px, 44vw, 520px);
    display: flex;
    align-items: end;
    overflow: hidden;
    background: #0b111c;
}

.home-promo-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
}

.home-promo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,11,18,.92), rgba(7,11,18,.58), rgba(7,11,18,.28));
    z-index: 1;
}

.home-promo-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: clamp(34px, 7vw, 82px);
}

.home-promo-hero__content {
    max-width: 620px;
    display: grid;
    gap: 14px;
}

.home-promo-hero__content h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1.2;
}

.home-promo-hero__content p {
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(.96rem, 2vw, 1.12rem);
    line-height: 2;
}

.home-promo-hero__button {
    width: fit-content;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
}

.home-promo-hero--secondary::before {
    background: linear-gradient(270deg, rgba(7,11,18,.9), rgba(7,11,18,.54), rgba(7,11,18,.22));
}

.home-promo-hero--secondary .home-promo-hero__content {
    margin-right: auto;
}

.home-promo-hero--partner {
    margin-top: clamp(24px, 5vw, 54px);
}

.home-promo-hero--partner .home-promo-hero__button {
    background: #22c55e;
    color: #052e16;
}

.home-promo-hero:not(:has(.home-promo-hero__image)) {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(34, 197, 94, .08)),
        #0b111c;
}

.home-hero__device span {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    min-height: 78px;
}

.home-hero__device i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(96, 165, 250, .14);
    color: #93c5fd;
}

.home-sms-newsletter {
    padding: 0 0 clamp(34px, 6vw, 72px);
}

.home-sms-newsletter__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(20, 83, 45, .24), rgba(17, 24, 39, .92));
    box-shadow: 0 22px 60px rgba(0,0,0,.24);
}

.home-sms-newsletter__inner span {
    color: #86efac;
    font-size: .82rem;
    font-weight: 900;
}

.home-sms-newsletter__inner h2 {
    margin: 8px 0;
    color: #f8fafc;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 950;
}

.home-sms-newsletter__inner p {
    margin: 0;
    color: #a7b4c8;
}

.home-sms-newsletter__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.home-sms-newsletter__form input {
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    background: rgba(7, 11, 18, .72);
    color: #f8fafc;
    padding: 0 14px;
    direction: ltr;
    text-align: right;
}

.home-sms-newsletter__form button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #22c55e;
    color: #052e16;
    font-family: inherit;
    font-weight: 950;
    cursor: pointer;
}

.home-sms-newsletter__form button:disabled {
    cursor: wait;
    opacity: .7;
}

.home-sms-newsletter__form small {
    grid-column: 1 / -1;
    min-height: 20px;
    color: #a7b4c8;
}

.home-sms-newsletter__form small.success {
    color: #86efac;
}

.home-sms-newsletter__form small.error {
    color: #fca5a5;
}

.home-page .home-section {
    background: transparent;
}

.home-page .home-section--soft {
    background: rgba(255,255,255,.02);
}

@media (max-width: 900px) {
    .home-hero--dark .home-hero__inner,
    .home-sms-newsletter__inner {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .home-hero__metrics,
    .home-sms-newsletter__form {
        grid-template-columns: 1fr;
    }
}

/* Cart dropdown responsive final pass */
@media (max-width: 768px) {
    .nix-header .cart-dropdown-menu,
    .cart-dropdown-menu {
        position: fixed !important;
        inset: var(--header-height-mobile) 0 0 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: calc(100dvh - var(--header-height-mobile)) !important;
        max-height: none !important;
        border-radius: 0 !important;
        border-inline: 0 !important;
        overflow: hidden !important;
        transform: translateY(16px) !important;
    }

    .nix-header .cart-dropdown-menu.show,
    .cart-dropdown-menu.show {
        transform: translateY(0) !important;
    }

    .nix-header .cart-panel,
    .cart-panel {
        height: 100% !important;
        max-height: none !important;
        min-width: 0 !important;
    }

    .nix-header .cart-panel__header,
    .cart-panel__header {
        min-height: 64px;
        padding: 14px 16px !important;
    }

    .nix-header .cart-items,
    .cart-items {
        min-height: 0;
        overflow-y: auto;
        padding: 10px !important;
        -webkit-overflow-scrolling: touch;
    }

    .nix-header .cart-footer,
    .cart-footer {
        flex-shrink: 0;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    }

    .nix-header .cart-actions,
    .cart-actions {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 430px) {
    .nix-header .cart-item,
    .cart-item {
        grid-template-columns: 62px minmax(0, 1fr) !important;
        gap: 10px;
        padding: 10px !important;
    }

    .nix-header .cart-item__media,
    .cart-item__media {
        width: 62px !important;
        height: 62px !important;
    }

    .nix-header .cart-item__top,
    .cart-item__top {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .nix-header .cart-item-info h5,
    .cart-item-info h5 {
        font-size: .82rem;
        line-height: 1.55;
    }

    .nix-header .cart-item__bottom,
    .cart-item__bottom {
        display: grid;
        gap: 8px;
        justify-items: start;
    }

    .nix-header .cart-item-price,
    .cart-item-price {
        white-space: normal;
        font-size: .84rem;
    }
}
