/*
Theme Name: 7mach aff deals
Theme URI: https://7mach-aff-deals.com/
Description: Modern Affiliate & E-Commerce Theme with Cyan-Blue Design. High-performance architecture with REST API, Schema.org, and advanced features.
Version: 1.0.0
Author: 7mach Team
Requires at least: 5.0
Requires PHP: 8.0
*/

/* Global Reset & Base - Cyan-Blue Theme */
:root {
    --primary: #00BCD4;
    --primary-dark: #00ACC1;
    --primary-light: #4DD0E1;
    --accent: #FF9800;
    --accent-dark: #F57C00;
    --accent-glow: rgba(255, 152, 0, 0.35);
    --bg: #f8f9fa;
    --text: #212529;
    --header-height: 72px;
    --header-height-scrolled: 64px;
    --gap: 24px;
    --card-bg: #ffffff;
    --card-border: rgba(0,188,212,0.15);
    --overlay-bg: rgba(0,0,0,0.55);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Hero gradient */
    --hero-gradient: linear-gradient(135deg, #00BCD4 0%, #00ACC1 50%, #00838F 100%);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary: #4DD0E1;
    --primary-dark: #00BCD4;
    --accent: #FF9800;
    --bg: #121212;
    --text: #e0e0e0;
    --card-bg: #1e1e1e;
    --card-border: rgba(77, 208, 225, 0.2);
    --overlay-bg: rgba(0,0,0,0.8);
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background: rgba(30, 30, 30, 0.85);
    border-bottom-color: rgba(77, 208, 225, 0.2);
}

body.dark-mode .header-nav-left a,
body.dark-mode .header-logo a {
    color: #4DD0E1;
}

body.dark-mode .header-nav-left a::after {
    background: #4DD0E1;
}

body.dark-mode .header-icon-btn {
    color: #4DD0E1;
}

body.dark-mode .header-icon-btn:hover {
    background: rgba(77, 208, 225, 0.1);
}

body.dark-mode .bento-item,
body.dark-mode .mach-card,
body.dark-mode .mach-card {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
}

body.dark-mode .bento-item:hover,
body.dark-mode .mach-card:hover,
body.dark-mode .mach-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.4) !important;
}

body.dark-mode .bento-overlay,
body.dark-mode .bento-product-info {
    background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important;
}

body.dark-mode .site-footer {
    background: #1e1e1e;
    border-top-color: rgba(77, 208, 225, 0.2);
}

body.dark-mode .footer-logo {
    color: #4DD0E1;
}

body.dark-mode .footer-social a {
    color: #4DD0E1;
    border-color: rgba(77, 208, 225, 0.2);
}

body.dark-mode .footer-social a:hover {
    background: #4DD0E1;
    color: #121212;
    border-color: #4DD0E1;
}

body.dark-mode .footer-bottom {
    color: rgba(224, 224, 224, 0.6);
}

body.dark-mode .quick-view-content {
    background: #1a1a1a;
}

body.dark-mode .quick-view-title {
    color: #ffffff;
}

body.dark-mode .quick-view-price {
    color: #ffffff;
}

body.dark-mode .quick-view-description {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .quick-view-meta-item {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark-mode .quick-view-btn-primary {
    background: #ffffff;
    color: #0a0a0a;
}

body.dark-mode .quick-view-btn-primary:hover {
    background: #e5e5e5;
}

body.dark-mode .quick-view-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

body.dark-mode .quick-view-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

body.dark-mode .quick-view-close {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .quick-view-close:hover {
    background: rgba(255,255,255,0.2);
}

body.dark-mode .quick-view-close svg {
    stroke: #ffffff;
}

/* --- ENHANCED MICRO-INTERACTIONS & HOVER EFFECTS --- */
.masonry-item:hover,
.bento-item:hover,
.mach-card:hover,
.mach-card:hover,
.mach-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 16px 40px rgba(0, 188, 212, 0.25), 0 0 0 2px rgba(0, 188, 212, 0.15) !important;
}

body.dark-mode .masonry-item:hover,
body.dark-mode .bento-item:hover,
body.dark-mode .mach-card:hover,
body.dark-mode .mach-card:hover,
body.dark-mode .mach-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(77, 208, 225, 0.3) !important;
}

/* Button hover effects with glow */
.action-btn,
.mach-btn-view,
.mach-btn-view,
.comparison-btn,
.filter-chip {
    position: relative;
    overflow: hidden;
}

.action-btn::before,
.mach-btn-view::before,
.mach-btn-view::before,
.comparison-btn::before,
.filter-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.action-btn:hover::before,
.mach-btn-view:hover::before,
.mach-btn-view:hover::before,
.comparison-btn:hover::before,
.filter-chip:hover::before {
    width: 300px;
    height: 300px;
}

/* --- DYNAMIC MASONRY HYBRID GRID - MODERN STYLE --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 24px;
    padding: 0;
}

.masonry-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.masonry-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.masonry-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 2px rgba(126, 211, 33, 0.3);
    z-index: 10;
}

/* Dynamic spans for varying aspect ratios */
.masonry-tall { grid-row: span 3; }
.masonry-wide { grid-column: span 2; }
.masonry-small { grid-row: span 1; }
.masonry-medium { grid-row: span 2; }
.masonry-large { grid-row: span 3; grid-column: span 2; }

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

/* Modern gradient overlay */
.masonry-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.masonry-item:hover::before {
    opacity: 1;
}

/* Mobile responsive masonry */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 16px;
    }
    .masonry-tall, .masonry-wide, .masonry-large {
        grid-column: span 1;
    }
    .masonry-tall, .masonry-large {
        grid-row: span 2;
    }
}

/* --- STICKY FILTER CHIPS - MODERN STYLE --- */
.filter-chips-container {
    position: sticky;
    top: calc(72px + var(--announce-height));
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.site-header.is-scrolled ~ .filter-chips-container {
    top: calc(64px + var(--announce-height));
}

/* --- SOCIAL SHARING BUTTONS --- */
.social-share-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 0;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 16px;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-share-facebook { background: #1877f2; }
.social-share-facebook:hover { background: #0d65e9; }

.social-share-twitter { background: #1da1f2; }
.social-share-twitter:hover { background: #0c85d0; }

.social-share-pinterest { background: #e60023; }
.social-share-pinterest:hover { background: #b0001a; }

.social-share-whatsapp { background: #25d366; }
.social-share-whatsapp:hover { background: #1da851; }

.social-share-link { background: #0077b5; }
.social-share-link:hover { background: #005c92; }

/* --- FLOATING CHAT BUTTON --- */
.floating-chat {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    font-size: 24px;
}

.floating-chat-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-chat-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.floating-chat-messenger {
    background: linear-gradient(135deg, #0084ff, #0061ff);
}

.floating-chat-messenger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 132, 255, 0.4);
}

/* --- TRUST BADGES --- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 32px 24px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.2);
}

.trust-badge-icon {
    font-size: 32px;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-badge-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
}

.trust-badge-desc {
    font-size: 0.75rem;
    color: #333;
}

/* --- COUNTDOWN TIMER --- */
.countdown-timer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    margin: 32px auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,188,212,0.3);
}

.countdown-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* --- NOTIFICATION POPUP --- */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.notification-popup.is-visible {
    transform: translateX(0);
}

.notification-popup-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-popup-title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notification-popup-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.notification-popup-close:hover {
    background: rgba(255,255,255,0.3);
}

.notification-popup-content {
    padding: 20px;
}

.notification-popup-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.notification-popup-item:last-child {
    border-bottom: none;
}

.notification-popup-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.notification-popup-item-text {
    flex: 1;
}

.notification-popup-item-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.notification-popup-item-desc {
    font-size: 0.75rem;
    color: #333;
}

.notification-popup-item-price {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary);
}

/* Dark mode adjustments */
body.dark-mode .trust-badge {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .trust-badge-title {
    color: #fff;
}

body.dark-mode .trust-badge-desc {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .notification-popup {
    background: #1a1a1a;
}

body.dark-mode .notification-popup-item-title {
    color: #fff;
}

body.dark-mode .notification-popup-item-desc {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .filter-chips-container {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: rgba(255,255,255,0.1);
}

.filter-chips-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    -webkit-overflow-scrolling: touch;
}

.filter-chips-row::-webkit-scrollbar {
    height: 5px;
}

.filter-chips-row::-webkit-scrollbar-track {
    background: transparent;
}

.filter-chips-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: #fff;
    white-space: nowrap;
}

.filter-chip:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-color: #9ca3af;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
    transform: scale(1.05);
}

body.dark-mode .filter-chip {
    background: #1a1a1a;
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.2);
}

body.dark-mode .filter-chip:hover {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-color: rgba(255,255,255,0.3);
}

body.dark-mode .filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
}

/* --- INSTANT LIVE SEARCH - MODERN STYLE --- */
.live-search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 32px;
}

.live-search-input {
    width: 100%;
    padding: 18px 24px 18px 60px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.live-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(0, 188, 212, 0.15), 0 8px 30px rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
}

.live-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.3s ease;
}

.live-search-input:focus + .live-search-icon {
    color: var(--primary);
}

body.dark-mode .live-search-input {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

body.dark-mode .live-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(0, 188, 212, 0.15), 0 8px 30px rgba(0, 188, 212, 0.3);
}

body.dark-mode .live-search-icon {
    color: rgba(255,255,255,0.5);
}

/* --- COMPARISON DRAWER --- */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.comparison-bar.is-visible {
    transform: translateY(0);
}

body.dark-mode .comparison-bar {
    background: #1a1a1a;
    border-top-color: rgba(255,255,255,0.1);
}

.comparison-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.comparison-items {
    display: flex;
    gap: 16px;
    flex: 1;
}

.comparison-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.comparison-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.comparison-item-remove:hover {
    background: #ef4444;
}

.comparison-actions {
    display: flex;
    gap: 12px;
}

.comparison-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.comparison-btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.comparison-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.comparison-btn-secondary {
    background: rgba(0,0,0,0.05);
    color: #111;
}

.comparison-btn-secondary:hover {
    background: rgba(0,0,0,0.1);
}

body.dark-mode .comparison-btn-secondary {
    background: rgba(77, 208, 225, 0.1);
    color: #4DD0E1;
}

body.dark-mode .comparison-btn-secondary:hover {
    background: rgba(77, 208, 225, 0.2);
}

/* --- QUICK VIEW MODAL ENHANCED --- */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out-expo), visibility 0.3s;
}

.quick-view-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.quick-view-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

.quick-view-modal.is-open .quick-view-content {
    transform: scale(1) translateY(0);
}

.quick-view-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

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

.quick-view-details {
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-view-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.quick-view-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.quick-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-view-meta-item {
    padding: 6px 14px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111;
}

.quick-view-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.quick-view-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.quick-view-btn-primary {
    background: #111;
    color: #fff;
}

.quick-view-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.quick-view-btn-secondary {
    background: rgba(0,0,0,0.05);
    color: #111;
}

.quick-view-btn-secondary:hover {
    background: rgba(0,0,0,0.1);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.quick-view-close:hover {
    background: rgba(0,0,0,0.1);
}

.quick-view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .quick-view-image {
        min-height: 250px;
    }
    .quick-view-details {
        padding: 24px;
    }
    .quick-view-title {
        font-size: 1.4rem;
    }
    .comparison-bar-inner {
        flex-direction: column;
        gap: 16px;
    }
    .comparison-items {
        width: 100%;
        overflow-x: auto;
    }
    .comparison-item {
        flex-shrink: 0;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    color: inherit;
}

.dark-mode-toggle:hover {
    background: rgba(0,0,0,0.05);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
}

/* Smooth transition for dark mode */
body,
.site-header,
.bento-item,
.mach-card,
.mach-card,
.site-footer,
.quick-view-content {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
img { max-width: 100%; display: block; visibility: visible !important; opacity: 1 !important; }

/* Force images in product cards to display */
.product-card-image img,
.product-card-img,
.bento-item img,
.product-card-link img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- BACKGROUND --- */
body {
    position: relative;
    background: #ffffff;
}

/* --- ANNOUNCEMENT BAR --- */
.announce-bar {
    background: #111;
    color: #fff;
    height: var(--announce-height);
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.announce-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.announce-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: announcePulse 2s ease infinite;
    flex-shrink: 0;
}

.announce-bar a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.announce-bar a:hover { opacity: 0.8; }

@keyframes announcePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

body.dark-mode .announce-bar {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- HEADER - MODERN STYLE --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    height: 72px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    height: 64px;
}

body.dark-mode .site-header {
    background: rgba(26, 26, 26, 0.92);
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .site-header.is-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav-left a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.header-nav-left a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-nav-left a:hover {
    color: var(--accent);
}

.header-nav-left a:hover::after { width: 100%; }

.header-logo {
    flex: 1;
    text-align: center;
}

.header-logo a {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #111;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-logo a:hover {
    letter-spacing: 0.3em;
    color: var(--accent);
}

.header-logo a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a3e635);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-logo a:hover::after { width: 100%; }

.header-icons {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #111;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 48px;
    min-height: 48px;
}

.header-icon-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 211, 33, 0.3);
    border-color: var(--accent);
}

.header-icon-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .header-nav-left { display: none; }
    .header-left-group { flex: 0 0 auto; }
    .header-logo { flex: 1; text-align: center; }
    .header-logo a { font-size: 0.9rem; letter-spacing: 0.15em; }
    .header-inner { padding: 0 20px; }

    .header-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .header-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .bento-product-name,
    .bento-title {
        font-size: 0.75rem;
    }

    .bento-grid {
        gap: 16px;
    }

    .filter-chips-container {
        padding: 12px 20px;
    }

    .filter-chip {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* --- HAMBURGER MENU TOGGLE --- */
.header-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #111;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    margin-right: 8px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

.header-menu-toggle:hover { background: rgba(0,0,0,0.05); }
.header-menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- SIDEBAR MEGA MENU --- */
.sidebar-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #1a1a2e;
    color: #fff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-menu.is-open {
    transform: translateX(0);
}

.sidebar-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-menu-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
    color: #fff;
}

.sidebar-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.sidebar-menu-close:hover { background: rgba(255,255,255,0.2); }

.sidebar-menu-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.sidebar-menu-nav,
.sidebar-submenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 8px 20px 28px;
    transition: transform 0.35s ease;
}

.sidebar-menu-nav {
    transform: translateX(0);
}

.sidebar-menu.has-submenu-active .sidebar-menu-nav {
    transform: translateX(-100%);
}

.sidebar-submenu {
    transform: translateX(100%);
}

.sidebar-submenu.is-active {
    transform: translateX(0);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.2s;
    min-height: 48px;
}

.sidebar-menu-item:hover { opacity: 0.8; }
.sidebar-menu-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.sidebar-menu-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-menu-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.sidebar-menu-item-desc {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
}

.sidebar-menu-arrow {
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
}

.sidebar-submenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.sidebar-submenu-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-submenu-back:hover { background: rgba(255,255,255,0.2); }

.sidebar-submenu-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.sidebar-submenu-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.2s;
}

.sidebar-submenu-item:hover { opacity: 0.8; }

.sidebar-submenu-item::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid rgba(255,255,255,0.4);
    border-right: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
}

.sidebar-popular-section {
    margin-top: 8px;
    margin-bottom: 8px;
}

.sidebar-popular-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin: 0 0 14px;
}

.sidebar-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sidebar-popular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-align: center;
    transition: transform 0.2s;
}

.sidebar-popular-item:hover { transform: translateY(-2px); }

.sidebar-popular-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-popular-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-popular-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
}

.sidebar-shop-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding: 14px 20px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.sidebar-shop-all:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sidebar-menu { width: 100%; max-width: 100%; }
    .sidebar-popular-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- MAIN --- */
.site-main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* --- BENTO GRID - MODERN STYLE --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.bento-item:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.bento-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 2px rgba(126, 211, 33, 0.3);
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease-out-expo);
    z-index: 0;
    pointer-events: none;
}

.bento-item:hover::before {
    transform: translateX(100%);
}

.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: auto;
}

.bento-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-link img { transform: scale(1.05); }

/* แก้ไขปัญหาภาพหาย: ซูมขยายภาพอย่างเดียว ปลอดภัยที่สุด */
.bento-product-images {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bento-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

/* Additional styles for product cards to ensure images display */
.product-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 200px !important;
}

/* CRITICAL: Force all product card images to display */
.bento-item img,
.product-card-image img,
.product-card-link img,
.masonry-item img,
.mach-card img,
.mach-card-img-wrap img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-height: 200px !important;
    background: #f5f5f5 !important;
}

.bento-product-img-secondary {
    display: none !important;
}

.bento-item:hover .bento-product-img,
.mach-card:hover .mach-card-img-wrap img {
    transform: scale(1.05);
}

/* Dynamic Status Badges */
.bento-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-top-seller {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
}

.badge-selling-fast {
    background: linear-gradient(135deg, #ffd93d, #f0b429);
    color: #fff;
    box-shadow: 0 4px 12px rgba(240, 180, 41, 0.4);
}

.badge-new-drop {
    background: linear-gradient(135deg, #6bcf7f, #4ade80);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.badge-custom {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Glassmorphic Quick Action Overlay */
.bento-item .glassmorphic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    z-index: 5;
    pointer-events: none;
}

.bento-item:hover .glassmorphic-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.glassmorphic-overlay .glassmorphic-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #111827;
}

.glassmorphic-overlay .glassmorphic-action-btn:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .glassmorphic-overlay .glassmorphic-action-btn {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .glassmorphic-overlay .glassmorphic-action-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.glassmorphic-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.glassmorphic-action-btn:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .glassmorphic-action-btn {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .glassmorphic-action-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Sticky Pill Navigation (Category Filter) - Legacy Support */
.mach-tax-nav {
    position: sticky;
    top: 100px;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--ease-out-expo);
}

body.dark-mode .mach-tax-nav {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mach-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.mach-chip-row::-webkit-scrollbar {
    height: 4px;
}

.mach-chip-row::-webkit-scrollbar-track {
    background: transparent;
}

.mach-chip-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.mach-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s var(--ease-out-expo);
    background: #fff;
}

.mach-chip:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.mach-chip--active,
.mach-chip:active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    text-decoration: none;
}

body.dark-mode .mach-chip {
    background: #1a1a1a;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .mach-chip:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .mach-chip--active,
body.dark-mode .mach-chip:active {
    background: #fff;
    color: #111827;
    border-color: #fff;
}

/* Enhanced Marquee Ticker */
.tp-marquee {
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tp-marquee {
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a, #0a0a0a);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.tp-marquee-track {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tp-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-marquee-item strong {
    color: #7ed321;
    margin-left: 4px;
}

.tp-marquee-sep {
    color: rgba(255, 255, 255, 0.3);
    margin-left: 8px;
}

/* On-Card Color Swatches */
.bento-color-swatches {
    position: absolute;
    bottom: 60px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.bento-item:hover .bento-color-swatches {
    opacity: 1;
    transform: translateY(0);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-swatch:active {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #111827;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .color-swatch {
    border-color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #111827, 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hero Card Video/GIF Background */
.bento-product-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-product-media video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Dark Mode Enhancements for New Features */
body.dark-mode .bento-status-badge {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .bento-color-swatches {
    bottom: 60px;
}

body.dark-mode .glassmorphic-overlay {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .color-overlay {
    opacity: 0.4 !important;
}

/* Overlay for collection blocks */
.bento-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    z-index: 5;
}

.bento-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    margin-top: 6px;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.bento-item:hover .bento-cta {
    opacity: 1;
    transform: translateY(0);
}

.bento-cta::after {
    content: '→';
    transition: transform 0.3s var(--ease-spring);
}

.bento-item:hover .bento-cta::after {
    transform: translateX(4px);
}

/* Product card info - Modern Style */
.bento-item .bento-product-info,
.masonry-item .bento-product-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.75)) !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff !important;
    border-top: none !important;
    z-index: 2;
}

.bento-item .bento-product-name,
.masonry-item .bento-product-name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff !important;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bento-item .bento-product-price,
.masonry-item .bento-product-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Grid spans (desktop) - 6-column dense grid */
.bento-tall { grid-column: span 2; grid-row: span 3; }
.bento-wide { grid-column: span 3; grid-row: span 2; }
.bento-tall-mid { grid-column: span 1; grid-row: span 2; }
.bento-product { grid-column: span 1; grid-row: span 2; }
.bento-mid-wide { grid-column: span 2; grid-row: span 2; }

/* Mobile grid */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .bento-tall, .bento-wide, .bento-tall-mid, .bento-product, .bento-mid-wide {
        grid-column: span 2;
    }
    .bento-tall, .bento-tall-mid {
        min-height: 300px;
    }

    .bento-status-badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

    .bento-color-swatches {
        bottom: 50px;
        left: 8px;
        gap: 4px;
    }

    .color-swatch {
        width: 16px;
        height: 16px;
    }

    .glassmorphic-overlay .glassmorphic-action-btn {
        width: 36px;
        height: 36px;
    }

    .glassmorphic-overlay .glassmorphic-action-btn svg {
        width: 14px;
        height: 14px;
    }

    .mach-tax-nav {
        top: 64px;
        padding: 8px 0;
    }

    .mach-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .tp-marquee-item {
        font-size: 0.7rem;
        padding: 0 12px;
    }
}

/* --- SKELETON LOADING WITH SHIMMER EFFECTS --- */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 120px;
    grid-auto-flow: dense;
    gap: var(--gap);
    width: 100%;
}

.skeleton-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.skeleton-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmerGlow 2s infinite;
}

body.dark-mode .skeleton-item {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .skeleton-item::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}

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

@keyframes shimmerGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-tall { grid-column: span 2; grid-row: span 4; }
.skeleton-wide { grid-column: span 3; grid-row: span 1; }
.skeleton-tall-mid { grid-column: span 1; grid-row: span 3; }
.skeleton-product { grid-column: span 1; grid-row: span 2; }
.skeleton-mid-wide { grid-column: span 2; grid-row: span 1; }

@media (max-width: 768px) {
    .skeleton-loader {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .skeleton-tall, .skeleton-wide, .skeleton-tall-mid, .skeleton-product, .skeleton-mid-wide {
        grid-column: span 2;
    }
    .skeleton-tall, .skeleton-tall-mid {
        grid-row: span 4;
        min-height: 420px;
    }
    .skeleton-product {
        grid-row: span 3;
        min-height: 320px;
    }
    .skeleton-wide, .skeleton-mid-wide {
        grid-row: span 2;
        min-height: 220px;
    }
}

.infinite-scroll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 12px;
}

.infinite-scroll-loader span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

body.dark-mode .infinite-scroll-loader span {
    color: rgba(255,255,255,0.7);
}

.infinite-scroll-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

body.dark-mode .infinite-scroll-spinner {
    border-color: rgba(255,255,255,0.2);
    border-top-color: #fff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- LOAD MORE & SHOP ALL - MODERN STYLE --- */
.bento-load-more-wrap {
    margin-top: 48px;
    text-align: center;
}
#bento-load-more,
.action-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
#bento-load-more:hover,
.action-btn:hover {
    background: linear-gradient(135deg, var(--accent), #a3e635);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(126, 211, 33, 0.4);
}
#bento-load-more:disabled,
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bento-pagination {
    margin-top: 32px;
    text-align: center;
}
.bento-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bento-pagination .page-numbers.current {
    background: #111;
    color: #fff;
    border-color: #111;
}
.bento-pagination .page-numbers:hover:not(.current) {
    background: rgba(0,0,0,0.04);
}
.bento-pagination .prev,
.bento-pagination .next {
    padding: 0 14px;
}

.bento-shop-all {
    margin-top: 24px;
    text-align: center;
}
.bento-shop-all a {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border: 2px solid #111;
    transition: background 0.2s, color 0.2s;
    min-width: 150px;
    text-align: center;
}
.bento-shop-all a:hover {
    background: #fff;
    color: #111;
}

/* --- SIDEBAR --- */
.widget-area {
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
}

body.dark-mode .widget-area {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

.widget {
    margin-bottom: 32px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #111;
}

body.dark-mode .widget-title {
    color: #fff;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 8px;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget a:hover {
    color: var(--accent);
}

body.dark-mode .widget a {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .widget a:hover {
    color: var(--accent);
}

/* --- CATALOG PAGE --- */
.catalog-page-wrapper {
    position: relative;
    z-index: 1;
    background: #fff;
}

.catalog-header {
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.catalog-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: #111;
}

.catalog-subtitle {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

body.dark-mode .catalog-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .catalog-title {
    color: #fff;
}

body.dark-mode .catalog-subtitle {
    color: rgba(255,255,255,0.7);
}

.catalog-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* แก้ไขปัญหาหน้า Catalog: เปลี่ยนเป็น Grid แบบแถวปกติเพื่อป้องกันช่องโหว่ (Gap) หลุดลุ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-auto-flow: row;
}

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

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .catalog-header {
        padding: 40px 20px 30px;
    }
    
    .catalog-title {
        font-size: 2rem;
    }
    
    .catalog-subtitle {
        font-size: 1rem;
    }
}

.catalog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.catalog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #333;
}

body.dark-mode .catalog-empty {
    color: rgba(255,255,255,0.7);
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-top: 3px solid var(--primary);
    padding: 80px 32px 32px;
    overflow: hidden;
}

/* Decorative Background */
.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 2;
}

/* Stats Section */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 188, 212, 0.3));
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #00BCD4, #4DD0E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-brand {
    display: flex;
    justify-content: center;
}

.footer-logo {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #7ed321;
    transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.8; }

.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.7rem;
    color: #777;
}

.footer-bottom p { margin: 0; }

/* --- Archive & Single Product Cards - Modern Style --- */
.mach-card,
.mach-card,
.mach-card {
    position: relative;
    z-index: 2;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mach-card:hover,
.mach-card:hover,
.mach-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 2px rgba(126, 211, 33, 0.2) !important;
    transform: translateY(-8px) scale(1.02);
}

.mach-card-img-wrap,
.mach-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e5e5e5) !important;
    position: relative;
}

.mach-card-img-wrap::before,
.mach-card-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mach-card:hover .mach-card-img-wrap::before,
.mach-card:hover .mach-card-img-wrap::before {
    opacity: 1;
}

.mach-card-img-wrap img,
.mach-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mach-card:hover .mach-card-img-wrap img,
.mach-card:hover .mach-card-img-wrap img {
    transform: scale(1.1);
}

.mach-card-content,
.mach-card-content {
    padding: 20px !important;
    background: #fff !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mach-card-title,
.mach-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
}

.mach-card-title a,
.mach-card-title a {
    color: #111;
    transition: color 0.3s ease;
}

.mach-card-title a:hover,
.mach-card-title a:hover {
    color: var(--accent);
}

.mach-card-price,
.mach-card-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
}

.mach-btn-view,
.mach-btn-view {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #111, #333);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mach-btn-view:hover,
.mach-btn-view:hover {
    background: linear-gradient(135deg, var(--accent), #a3e635);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.4);
}

/* --- Archive & Single: solid cards over blurred background --- */
.mach-main-content,
.mach-single-wrap,
.mach-related {
    position: relative;
    z-index: 2;
    background: #fff !important;
    isolation: isolate;
}

.mach-shell {
    position: relative;
    z-index: 2;
    background: #fff !important;
    isolation: isolate;
}

.mach-single-wrap {
    padding: 40px 20px 64px;
}

.mach-grid {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 768px) {
    .mach-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.mach-single-layout {
    position: relative;
    z-index: 3;
    background: #fff !important;
    isolation: isolate;
}

.mach-single-media,
.mach-single-info {
    position: relative;
    z-index: 3;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.mach-single-info {
    padding: 24px;
}

.mach-storefront {
    position: relative;
    z-index: 2;
    background: #fff !important;
}

@media (max-width: 768px) {
    .footer-logo { font-size: 2rem; }
}

/* --- QUICK VIEW MODAL --- */
.quick-view-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.quick-view-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.quick-view-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.quick-view-modal.is-open .quick-view-content {
    transform: scale(1) translateY(0);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.quick-view-close:hover {
    background: rgba(0,0,0,0.2);
}

.quick-view-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quick-view-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-view-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.quick-view-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}

.quick-view-description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

.quick-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.quick-view-meta-item {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-weight: 600;
}

.quick-view-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.quick-view-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.quick-view-btn-primary {
    background: #111;
    color: #fff;
}

.quick-view-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.quick-view-btn-secondary {
    background: #f5f5f5;
    color: #111;
}

.quick-view-btn-secondary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.quick-view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #333;
}

@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
    }
    
    .quick-view-image {
        min-height: 300px;
    }
    
    .quick-view-details {
        padding: 24px;
    }
    
    .quick-view-title {
        font-size: 1.25rem;
    }
}

/* --- WISHLIST SYSTEM --- */
.wishlist-btn {
    position: relative;
}

.quick-view-trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-view-trigger svg {
    width: 16px;
    height: 16px;
    stroke: #111;
    stroke-width: 2;
    fill: none;
}

.bento-item:hover .quick-view-trigger,
.mach-card:hover .quick-view-trigger,
.mach-card:hover .quick-view-trigger {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-trigger:hover {
    background: #fff;
    transform: translateY(0) scale(1.1);
}

body.dark-mode .quick-view-trigger {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .quick-view-trigger svg {
    stroke: #fff;
}

body.dark-mode .quick-view-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.wishlist-btn.is-active {
    color: #ef4444 !important;
}

.wishlist-btn.is-active::after {
    content: '♥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    color: #ef4444;
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-heart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #111;
    stroke-width: 2;
    transition: fill 0.2s, stroke 0.2s;
}

.wishlist-heart:hover {
    opacity: 1;
    transform: translateY(0);
}

.bento-item:hover .wishlist-heart,
.mach-card:hover .wishlist-heart,
.mach-card:hover .wishlist-heart {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-heart.is-active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.wishlist-heart.is-active {
    background: rgba(255,255,255,1);
    border-color: #ef4444;
}

/* Wishlist Sidebar */
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

body.dark-mode .wishlist-sidebar {
    background: #1a1a1a;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
}

.wishlist-sidebar.is-open {
    transform: translateX(0);
}

.wishlist-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .wishlist-sidebar-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.wishlist-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

body.dark-mode .wishlist-sidebar-title {
    color: #fff;
}

.wishlist-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

body.dark-mode .wishlist-sidebar-close {
    background: rgba(255,255,255,0.1);
}

.wishlist-sidebar-close:hover {
    background: rgba(0,0,0,0.1);
}

body.dark-mode .wishlist-sidebar-close:hover {
    background: rgba(255,255,255,0.2);
}

.wishlist-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #333;
}

body.dark-mode .wishlist-empty {
    color: rgba(255,255,255,0.6);
}

.wishlist-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.wishlist-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

body.dark-mode .wishlist-item {
    background: rgba(255,255,255,0.05);
}

.wishlist-item:hover {
    transform: translateX(-4px);
}

.wishlist-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wishlist-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

body.dark-mode .wishlist-item-title {
    color: #fff;
}

.wishlist-item-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
}

body.dark-mode .wishlist-item-price {
    color: #fff;
}

.wishlist-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wishlist-item-remove:hover {
    background: rgba(239,68,68,0.2);
}

.wishlist-item-remove svg {
    width: 14px;
    height: 14px;
    stroke: #ef4444;
}

.wishlist-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .wishlist-sidebar-footer {
    border-top-color: rgba(255,255,255,0.1);
}

.wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.wishlist-count.has-items {
    opacity: 1;
    transform: scale(1);
}

.wishlist-trigger {
    position: relative;
}

/* --- FLOATING ACTION BUTTON --- */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-end;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

body.dark-mode .fab-main {
    background: #fff;
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.fab-main svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.fab-main.is-active svg {
    transform: rotate(45deg);
}

.fab-menu {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-container.is-open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    position: relative;
}

body.dark-mode .fab-item {
    background: #1a1a1a;
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.fab-item:hover {
    transform: scale(1.1);
    background: #f5f5f5;
}

body.dark-mode .fab-item:hover {
    background: rgba(255,255,255,0.1);
}

.fab-item svg {
    width: 20px;
    height: 20px;
}

.fab-item::after {
    content: attr(data-label);
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

.fab-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.fab-badge.has-items {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 52px;
        height: 52px;
    }
    
    .fab-item {
        width: 44px;
        height: 44px;
    }
    
    .fab-item::after {
        display: none;
    }
}

/* --- PRODUCT COMPARISON SYSTEM --- */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 16px 24px;
    z-index: 9997;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

body.dark-mode .compare-bar {
    background: #1a1a1a;
    border-top-color: rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.compare-bar.is-visible {
    transform: translateY(0);
}

.compare-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.compare-items {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 250px;
    position: relative;
}

body.dark-mode .compare-item {
    background: rgba(255,255,255,0.05);
}

.compare-item-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.compare-item-info {
    flex: 1;
    min-width: 0;
}

.compare-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

body.dark-mode .compare-item-title {
    color: #fff;
}

.compare-item-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111;
}

body.dark-mode .compare-item-price {
    color: #fff;
}

.compare-item-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.compare-item-remove:hover {
    background: rgba(239,68,68,0.2);
}

.compare-item-remove svg {
    width: 12px;
    height: 12px;
    stroke: #ef4444;
}

.compare-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.compare-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

body.dark-mode .compare-count {
    color: rgba(255,255,255,0.7);
}

.compare-btn {
    padding: 10px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

body.dark-mode .compare-btn {
    background: #fff;
    color: #0a0a0a;
}

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

body.dark-mode .compare-btn:hover {
    background: #e5e5e5;
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compare-clear {
    padding: 10px 16px;
    background: transparent;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-mode .compare-clear {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
}

.compare-clear:hover {
    background: rgba(0,0,0,0.05);
}

body.dark-mode .compare-clear:hover {
    background: rgba(255,255,255,0.1);
}

/* Comparison Modal */
.compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.compare-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.compare-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

body.dark-mode .compare-modal-content {
    background: #1a1a1a;
}

.compare-modal.is-open .compare-modal-content {
    transform: scale(1) translateY(0);
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .compare-modal-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.compare-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

body.dark-mode .compare-modal-title {
    color: #fff;
}

.compare-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

body.dark-mode .compare-modal-close {
    background: rgba(255,255,255,0.1);
}

.compare-modal-close:hover {
    background: rgba(0,0,0,0.1);
}

body.dark-mode .compare-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.compare-modal-body {
    padding: 24px;
}

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

.compare-product-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

body.dark-mode .compare-product-card {
    background: rgba(255,255,255,0.05);
}

.compare-product-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.compare-product-details {
    padding: 16px;
}

.compare-product-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

body.dark-mode .compare-product-title {
    color: #fff;
}

.compare-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

body.dark-mode .compare-product-price {
    color: #fff;
}

.compare-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-meta-tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-weight: 600;
}

body.dark-mode .compare-meta-tag {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.compare-product-actions {
    margin-top: 16px;
}

.compare-view-btn {
    width: 100%;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

body.dark-mode .compare-view-btn {
    background: #fff;
    color: #0a0a0a;
}

.compare-view-btn:hover {
    background: #333;
}

body.dark-mode .compare-view-btn:hover {
    background: #e5e5e5;
}

.compare-trigger {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compare-trigger svg {
    width: 16px;
    height: 16px;
}

.bento-item:hover .compare-trigger,
.mach-card:hover .compare-trigger,
.mach-card:hover .compare-trigger {
    opacity: 1;
    transform: translateY(0);
}

.compare-trigger.is-active {
    background: #111;
    border-color: #111;
}

.compare-trigger.is-active svg {
    stroke: #fff;
}

body.dark-mode .compare-trigger.is-active {
    background: #fff;
    border-color: #fff;
}

body.dark-mode .compare-trigger.is-active svg {
    stroke: #0a0a0a;
}

@media (max-width: 768px) {
    .compare-bar {
        padding: 12px 16px;
    }

    .compare-bar-inner {
        flex-direction: column;
        gap: 12px;
    }

    .compare-items {
        width: 100%;
    }

    .compare-item {
        min-width: 150px;
        max-width: 180px;
    }

    .compare-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- SINGLE PRODUCT SIDEBAR --- */
.mach-single-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.mach-single-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mach-sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.08);
}

body.dark-mode .mach-sidebar-section {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

.mach-sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111;
}

body.dark-mode .mach-sidebar-title {
    color: #fff;
}

.mach-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mach-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.mach-sidebar-item:hover {
    transform: translateY(-4px);
}

.mach-sidebar-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

body.dark-mode .mach-sidebar-img {
    background: rgba(255,255,255,0.05);
}

.mach-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mach-sidebar-item:hover .mach-sidebar-img img {
    transform: scale(1.05);
}

.mach-sidebar-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #999;
}

body.dark-mode .mach-sidebar-img-placeholder {
    color: rgba(255,255,255,0.3);
}

.mach-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mach-sidebar-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.dark-mode .mach-sidebar-item-title {
    color: #fff;
}

.mach-sidebar-item-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ef4444;
}

.mach-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mach-sidebar-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

body.dark-mode .mach-sidebar-cat {
    background: rgba(255,255,255,0.05);
}

.mach-sidebar-cat:hover {
    background: #e5e5e5;
}

body.dark-mode .mach-sidebar-cat:hover {
    background: rgba(255,255,255,0.1);
}

.mach-sidebar-cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
}

body.dark-mode .mach-sidebar-cat-name {
    color: #fff;
}

.mach-sidebar-cat-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

body.dark-mode .mach-sidebar-cat-count {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
}

.mach-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mach-sidebar-link {
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
    transition: background 0.2s ease;
}

body.dark-mode .mach-sidebar-link {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mach-sidebar-link:hover {
    background: #e5e5e5;
}

body.dark-mode .mach-sidebar-link:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
    .mach-single-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .mach-single-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .mach-sidebar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mach-single-sidebar {
        grid-template-columns: 1fr;
    }

    .mach-sidebar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mach-sidebar-section {
        padding: 16px;
    }
}

/* --- BANNER PLACEMENT SPOTS --- */
.banner-spot-hero {
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: 16px auto 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.banner-spot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(126, 211, 33, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(118, 75, 162, 0.4) 0%, transparent 50%);
    animation: heroMesh 8s ease-in-out infinite alternate;
    z-index: 1;
}

.banner-spot-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

@keyframes heroMesh {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

body.dark-mode .banner-spot-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.banner-spot-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.banner-spot-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    color: #fff;
}

.banner-spot-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.banner-spot-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: badgeFloat 3s ease-in-out infinite;
}

.banner-spot-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: announcePulse 1.5s ease infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.banner-spot-hero-desc {
    font-size: 1rem;
    margin: 0 0 24px;
    opacity: 0.9;
}

.banner-spot-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.banner-spot-hero-btn::after {
    content: '→';
    transition: transform 0.3s var(--ease-spring);
}

.banner-spot-hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    background: var(--accent);
    color: #111;
}

.banner-spot-hero-btn:hover::after {
    transform: translateX(4px);
}

.banner-spot-medium {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .banner-spot-medium {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.banner-spot-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.banner-spot-medium-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    color: #fff;
}

.banner-spot-medium-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-spot-medium-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.banner-spot-medium-btn:hover {
    transform: translateY(-2px);
}

.banner-spot-small {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

body.dark-mode .banner-spot-small {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
}

.banner-spot-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.banner-spot-small-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 16px;
    color: #fff;
}

.banner-spot-small-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-spot-small-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.banner-spot-small-btn:hover {
    transform: translateY(-2px);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.banner-grid .banner-spot-medium {
    margin: 0;
}

.banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    height: 32px;
    border-radius: 16px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    transition: background 0.2s ease;
}

.banner-close:hover {
    background: rgba(0,0,0,0.5);
}

.banner-close-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}

.banner-close-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 10;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .banner-spot-hero {
        min-height: 200px;
        margin-bottom: 24px;
    }

    .banner-spot-hero-title {
        font-size: 1.5rem;
    }

    .banner-spot-hero-desc {
        font-size: 0.9rem;
    }

    .banner-spot-medium {
        min-height: 150px;
        margin-bottom: 16px;
    }

    .banner-spot-small {
        min-height: 120px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-spot-hero,
.banner-spot-medium,
.banner-spot-small {
    animation: bannerFadeIn 0.5s ease;
}

.banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
}

.banner-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* --- STATS STRIP --- */
.tp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 4px;
}

.tp-stat {
    text-align: center;
    padding: 20px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.tp-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tp-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.tp-stat-num .tp-accent { color: var(--accent); }

.tp-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
}

body.dark-mode .tp-stat-num { color: #fff; }

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

/* --- SEARCH MODAL --- */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 24px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-box {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.4s var(--ease-out-expo);
}

.search-modal.is-open .search-modal-box {
    transform: translateY(0) scale(1);
}

.search-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-modal-input-wrap svg {
    flex-shrink: 0;
    color: #888;
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: #111;
}

.search-modal-input::placeholder { color: #bbb; }

.search-modal-hints {
    padding: 16px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-modal-hint-label {
    width: 100%;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 4px;
}

.search-modal-hint {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.search-modal-hint:hover {
    background: #111;
    color: #fff;
}

body.dark-mode .search-modal-box { background: #1a1a1a; }
body.dark-mode .search-modal-input { color: #fff; }
body.dark-mode .search-modal-input-wrap { border-color: rgba(255,255,255,0.08); }
body.dark-mode .search-modal-hint { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
body.dark-mode .search-modal-hint:hover { background: var(--accent); color: #111; }

/* --- ENHANCED BUTTONS --- */
#bento-load-more {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#bento-load-more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

#bento-load-more:hover::after {
    transform: translateX(100%);
}

#bento-load-more:hover {
    background: var(--accent);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.bento-shop-all a {
    border-radius: 999px;
    letter-spacing: 0.12em;
    transition: all 0.3s var(--ease-out-expo);
}

.bento-shop-all a:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* --- PRODUCT BADGE --- */
.bento-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 4px 10px;
    background: var(--accent);
    color: #111;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.bento-badge.is-hot {
    background: #ef4444;
    color: #fff;
}

/* --- ENHANCED FOOTER --- */
.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links-col {
    min-width: 150px;
}

.footer-links-col h4 {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #111;
}

.footer-links-col a {
    display: block;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.2s, transform 0.2s;
}

.footer-links-col a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

body.dark-mode .footer-links-col h4 { color: #fff; }

/* --- PRICE COUNTDOWN TIMER --- */
.price-countdown-wrapper {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.countdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.countdown-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-timer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.countdown-block {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 56px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .countdown-block {
        min-width: 48px;
        padding: 6px 8px;
    }

    .countdown-value {
        font-size: 1.25rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }
}

/* --- SOCIAL PROOF INDICATORS --- */
.social-proof-indicators {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.social-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00BCD4;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.social-proof-icon {
    font-size: 0.9rem;
}

.social-proof-text {
    color: #333;
}

body.dark-mode .social-proof-item {
    background: rgba(77, 208, 225, 0.15);
    border-color: rgba(77, 208, 225, 0.3);
}

body.dark-mode .social-proof-text {
    color: rgba(255, 255, 255, 0.9);
}

.social-proof-viewing {
    animation: viewingPulse 3s ease-in-out infinite;
}

@keyframes viewingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.social-proof-sold {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

body.dark-mode .social-proof-sold {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
}

/* --- DAILY FLASH DEALS --- */
.daily-flash-deals {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 32px;
    margin: 48px 0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.daily-flash-deals::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    animation: flashRotate 20s linear infinite;
}

@keyframes flashRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.flash-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.flash-deals-title-group {
    flex: 1;
}

.flash-deals-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-icon {
    font-size: 2.5rem;
    animation: flashPulse 1.5s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.flash-deals-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.flash-deals-countdown {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
}

.countdown-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.countdown-time {
    display: block;
    color: #FF9800;
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.flash-deal-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.flash-deal-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.3);
}

.flash-deal-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.flash-deal-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.flash-deal-card:hover .flash-deal-image img {
    transform: scale(1.1);
}

.flash-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF9800;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.8); }
}

.flash-deal-content {
    padding: 16px;
}

.flash-deal-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-deal-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-regular {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.price-sale {
    color: #FF9800;
    font-size: 1.25rem;
    font-weight: 800;
}

.flash-deal-cta {
    display: inline-block;
    padding: 8px 16px;
    background: #FF9800;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.flash-deal-card:hover .flash-deal-cta {
    background: #F57C00;
}

.flash-deals-footer {
    text-align: center;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.flash-deals-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.flash-deals-view-all:hover {
    background: rgba(255, 152, 0, 0.3);
    border-color: #FF9800;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .flash-deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .daily-flash-deals {
        padding: 32px 16px;
        margin: 32px 0;
    }

    .flash-deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .flash-deals-title {
        font-size: 1.5rem;
    }

    .flash-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .flash-deals-countdown {
        width: 100%;
    }
}

/* --- CAMPAIGN COLLECTIONS --- */
.campaign-collections {
    padding: 48px 32px;
    background: #f8f9fa;
    margin: 48px 0;
}

body.dark-mode .campaign-collections {
    background: #1a1a1a;
}

.campaign-header {
    text-align: center;
    margin-bottom: 40px;
}

.campaign-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}

body.dark-mode .campaign-title {
    color: #fff;
}

.campaign-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

body.dark-mode .campaign-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.campaign-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--campaign-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark-mode .campaign-card {
    background: #2a2a2a;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--campaign-color);
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.campaign-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.campaign-icon {
    font-size: 3rem;
    line-height: 1;
}

.campaign-info {
    flex: 1;
}

.campaign-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 4px;
}

body.dark-mode .campaign-card-title {
    color: #fff;
}

.campaign-card-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

body.dark-mode .campaign-card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.campaign-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.campaign-product-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

body.dark-mode .campaign-product-thumb {
    background: rgba(255, 255, 255, 0.05);
}

.campaign-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campaign-card:hover .campaign-product-thumb img {
    transform: scale(1.1);
}

.campaign-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--campaign-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.campaign-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--campaign-color);
}

@media (max-width: 768px) {
    .campaign-collections {
        padding: 32px 16px;
        margin: 32px 0;
    }

    .campaign-title {
        font-size: 1.5rem;
    }

    .campaign-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .campaign-products {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

/* --- GAMIFICATION WIDGET --- */
.gamification-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.gamification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-level-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.level-icon {
    font-size: 1.5rem;
}

.level-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.user-points {
    text-align: right;
}

.points-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.points-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.level-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #FFD700;
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.9;
}

.user-badges {
    margin-bottom: 20px;
}

.badges-label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.badges-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: help;
    transition: transform 0.2s;
}

.badge-item:hover {
    transform: scale(1.2);
}

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

.view-leaderboard {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-leaderboard:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .gamification-widget {
        padding: 20px 16px;
        margin: 20px 0;
    }

    .points-value {
        font-size: 1.25rem;
    }
}
body.dark-mode .footer-links-col a { color: rgba(255,255,255,0.6); }
body.dark-mode .footer-links-col a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }
    
    .footer-links-col {
        text-align: center;
    }
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    max-width: 360px;
    width: 100%;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-newsletter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.footer-newsletter button {
    padding: 12px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.footer-newsletter button:hover {
    background: var(--accent);
    color: #111;
    transform: scale(1.05);
}

body.dark-mode .footer-newsletter input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

body.dark-mode .footer-newsletter button {
    background: #fff;
    color: #111;
}

/* --- CURSOR GLOW (desktop) --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body.has-cursor-glow .cursor-glow {
    opacity: 1;
}

/* --- MAGNETIC CARD EFFECT --- */
.magnetic-active {
    transition: transform 0.1s ease-out;
}

@media (max-width: 1024px) {
    .magnetic-active {
        transform: none !important;
    }
}

/* --- SECTION HEADING --- */
.tp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
}

.tp-section-head h2 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}

.tp-section-head a {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.2s;
}

.tp-section-head a:hover { color: var(--accent); }

/* --- HOMEPAGE ACTIONS SECTION --- */
.homepage-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 0 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
    min-width: 140px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    background: var(--primary);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.dark-mode .action-btn {
    background: white;
    color: var(--primary);
}

/* --- CONTAINER CLASS --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* --- FEATURED CATEGORIES SECTION --- */
.featured-categories-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-category-card {
    position: relative;
    padding: 40px 24px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.featured-category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-category-card:hover::before {
    opacity: 1;
}

.featured-category-content {
    position: relative;
    z-index: 1;
}

.featured-category-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.featured-category-count {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a2e 100%);
    color: white;
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.newsletter-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s, border-color 0.3s;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

.newsletter-btn {
    padding: 16px 24px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 211, 33, 0.4);
    background: #8ed42e;
}

/* --- SOCIAL PROOF SECTION --- */
.social-proof-section {
    padding: 60px 20px;
    background: white;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-proof-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.social-proof-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.social-proof-text {
    display: flex;
    flex-direction: column;
}

.social-proof-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.social-proof-label {
    font-size: 0.875rem;
    color: #333;
    font-weight: 500;
}

/* Dark Mode for New Sections */
body.dark-mode .featured-categories-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a2e 100%);
}

body.dark-mode .social-proof-section {
    background: #1a1a1a;
}

body.dark-mode .social-proof-item {
    background: #2a2a2a;
}

body.dark-mode .social-proof-number {
    color: var(--accent);
}

body.dark-mode .social-proof-label {
    color: rgba(255,255,255,0.7);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .bento-item,
    .banner-spot-hero,
    .tp-marquee-track,
    .announce-bar-dot {
        animation: none !important;
        transition: none !important;
    }
    .bento-item { opacity: 1; transform: none; }
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
.bento-item,
.mach-card,
.mach-card,
.footer-links-col,
.sidebar-menu-item {
    contain: layout;
}

.bento-item:hover,
.header-icon-btn:hover,
.action-btn:hover,
.quick-view-modal.is-open .quick-view-content {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

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

    .bento-tall, .bento-wide {
        grid-column: span 2;
    }

    .bento-color-swatches {
        bottom: 55px;
    }

    .mach-tax-nav {
        top: 80px;
    }

    .tp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .glassmorphic-overlay .glassmorphic-action-btn {
        width: 40px;
        height: 40px;
    }
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .site-header,
    .announce-bar,
    .sidebar-menu,
    .wishlist-sidebar,
    .dark-mode-toggle,
    .header-icon-btn,
    .action-btn,
    .newsletter-section,
    .social-proof-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bento-grid {
        display: block;
    }
    
    .bento-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* ============================================================
   PERFORMANCE SPEED BOOST OPTIMIZATIONS (Content-Visibility)
   ============================================================ */
.mach-related, 
.site-footer, 
.featured-categories-section,
.newsletter-section,
.social-proof-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

/* Hardware Acceleration for smooth scrolling & interactions */
.bento-item,
.mach-card,
.mach-card,
.action-btn,
.wandrd-thumb {
    will-change: transform;
    transform: translateZ(0);
}
/* --- EXTREME SPEED PERFORMANCE BOOST --- */

/* 1. บังคับใช้ Content-Visibility และ Containment กับการ์ดและส่วนประกอบทั้งหมด */
.bento-item,
.mach-card,
.mach-card,
.catalog-grid > *,
.widget,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

/* 2. เปิดใช้งาน Hardware Acceleration อย่างเต็มรูปแบบสำหรับทุกการเคลื่อนไหว */
.bento-item,
.mach-card,
.mach-card,
.bento-link img,
.mach-card-img-wrap img {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 3. ลดภาระการคำนวณเงาและเอฟเฟกต์ขณะเลื่อนหน้าเว็บ (Scroll Performance) */
@media (hover: hover) {
    .bento-item:hover {
        transform: translateY(-4px);
    }
}

/* 4. ซ่อนอนิเมชันที่ไม่จำเป็นหากผู้ใช้งานตั้งค่าลดการเคลื่อนไหวในเครื่อง */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   MODERN FOOTER STYLES - Production Ready
   ============================================================ */

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Brand Section */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Newsletter Section */
.footer-newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

.footer-newsletter button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
}

.footer-newsletter button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-badges {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.payment-badge {
    width: 48px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Trust Features */
.footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: rgba(0, 188, 212, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.back-to-top {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 16px 24px;
    }

    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 12px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}