﻿/**
 * PhotoCart Theme Redesign â€” theme_redesign.css
 * Enhances the existing LIGHT theme with:
 *   - Custom cursor, 3D tilt, shine sweep on cards
 *   - Scroll-reveal animations
 *   - Button ripple, smoother transitions
 *   - Navbar glow refinement
 *   - Search overlay
 *   - Admin improvements (badge, chart)
 *   - Confetti keyframes
 * No color overrides â€” keeps white/cream palette.
 */

/* â”€â”€â”€ Custom Cursor â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* IMPORTANT: Only apply cursor:none to non-interactive elements.
   Apply cursor:default to inputs so native OS pickers still work  */
body.has-custom-cursor {
    cursor: none !important;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor label,
body.has-custom-cursor [role="button"],
body.has-custom-cursor .product-card,
body.has-custom-cursor .trending-card,
body.has-custom-cursor .bento-item,
body.has-custom-cursor .frame-card,
body.has-custom-cursor .stat-card,
body.has-custom-cursor .wishlist-btn,
body.has-custom-cursor .icon-btn,
body.has-custom-cursor .filter-btn,
body.has-custom-cursor .size-btn,
body.has-custom-cursor .frame-btn,
body.has-custom-cursor .mini-btn,
body.has-custom-cursor .filter-chip,
body.has-custom-cursor .frame-option-item,
body.has-custom-cursor .category-item,
body.has-custom-cursor .bento-item,
body.has-custom-cursor .profile-menu button,
body.has-custom-cursor .admin-nav button,
body.has-custom-cursor .action-btn {
    cursor: none !important;
}

/* Always use native cursor for ALL form-related elements */
input,
select,
textarea,
option {
    cursor: default !important;
}

input[type="range"] {
    cursor: ew-resize !important;
}

input[type="color"] {
    cursor: pointer !important;
}

@media (pointer: coarse) {

    body,
    a,
    button,
    label,
    [role="button"],
    .product-card,
    .trending-card,
    .bento-item,
    .frame-card {
        cursor: auto !important;
    }
}

/* Restore system cursor when high-interaction modals are open */
body.wall-preview-open,
body.wall-preview-open *,
body.ar-view-open,
body.ar-view-open * {
    cursor: auto !important;
}

.fx-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #1A1A1A;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: transform;
}

.fx-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(197, 160, 89, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s;
}

.fx-cursor-ring.fx-cursor-hover {
    width: 54px;
    height: 54px;
    border-color: #C5A059;
    background: rgba(197, 160, 89, 0.06);
}

/* --- PitchPrint-Style Professional Customizer --- */
.customizer-interface {
    display: flex;
    flex-direction: column;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-width: 1100px;
    margin: 40px auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 750px;
}

/* Tool Sidebar (Icons Only) */
.customizer-sidebar-tools {
    width: 70px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    z-index: 10;
}

.tool-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 100%;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.tool-btn i {
    font-size: 1.4rem;
}

.tool-btn span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-btn:hover,
.tool-btn.active {
    color: #f4c025;
    /* Gold Accent */
    background: rgba(244, 192, 37, 0.1);
}

.tool-btn.active {
    border-right: 3px solid #f4c025;
    background: rgba(244, 192, 37, 0.15);
}

/* Main Content Area */
/* â”€â”€â”€ Premium Glassmorphism Category Toggle â”€â”€â”€ */
.category-toggle-container {
    display: inline-flex;
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 60px;
    margin-top: 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 2px 10px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.category-toggle-btn {
    position: relative;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.category-toggle-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-toggle-btn:hover {
    color: var(--clr-text-main);
}

.category-toggle-btn:hover i {
    transform: scale(1.1);
}

.category-toggle-btn.active {
    color: white;
    background: #1a1a1a; /* Solid ground for the active state to contrast the glass */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Glassy Active State Alternative (The "Glassemporium" look) */
.category-toggle-btn.active {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.category-toggle-btn i {
    color: var(--clr-accent);
}

.category-toggle-btn.active i {
    color: #fff;
}

@media (max-width: 576px) {
    .category-toggle-container {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
        padding: 10px;
    }
    .category-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}
.customizer-main-content {
    flex: 1;
    display: flex;
    background: #fcfaf5;
    /* Cream base */
    position: relative;
    overflow: hidden;
}

/* Left Panel (Options) */
.customizer-panel-left {
    width: 320px;
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    overflow-y: auto;
    z-index: 5;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.02);
}

.tool-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.customizer-panel-left h3 {
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #fcfaf5;
    padding-bottom: 10px;
}

/* Center Preview Area */
.customizer-preview-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    background-image: radial-gradient(#e0ddd5 1px, transparent 1px);
    background-size: 20px 20px;
}

.preview-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    background: #f8f8f8;
}

.preview-stage.studio-light {
    background: #2a2a2a;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.preview-stage.studio-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.preview-actions-top {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.preview-actions-top button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #444;
    transition: all 0.3s ease;
}

.preview-actions-top button:hover {
    background: #f4c025;
    color: white;
    border-color: #f4c025;
}

/* Editor Groups */
.editor-group {
    margin-bottom: 20px;
}

.editor-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.filter-thumb {
    aspect-ratio: 1;
    border: 2px solid #f5f5f5;
    border-radius: 4px;
    font-size: 0.6rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.filter-thumb.active {
    border-color: #f4c025;
    background: #fcfaf5;
}

/* Pro Footer */
.customizer-footer-pro {
    height: 80px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}

.price-display .label {
    font-size: 0.7rem;
    font-size: 0.85rem;
    padding: 10px;
}

/* But keep the shine sweep clipping only on product cards */
.customizer-interface::after,
.customizer-controls::after,
.customizer-preview::after {
    display: none !important;
    /* No shine sweep inside customizer */
}

/* â”€â”€â”€ 3D Card Tilt Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fx-tilt {
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.55s ease;
    will-change: transform;
}

/* Shine Sweep on hover */
.product-card,
.trending-card,
.bento-item,
.frame-card {
    position: relative;
    overflow: hidden;
}

.product-card::after,
.trending-card::after,
.bento-item::after,
.frame-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.22) 50%,
            transparent 80%);
    pointer-events: none;
    z-index: 5;
    transition: left 0.65s ease;
}

.product-card:hover::after,
.trending-card:hover::after,
.bento-item:hover::after,
.frame-card:hover::after {
    left: 120%;
}

/* â”€â”€â”€ Scroll Reveal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.fx-reveal.fx-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* â”€â”€â”€ Button Ripple â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fx-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: scale(0);
    pointer-events: none;
    animation: fxRippleAnim 0.55s linear forwards;
}

@keyframes fxRippleAnim {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* â”€â”€â”€ Navbar enhancement â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(197, 160, 89, 0.12);
    border-bottom-color: rgba(197, 160, 89, 0.15) !important;
}

/* Smooth underline on nav links */
.nav-links a::after {
    background-color: var(--clr-accent) !important;
    height: 2px !important;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* â”€â”€â”€ Improved Category Pills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.category-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.category-item:hover {
    transform: perspective(400px) rotateX(-12deg) translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

/* â”€â”€â”€ Search Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#fxSearchOverlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#fxSearchOverlay.fx-search-open {
    opacity: 1;
    pointer-events: all;
}

.fx-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fx-search-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    width: min(640px, 92vw);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: fxSearchSlide 0.22s ease;
}

@keyframes fxSearchSlide {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#fxSearchInput {
    width: 100%;
    padding: 20px 56px 20px 24px;
    font-size: 1.15rem;
    font-family: var(--font-body, sans-serif);
    border: none;
    outline: none;
    background: transparent;
    color: #1A1A1A;
    border-bottom: 1px solid #eee;
}

#fxSearchClose {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: none;
    color: #888;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

#fxSearchClose:hover {
    background: #f5f5f5;
    color: #1A1A1A;
}

#fxSearchResults {
    max-height: 380px;
    overflow-y: auto;
}

.fx-search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    text-decoration: none;
    color: #1A1A1A;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.fx-search-result:hover {
    background: #fafafa;
}

.fx-search-result img {
    width: 44px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.fx-search-result div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fx-search-result strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.fx-search-result span {
    font-size: 0.8rem;
    color: #888;
}

.fx-search-note {
    padding: 20px 24px;
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* â”€â”€â”€ Hero shimmer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-bg-parallax {
    animation: fxHeroShimmer 12s ease-in-out infinite alternate;
}

@keyframes fxHeroShimmer {
    0% {
        background-position: center 50%;
    }

    100% {
        background-position: center 55%;
    }
}

/* â”€â”€â”€ Improved buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.18) !important;
}

/* â”€â”€â”€ Form focus glow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-accent) !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* â”€â”€â”€ Admin: pending badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    margin-left: auto;
    animation: fxBadgePulse 1.5s ease infinite;
    font-family: var(--font-body, sans-serif);
}

@keyframes fxBadgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(229, 57, 53, 0);
    }
}

/* â”€â”€â”€ Admin stat count-up visual â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-card .value {
    transition: color 0.3s ease;
}

.stat-card:hover .value {
    color: var(--clr-accent);
}

/* â”€â”€â”€ Admin bar chart â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bar {
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: default !important;
}

.bar:hover {
    filter: brightness(1.15);
}

/* â”€â”€â”€ Order success confetti â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes fxFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* â”€â”€â”€ Profile wishlist card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.profile-layout .product-card {
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-layout .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

/* â”€â”€â”€ Checkout payment card lift â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
label:has(input[name="paymentType"]) {
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: none;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

label:has(input[name="paymentType"]:checked) {
    border-color: var(--clr-accent);
    background: rgba(197, 160, 89, 0.07);
    transform: translateY(-2px);
}

/* â”€â”€â”€ Toast (AI & general) â€“ polish â”€â”€â”€â”€â”€â”€ */
.ai-toast {
    bottom: 32px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(8px);
    background: rgba(26, 26, 26, 0.92) !important;
    font-size: 0.9rem !important;
}

/* â”€â”€â”€ Mobile â€” disable custom cursor â”€â”€â”€â”€â”€â”€ */
@media (pointer: coarse) {

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

    .fx-tilt {
        transform: none !important;
        transition: none !important;
    }
}

/* â”€â”€â”€ Reduced motion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
    .fx-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .fx-tilt {
        transform: none !important;
    }

    .fx-cursor-dot,
    .fx-cursor-ring,
    #fxConfetti {
        display: none !important;
    }

    @keyframes fxRippleAnim {
        to {
            opacity: 0;
        }
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DECORATIVE BACKGROUND ELEMENTS
   Subtle floating blobs & shapes
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Blob base */
.fx-bg-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(72px);
    opacity: 0.07;
    animation: fxBlobFloat 18s ease-in-out infinite alternate;
    will-change: transform;
}

.fx-bg-blob:nth-child(2) {
    animation-duration: 22s;
    animation-delay: -5s;
}

.fx-bg-blob:nth-child(3) {
    animation-duration: 14s;
    animation-delay: -9s;
}

@keyframes fxBlobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(2%, -3%) scale(1.06);
    }

    66% {
        transform: translate(-2%, 2%) scale(0.96);
    }

    100% {
        transform: translate(1%, -1%) scale(1.03);
    }
}

/* Dot grid pattern */
.fx-dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(197, 160, 89, 0.09) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 1;
}

/* Diagonal line accent */
.fx-line-accent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.18), transparent);
    animation: fxLinePulse 7s ease-in-out infinite;
}

@keyframes fxLinePulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Morphing corner shape */
.fx-corner-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.04;
    animation: fxMorphShape 24s ease-in-out infinite alternate;
    will-change: border-radius, transform;
}

@keyframes fxMorphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
        transform: rotate(6deg);
    }

    100% {
        border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
        transform: rotate(-6deg);
    }
}

/* â”€â”€â”€ Background Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fx-bg-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    object-fit: cover;
    /* Cover full area */
    opacity: 0.15;
    /* Balanced visibility */
    pointer-events: none;
    z-index: 0;
    filter: grayscale(0.1) saturate(3.4) contrast(1.06) blur(1px);
    /* 90% color with vivid saturation */
    transition: transform 1.2s ease-out, opacity 0.5s ease;
}

.fx-bg-wrap:hover .fx-bg-banner {
    transform: translate(-50%, -52%) scale(1.02);
}

/* Section-level wrapper for bg elements */
.fx-bg-wrap {
    position: relative;
    overflow: hidden;
}

.fx-bg-wrap>*:not(.fx-bg-blob):not(.fx-dot-grid):not(.fx-line-accent):not(.fx-corner-shape):not(.fx-bg-banner) {
    position: relative;
    z-index: 1;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ANNOUNCEMENT MARQUEE
   Scrolling banner for offers
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.announcement-marquee {
    background: #1A1A1A;
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    position: relative;
    z-index: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: inline-flex;
    animation: fxMarquee 30s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    flex-shrink: 0;
}

.marquee-item i {
    color: #C5A059;
    /* Gold accent */
    font-size: 1.1rem;
}

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

    100% {
        transform: translateX(0);
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SOCIAL PROOF NOTIFICATIONS
   Elegant toast for recent activity
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fx-social-proof {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #ffffff;
    border-left: 4px solid #C5A059;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    border-radius: 4px;
    transform: translateY(120px);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    opacity: 0;
    max-width: 380px;
}

.fx-social-proof.fx-visible {
    transform: translateY(0);
    opacity: 1;
}

.fx-sp-img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: #f5f5f5;
}

.fx-sp-content {
    flex: 1;
}

.fx-sp-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.fx-sp-desc {
    display: block;
    font-size: 0.82rem;
    color: #666;
}

.fx-sp-time {
    display: block;
    font-size: 0.72rem;
    color: #999;
    margin-top: 4px;
}

.fx-sp-close {
    cursor: pointer;
    font-size: 1.1rem;
    color: #ddd;
    transition: color 0.3s;
}

.fx-sp-close:hover {
    color: #999;
}

@media (max-width: 768px) {
    .fx-social-proof {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}
/* --- Product Card Glassmorphism -------------- */
.product-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    background: white !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    overflow: hidden;
    border-radius: 12px;
}

.product-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
    transform: translateY(-8px);
}

.product-overlay {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 24px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

.product-info h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.product-info .price {
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.5px;
}

/* --- Premium Hero Scene (Mockup Design) --- */
.hero-scene {
    position: relative;
    min-height: 480px;
    height: calc(100vh - 80px);
    max-height: 800px;
    width: 100%;
    margin-top: 0;
    background: #000;
    overflow: hidden !important; /* STRICT: No scrollbars allowed in hero */
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 5;
}

.hero-scene-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, #302b25 0%, #111111 80%);
    z-index: 0;
}

/* Texture overlay to simulate the wall light */
.hero-scene-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.2;
    mix-blend-mode: overlay;
}

/* Light beam from right */
.hero-scene-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: linear-gradient(135deg, rgba(255,240,200,0.08) 0%, transparent 60%);
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 1;
}

.hero-scene-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack text above stats naturally */
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    padding: 0 4%;
}

/* --- Frames Layout --- */
.hero-scene-posters {
    position: absolute;
    right: 2%; /* Anchor to the right edge */
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: auto;
    display: flex;
    justify-content: flex-end; /* Align posters to the right so they don't overlap text */
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.scene-poster {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 320px; /* Increased poster size slightly as requested */
    aspect-ratio: 2/3;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

.scene-frame {
    display: block;
    width: 100%;
    height: 100%;
    background: #e2dcd2; /* Matting color */
    padding: 16px;       /* Increased for better matting */
    border: 10px solid #c8a979; /* Stronger gold wood frame */
    border-radius: 4px;
    box-shadow: 
        20px 30px 60px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box; /* Crucial for width/height 100% */
}

.scene-frame::after { /* Inner frame shadow */
    content: '';
    position: absolute;
    inset: 12px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3);
    pointer-events: none;
}

.scene-frame img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: contrast(1.05) saturate(1.1);
}

/* Specific Poster Positioning - resetting old scattered code */
.poster-left, .poster-center, .poster-right {
    width: 100%;
    height: 100%;
    left: auto;
    right: auto;
    transform: none;
}
.poster-left .scene-frame { border-color: #a08050; }

.scene-poster:hover {
    transform: translateY(-12px) scale(1.03) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Content Wrapper --- */
.hero-scene-content {
    position: relative;
    z-index: 5;
    max-width: 45%; /* Keep textual content tightly on left half */
}

/* Typography & Badges */
.scene-tag {
    display: flex;
    width: fit-content;
    background: #d4ae6e; /* Gold */
    color: #2b2315;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.scene-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem); /* Slightly smaller for compact fit */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fdfaf5;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.5);
}

.scene-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #e0d8cc;
    margin-bottom: 24px;
    font-weight: 300;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.4);
}

.scene-urgency {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #cc3333, #aa2222);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(204, 51, 51, 0.4);
    animation: pulseUrg 2s infinite;
}

@keyframes pulseUrg {
    0% { box-shadow: 0 0 0 0 rgba(204, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(204, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 51, 51, 0); }
}

/* --- Buttons --- */
.scene-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-scene-primary {
    background: #d4ae6e;
    color: #1a1a1a;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-scene-primary:hover {
    background: #e6c07d;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.btn-scene-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-scene-secondary:hover {
    background: #333;
    border-color: #555;
    color: #fff;
}

/* --- Stats --- */
.hero-scene-stats {
    position: relative;
    display: flex;
    gap: 50px;
    z-index: 5;
    margin-top: 35px; /* Reduced for compact fit */
}

.scene-stat {
    display: flex;
    flex-direction: column;
}

.scene-stat .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4ae6e;
    font-family: 'Playfair Display', serif;
}

.scene-stat .stat-text {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 1.5px;
    margin-top: -4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-scene-posters {
        width: 100%;
        right: 0;
        opacity: 0.3;
        z-index: 0;
    }
    
    .hero-scene-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-scene-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .scene-actions {
        justify-content: center;
    }
    
    .hero-scene-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-scene {
        padding: 40px 0; /* Reduced padding */
        height: auto;
        min-height: 500px; /* More robust for mobile than 100vh calculation */
    }

    .scene-title {
        font-size: 2.2rem;
    }
    
    .hero-scene-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        align-items: center;
    }
    
    .scene-poster {
        transform: scale(0.6) !important;
    }
    .poster-left { left: -10%; }
    .poster-right { right: -10%; }
}

/* FIX MOB-004: On very small screens, stack content above posters so CTA buttons
   are never hidden behind poster images. Posters become a subtle background. */
@media (max-width: 480px) {
    .hero-scene-container {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        position: relative;
    }

    .hero-scene-content {
        order: 1 !important;
        position: relative;
        z-index: 5;
        text-align: center;
        padding: 20px 16px;
        background: rgba(255,255,255,0.82);
        border-radius: 16px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        margin: 0 12px;
    }

    .hero-scene-posters {
        order: 2 !important;
        position: relative !important;
        width: 100% !important;
        opacity: 0.18 !important;
        z-index: 0 !important;
        pointer-events: none;
        height: 220px;
        overflow: hidden;
    }

    .hero-scene-stats {
        order: 3 !important;
        position: relative;
        z-index: 5;
    }

    .scene-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .btn-scene-primary,
    .btn-scene-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --- Category Showcase --- */
.category-showcase {
    background: #fdfdfd;
    padding: 80px 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.category-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.cat-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.category-showcase .category-card:first-child .cat-content h3 {
    color: #0f3f83;
    text-shadow: 0 1px 0 rgba(59, 130, 246, 0.15);
}

.category-showcase .category-card:last-child .cat-content h3 {
    color: #0f6b4f;
    text-shadow: 0 1px 0 rgba(16, 185, 129, 0.15);
}

.cat-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cat-img img,
.cat-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

/* Premium frame treatment for homepage category media */
.category-showcase .category-card .cat-img {
    position: relative;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(145deg, #7b5a38 0%, #a98353 45%, #60462d 100%);
    box-shadow:
        0 14px 28px rgba(24, 14, 7, 0.35),
        inset 0 0 0 1px rgba(255, 238, 210, 0.4),
        inset 0 -5px 12px rgba(0, 0, 0, 0.25);
}

.category-showcase .category-card .cat-img::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 10px;
    background: #efe7d6;
    box-shadow:
        inset 0 0 0 1px rgba(100, 71, 42, 0.25),
        inset 0 8px 14px rgba(0, 0, 0, 0.14);
    pointer-events: none;
    z-index: 1;
}

.category-showcase .category-card .cat-img img,
.category-showcase .category-card .cat-img video {
    position: relative;
    z-index: 2;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.category-card:hover .cat-img img,
.category-card:hover .cat-img video {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .category-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* --- CTA Buttons (used in hero and CTAs) --- */
.btn-pc-primary {
    background: var(--clr-accent);
    color: #000;
    padding: 16px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.btn-pc-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-pc-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
}

.btn-pc-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Trending Masonry --- */
.section-header-v2 {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-v2 .subtitle {
    color: var(--clr-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.section-header-v2 h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-top: 10px;
}

.trending-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    grid-auto-flow: dense;
}

.grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.grid-item.tall {
    grid-row: span 2;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .item-overlay {
    opacity: 1;
}

/* --- Custom CTA v2 --- */
.custom-cta-v2 {
    padding-top: 50px;
}

.custom-cta-v2 .cta-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 60px;
    border-radius: 32px;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-text p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .custom-cta-v2 .cta-banner {
        grid-template-columns: 1fr;
        padding: 40px;
        text-align: center;
    }
    .cta-text {
        order: 2;
    }
    .cta-visual {
        order: 1;
    }
}


/* --- Reviews Carousel --- */
.reviews-v2 {
    background: #fff;
    padding-bottom: 100px;
}

.reviews-slider {
    overflow: hidden;
    padding: 20px 0;
}

.review-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

.review-track:hover {
    animation-play-state: paused;
}

.review-card-v2 {
    min-width: 400px;
    padding: 40px;
    border-radius: 24px;
    background: white;
}

.review-stars {
    color: var(--clr-accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-card-v2 p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--clr-text-main);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.review-user strong {
    display: block;
    font-size: 1rem;
}

.review-user span {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

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

@media (max-width: 768px) {
    .review-card-v2 {
        min-width: 300px;
        padding: 30px;
    }
}

/* --- Enhanced Search UI --- */
#fxSearchOverlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#fxSearchOverlay.fx-search-open {
    opacity: 1;
    visibility: visible;
}

.fx-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.fx-search-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
}

.fx-search-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

#fxSearchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 2rem;
    font-weight: 700;
    outline: none;
    font-family: 'Playfair Display', serif;
}

#fxSearchClose {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#fxSearchClose:hover {
    opacity: 1;
}

.fx-search-body {
    margin-top: 40px;
}

.fx-suggestions-list .suggestion-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.6;
}

.suggestion-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.s-chip {
    padding: 8px 18px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s-chip:hover {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

.fx-search-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    transition: background 0.3s ease;
    border: 1px solid transparent;
}

.fx-search-result:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}

.fx-search-result img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fx-search-result div strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.fx-search-result div span {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* --- Quick View Modal --- */
.fx-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fx-modal.active { display: flex; }

.fx-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.fx-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 32px;
    padding: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #000;
    color: #fff;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.qv-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.qv-details h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.qv-details #qvProductPrice {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 25px;
}

.qv-details #qvProductDesc {
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.qv-actions {
    display: flex;
    gap: 15px;
}

/* --- Cart Discount Badge --- */
.cart-discount {
    background: #FFFAF0;
    border: 1px dashed #FFD700;
    color: #B8860B;
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

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

/* --- Conversion Optimization Styles --- */

/* Mobile Sticky Buy */
.mobile-sticky-buy {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 12px 20px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    align-items: center;
    justify-content: space-between;
}
.sticky-price .label { font-size: 0.75rem; color: #666; display: block; line-height: 1; margin-bottom: 2px;}
.sticky-price .value { font-size: 1.1rem; font-weight: 700; color: #000; }
.sticky-actions { display: flex; gap: 10px; }
.mobile-sticky-buy .btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Wall Inspiration Gallery */
.inspiration-gallery { background: #fdfbf7; padding: 80px 0; }
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}
.insp-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.insp-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.insp-item:hover img { transform: scale(1.05); }
.insp-large { grid-column: span 2; grid-row: span 2; }
.insp-wide { grid-column: span 2; }

.insp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}
.insp-overlay span { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 5px; }
.insp-link {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.insp-item:hover .insp-link { opacity: 1; transform: translateY(0); color: var(--p-gold); }


@media (max-width: 900px) {
    .inspiration-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .insp-large { grid-column: span 2; grid-row: span 1; }
    .insp-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .mobile-sticky-buy { display: flex; }
    body.product-page-active { padding-bottom: 70px; } 

    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .fx-modal-content {
        padding: 30px;
        margin-top: 50px;
        height: 90vh;
        overflow-y: auto;
    }
    .qv-image {
        max-height: 300px;
        overflow: hidden;
    }
}



/* --- Missing Utility Classes --- */
.pc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.glass-morph {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .pc-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pc-grid-3, .pc-grid-4 { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}

/* â”€â”€â”€ GlassEmporium Style Action Boxes (Product Detail) â”€â”€â”€ */
.glass-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.glass-action-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--clr-text-main);
}

.glass-action-card i {
    font-size: 2.2rem;
    color: var(--clr-accent);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-action-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.2px;
}

.glass-action-card p {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
}

.glass-action-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--clr-accent);
    box-shadow: 0 25px 60px rgba(197, 160, 89, 0.2), 
                0 0 0 1px rgba(197, 160, 89, 0.1);
}

.glass-action-card:hover i {
    transform: scale(1.1) translateY(-5px);
    color: #1a1a1a;
}

.glass-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s ease;
}

.glass-action-card:hover::before {
    left: 150%;
}

@media (max-width: 576px) {
    .glass-action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .glass-action-card {
        padding: 24px;
        flex-direction: row;
        text-align: left;
        gap: 20px;
        justify-content: flex-start;
    }

    .glass-action-card i {
        font-size: 2rem;
    }

    .glass-action-card .card-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}

/* â”€â”€â”€ Glassporium Moving Banner â”€â”€â”€ */
.glass-marquee-section {
    width: 100%;
    background: #fff;
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.glass-marquee-container {
    display: flex;
    white-space: nowrap;
}

.glass-marquee-track {
    display: flex;
    gap: 20px; /* Reduced from 30px */
    width: max-content; /* Ensure track spans full content width */
    animation: scrollLeftToRight 56s linear infinite;
    -webkit-animation: scrollLeftToRight 56s linear infinite;
}

.glass-marquee-card {
    flex: 0 0 320px;
    height: 480px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.glass-marquee-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.glass-marquee-card .marquee-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-marquee-card video.marquee-media {
    outline: none;
    border: none;
}

.glass-marquee-card:hover .marquee-media {
    transform: scale(1.1);
}

.glass-marquee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    padding: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-marquee-card:hover .glass-marquee-overlay {
    opacity: 1;
}

.glass-marquee-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.glass-marquee-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

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

@media (max-width: 768px) {
    .glass-marquee-card {
        flex: 0 0 170px;
        height: 240px;
        transform: translateZ(0);
        border-radius: 12px;
    }

    .glass-marquee-section {
        padding: 8px 0;
    }

    .glass-marquee-overlay {
        padding: 12px;
    }

    .glass-marquee-overlay h4 {
        font-size: 0.9rem;
    }
}
/* AI Quality Report Styling */
.ai-quality-report {
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.ai-quality-report.high {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.ai-quality-report.medium {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.ai-quality-report.low {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Assistant Tools */
.ai-tool-btn {
    font-size: 0.75rem !important;
    gap: 4px !important;
    padding: 8px 4px !important;
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
}

.ai-tool-btn:hover {
    border-color: var(--clr-accent) !important;
    background: var(--clr-bg-alt) !important;
    color: var(--clr-accent) !important;
}

/* Floating AI Chatbot */
.floating-ai-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-ai-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.ai-mini-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-mini-chat.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-mini-header {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-mini-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-msg {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 2px;
}

.assistant-msg {
    align-self: flex-start;
    background: #ebebeb;
    color: var(--clr-text-main);
    border-bottom-left-radius: 2px;
    border: 1px solid #ddd;
}

.ai-mini-input {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.ai-mini-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
}

.ai-mini-input button {
    background: #3b82f6;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

/* AI Processing Effect */
.ai-processing {
    position: relative;
}

.ai-processing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: aiSweep 1.5s linear;
    z-index: 20;
    pointer-events: none;
    border-radius: inherit;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* AI Toast Notifications */
.ai-toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ai-toast i {
    color: #3b82f6;
    font-size: 1.2rem;
}

/* â”€â”€â”€ Hero Offer Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-offer-bar {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    background-size: 200% auto;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: heroShimmer 3s linear infinite;
    position: relative;
    overflow: hidden;
}

.hero-offer-bar strong {
    color: var(--clr-accent);
}

.hero-offer-bar i {
    color: var(--clr-accent);
    font-size: 1rem;
}

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