/* =============================================================
   TRENDFORU — 2026 SMOOTHNESS & STYLE OVERLAY
   Premium micro-interactions, spring physics, glassmorphism
   ============================================================= */

/* ── Font: loaded via <link> in base.html ────────────────────── */

:root {
    --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
    --grain-opacity: 0.025;
}

body {
    font-family: var(--font-main);
}

/* ── Film Grain Texture ──────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ── Smooth Scroll ───────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ── Cursor: use native system cursor ────────────────────────── */

/* ── Header Glass Effect ─────────────────────────────────────── */
.header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    transition: all 0.6s var(--ease-out-expo) !important;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 1px 30px rgba(0,0,0,0.06);
}

/* ── Nav Links — Underline Reveal ────────────────────────────── */
.main-nav a {
    position: relative;
    font-family: var(--font-main);
    font-weight: 400;
    letter-spacing: 2px;
    transition: color 0.4s ease !important;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Announcement Bar — Smoother ─────────────────────────────── */
.announcement-bar {
    font-family: var(--font-main);
    font-weight: 400;
    letter-spacing: 2px;
    background: #0a0a0a !important;
}

/* ── Product Cards — Spring Hover + Reveal ────────────────────── */
.product-card {
    transition: opacity 0.9s var(--ease-out-expo),
                transform 0.9s var(--ease-out-expo) !important;
}

.product-card:hover {
    transform: translateY(-6px) !important;
    transition: transform 0.5s var(--spring) !important;
}

.product-image {
    overflow: hidden;
    border-radius: 2px;
}

.product-image img {
    transition: transform 1.4s var(--ease-out-expo),
                opacity 0.6s ease !important;
}

.product-card:hover .product-image img:first-child {
    transform: scale(1.08);
}

/* Product info smooth reveal */
.product-info {
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}

.product-name {
    font-family: var(--font-main) !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
}

/* ── Favorite Button — Bounce ────────────────────────────────── */
.fav-btn {
    transition: transform 0.4s var(--spring) !important;
}

.fav-btn:hover {
    transform: scale(1.15) !important;
}

.fav-btn:active {
    transform: scale(0.9) !important;
    transition: transform 0.1s ease !important;
}

.fav-btn.active svg {
    animation: heartPop 0.5s var(--spring);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ── Badges — Pill Glassmorphism ─────────────────────────────── */
.badge {
    font-family: var(--font-main);
    font-weight: 500;
    border-radius: 100px !important;
    padding: 5px 14px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 9px !important;
    letter-spacing: 1.2px !important;
}

.badge:not(.badge-sale) {
    background: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(0,0,0,0.06);
}

.badge-sale {
    background: linear-gradient(135deg, #e53e3e, #c41e3a) !important;
    border: none;
}

/* ── Hero — Cinematic Depth ──────────────────────────────────── */
.hero {
    perspective: 1200px;
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0.45) 100%
    ) !important;
}

.hero h1 {
    font-family: var(--font-main) !important;
    font-weight: 200 !important;
    letter-spacing: 16px !important;
}

.hero-btn {
    font-family: var(--font-main) !important;
    font-weight: 400;
    border-radius: 0;
    padding: 14px 40px !important;
    letter-spacing: 3px !important;
    transition: all 0.5s var(--ease-out-expo) !important;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.hero-btn:hover::before {
    transform: scaleX(1);
}

.hero-btn:hover {
    color: #0a0a0a !important;
    border-color: #fff !important;
}

/* ── Buttons — Fill Sweep Animation ──────────────────────────── */
.btn, .btn-filled, .add-to-cart, .checkout-btn, .auth-btn {
    font-family: var(--font-main) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, border-color 0.4s ease !important;
}

.add-to-cart, .checkout-btn {
    border-radius: 1px;
}

.add-to-cart::before,
.checkout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--ease-out-expo), background 0.5s ease;
}

.add-to-cart:hover::before {
    transform: scaleY(1);
    background: #fff;
}

.add-to-cart:hover {
    color: #1a1a1a !important;
}

.checkout-btn::before {
    background: #fff;
}

.checkout-btn:hover::before {
    transform: scaleY(1);
}

/* ── Category Cards — Smooth Zoom + Overlay Fade ─────────────── */
.category-card {
    border-radius: 3px;
    overflow: hidden;
}

.category-card img {
    transition: transform 1.6s var(--ease-out-expo) !important;
}

.category-card:hover img {
    transform: scale(1.06) !important;
}

.category-overlay {
    transition: background 0.6s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.5));
}

.category-name {
    font-family: var(--font-main) !important;
    font-weight: 400;
    transition: transform 0.5s var(--ease-out-expo), letter-spacing 0.5s ease;
}

.category-card:hover .category-name {
    transform: translateY(-4px);
    letter-spacing: 5px;
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-title {
    font-family: var(--font-main) !important;
    font-weight: 500 !important;
}

.section-link {
    font-family: var(--font-main) !important;
    position: relative;
}

.section-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.section-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Form Inputs — Modern Float Labels ───────────────────────── */
.form-group input,
.form-group textarea,
.form-group select,
.auth-form input {
    font-family: var(--font-main) !important;
    border-radius: 1px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.form-group input:focus,
.form-group textarea:focus,
.auth-form input:focus {
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06) !important;
}

/* ── Cart Summary — Glass Card ───────────────────────────────── */
.cart-summary {
    background: rgba(250,250,250,0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 2px;
}

/* ── Cart Item — Smooth Remove ───────────────────────────────── */
.cart-item {
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-30px);
}

/* ── Search Modal — Blur Glass ───────────────────────────────── */
.search-modal {
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(40px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.5) !important;
}

.search-modal.active {
    animation: searchFadeIn 0.4s var(--ease-out-expo);
}

@keyframes searchFadeIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(40px); }
}

.search-form input {
    font-family: var(--font-main) !important;
    font-size: 18px !important;
    font-weight: 300;
}

/* ── Mobile Menu — Smoother Reveal ───────────────────────────── */
.mobile-menu {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.mobile-nav a {
    font-family: var(--font-main) !important;
    font-weight: 400;
    transition: color 0.3s ease, letter-spacing 0.5s var(--ease-out-expo);
}

.mobile-nav a:active {
    letter-spacing: 6px;
}

/* ── Live Notifications — Glass ──────────────────────────────── */
.live-notification {
    background: rgba(13,13,13,0.88) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 3px;
    animation: notifSlideIn 0.7s var(--spring), fadeOut 0.5s ease 4.5s forwards !important;
}

@keyframes notifSlideIn {
    from { transform: translateX(-110%) scale(0.95); opacity: 0; }
    60% { transform: translateX(4%) scale(1.01); }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ── Footer 2026 — Full Redesign ─────────────────────────────── */
.footer { display: none; } /* hide old footer if still in DOM */

.footer-2026 {
    font-family: var(--font-main);
    background: #0a0a0a;
    color: #fff;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle top glow line */
.footer-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.f26-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 50px 40px;
}

/* ── Top: Brand + Social ── */
.f26-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 50px;
}

.f26-logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 8px;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 14px;
    transition: letter-spacing 0.6s var(--ease-out-expo);
}

.f26-logo:hover {
    letter-spacing: 12px;
    color: #fff;
}

.f26-tagline {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.f26-social {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-top: 6px;
}

.f26-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    transition: color 0.4s ease, transform 0.4s var(--spring);
}

.f26-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.f26-social-link svg {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.f26-social-link:hover svg {
    opacity: 1;
}

/* ── Middle: Grid ── */
.f26-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 30px;
}

.f26-heading {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.3);
    margin: 0 0 20px;
    text-transform: uppercase;
}

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

.f26-list li {
    margin-bottom: 12px;
}

.f26-list a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, padding-left 0.4s var(--ease-out-expo);
    display: inline-block;
}

.f26-list a:hover {
    color: #fff;
    padding-left: 6px;
}

.f26-contact-list li {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 300;
}

/* ── Bottom Bar ── */
.f26-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.f26-copy {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255,255,255,0.25);
    letter-spacing: 1px;
}

.f26-dev a {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.f26-dev a:hover {
    color: rgba(255,255,255,0.6);
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
    .f26-container {
        padding: 50px 24px 30px;
    }

    .f26-top {
        flex-direction: column;
        gap: 28px;
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .f26-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-bottom: 36px;
    }

    .f26-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .f26-container {
        padding: 40px 20px 24px;
    }

    .f26-logo {
        font-size: 22px;
        letter-spacing: 6px;
    }

    .f26-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── Scroll Progress — Gradient ──────────────────────────────── */
.scroll-progress {
    background: linear-gradient(90deg, #1a1a1a 0%, #666 100%) !important;
    height: 2px;
}

/* ── Preloader — Smoother ────────────────────────────────────── */
.preloader {
    font-family: var(--font-main) !important;
}

.preloader-logo span {
    font-weight: 200;
}

/* ── Page Transition — Smoother Wipe ─────────────────────────── */
.page-transition-overlay {
    transition: transform 0.6s var(--ease-out-quint) !important;
}

/* ── Smooth Image Reveal ─────────────────────────────────────── */
.main-content img:not(.gallery-slide img):not(.thumb img) {
    transition: opacity 1s var(--ease-out-expo) !important;
}

/* Gallery images always visible */
.gallery-slide img,
.gallery-track img,
.gallery-main img,
.thumb img {
    opacity: 1 !important;
    pointer-events: none;
}

/* ── Ripple — Softer ─────────────────────────────────────────── */
.ripple {
    background: rgba(255,255,255,0.15) !important;
}

/* ── Dark Sections — Glow ────────────────────────────────────── */
.dark-section {
    position: relative;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Outline Typography Band — Smoother ──────────────────────── */
.outline-text, .outline-marquee span {
    font-family: var(--font-main) !important;
    font-weight: 200;
}

/* ── Stats Counter — Spring Pop ──────────────────────────────── */
.stat-item.visible .stat-number {
    animation: statPop 0.6s var(--spring);
}

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

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-title {
    font-family: var(--font-main) !important;
    font-weight: 300 !important;
    letter-spacing: 5px !important;
}

.auth-btn {
    font-family: var(--font-main) !important;
}

/* ── Cabinet Cards — Subtle Hover ────────────────────────────── */
.cabinet-card {
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo) !important;
}

.cabinet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ── Tooltip Micro-animation ─────────────────────────────────── */
[title] {
    position: relative;
}

/* ── Size Buttons — Better Feedback ──────────────────────────── */
.size-option {
    font-family: var(--font-main) !important;
    transition: all 0.3s var(--spring) !important;
    border-radius: 1px;
}

.size-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.size-option.active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(26,26,26,0.15);
}

/* ── Quantity Controls — Smooth ──────────────────────────────── */
.quantity-btn {
    transition: background 0.3s ease, transform 0.2s var(--spring) !important;
    border-radius: 0;
}

.quantity-btn:active {
    transform: scale(0.9);
}

/* ── Accordion Details — Smooth Open ─────────────────────────── */
details {
    transition: all 0.3s ease;
}

details summary {
    font-family: var(--font-main);
    cursor: pointer;
    transition: color 0.3s ease;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 12px;
}

/* ── Reviews — Card Style ────────────────────────────────────── */
.review-card {
    transition: transform 0.4s var(--ease-out-expo);
}

.review-card:hover {
    transform: translateY(-2px);
}

/* ── Drop Cards — Cinematic ──────────────────────────────────── */
.drop-card {
    transition: transform 0.6s var(--ease-out-expo) !important;
}

.drop-card:hover {
    transform: translateY(-5px);
}

/* ── Copyright Year ──────────────────────────────────────────── */
.footer-bottom {
    font-family: var(--font-main);
}

/* ── Loading Skeleton Shimmer ────────────────────────────────── */
@keyframes shimmer2026 {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer2026 1.8s ease infinite;
    border-radius: 2px;
}

/* ── Selection Style ─────────────────────────────────────────── */
::selection {
    background: #1a1a1a;
    color: #fff;
}

::-moz-selection {
    background: #1a1a1a;
    color: #fff;
}

/* ── Focus Visible — Accessibility ───────────────────────────── */
:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tf-cursor, .tf-cursor-dot { display: none; }
    body::after { display: none; }
    /* Keep marquees running always */
    .marquee-track { animation: marquee 30s linear infinite !important; }
    .trend-band-track { animation: trendMarquee 20s linear infinite !important; }
    .otb-track { animation: otbScroll 20s linear infinite !important; }
}

/* ── Responsive Tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        letter-spacing: 8px !important;
    }

    .product-card:hover {
        transform: none !important;
    }

    .tf-cursor, .tf-cursor-dot {
        display: none !important;
    }
}
