/* ==========================================
   vtuberavatars.com - Main Stylesheet
   Dark Theme • Purple Accent • Premium
   ========================================== */

:root {
    --color-primary: #A42CC3;
    --color-primary-dark: #8A24A5;
    --color-primary-light: #D580E8;
    --color-primary-glow: rgba(164,44,195,0.35);
    --color-bg: #0d0d0f;
    --color-bg-secondary: #16161a;
    --color-bg-card: #1a1a1f;
    --color-bg-elevated: #222228;
    --color-text: #f4f4f5;
    --color-text-light: #a1a1aa;
    --color-text-muted: #71717a;
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    --color-button: #A42CC3;
    --color-button-text: #ffffff;
    --color-sale: #ef4444;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    --color-badge-new: #22c55e;
    --color-badge-hot: #A42CC3;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 0.6rem;
    --radius-md: 1.0rem;
    --radius-lg: 1.6rem;
    --radius-xl: 2.0rem;
    --radius-full: 2.4rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --transition: 0.3s cubic-bezier(0.3,1,0.3,1);
    --transition-bounce: 0.4s cubic-bezier(0.34,1.56,0.64,1);
    --page-width: 1410px;
    --header-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.625;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-primary); outline-offset: 2px;
}
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: var(--page-width); margin: 0 auto; padding: 0 2rem; width: 100%; }
#mainContent { overflow-x: hidden; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 1.2rem 3rem; font-family: var(--font-body); font-weight: 500; font-size: 1.4rem;
    border-radius: var(--radius-full); border: 1px solid transparent; cursor: pointer;
    transition: all var(--transition); text-transform: capitalize; letter-spacing: 0;
    line-height: 1.2; white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 2px 12px var(--color-primary-glow);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px var(--color-primary-glow); }
.btn-secondary { background: var(--color-bg-elevated); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-border); color: var(--color-text); }
.btn-outline { border-color: var(--color-border); background: transparent; color: var(--color-text); }
.btn-outline:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff; box-shadow: 0 4px 14px var(--color-primary-glow);
}
.btn-accent:hover { background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px var(--color-primary-glow); }
.btn-danger { background: var(--color-sale); color: #fff; }
.btn-danger:hover { background: #b52d24; color: #fff; }
.btn-sm { padding: 0.8rem 1.6rem; font-size: 1.3rem; }
.btn-lg { padding: 1.5rem 4rem; font-size: 1.6rem; }
.btn-full { width: 100%; }
.btn-icon { width: 4.8rem; height: 4.8rem; padding: 0; border-radius: 50%; }

/* ==========================================
   FORMS
   ========================================== */
.form-group { margin-bottom: 1.6rem; }
.form-group label { display: block; margin-bottom: 0.6rem; font-weight: 500; font-size: 1.4rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1.2rem 1.6rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-full); background: var(--color-bg-secondary);
    font-size: 1.5rem; color: var(--color-text); transition: border var(--transition);
    outline: none;
}
.form-group textarea { border-radius: var(--radius-lg); min-height: 12rem; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(164,44,195,0.1);
}
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.form-link { color: var(--color-primary); font-size: 1.4rem; }
.form-link:hover { text-decoration: underline; }
.form-message { margin-top: 1rem; padding: 1rem 1.5rem; border-radius: var(--radius-md); font-size: 1.4rem; display: none; }
.form-message.show { display: block; }
.form-message.success { background: rgba(34,197,94,0.15); color: #4ade80; }
.form-message.error { background: rgba(239,68,68,0.15); color: #f87171; }
.checkbox-label { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 1.6rem; height: 1.6rem; accent-color: var(--color-primary); }

/* ==========================================
   ALERTS
   ========================================== */
.alert { padding: 1.5rem 2rem; border-radius: var(--radius-md); margin: 2rem 0; font-size: 1.4rem; }
.alert-success { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.alert-error { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.alert-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.alert-info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* ==========================================
   BADGE
   ========================================== */
.badge {
    display: inline-block; padding: 0.3rem 1rem; font-size: 1.1rem; font-weight: 500;
    border-radius: var(--radius-sm); color: #fff; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-sale { background: var(--color-sale); }
.badge-new { background: var(--color-badge-new); }
.badge-hot { background: var(--color-badge-hot); }
.badge-soldout { background: #A5A4AB; }

/* ==========================================
   ANNOUNCEMENT BAR & SCROLLING PROMOTION
   ========================================== */
.announcement-bar {
    background: #000; color: #fff; text-align: center;
    padding: 0.8rem 0; font-size: 1.3rem; letter-spacing: 0.02em;
}
.announcement-bar p { margin: 0; }

/* Scrolling Promotion (search.html style) */
.scrolling-promotion-bar {
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #fff; overflow: hidden;
    padding: 1rem 0; font-size: 1.35rem; font-weight: 500;
    letter-spacing: 0.06em; white-space: nowrap;
    width: 100%; max-width: 100vw;
}
.scrolling-promotion-track {
    display: inline-flex; align-items: center; gap: 6rem;
    animation: scrollingPromo 18s linear infinite;
    padding-right: 6rem;
}
.scrolling-promotion-bar:hover .scrolling-promotion-track { animation-play-state: paused; }
.scrolling-promotion-item { color: #fff; }
.scrolling-promotion-sep { color: var(--color-primary); opacity: 0.8; font-size: 0.8em; }
@keyframes scrollingPromo {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(13,13,15,0.95);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, background 0.3s ease, z-index 0s;
    backdrop-filter: blur(12px);
}
.site-header.menu-open { z-index: 9999; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height); gap: 2rem;
}
.site-logo { transition: opacity var(--transition); }
.site-logo:hover { opacity: 0.85; }
.site-logo img { height: 42px; width: auto; }
.logo-text { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 3rem; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    font-size: 1.5rem; font-weight: 500; padding: 0.5rem 0;
    position: relative; transition: color var(--transition);
}
.nav-list > li > a.active,
.nav-list > li > a:hover { color: var(--color-primary); }
.nav-list > li > a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0;
    height: 2px; background: var(--color-primary); transition: width var(--transition);
}
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { width: 100%; }

.has-dropdown { position: relative; }
.header-account.dropdown-open .dropdown-menu { opacity: 1; visibility: visible; margin-top: 0.5rem; }
@media (max-width: 1024px) {
    .header-account .dropdown-menu { margin-top: 0.5rem; }
}
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--color-bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    min-width: 22rem; padding: 0.8rem 0; opacity: 0; visibility: hidden;
    transition: all 0.25s ease; z-index: 1100; margin-top: 0.8rem;
    border: 1px solid var(--color-border-light);
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; margin-top: 0.5rem; }
.dropdown-menu li a {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 2rem; font-size: 1.4rem; white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--color-bg-secondary); color: var(--color-primary); }
.dropdown-menu .divider { border-top: 1px solid var(--color-border-light); margin: 0.4rem 0; }
.dropdown-right { left: auto; right: 0; transform: none; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-action-btn {
    width: 4.4rem; height: 4.4rem; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.8rem; position: relative; transition: background var(--transition);
    color: #fff;
}
.header-action-btn:hover { background: var(--color-bg-elevated); color: var(--color-primary-light); }
.cart-count,
.wishlist-count {
    position: absolute; top: 2px; right: 2px; background: var(--color-sale);
    color: #fff; font-size: 1rem; font-weight: 700; width: 1.8rem; height: 1.8rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.wishlist-count { background: var(--color-primary); }

.mobile-menu-toggle { display: none; width: 4rem; height: 4rem; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); transition: all var(--transition); }

/* ==========================================
   SEARCH DRAWER
   ========================================== */
.search-drawer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2000; opacity: 0; visibility: hidden;
    transition: all var(--transition); display: flex; align-items: flex-start; justify-content: center;
    padding-top: 10vh;
}
.search-drawer.active { opacity: 1; visibility: visible; }
.search-drawer-inner {
    background: var(--color-bg-card); border-radius: var(--radius-xl); padding: 3rem;
    width: 90%; max-width: 700px; position: relative;
    transform: translateY(-2rem); transition: transform var(--transition);
}
.search-drawer.active .search-drawer-inner { transform: translateY(0); }
.search-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: var(--color-text-light); }
.search-form-large { display: flex; gap: 1rem; }
.search-form-large input {
    flex: 1; padding: 1.5rem 2rem; border: 2px solid var(--color-border);
    border-radius: var(--radius-full); font-size: 1.6rem; outline: none;
    background: var(--color-bg-secondary); color: var(--color-text);
}
.search-form-large input::placeholder { color: var(--color-text-muted); }
.search-form-large input:focus { border-color: var(--color-primary); }
.search-form-large button {
    width: 5.2rem; height: 5.2rem; background: var(--color-primary); color: #fff;
    border-radius: 50%; font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.search-results { margin-top: 2rem; max-height: 400px; overflow-y: auto; }
.search-result-item {
    display: flex; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition); border-radius: var(--radius-md);
    margin: 0 -1rem; padding: 1.2rem 1rem;
}
.search-result-item:hover { background: var(--color-bg-secondary); }
.search-result-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.search-result-info h4 { font-size: 1.5rem; margin-bottom: 0.3rem; font-weight: 500; }
.search-result-info .price { font-size: 1.4rem; font-weight: 600; color: var(--color-primary); }
.search-drawer .search-form-large input { font-size: 1.8rem; padding: 1.6rem 2rem; }
.search-drawer .search-form-large button { width: 5.6rem; height: 5.6rem; font-size: 1.6rem; }

/* ==========================================
   CART DRAWER
   ========================================== */
.cart-drawer {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw;
    height: 100vh; background: var(--color-bg); z-index: 2001; transition: right var(--transition);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.active { right: 0; }
.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2rem; border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h3 { font-size: 1.8rem; font-weight: 500; }
.cart-drawer-close { font-size: 2rem; color: var(--color-text-light); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 2rem; }
.cart-drawer-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.cart-drawer-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); }
.cart-drawer-item-info { flex: 1; }
.cart-drawer-item-info h4 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.3rem; }
.cart-drawer-item-info .price { font-size: 1.4rem; font-weight: 500; }
.cart-drawer-item-remove { color: var(--color-text-muted); font-size: 1.2rem; cursor: pointer; }
.cart-drawer-item-remove:hover { color: var(--color-sale); }
.cart-drawer-footer { padding: 2rem; border-top: 1px solid var(--color-border); }
.cart-drawer-total { display: flex; justify-content: space-between; font-size: 1.6rem; font-weight: 600; margin-bottom: 1.5rem; }
.cart-empty { text-align: center; padding: 4rem 2rem; color: var(--color-text-light); }
.cart-empty i { font-size: 4rem; margin-bottom: 1.5rem; display: block; }

/* ==========================================
   OVERLAY
   ========================================== */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1998; opacity: 0; visibility: hidden;
    transition: all var(--transition); backdrop-filter: blur(2px);
}
.overlay.active { opacity: 1; visibility: visible; }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 3000; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    visibility: hidden; transition: all var(--transition); padding: 2rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--color-bg-card); border-radius: var(--radius-xl); padding: 4rem;
    width: 100%; max-width: 440px; position: relative;
    transform: translateY(2rem); transition: transform var(--transition);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem;
    color: var(--color-text-light); z-index: 1;
}
.modal-body h2 { font-size: 2.8rem; font-weight: 500; margin-bottom: 0.5rem; }
.modal-subtitle { color: var(--color-text-light); margin-bottom: 2.5rem; font-size: 1.5rem; }
.modal-footer-text { text-align: center; margin-top: 2rem; font-size: 1.4rem; color: var(--color-text-light); }

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero-slider-section {
    position: relative; overflow: hidden; min-height: 75vh; height: 75vh;
    cursor: grab; user-select: none; -webkit-tap-highlight-color: transparent;
}
.hero-slider-section:active { cursor: grabbing; }
.hero-slider-section .container { max-width: var(--page-width); }
.hero-slider { position: relative; width: 100%; height: 100%; min-height: 100%; }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background-size: cover; background-position: center; background-color: #1a1a2e;
    padding: 4rem 0 6rem;
    opacity: 0; visibility: hidden; z-index: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}
.hero-slide.active {
    opacity: 1; visibility: visible; z-index: 1;
    animation: hero-slide-in 0.7s ease forwards;
}
@keyframes hero-slide-in {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}
.hero-slide .container { width: 100%; display: flex; align-items: center; min-height: 0; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(164,44,195,0.15) 100%);
}
.hero-content {
    position: relative; z-index: 1; color: #fff; max-width: 700px;
    padding: 2rem 0; overflow: visible;
}
.hero-content .subtitle {
    font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.2em;
    margin-bottom: 1.5rem; color: var(--color-primary-light); font-weight: 500;
}
.hero-content h1 {
    font-size: 5.2rem; font-weight: 600; line-height: 1.2; margin: 0 0 2rem;
    letter-spacing: -0.04em; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding-top: 0.2em;
}
.hero-content p { font-size: 1.9rem; margin-bottom: 3rem; opacity: 0.95; line-height: 1.65; overflow: visible; word-wrap: break-word; }
.hero-content .btn { font-size: 1.5rem; padding: 1.5rem 4rem; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-content .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.hero-slide.active .hero-content {
    animation: hero-content-fade 0.8s ease 0.2s both;
}
@keyframes hero-content-fade {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider Progress Bar */
.hero-slider-progress-wrap {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px; background: rgba(255,255,255,0.15);
    z-index: 10; overflow: hidden;
}
.hero-slider-progress {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 6s linear;
}

/* Slider Arrows */
.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 5rem; height: 5rem; border-radius: 50%;
    background: rgba(255,255,255,0.2); color: #fff; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease; backdrop-filter: blur(4px);
    cursor: pointer;
}
.hero-slider-arrow:hover {
    background: var(--color-primary); color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}
.hero-slider-prev { left: 2rem; }
.hero-slider-next { right: 2rem; }

/* Slider Dots */
.hero-slider-dots {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 1rem; z-index: 10;
}
.hero-dot {
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer; transition: all 0.3s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.8); }
.hero-dot.active { background: #fff; width: 3.2rem; border-radius: 1rem; box-shadow: 0 0 12px rgba(255,255,255,0.5); }

/* Swipe Hint */
.hero-swipe-hint {
    position: absolute; bottom: 5rem; left: 50%; transform: translateX(-50%);
    font-size: 1.2rem; color: rgba(255,255,255,0.6);
    display: flex; align-items: center; gap: 0.6rem;
    z-index: 5; pointer-events: none;
    animation: hero-swipe-hint-fade 4s ease-in-out 2s forwards;
    opacity: 0;
}
.hero-swipe-hint i { font-size: 1.4rem; }
@keyframes hero-swipe-hint-fade {
    0% { opacity: 0; transform: translateX(-50%) translateY(0.5rem); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-0.5rem); }
}
@media (min-width: 769px) { .hero-swipe-hint { display: none; } }

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .feature-item { padding: 1.5rem 1rem; }
    .feature-item i { width: 4.5rem; height: 4.5rem; font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-slider-section { min-height: 60vh; height: 60vh; }
    .hero-content h1 { font-size: 3.6rem; line-height: 1.25; }
    .hero-content p { font-size: 1.6rem; }
    .hero-slider-arrow { width: 4rem; height: 4rem; font-size: 1.4rem; left: 1rem; right: 1rem; }
    .hero-slider-dots { bottom: 1.5rem; }
}

/* ==========================================
   SECTION COMMON
   ========================================== */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header h2 {
    font-size: 3.2rem; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 1rem;
    color: var(--color-text);
}
.section-header p { color: var(--color-text-light); font-size: 1.6rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.section-bg { background: var(--color-bg-secondary); }

/* ==========================================
   PRODUCT GRID
   ========================================== */
.product-grid {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 3rem;
}
.product-card {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: var(--radius-xl); 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(164,44,195,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164,44,195,0.05), transparent);
    transition: left 0.5s;
    pointer-events: none;
}
.product-card:hover::before {
    left: 100%;
}
.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(164,44,195,0.15), 0 0 0 1px rgba(164,44,195,0.2);
    border-color: rgba(164,44,195,0.3);
}
.product-card-image-wrap {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.product-card-image {
    position: relative; overflow: hidden; aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, rgba(255,255,255,0.05) 100%);
    display: block;
}
.product-card-wishlist {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(164,44,195,0.2);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-card-wishlist:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(164,44,195,0.4);
}
.product-card-wishlist.active i,
.product-card-wishlist.added i { color: var(--color-sale); }
.product-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: 1.2rem; left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 2; }
.product-card-badges .badge { padding: 0.5rem 1rem; font-size: 1.2rem; font-weight: 600; border-radius: var(--radius-md); }
.product-card-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.product-card-category { 
    font-size: 1.1rem; 
    color: var(--color-primary); 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    font-weight: 600;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(164,44,195,0.1);
    border-radius: var(--radius-full);
    width: fit-content;
}
.product-card-title {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.product-card-title a {
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.product-card-title a:hover { 
    color: var(--color-primary); 
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-card-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.product-card-price .original { 
    text-decoration: line-through; 
    color: var(--color-text-muted); 
    font-weight: 400; 
    font-size: 1.4rem; 
    opacity: 0.7;
}
.product-card-price .sale { 
    color: var(--color-sale); 
    text-shadow: 0 0 20px rgba(255,107,107,0.3);
}
.product-card-add-btn {
    width: 100%;
    margin-top: 1.2rem;
    padding: 1.2rem 1.8rem;
    font-size: 1.45rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(164,44,195,0.3), inset 0 -2px 0 rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.product-card-add-btn::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, height 0.6s;
}
.product-card-add-btn:hover::before {
    width: 300px;
    height: 300px;
}
.product-card-add-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(164,44,195,0.5), inset 0 -2px 0 rgba(0,0,0,0.1);
}
.product-card-add-btn:active:not(:disabled) { 
    transform: translateY(-1px) scale(0.98); 
}
.product-card-add-btn:disabled {
    background: linear-gradient(135deg, var(--color-border) 0%, var(--color-border-light) 100%);
    color: var(--color-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================
   PRODUCT DETAIL
   ========================================== */
.product-detail { 
    padding: 5rem 0; 
    background: linear-gradient(180deg, rgba(164,44,195,0.03) 0%, transparent 100%);
}
.product-detail-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 6rem;
    align-items: start;
}
.product-gallery { 
    position: sticky; 
    top: calc(var(--header-height) + 2rem); 
    z-index: 10;
}
.product-gallery-carousel {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, rgba(255,255,255,0.05) 100%);
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(164,44,195,0.1);
}
.product-gallery-carousel:active {
    cursor: grabbing;
}
.product-gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.product-gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
}
.product-gallery-slide-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}
.product-gallery-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery-slide-video .product-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}
.product-gallery-slide-video .product-video iframe,
.product-gallery-slide-video .product-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery-slide-video .product-video-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 0;
}
.product-gallery-prev,
.product-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 5;
}
.product-gallery-carousel:hover .product-gallery-prev,
.product-gallery-carousel:hover .product-gallery-next { opacity: 1; }
.product-gallery-prev:hover,
.product-gallery-next:hover { background: var(--color-primary); }
.product-gallery-prev { left: 1rem; }
.product-gallery-next { right: 1rem; }
.product-gallery-carousel:not(.has-multiple) .product-gallery-prev,
.product-gallery-carousel:not(.has-multiple) .product-gallery-next { display: none; }
.product-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.product-gallery-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}
.product-gallery-dot:hover { background: var(--color-border-light); }
.product-gallery-dot.active {
    background: var(--color-primary);
    width: 2.4rem;
    border-radius: var(--radius-full);
}
@media (max-width: 768px) {
    .product-gallery-prev,
    .product-gallery-next { opacity: 1; background: rgba(0,0,0,0.4); width: 3.6rem; height: 3.6rem; font-size: 1.4rem; }
    
    /* Product Detail Mobile */
    .product-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-info h1 { font-size: 2.8rem; }
    .product-info .product-price { font-size: 2.2rem; }
    .product-actions { flex-direction: column; }
    .product-tabs { padding: 2rem; margin-top: 4rem; }
    .product-tabs-nav button { padding: 1.2rem 1.5rem; font-size: 1.4rem; }
    
    /* Product Grid Mobile */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .product-card-info { padding: 1.5rem; }
    .product-card-title { font-size: 1.5rem; }
    .product-card-price { font-size: 1.6rem; }
    .product-card-add-btn { padding: 0.9rem 1.2rem; font-size: 1.3rem; }
    
    /* FAQ Mobile */
    .faq-section { padding: 4rem 0; }
    .faq-toggle { padding: 1.8rem 2rem; font-size: 1.5rem; }
    .faq-toggle + div { padding: 0 2rem 2rem; font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-card-wishlist { width: 3.8rem; height: 3.8rem; top: 1rem; right: 1rem; }
    .faq-toggle { padding: 1.5rem 1.5rem; font-size: 1.4rem; }
    .faq-toggle + div { padding: 0 1.5rem 1.5rem; font-size: 1.35rem; }
}

.product-info .breadcrumb { margin-bottom: 2.5rem; font-size: 1.35rem; }
.product-info h1 { 
    font-size: 3.8rem; 
    font-weight: 600; 
    letter-spacing: -0.05em; 
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.product-info .product-price { 
    font-size: 2.8rem; 
    font-weight: 700; 
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.product-info .product-price .original-price { 
    text-decoration: line-through; 
    color: var(--color-text-muted); 
    font-size: 2rem; 
    margin-right: 1.2rem;
    opacity: 0.6;
}
.product-info .product-price .sale-price { 
    color: var(--color-sale);
    text-shadow: 0 0 30px rgba(255,107,107,0.4);
}
.product-info .product-short-desc { 
    font-size: 1.7rem; 
    color: var(--color-text-light); 
    line-height: 1.8; 
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 4px solid var(--color-primary);
}
.product-info .product-meta { 
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(164,44,195,0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(164,44,195,0.1);
}
.product-info .product-meta-item { 
    display: flex; 
    gap: 1.2rem; 
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.product-info .product-meta-item:last-child { border-bottom: none; }
.product-info .product-meta-item strong { 
    min-width: 11rem; 
    color: var(--color-text);
    font-weight: 600;
}
.product-info .product-meta-item span { 
    color: var(--color-text-light);
    flex: 1;
}
.product-actions { 
    display: flex; 
    gap: 1.5rem; 
    margin-bottom: 3.5rem;
}
.product-actions .btn { 
    flex: 1;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.product-tabs { 
    margin-top: 6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(164,44,195,0.1);
}
.product-tabs-nav { 
    display: flex; 
    gap: 0; 
    border-bottom: 2px solid rgba(164,44,195,0.15);
    margin-bottom: 3rem;
    background: linear-gradient(90deg, rgba(164,44,195,0.05) 0%, transparent 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-tabs-nav button {
    padding: 1.5rem 3rem;
    font-size: 1.55rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: var(--color-text-light);
    background: transparent;
    position: relative;
}
.product-tabs-nav button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transition: width 0.3s;
}
.product-tabs-nav button.active { 
    color: var(--color-primary);
    background: rgba(164,44,195,0.08);
}
.product-tabs-nav button.active::after { 
    width: 100%;
}
.product-tabs-nav button:hover:not(.active) {
    color: var(--color-text);
    background: rgba(164,44,195,0.05);
}
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
/* Product Video Embed */
.product-video-wrap { margin-bottom: 2.5rem; }
.product-video-gallery { margin-top: 2rem; }
.product-video {
    position: relative; width: 100%; padding-bottom: 56.25%;
    background: #0a0a0a; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.product-video iframe,
.product-video video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain;
}
.product-video-label {
    font-size: 1.4rem; color: var(--color-text-muted);
    margin-top: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.product-video-label i { color: var(--color-primary); }

.product-description { 
    font-size: 1.6rem; 
    line-height: 1.9; 
    color: var(--color-text-light);
    max-width: 900px;
}
.product-description h2, .product-description h3 { 
    color: var(--color-text); 
    margin: 3rem 0 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}
.product-description h2::before,
.product-description h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
}
.product-description ul, .product-description ol { 
    padding-left: 2.5rem; 
    margin: 2rem 0;
}
.product-description li { 
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 1.3rem; color: var(--color-text-muted); padding: 2rem 0; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text-muted); }

/* ==========================================
   REVIEWS
   ========================================== */
.reviews-section { margin-top: 3rem; }
.review-item { padding: 2rem 0; border-bottom: 1px solid var(--color-border-light); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-author { font-weight: 500; font-size: 1.5rem; }
.review-date { font-size: 1.3rem; color: var(--color-text-muted); }
.review-rating { color: #f5a623; font-size: 1.4rem; margin-bottom: 0.5rem; }
.review-comment { font-size: 1.4rem; color: var(--color-text-light); line-height: 1.6; }
.review-form { margin-top: 3rem; padding: 2.5rem; background: var(--color-bg-secondary); border-radius: var(--radius-xl); }
.review-form h3 { margin-bottom: 2rem; font-size: 2rem; }
.star-rating { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.star-rating i { font-size: 2.2rem; color: var(--color-border); cursor: pointer; transition: color var(--transition); }
.star-rating i.active, .star-rating i:hover { color: #f5a623; }

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(164,44,195,0.03) 0%, transparent 100%);
}
.faq-item {
    border: 1px solid rgba(164,44,195,0.15);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(164,44,195,0.05) 100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-item:hover {
    border-color: rgba(164,44,195,0.3);
    box-shadow: 0 8px 25px rgba(164,44,195,0.15);
    transform: translateX(5px);
}
.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 2.5rem;
    background: linear-gradient(90deg, rgba(164,44,195,0.08) 0%, transparent 100%);
    font-size: 1.7rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--color-text);
    font-family: inherit;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.faq-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164,44,195,0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}
.faq-toggle:hover::before {
    left: 100%;
}
.faq-toggle:hover {
    background: linear-gradient(90deg, rgba(164,44,195,0.15) 0%, rgba(164,44,195,0.05) 100%);
    padding-left: 3rem;
}
.faq-toggle.active {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
}
.faq-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: #fff;
}
.faq-toggle i.fa-chevron-down {
    font-size: 1.4rem;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.faq-toggle + div {
    display: none;
    padding: 0 2.5rem 2.5rem;
    font-size: 1.55rem;
    color: var(--color-text-light);
    line-height: 1.8;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid rgba(164,44,195,0.1);
}
.faq-toggle + div.show {
    display: block;
    animation: faqSlideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CART PAGE
   ========================================== */
.cart-page { padding: 4rem 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 1.2rem 1.5rem; border-bottom: 2px solid var(--color-border); font-weight: 500; font-size: 1.4rem; }
.cart-table td { padding: 1.5rem; border-bottom: 1px solid var(--color-border-light); vertical-align: middle; }
.cart-table .cart-product { display: flex; align-items: center; gap: 1.5rem; }
.cart-table .cart-product img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); }
.cart-table .cart-product-name { font-weight: 500; font-size: 1.5rem; }
.cart-table .cart-product-category { font-size: 1.2rem; color: var(--color-text-muted); }
.cart-table .remove-btn { color: var(--color-text-muted); font-size: 1.8rem; }
.cart-table .remove-btn:hover { color: var(--color-sale); }
.cart-summary {
    max-width: 400px; margin-left: auto; margin-top: 3rem;
    padding: 2.5rem; background: var(--color-bg-secondary); border-radius: var(--radius-xl);
}
.cart-summary h3 { font-size: 2rem; margin-bottom: 2rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 1rem 0; font-size: 1.5rem; }
.cart-summary-row.total { border-top: 2px solid var(--color-border); font-weight: 600; font-size: 1.8rem; padding-top: 1.5rem; margin-top: 0.5rem; }
.coupon-form { display: flex; gap: 1rem; margin: 1.5rem 0; }
.coupon-form input { flex: 1; padding: 1rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 1.4rem; }

/* ==========================================
   CHECKOUT
   ========================================== */
.checkout-page { padding: 4rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; }
.checkout-section { margin-bottom: 3rem; }
.checkout-section h3 { font-size: 2rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border-light); }
.checkout-order-summary {
    padding: 2.5rem; background: var(--color-bg-secondary); border-radius: var(--radius-xl);
    position: sticky; top: calc(var(--header-height) + 2rem);
}
.checkout-item { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--color-border-light); }
.checkout-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 1.4rem; font-weight: 500; }
.checkout-item-info .price { font-size: 1.4rem; color: var(--color-text-light); }

/* ==========================================
   BLOG
   ========================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.blog-card {
    background: var(--color-bg-card); border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition-bounce), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-secondary); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 2rem; }
.blog-card-meta { display: flex; gap: 1.5rem; font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.blog-card-title { font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; line-height: 1.4; }
.blog-card-title a:hover { color: var(--color-primary); }
.blog-card-excerpt { font-size: 1.4rem; color: var(--color-text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.blog-card-link { font-size: 1.4rem; font-weight: 500; color: var(--color-primary); }

.blog-post-single { max-width: 800px; margin: 0 auto; padding: 4rem 0; }
.blog-post-single h1 { font-size: 3.6rem; font-weight: 500; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.blog-post-meta { display: flex; gap: 2rem; color: var(--color-text-muted); font-size: 1.4rem; margin-bottom: 3rem; }
.blog-post-featured { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 3rem; }
.blog-post-content { font-size: 1.6rem; line-height: 1.8; color: var(--color-text-light); }
.blog-post-content h2, .blog-post-content h3 { color: var(--color-text); margin: 2.5rem 0 1rem; }
.blog-post-content p { margin-bottom: 1.5rem; }
.blog-post-content img { border-radius: var(--radius-md); margin: 2rem 0; }

/* ==========================================
   CONTACT
   ========================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.contact-info-item { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-info-item i { font-size: 2rem; color: var(--color-primary); margin-top: 0.3rem; }
.contact-info-item h4 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-info-item p { font-size: 1.4rem; color: var(--color-text-light); }

/* ==========================================
   SEARCH PAGE
   ========================================== */
.search-page { padding: 5rem 0 6rem; min-height: 55vh; }
.search-page-header { margin-bottom: 3rem; text-align: center; }
.search-page-header h1 { font-size: 3.2rem; font-weight: 500; margin-bottom: 0.8rem; letter-spacing: -0.03em; }
.search-page-desc { font-size: 1.6rem; color: var(--color-text-light); }
.search-page-meta { font-size: 1.5rem; color: var(--color-text-light); }
.search-page-form { max-width: 720px; margin: 0 auto 4rem; }
.search-form-hero input { font-size: 1.8rem; padding: 1.8rem 2.4rem; }
.search-form-hero button { width: 6rem; height: 6rem; font-size: 1.8rem; }
.search-results-bar { margin-bottom: 2.5rem; font-size: 1.4rem; color: var(--color-text-muted); }
.search-empty-state { text-align: center; padding: 6rem 2rem; }
.search-empty-icon { font-size: 5rem; color: var(--color-border); margin-bottom: 2rem; }
.search-empty-state h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.search-empty-state p { color: var(--color-text-light); margin-bottom: 2rem; }
.search-suggestions { text-align: center; padding: 4rem 2rem; }
.search-suggestions h4 { font-size: 1.6rem; font-weight: 500; margin-bottom: 2rem; color: var(--color-text-light); }
.search-suggestion-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.search-suggestion-tags a {
    padding: 1rem 2rem; background: var(--color-bg-secondary); border-radius: var(--radius-full);
    font-size: 1.4rem; font-weight: 500; color: var(--color-text); transition: all var(--transition);
}
.search-suggestion-tags a:hover { background: var(--color-primary); color: #fff; }

/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-page { padding: 6rem 0; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; background: var(--color-bg-card); border-radius: var(--radius-xl); padding: 4rem; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.auth-card h1 { font-size: 2.8rem; font-weight: 500; margin-bottom: 0.5rem; }
.auth-card .subtitle { color: var(--color-text-light); margin-bottom: 2.5rem; font-size: 1.5rem; }

/* ==========================================
   STATIC PAGE
   ========================================== */
.page-content { max-width: 800px; margin: 0 auto; padding: 4rem 0; }
.page-content h1 { font-size: 3.2rem; font-weight: 500; margin-bottom: 2rem; }
.page-content .content { font-size: 1.6rem; line-height: 1.8; color: var(--color-text-light); }
.page-content .content h2 { color: var(--color-text); font-size: 2.4rem; font-weight: 500; margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border-light); }
.page-content .content h3 { color: var(--color-text); font-size: 1.9rem; font-weight: 500; margin: 2.5rem 0 1rem; }
.page-content .content h4 { color: var(--color-text); font-size: 1.7rem; font-weight: 500; margin: 2rem 0 0.8rem; }
.page-content .content p { margin-bottom: 1.2rem; }
.page-content .content ul, .page-content .content ol { margin: 1rem 0 1.5rem 2rem; }
.page-content .content li { margin-bottom: 0.6rem; }
.page-content .content a { color: var(--color-primary); text-decoration: underline; }
.page-content .content a:hover { color: var(--color-primary-dark); }
.page-content .content strong { color: var(--color-text); }

/* ==========================================
   FEATURES BAR
   ========================================== */
.features-bar {
    padding: 5rem 0; background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    border-top: 1px solid var(--color-border);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.feature-item {
    text-align: center; padding: 2rem 1.5rem;
    background: var(--color-bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-item i {
    font-size: 2.8rem; color: var(--color-primary);
    width: 5.6rem; height: 5.6rem; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(164,44,195,0.08); border-radius: 50%;
}
.feature-item h4 { font-size: 1.55rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.feature-item p { font-size: 1.35rem; color: var(--color-text-light); line-height: 1.5; }

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-card {
    background: var(--color-bg-card); border-radius: var(--radius-xl); padding: 3rem;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f5a623; font-size: 1.4rem; margin-bottom: 1.5rem; }
.testimonial-text { font-size: 1.5rem; line-height: 1.7; color: var(--color-text-light); margin-bottom: 2rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-author-name { font-weight: 500; font-size: 1.4rem; }
.testimonial-author-title { font-size: 1.2rem; color: var(--color-text-muted); }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination-nav { display: flex; justify-content: center; margin-top: 4rem; }
.pagination { display: flex; gap: 0.5rem; }
.pagination-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 4rem; height: 4rem; padding: 0 1.2rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-full);
    font-size: 1.4rem; color: var(--color-text); transition: all var(--transition);
}
.pagination-btn:hover, .pagination-btn.active {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.pagination-dots { display: flex; align-items: center; padding: 0 0.5rem; color: var(--color-text-muted); }

/* ==========================================
   FILTER SIDEBAR
   ========================================== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; }
.shop-sidebar { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
.filter-group { margin-bottom: 2.5rem; }
.filter-group h4 { font-size: 1.5rem; font-weight: 500; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--color-border-light); }
.filter-group ul li { margin-bottom: 0.5rem; }
.filter-group ul li a { font-size: 1.4rem; color: var(--color-text-light); display: flex; justify-content: space-between; padding: 0.5rem 0; }
.filter-group ul li a:hover, .filter-group ul li a.active { color: var(--color-primary); font-weight: 500; }
.filter-group ul li a .count { font-size: 1.2rem; color: var(--color-text-muted); }
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.sort-bar .results-count { font-size: 1.4rem; color: var(--color-text-light); }
.sort-bar select { padding: 0.8rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 1.4rem; background: var(--color-bg-secondary); color: var(--color-text); }

/* ==========================================
   POPUP
   ========================================== */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 4000; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    visibility: hidden; transition: all var(--transition); padding: 2rem;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content {
    background: var(--color-bg-card); border-radius: var(--radius-xl); overflow: hidden;
    max-width: 500px; width: 100%; position: relative;
    transform: scale(0.9); transition: transform var(--transition);
}
.popup-overlay.active .popup-content { transform: scale(1); }
.popup-close { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 1; font-size: 2rem; color: var(--color-text); background: var(--color-bg-elevated); width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); }
.popup-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.popup-body { padding: 3rem; text-align: center; }
.popup-body h3 { font-size: 2.2rem; font-weight: 500; margin-bottom: 1rem; }
.popup-body p { color: var(--color-text-light); margin-bottom: 2rem; font-size: 1.5rem; }
.popup-newsletter-form { display: flex; gap: 1rem; }
.popup-newsletter-form input { flex: 1; padding: 1.2rem 1.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 1.4rem; }
.popup-discount { margin-top: 1.5rem; font-size: 1.3rem; color: var(--color-primary); }

/* ==========================================
   FOOTER TRUST BAR
   ========================================== */
.footer-trust-bar {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 3.5rem 0; border-top: 1px solid rgba(255,255,255,0.06);
    overflow-x: hidden;
}
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 5rem; }
.trust-item {
    display: flex; align-items: center; gap: 1.2rem; color: rgba(255,255,255,0.9);
    font-size: 1.45rem; font-weight: 500; transition: transform var(--transition);
}
.trust-item:hover { transform: translateY(-2px); color: #fff; }
.trust-item i { font-size: 2rem; color: var(--color-primary-light); opacity: 0.95; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background: #000; color: #fff; overflow-x: hidden; }
.footer-top { padding: 6rem 0 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; }
.footer-logo { display: inline-block; margin-bottom: 1.5rem; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 2.4rem; font-weight: 600; color: #fff; }
.footer-description { font-size: 1.45rem; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 2rem; max-width: 320px; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 4.2rem; height: 4.2rem; border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-2px); }
.footer-col { min-width: 0; }
.footer-col h4 { font-size: 1.6rem; font-weight: 600; margin-bottom: 2rem; color: #fff; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { font-size: 1.45rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-contact p { font-size: 1.4rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--color-primary); }
.footer-newsletter-title { margin-top: 2rem; }
.footer-newsletter-desc { font-size: 1.35rem; margin-bottom: 1.2rem; }
.newsletter-form { display: flex; gap: 0.8rem; min-width: 0; }
.newsletter-form input {
    flex: 1; min-width: 0; padding: 1.2rem 1.6rem; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full);
    color: #fff; font-size: 1.4rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--color-primary); outline: none; }
.newsletter-form button {
    width: 4.8rem; height: 4.8rem; background: var(--color-primary);
    color: #fff; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--color-primary-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 2.2rem 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom-left { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-bottom p { font-size: 1.35rem; color: rgba(255,255,255,0.5); }
.footer-credit { font-size: 1.3rem !important; color: rgba(255,255,255,0.6) !important; }
.footer-credit-link { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.footer-credit-link:hover { color: #25D366; text-decoration: underline; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 2.6rem; color: rgba(255,255,255,0.5); }

/* ==========================================
   COLLECTION TABS
   ========================================== */
.collection-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.collection-tabs .tab-btn {
    padding: 0.8rem 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-full);
    font-size: 1.4rem; font-weight: 500; transition: all var(--transition);
}
.collection-tabs .tab-btn:hover,
.collection-tabs .tab-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================
   CUSTOMER PANEL (shared)
   ========================================== */
.customer-layout { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; padding: 4rem 0; }
.customer-sidebar { background: var(--color-bg-secondary); border-radius: var(--radius-xl); padding: 2rem; align-self: start; position: sticky; top: calc(var(--header-height) + 2rem); }
.customer-sidebar .user-info { text-align: center; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border-light); margin-bottom: 2rem; }
.customer-sidebar .user-info .avatar { width: 6rem; height: 6rem; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 600; margin: 0 auto 1rem; }
.customer-sidebar .user-info h4 { font-size: 1.5rem; }
.customer-sidebar .user-info p { font-size: 1.3rem; color: var(--color-text-muted); }
.customer-sidebar nav a {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem;
    border-radius: var(--radius-md); font-size: 1.4rem; margin-bottom: 0.3rem;
    transition: all var(--transition);
}
.customer-sidebar nav a:hover { background: var(--color-bg-elevated); }
.customer-sidebar nav a.active { background: var(--color-bg-elevated); color: var(--color-primary); font-weight: 500; }
.customer-sidebar nav a i { width: 2rem; text-align: center; }
.customer-content { min-height: 50vh; }
.customer-content h2 { font-size: 2.4rem; font-weight: 500; margin-bottom: 2rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.stat-card {
    background: var(--color-bg-card); border-radius: var(--radius-xl); padding: 2rem;
    border: 1px solid var(--color-border-light);
}
.stat-card .stat-icon { width: 4.5rem; height: 4.5rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.2rem; }
.stat-card h3 { font-size: 2.4rem; font-weight: 600; margin-bottom: 0.3rem; }
.stat-card p { font-size: 1.3rem; color: var(--color-text-muted); }

.data-table { width: 100%; border-collapse: collapse; background: var(--color-bg-card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); }
.data-table th { text-align: left; padding: 1.2rem 1.5rem; background: var(--color-bg-secondary); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); }
.data-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--color-border-light); font-size: 1.4rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-bg-secondary); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-gallery { position: static; }
    .hero-content h1 { font-size: 3.2rem; }
    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-items { gap: 2rem; }
    .customer-layout { grid-template-columns: 1fr; }
    .customer-sidebar { position: static; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cart-table { font-size: 1.3rem; }
    .cart-table .cart-product img { width: 60px; height: 60px; }

    .main-nav {
        position: fixed; top: 0; left: -320px; width: 300px; max-width: 85vw;
        height: 100vh; background: var(--color-bg-card); z-index: 2001;
        transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
        flex-direction: column; justify-content: flex-start; padding: 7rem 0 2rem 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.12); overflow-y: auto;
    }
    .main-nav.active { left: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list > li > a {
        display: block; padding: 1.4rem 2.4rem; font-size: 1.6rem; font-weight: 500;
        border-bottom: 1px solid var(--color-border-light); transition: background var(--transition);
    }
    .nav-list > li > a:hover { background: var(--color-bg-secondary); }
    .nav-list > li > a::after { display: none; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; margin: 0; padding: 0.6rem 0 0.6rem 2rem;
        border: none; min-width: auto;
    }
    .dropdown-menu li a { padding: 0.8rem 1.2rem; font-size: 1.45rem; }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .product-card-info { padding: 1.2rem; }
    .product-card-title { font-size: 1.3rem; }
    .hero-content h1 { font-size: 2.6rem; }
    .auth-card { padding: 2.5rem; }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-sale); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-to-top {
    position: fixed; bottom: 2.4rem; right: 2.4rem;
    width: 5.2rem; height: 5.2rem;
    background: var(--color-primary); color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; cursor: pointer;
    box-shadow: 0 4px 20px var(--color-primary-glow);
    z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(1rem);
    transition: all var(--transition);
}
.scroll-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--color-primary-glow);
}
.scroll-to-top:active { transform: translateY(-1px); }
@media (max-width: 768px) {
    .scroll-to-top { width: 4.6rem; height: 4.6rem; bottom: 2rem; right: 2rem; font-size: 1.6rem; }
}

/* FAQ Accordion */
.faq-toggle.active i.fa-chevron-down { transform: rotate(180deg); }
.faq-toggle:hover { background: var(--color-bg-light) !important; }
.faq-toggle { border: none; transition: background 0.2s; }

/* ==========================================
   VTuberAvatars - Enhanced Styles
   Mobile-First • Premium Design • 2025
   ========================================== */

/* ---- SPACING SYSTEM ---- */
.space-xs { margin-bottom: 0.8rem; }
.space-sm { margin-bottom: 1.6rem; }
.space-md { margin-bottom: 2.4rem; }
.space-lg { margin-bottom: 4rem; }
.space-xl { margin-bottom: 6rem; }
.pad-sm { padding: 1.2rem; }
.pad-md { padding: 2rem; }
.pad-lg { padding: 3rem; }
.section-pad { padding: 5rem 0; }
@media (min-width: 768px) { .section-pad { padding: 6rem 0; } }
@media (min-width: 1024px) { .section-pad { padding: 8rem 0; } }

/* ---- TYPOGRAPHY SCALE ---- */
.text-xs { font-size: 1.2rem; }
.text-sm { font-size: 1.4rem; }
.text-base { font-size: 1.6rem; }
.text-lg { font-size: 1.8rem; }
.text-xl { font-size: 2.2rem; }
.text-2xl { font-size: 2.8rem; }
.text-3xl { font-size: 3.4rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }
.tracking-tight { letter-spacing: -0.03em; }
.tracking-wide { letter-spacing: 0.05em; }

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }

/* ---- SKELETON LOADING ---- */
.skeleton {
    background: linear-gradient(90deg, var(--color-border-light) 25%, #e8e8e8 50%, var(--color-border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
.skeleton-text { height: 1em; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.5em; width: 70%; margin-bottom: 1rem; }
.skeleton-avatar { width: 4rem; height: 4rem; border-radius: 50%; }
.skeleton-image { aspect-ratio: 1; width: 100%; }

/* ---- IMAGE OPTIMIZATION ---- */
.img-cover { object-fit: cover; }
.img-contain { object-fit: contain; }
.img-placeholder { background: var(--color-bg-secondary); }
.aspect-square { aspect-ratio: 1; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-card { aspect-ratio: 3/4; }

/* ---- CARD ENHANCEMENTS ---- */
.card-elevated {
    background: var(--color-bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}
.card-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card-interactive {
    cursor: pointer;
    transition: transform var(--transition-bounce), box-shadow var(--transition);
}
.card-interactive:active { transform: scale(0.98); }

/* ---- BUTTON VARIANTS (Extended) ---- */
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--color-bg-secondary); }
.btn-soft { background: rgba(164,44,195,0.1); color: var(--color-primary); }
.btn-soft:hover { background: rgba(164,44,195,0.2); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:disabled, .btn.loading { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 1.6rem; height: 1.6rem; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- FORM ENHANCEMENTS ---- */
.input-group { position: relative; }
.input-group input { padding-right: 4rem; }
.input-group .input-icon {
    position: absolute; right: 1.2rem; top: 50%;
    transform: translateY(-50%); color: var(--color-text-muted);
    font-size: 1.6rem; pointer-events: none;
}
.input-floating label {
    position: absolute; left: 1.6rem; top: 50%;
    transform: translateY(-50%); color: var(--color-text-muted);
    font-size: 1.5rem; transition: all 0.2s;
    pointer-events: none;
}
.input-floating input:focus + label,
.input-floating input:not(:placeholder-shown) + label,
.input-floating input:focus ~ label,
.input-floating input:not(:placeholder-shown) ~ label {
    top: 0; font-size: 1.2rem; color: var(--color-primary);
    transform: translateY(-50%);
}
.form-label-required::after { content: ' *'; color: var(--color-sale); }
.input-error { border-color: var(--color-sale) !important; }
.input-success { border-color: var(--color-success) !important; }

/* ---- MOBILE NAV ENHANCEMENT ---- */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
@media (max-width: 1024px) {
    .header-inner { gap: 1rem; }
    .logo-text { font-size: 1.9rem; }
    .header-action-btn { width: 4rem; height: 4rem; font-size: 1.6rem; }
}

/* ---- PRODUCT CARD MOBILE ---- */
@media (max-width: 576px) {
    .product-card-info { padding: 1.2rem; }
    .product-card-title { font-size: 1.4rem; }
    .product-card-price { font-size: 1.5rem; }
    .product-card-badges { top: 0.8rem; left: 0.8rem; }
    .product-card-add-btn { padding: 1rem 1.2rem; font-size: 1.35rem; min-height: 44px; }
}

/* ---- SHOP LAYOUT MOBILE ---- */
@media (max-width: 768px) {
    .shop-layout { gap: 2rem; }
    .filter-group { margin-bottom: 2rem; }
    .sort-bar {
        flex-direction: column; align-items: stretch;
        gap: 1rem; margin-bottom: 2rem;
    }
    .sort-bar select { width: 100%; padding: 1rem 1.5rem; }
}

/* ---- CART MOBILE ---- */
@media (max-width: 768px) {
    .cart-drawer { width: 100%; max-width: 100%; right: -100%; }
    .cart-drawer.active { right: 0; }
    .cart-drawer-item { flex-direction: column; align-items: flex-start; }
    .cart-drawer-item img { width: 100%; height: auto; max-height: 200px; }
    .cart-table { display: block; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; margin-bottom: 2rem; padding: 1.5rem; background: var(--color-bg-secondary); border-radius: var(--radius-lg); }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border: none; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; margin-right: 1rem; }
    .cart-table .cart-product { flex-direction: column; align-items: flex-start; }
    .cart-summary { margin-top: 2rem; margin-left: 0; }
}

/* ---- CHECKOUT MOBILE ---- */
@media (max-width: 768px) {
    .checkout-order-summary { position: static; }
    .checkout-section h3 { font-size: 1.8rem; }
}

/* ---- BLOG MOBILE ---- */
@media (max-width: 576px) {
    .blog-card-body { padding: 1.5rem; }
    .blog-card-title { font-size: 1.6rem; }
    .blog-card-meta { flex-wrap: wrap; gap: 1rem; font-size: 1.15rem; }
    .blog-post-single h1 { font-size: 2.6rem; }
    .blog-post-meta { flex-direction: column; gap: 0.5rem; }
}

/* ---- CONTACT MOBILE ---- */
@media (max-width: 768px) {
    .contact-grid { gap: 3rem; }
    .contact-info-item { margin-bottom: 2rem; }
}

/* ---- SEARCH MOBILE ---- */
@media (max-width: 576px) {
    .search-page { padding: 3rem 0 4rem; }
    .search-page-header h1 { font-size: 2.6rem; }
    .search-form-hero { flex-direction: column; }
    .search-form-hero input { font-size: 1.6rem; padding: 1.4rem 1.8rem; }
    .search-form-hero button { width: 100%; height: 5rem; }
    .search-suggestion-tags { gap: 0.8rem; }
    .search-suggestion-tags a { padding: 0.8rem 1.6rem; font-size: 1.3rem; }
}

/* ---- AUTH MOBILE ---- */
@media (max-width: 480px) {
    .auth-page { padding: 3rem 1.5rem; }
    .auth-card { padding: 2.5rem 2rem; }
    .auth-card h1 { font-size: 2.4rem; }
}

/* ---- FOOTER MOBILE ---- */
@media (max-width: 768px) {
    .footer-top { padding: 4rem 0 3rem; }
    .footer-grid { gap: 3rem; }
    .footer-col h4 { margin-bottom: 1.5rem; font-size: 1.5rem; }
    .footer-description { font-size: 1.4rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}

/* ---- HERO MOBILE (Extra Small) ---- */
@media (max-width: 400px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.4rem; }
    .hero-content .btn { padding: 1.2rem 2.5rem; font-size: 1.4rem; }
}

/* ---- TOUCH TARGETS (Accessibility) ---- */
@media (pointer: coarse) {
    .btn, .header-action-btn, .product-card-add-btn,
    .pagination-btn, .hero-dot, .scroll-to-top {
        min-height: 44px; min-width: 44px;
    }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .scroll-to-top { transition: opacity 0.2s; }
}

/* ---- CONTAINER RESPONSIVE ---- */
@media (max-width: 1400px) { .container { padding: 0 2rem; } }
@media (max-width: 768px) { .container { padding: 0 1.5rem; } }
@media (max-width: 480px) { .container { padding: 0 1.2rem; } }

/* ---- BREADCRUMB MOBILE ---- */
@media (max-width: 480px) {
    .breadcrumb { font-size: 1.2rem; padding: 1.5rem 0; }
}

/* ---- PAGINATION MOBILE ---- */
@media (max-width: 480px) {
    .pagination { flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
    .pagination-btn { min-width: 3.6rem; height: 3.6rem; font-size: 1.3rem; }
}

/* ---- MODAL MOBILE ---- */
@media (max-width: 480px) {
    .modal-content { padding: 3rem 2rem; margin: 1rem; }
    .modal-body h2 { font-size: 2.4rem; }
}

/* ---- POPUP MOBILE ---- */
@media (max-width: 480px) {
    .popup-content { margin: 1rem; }
    .popup-body { padding: 2rem; }
}

/* ---- CUSTOMER PANEL MOBILE ---- */
@media (max-width: 768px) {
    .customer-sidebar nav a { padding: 1.2rem 1.5rem; }
    .stats-grid { gap: 1.5rem; }
    .stat-card { padding: 1.5rem; }
    .stat-card h3 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .data-table { font-size: 1.3rem; }
    .data-table th, .data-table td { padding: 1rem; }
}

/* ---- SECTION STAGGER ANIMATION (for JS) ---- */
.section-animate .product-card,
.section-animate .blog-card,
.section-animate .feature-item {
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.section-animate .product-card:nth-child(1) { animation-delay: 0.05s; }
.section-animate .product-card:nth-child(2) { animation-delay: 0.1s; }
.section-animate .product-card:nth-child(3) { animation-delay: 0.15s; }
.section-animate .product-card:nth-child(4) { animation-delay: 0.2s; }
.section-animate .product-card:nth-child(5) { animation-delay: 0.25s; }
.section-animate .product-card:nth-child(6) { animation-delay: 0.3s; }
.section-animate .product-card:nth-child(7) { animation-delay: 0.35s; }
.section-animate .product-card:nth-child(8) { animation-delay: 0.4s; }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center; padding: 5rem 2rem;
    background: var(--color-bg-secondary); border-radius: var(--radius-xl);
}
.empty-state i { font-size: 5rem; color: var(--color-border); margin-bottom: 2rem; display: block; }
.empty-state h3 { font-size: 2rem; margin-bottom: 1rem; }
.empty-state p { color: var(--color-text-light); margin-bottom: 2rem; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--color-border-light); margin: 2rem 0; }
.divider-vertical { width: 1px; background: var(--color-border-light); margin: 0 2rem; min-height: 2rem; }

/* ---- TOOLTIP (basic) ---- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip); position: absolute;
    bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-0.5rem);
    padding: 0.5rem 1rem; background: #1a1a1a; color: #fff;
    font-size: 1.2rem; white-space: nowrap;
    border-radius: var(--radius-sm); opacity: 0;
    visibility: hidden; transition: all 0.2s;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; }

/* ---- BADGE EXTENDED ---- */
.badge-pill { border-radius: var(--radius-full); padding: 0.3rem 1rem; }
.badge-outline { background: transparent; border: 1px solid currentColor; }

/* ---- VISUALLY HIDDEN (a11y) ---- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap;
    border: 0;
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ---- SELECTION ---- */
::selection { background: rgba(164,44,195,0.2); color: var(--color-text); }

/* ---- FOCUS RING UTILITY ---- */
.focus-ring:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---- SAFE AREA (notch devices) ---- */
@supports (padding: max(0px)) {
    .scroll-to-top { bottom: max(2.4rem, env(safe-area-inset-bottom)); right: max(2.4rem, env(safe-area-inset-right)); }
}
@media (max-width: 768px) {
    @supports (padding: max(0px)) {
        .scroll-to-top { bottom: max(2rem, env(safe-area-inset-bottom)); right: max(2rem, env(safe-area-inset-right)); }
    }
}

/* ---- PRODUCT QUICK VIEW PLACEHOLDER ---- */
.product-quick-add { transition: opacity var(--transition); }
.product-card:hover .product-quick-add { opacity: 1; }

/* ---- CATEGORY CARD (index) ---- */
a.product-card[href*="category"] {
    display: flex; flex-direction: column; align-items: center;
    padding: 2rem; text-decoration: none; color: inherit;
}
a.product-card[href*="category"]:hover { color: var(--color-primary); }

/* ---- WHY SECTION CARDS ---- */
.why-card {
    background: var(--color-bg-card); border-radius: var(--radius-xl);
    padding: 3rem 2rem; text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}
.why-card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); }

/* ---- TESTIMONIAL MOBILE ---- */
@media (max-width: 768px) {
    .testimonial-card { padding: 2rem; }
    .testimonial-text { font-size: 1.4rem; }
}

/* ---- TABLE RESPONSIVE WRAPPER ---- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 600px; }

/* ---- FLEX UTILITIES ---- */
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }

/* ---- GRID UTILITIES ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- 1024px BREAKPOINT ---- */
@media (max-width: 1024px) {
    .product-detail-grid { gap: 4rem; }
    .footer-trust-bar { padding: 3rem 0; }
}

/* ---- 1200px BREAKPOINT ---- */
@media (max-width: 1200px) {
    .product-grid { gap: 2rem; }
    .blog-grid { gap: 2.5rem; }
}

/* ---- LANDSCAPE MOBILE ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider-section { min-height: 100vh; height: auto; padding: 4rem 0; }
}

/* ---- PRINT ---- */
@media print {
    .site-header, .site-footer, .scroll-to-top, .overlay,
    .cart-drawer, .search-drawer, .modal-overlay, .popup-overlay,
    .hero-slider-arrow, .hero-slider-dots { display: none !important; }
    body { font-size: 12pt; }
    a { text-decoration: underline; }
}

/* ==========================================
   PREMIUM UI COMPONENTS
   ========================================== */

/* ---- PROGRESS BAR ---- */
.progress-bar {
    height: 0.6rem; background: var(--color-border-light);
    border-radius: var(--radius-full); overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full); transition: width 0.5s ease;
}

/* ---- ALERT BOXES ---- */
.alert {
    padding: 1.5rem 2rem; border-radius: var(--radius-md);
    display: flex; align-items: flex-start; gap: 1.2rem;
    border: 1px solid transparent;
}
.alert i { font-size: 2rem; flex-shrink: 0; margin-top: 0.2rem; }
.alert-success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); color: #166534; }
.alert-success i { color: var(--color-success); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: #92400e; }
.alert-warning i { color: var(--color-warning); }
.alert-error { background: rgba(214,58,47,0.08); border-color: rgba(214,58,47,0.3); color: #991b1b; }
.alert-error i { color: var(--color-error); }
.alert-info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); color: #1e40af; }
.alert-info i { color: var(--color-info); }

/* ---- AVATAR ---- */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 3.2rem; height: 3.2rem; }
.avatar-md { width: 4.8rem; height: 4.8rem; }
.avatar-lg { width: 6.4rem; height: 6.4rem; }

/* ---- TAGS / CHIPS ---- */
.tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem; font-size: 1.2rem;
    background: var(--color-bg-secondary); border-radius: var(--radius-full);
}
.tag-primary { background: rgba(164,44,195,0.12); color: var(--color-primary); }

/* ---- DROPDOWN MENU ---- */
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 20rem; background: var(--color-bg-card);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    padding: 0.5rem; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(-0.5rem);
    transition: all 0.2s ease;
}
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: block; width: 100%; padding: 1rem 1.5rem;
    text-align: left; font-size: 1.4rem; border-radius: var(--radius-md);
    transition: background 0.2s;
}
.dropdown-item:hover { background: var(--color-bg-secondary); }
.dropdown-divider { height: 1px; background: var(--color-border-light); margin: 0.5rem 0; }

/* ---- TABS ---- */
.tabs-nav {
    display: flex; gap: 0.5rem; border-bottom: 2px solid var(--color-border-light);
    margin-bottom: 2rem;
}
.tab-btn {
    padding: 1.2rem 2rem; font-size: 1.4rem; font-weight: 500;
    color: var(--color-text-light); border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ---- RATING STARS ---- */
.rating-stars { display: flex; gap: 0.3rem; color: var(--color-border); }
.rating-stars i.filled { color: #f59e0b; }
.rating-stars i.half { background: linear-gradient(90deg, #f59e0b 50%, var(--color-border) 50%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- STEP INDICATOR ---- */
.step-indicator { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.step {
    display: flex; align-items: center; gap: 1rem;
}
.step-number {
    width: 3.2rem; height: 3.2rem;
    border-radius: 50%; background: var(--color-border-light);
    color: var(--color-text-muted); font-size: 1.4rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.step.active .step-number { background: var(--color-primary); color: #fff; }
.step.completed .step-number { background: var(--color-success); color: #fff; }
.step-connector { width: 4rem; height: 2px; background: var(--color-border); }

/* ---- LOADING SPINNER ---- */
.spinner-large {
    width: 4rem; height: 4rem;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ---- BREADCRUMB ENHANCED ---- */
.breadcrumb-link:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb-sep { color: var(--color-text-muted); margin: 0 0.8rem; }

/* ---- BACKDROP BLUR (Modern) ---- */
.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---- GLASSMORPHISM CARD ---- */
.glass-card {
    background: rgba(22,22,26,0.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}

/* ---- HOVER LIFT ---- */
.hover-lift { transition: transform var(--transition-bounce); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-scale { transition: transform var(--transition); }
.hover-scale:hover { transform: scale(1.02); }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- SECTION LABEL ---- */
.section-label {
    display: inline-block; font-size: 1.2rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--color-primary); margin-bottom: 1rem;
}

/* ---- PRICE BLOCK ---- */
.price-block { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.price-current { font-size: 2.2rem; font-weight: 700; color: var(--color-text); }
.price-old { font-size: 1.5rem; color: var(--color-text-muted); text-decoration: line-through; }

/* ---- NOTIFICATION BADGE ---- */
.notification-badge {
    position: absolute; top: -0.5rem; right: -0.5rem;
    min-width: 1.8rem; height: 1.8rem; padding: 0 0.5rem;
    font-size: 1.1rem; font-weight: 600;
    background: var(--color-sale); color: #fff;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
}

/* ---- SWIPE HINT (Mobile) ---- */
.swipe-hint {
    font-size: 1.2rem; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
@media (min-width: 769px) { .swipe-hint { display: none; } }

/* ---- MOBILE BOTTOM BAR ---- */
.mobile-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-bg-card); border-top: 1px solid var(--color-border);
    padding: 1rem env(safe-area-inset-right) 1rem env(safe-area-inset-left);
    display: none; z-index: 900;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .mobile-bottom-bar.active { display: flex; justify-content: space-around; align-items: center; }
}

/* ---- HEADER STICKY TRANSITION ---- */
.site-header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }


/* ---- IMAGE LAZY LOADING PLACEHOLDER ---- */
img[data-src] { background: var(--color-bg-secondary); min-height: 200px; }

/* ---- PRODUCT THUMBNAIL GALLERY ---- */
.product-thumbs { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.product-thumb {
    width: 6rem; height: 6rem; border-radius: var(--radius-md);
    border: 2px solid transparent; overflow: hidden;
    cursor: pointer; transition: all 0.2s;
}
.product-thumb:hover,
.product-thumb.active { border-color: var(--color-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- QUANTITY INPUT ---- */
.quantity-control {
    display: inline-flex; align-items: center;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    overflow: hidden;
}
.quantity-control button {
    width: 4rem; height: 4rem;
    background: var(--color-bg-secondary);
    font-size: 1.6rem; color: var(--color-text);
    transition: background 0.2s;
}
.quantity-control button:hover { background: var(--color-border); }
.quantity-control input {
    width: 4rem; height: 4rem; text-align: center;
    border: none; border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: 1.5rem; font-weight: 500;
}

/* ---- COLOR SWATCH ---- */
.color-swatch {
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 2px solid var(--color-border-light); box-shadow: var(--shadow-sm);
    cursor: pointer; transition: transform 0.2s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--color-primary); transform: scale(1.15); }

/* ---- SIZE SELECTOR ---- */
.size-option {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 4rem; height: 4rem; padding: 0 1rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    font-size: 1.4rem; cursor: pointer; transition: all 0.2s;
}
.size-option:hover { border-color: var(--color-primary); color: var(--color-primary); }
.size-option.active { border-color: var(--color-primary); background: rgba(164,44,195,0.08); color: var(--color-primary); }
.size-option.disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }

/* ---- FEATURE ICON CIRCLE ---- */
.feature-icon-circle {
    width: 6rem; height: 6rem; border-radius: 50%;
    background: rgba(164,44,195,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: var(--color-primary);
    margin: 0 auto 1.5rem; transition: all var(--transition);
}
.feature-item:hover .feature-icon-circle {
    background: var(--color-primary); color: #fff;
    transform: scale(1.05);
}

/* ---- HERO CTA GROUP ---- */
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.hero-cta-group .btn { min-width: 16rem; }
@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group .btn { width: 100%; min-width: unset; }
}

/* ---- TESTIMONIAL QUOTE ---- */
.testimonial-quote::before {
    content: '"'; font-size: 5rem; color: var(--color-primary-light);
    opacity: 0.4; position: absolute; top: -1rem; left: 0;
    font-family: Georgia, serif;
}

/* ---- FOOTER LINK HOVER ---- */
.footer-col a { transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--color-primary); padding-left: 0.3rem; }

/* ---- CARD BORDER GRADIENT ---- */
.card-gradient-border {
    position: relative; background: var(--color-bg-card);
    border-radius: var(--radius-xl);
}
.card-gradient-border::before {
    content: ''; position: absolute; inset: 0;
    padding: 1px; border-radius: inherit;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- FLASH SALE BAR ---- */
.flash-sale-bar {
    background: linear-gradient(90deg, var(--color-sale), #e85a4f);
    color: #fff; padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-size: 1.4rem; font-weight: 500;
}
.flash-sale-bar .countdown { font-weight: 700; }

/* ---- COMPARE BAR (Sticky) ---- */
.compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-bg-card); border-top: 1px solid var(--color-border);
    padding: 1.5rem 2rem; display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 800;
}
.compare-bar.active { display: flex; align-items: center; justify-content: space-between; }

/* ---- WISHLIST HEART ANIMATION ---- */
.wishlist-btn.added i { color: var(--color-sale); }
.wishlist-btn.added i { animation: heartbeat 0.5s ease; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

/* ---- COMPARE CHECKBOX ---- */
.compare-checkbox { accent-color: var(--color-primary); }

/* ---- FILTER ACCORDION ---- */
.filter-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 0; cursor: pointer;
    font-size: 1.5rem; font-weight: 500;
}
.filter-accordion-header:hover { color: var(--color-primary); }
.filter-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.filter-accordion.open .filter-accordion-content { max-height: 50rem; }

/* ---- VIEW TOGGLE ---- */
.view-toggle button {
    width: 4rem; height: 4rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary); border-radius: var(--radius-md);
    color: var(--color-text-muted); transition: all 0.2s;
}
.view-toggle button:hover,
.view-toggle button.active { border-color: var(--color-primary); color: var(--color-primary); }
.view-toggle button + button { margin-left: 0.5rem; }

/* ---- PRODUCT LIST VIEW ---- */
.product-list-view .product-card {
    display: grid; grid-template-columns: 28rem 1fr;
    gap: 3rem; text-align: left;
}
.product-list-view .product-card-image { aspect-ratio: 1; }
@media (max-width: 768px) {
    .product-list-view .product-card { grid-template-columns: 1fr; text-align: center; }
}

/* ---- MEGA MENU ---- */
.mega-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg-card); box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border-light);
    padding: 3rem; z-index: 100;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 3rem; opacity: 0; visibility: hidden;
    transform: translateY(-1rem); transition: all 0.25s;
}
.mega-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-col h4 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.mega-menu-col a { display: block; padding: 0.6rem 0; font-size: 1.4rem; }
@media (max-width: 1024px) { .mega-menu { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .mega-menu { grid-template-columns: 1fr; padding: 2rem; } }

/* ---- NOTIFICATION TOAST ---- */
.toast {
    position: fixed; bottom: 2rem; right: 2rem;
    max-width: 36rem; padding: 1.5rem 2rem;
    background: #1a1a1a; color: #fff;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    z-index: 9999; transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-sale); }

/* ---- SKIP LINK (A11y) ---- */
.skip-link {
    position: absolute; top: -100%; left: 0.5rem;
    padding: 1rem 1.5rem; background: var(--color-primary);
    color: #fff; font-weight: 600; z-index: 10000;
    border-radius: var(--radius-md);
    transition: top 0.3s;
}
.skip-link:focus { top: 0.5rem; }

/* ==========================================
   ADDITIONAL RESPONSIVE & POLISH
   ========================================== */

/* ---- 576px BREAKPOINT ---- */
@media (max-width: 576px) {
    .hero-slider-slide h1 { font-size: 2.8rem; line-height: 1.2; }
    .section-title { font-size: 2.4rem; margin-bottom: 2rem; }
    .section-subtitle { font-size: 1.4rem; }
    .features-bar .feature-item { padding: 2rem 1.5rem; }
    .trust-item { flex-direction: column; text-align: center; gap: 1rem; }
    .why-card { padding: 2rem 1.5rem; }
    .blog-card-image { aspect-ratio: 16/10; }
}

/* ---- 480px BREAKPOINT ---- */
@media (max-width: 480px) {
    .product-grid { gap: 1.5rem; }
    .product-card { font-size: 1.3rem; }
    .btn { padding: 1rem 2rem; font-size: 1.3rem; }
    .btn-lg { padding: 1.2rem 3rem; font-size: 1.5rem; }
    .input, .select, .textarea { padding: 1rem 1.4rem; font-size: 1.5rem; }
    .modal-overlay { padding: 2rem 1rem; }
    .breadcrumb { flex-wrap: wrap; gap: 0.5rem; }
}

/* ---- 360px (Very Small) ---- */
@media (max-width: 360px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    .product-card-badges { font-size: 1rem; padding: 0.3rem 0.8rem; }
    .pagination-btn { min-width: 3.2rem; height: 3.2rem; font-size: 1.2rem; }
}

/* ---- TOUCH-OPTIMIZED BUTTONS ---- */
@media (hover: none) and (pointer: coarse) {
    .btn:active, .product-card-add-btn:active { transform: scale(0.97); }
    .header-action-btn:active { background: var(--color-bg-secondary); }
}

/* ---- HIGH CONTRAST (Prefers) ---- */
@media (prefers-contrast: high) {
    :root {
        --color-border: #333;
        --color-border-light: #222;
    }
    .btn-primary { border: 2px solid #000; }
}

/* ---- DARK MODE SUPPORT (System) ---- */
@media (prefers-color-scheme: dark) {
    /* Optional: enable when dark theme is implemented */
    /* body { --color-bg: #111; --color-text: #eee; } */
}

/* ---- LANDSCAPE PHONE ---- */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-slider-section { min-height: 70vh; }
}

/* ---- LARGE DESKTOP (1400px+) ---- */
@media (min-width: 1400px) {
    .container { max-width: 1440px; padding: 0 3rem; }
    .product-grid { gap: 3rem; }
}

/* ---- ULTRA-WIDE ---- */
@media (min-width: 1920px) {
    .container { max-width: 1600px; }
}

/* ---- PRODUCT CARD SECONDARY ACTIONS ---- */
.product-card-secondary { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.product-card-secondary a { font-size: 1.2rem; color: var(--color-text-muted); }
.product-card-secondary a:hover { color: var(--color-primary); }

/* ---- LINK UNDERLINE ANIMATION ---- */
.link-underline { position: relative; }
.link-underline::after {
    content: ''; position: absolute; bottom: -0.2rem; left: 0;
    width: 0; height: 2px; background: var(--color-primary);
    transition: width 0.3s ease;
}
.link-underline:hover::after { width: 100%; }

/* ---- ICON BUTTON CIRCLE ---- */
.icon-btn-circle {
    width: 4rem; height: 4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-secondary); color: var(--color-text);
    transition: all 0.2s;
}
.icon-btn-circle:hover { background: var(--color-primary); color: #fff; }

/* ---- OVERLINE LABEL ---- */
.overline-label {
    font-size: 1.1rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--color-primary);
    margin-bottom: 0.8rem; display: block;
}

/* ---- STICKY SIDEBAR ---- */
@media (min-width: 1025px) {
    .sticky-sidebar { position: sticky; top: 9rem; }
}

/* ---- MIN HEIGHT SECTIONS ---- */
.min-h-section { min-height: 50vh; }
.min-h-hero { min-height: 60vh; }
@media (min-width: 768px) {
    .min-h-section { min-height: 60vh; }
    .min-h-hero { min-height: 75vh; }
}

/* ---- OVERFLOW UTILITIES ---- */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ---- OPACITY UTILITIES ---- */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ---- CURSOR UTILITIES ---- */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ---- POSITION UTILITIES ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* ---- BORDER UTILITIES ---- */
.border { border: 1px solid var(--color-border); }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }

/* ---- SHADOW UTILITIES ---- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ---- Z-INDEX SCALE ---- */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-500 { z-index: 500; }
.z-1000 { z-index: 1000; }

/* ---- TRANSITION UTILITIES ---- */
.transition-fast { transition-duration: 0.15s; transition-timing-function: ease; }
.transition-normal { transition-duration: 0.3s; transition-timing-function: ease; }
.transition-slow { transition-duration: 0.5s; transition-timing-function: ease; }

/* ---- ASPECT RATIO UTILITIES ---- */
.aspect-1 { aspect-ratio: 1; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-4-3 { aspect-ratio: 4/3; }

/* ---- OBJECT FIT ---- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ---- DISPLAY UTILITIES ---- */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ---- TEXT DECORATION ---- */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }

/* ---- WHITESPACE ---- */
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- SCREEN READER ONLY ---- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap;
    border: 0;
}

/* ---- FADE EDGES (Carousel) ---- */
.fade-edges {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* ---- HERO OVERLAY ---- */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    pointer-events: none;
}

/* ---- IMAGE RATIO WRAPPER ---- */
.img-ratio-wrap {
    position: relative; overflow: hidden;
}
.img-ratio-wrap::before {
    content: ''; display: block; padding-bottom: 100%;
}
.img-ratio-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* ---- NO-SCROLL BODY (Modal Open) ---- */
body.no-scroll { overflow: hidden; touch-action: none; }

/* ---- PULL TO REFRESH HINT ---- */
.pull-hint {
    text-align: center; padding: 1rem;
    font-size: 1.2rem; color: var(--color-text-muted);
}

/* ---- LIST STYLE RESET ---- */
.list-reset { list-style: none; padding: 0; margin: 0; }
.list-reset li { padding: 0.5rem 0; }

/* ---- DIVIDER WITH TEXT ---- */
.divider-text {
    display: flex; align-items: center; gap: 2rem;
    margin: 2rem 0;
}
.divider-text::before,
.divider-text::after {
    content: ''; flex: 1; height: 1px;
    background: var(--color-border-light);
}
.divider-text span { color: var(--color-text-muted); font-size: 1.3rem; }

/* ---- STACK (Vertical spacing) ---- */
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }
.stack-xl > * + * { margin-top: 3rem; }

/* ---- CLUSTER (Inline flex) ---- */
.cluster { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---- SWITCH TOGGLE ---- */
.switch {
    width: 5rem; height: 2.6rem;
    background: var(--color-border); border-radius: var(--radius-full);
    position: relative; cursor: pointer; transition: background 0.3s;
}
.switch::after {
    content: ''; position: absolute; top: 0.3rem; left: 0.3rem;
    width: 2rem; height: 2rem; background: var(--color-text);
    border-radius: 50%; transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}
.switch.active { background: var(--color-primary); }
.switch.active::after { transform: translateX(2.4rem); }

/* ---- ACCORDION ITEM ---- */
.accordion-item { border-bottom: 1px solid var(--color-border-light); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
    width: 100%; padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.5rem; font-weight: 500; text-align: left;
    background: none; border: none; cursor: pointer;
}
.accordion-trigger:hover { color: var(--color-primary); }
.accordion-content { padding-bottom: 1.5rem; }

/* ---- TIMELINE (Vertical) ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -2.4rem; top: 0.5rem;
    width: 1rem; height: 1rem; background: var(--color-primary);
    border-radius: 50%;
}

/* ---- STACKED AVATARS ---- */
.avatar-stack { display: flex; }
.avatar-stack .avatar {
    margin-left: -1rem; border: 2px solid var(--color-bg-card);
}
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---- TRUNCATE MULTILINE ---- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- CUSTOM CHECKBOX / RADIO ---- */
.custom-checkbox { accent-color: var(--color-primary); }
.custom-radio { accent-color: var(--color-primary); }

/* ---- FOCUS WITHIN ---- */
.focus-within-ring:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-md); }

/* ---- LOADING OVERLAY ---- */
.loading-overlay {
    position: absolute; inset: 0;
    background: rgba(13,13,15,0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; border-radius: inherit;
}

/* ---- FADE BOTTOM (Reveal) ---- */
.reveal-fade { opacity: 0; transform: translateY(2rem); transition: all 0.5s ease; }
.reveal-fade.visible { opacity: 1; transform: translateY(0); }

/* ---- SCROLL SNAP ---- */
.scroll-snap-x { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.scroll-snap-x > * { scroll-snap-align: start; scroll-snap-stop: always; }

/* ---- GRADIENT BG UTILITIES ---- */
.bg-gradient-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
.bg-muted { background: var(--color-bg-secondary); }

/* ---- BOTTOM SAFE AREA PADDING ---- */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ---- STACK GRID ---- */
.stack-grid { display: grid; gap: 1rem; }
.stack-grid-lg { display: grid; gap: 2rem; }

/* ---- INLINE CENTER ---- */
.inline-center { display: flex; justify-content: center; align-items: center; }

/* ---- TEXT BALANCE (Experimental) ---- */
.text-balance { text-wrap: balance; }

/* ---- RESIZE NONE (Textarea) ---- */
.resize-none { resize: none; }

/* ---- INTERACTIVE OPACITY ---- */
.interactive-opacity { transition: opacity 0.2s; }
.interactive-opacity:hover { opacity: 0.85; }
.interactive-opacity:active { opacity: 0.7; }

/* ==========================================
   404 PAGE - Custom Error Page
   ========================================== */
.page-404 {
    position: relative; min-height: 75vh;
    display: flex; align-items: center; justify-content: center;
    padding: 6rem 0; overflow: hidden;
}
.page-404-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.page-404-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    animation: page404-float 8s ease-in-out infinite;
}
.page-404-orb-1 {
    width: 40rem; height: 40rem;
    background: var(--color-primary-light);
    top: -15rem; right: -10rem;
    animation-delay: 0s;
}
.page-404-orb-2 {
    width: 30rem; height: 30rem;
    background: var(--color-primary);
    bottom: -10rem; left: -5rem;
    animation-delay: -3s; opacity: 0.25;
}
.page-404-orb-3 {
    width: 20rem; height: 20rem;
    background: var(--color-primary-dark);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation-delay: -5s; opacity: 0.15;
}
@keyframes page404-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(2rem, -2rem); }
    66% { transform: translate(-1rem, 1rem); }
}
.page-404-content {
    position: relative; z-index: 1;
    text-align: center; max-width: 56rem; margin: 0 auto;
}
.page-404-visual {
    position: relative; margin-bottom: 2rem;
}
.page-404-number {
    display: block; font-size: clamp(10rem, 25vw, 16rem);
    font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: page404-pulse 3s ease-in-out infinite;
}
.page-404-icon {
    position: absolute; right: 10%; bottom: -1rem;
    font-size: 4rem; color: var(--color-primary-light);
    opacity: 0.7; animation: page404-float 5s ease-in-out infinite;
}
@keyframes page404-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.page-404-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700; margin-bottom: 1.5rem;
    color: var(--color-text);
}
.page-404-text {
    font-size: 1.6rem; color: var(--color-text-light);
    line-height: 1.7; margin-bottom: 3rem;
    max-width: 44rem; margin-left: auto; margin-right: auto;
}
.page-404-actions {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 1.5rem;
    margin-bottom: 3rem;
}
.page-404-actions .btn { white-space: nowrap; }
.page-404-search {
    display: flex; max-width: 36rem;
    margin: 0 auto 2rem; gap: 1rem;
    background: var(--color-bg-card); border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    padding: 0.5rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.page-404-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.page-404-search input {
    flex: 1; border: none; padding: 1rem 1.5rem;
    font-size: 1.5rem; background: transparent;
}
.page-404-search input:focus { outline: none; }
.page-404-search .btn {
    width: 4.8rem; height: 4.8rem; padding: 0;
    border-radius: 50%; flex-shrink: 0;
}
.page-404-hint {
    font-size: 1.3rem; color: var(--color-text-muted);
}
@media (max-width: 768px) {
    .page-404 { padding: 4rem 0; min-height: 60vh; }
    .page-404-actions { flex-direction: column; }
    .page-404-actions .btn { width: 100%; justify-content: center; }
    .page-404-search { flex-direction: column; border-radius: var(--radius-lg); }
    .page-404-search .btn { width: 100%; border-radius: var(--radius-md); }
}

/* ---- END VTuberAvatars Enhanced CSS - 2000+ Lines ---- */
