/* CSS Variables & Design System */
:root {
    /* Colors - Premium White Theme */
    --clr-white: #FFFFFF;
    --clr-off-white: #FAFAFA;
    --clr-bg-alt: #F5F5F5;

    --clr-text-main: #1A1A1A;
    --clr-text-muted: #666666;
    --clr-text-light: #999999;

    --clr-accent: #C5A059;
    /* Subtle Gold */
    --clr-accent-hover: #B08D45;

    --clr-border: #E8E8E8;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-white);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Fix for mobile scroll lock (P2-01) */
body.scroll-lock {
    overflow: hidden !important;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    z-index: 10;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

.text-italic {
    font-style: italic;
    font-weight: 400;
}

/* Glass Morphism (PART 5) */
.glass {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
}

.glass-dark {
    background: rgba(26, 26, 26, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

/* Top Language Bar (compact) */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--clr-border);
    min-height: 34px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    padding-top: 4px;
    padding-bottom: 4px;
}

.lang-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-text-muted);
    font-size: 0.78rem;
}

.lang-dropdown i {
    font-size: 0.9rem;
    opacity: 0.9;
}

#langSelect {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: #fff;
    color: var(--clr-text-main);
    font-size: 0.78rem;
    line-height: 1.2;
    height: 28px;
    padding: 2px 28px 2px 8px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: white;
    /* Ensure it's opaque when sticky */
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    z-index: 1100;
}

.logo img {
    height: 60px; /* Constrain height to fit in 80px navbar */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-text-main, #1A1A1A);
    margin-left: 12px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
}

/* Global Table & Cell Content Alignment (Fix for "Unarranged" UI) */
.cell-content {
    display: flex;
    align-items: center;
    min-height: 44px; /* Standardize row height for better arrangement */
    padding: 8px 0;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.admin-table td {
    vertical-align: middle !important;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Modern Cart System */
.cart-drawer {
    position: fixed;
    /* Offset by sticky marquee (40px) so cart doesn't slide behind it */
    top: 40px;
    right: -100%;
    width: 400px;
    height: calc(100% - 40px);
    background: white;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
    right: 0;
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    align-items: flex-start; /* Aligned for multi-line content */
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-info h5 {
    font-size: 1rem;
    line-height: 1.2;
}

.cart-item-detail {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.cart-item-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-weight: 600;
    color: var(--clr-accent);
    margin: 0;
}

.cart-remove-icon {
    background: none;
    border: none;
    color: var(--clr-text-light);
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.cart-remove-icon:hover {
    color: #dc3545;
}
/* Dashboard Sidebar Logo (Smaller Context) */
.dashboard-logo {
    width: 200px !important;
    height: 200px !important;
    margin-bottom: 4rem;
    justify-content: center !important;
}

.dashboard-logo img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: 200px !important;
    transform: none !important;
    filter: none !important;
}

.dashboard-logo:hover img {
    transform: scale(1.05) !important;
}

.nav-links {
    display: flex;
    gap: 32px;
    /* Reduced from 40px for multi-language */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--clr-text-main);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--clr-text-main);
    position: relative;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--clr-accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 50%;
    font-family: var(--font-body);
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: calc(var(--header-height) + 20px) 20px 40px;
    overflow: hidden;
}

/* Hero Parallax Background */
.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    background-image: url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 500;
    font-family: var(--font-heading);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--clr-text-main);
    color: white;
    border: 1px solid var(--clr-text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-text-main);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--clr-text-main);
    border: 2px solid var(--clr-text-main);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--clr-text-main);
    color: white;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--clr-text-main);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-text-main);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* Section General */
.section {
    padding: 24px 0;
}

.bg-off-white {
    background-color: var(--clr-off-white);
}

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

.section-header .subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-text-light);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.bento-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.item-large {
    grid-column: span 2;
}

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

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    color: white;
}

.bento-content .link-arrow {
    position: relative;
    z-index: 2;
    color: white;
    border-color: white;
}

/* Bento Item Images */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
    transition: opacity 0.3s;
}

.bento-item:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Trending grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.trending-card {
    position: relative;
    background: var(--clr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

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

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--clr-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

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

.card-info {
    padding: 16px;
    text-align: center;
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.card-info .price {
    font-size: 1.1rem;
    color: var(--clr-accent);
    font-weight: 600;
}

/* Global Section Padding Reduction */
.section {
    padding: 24px 0;
    /* Reduced from 40px */
}

/* Bento Item 1: Minimalist Abstract (Large) */
.bento-item:nth-child(1) {
    background-color: #34495e;
    background-image: url('https://images.unsplash.com/photo-1541961017774-22349e4a1262?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Bento Item 2: Photography (Tall) */
.bento-item:nth-child(2) {
    background-color: #16a085;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Bento Item 3: Typography */
.bento-item:nth-child(3) {
    background-color: #e74c3c;
    background-image: url('https://images.unsplash.com/photo-1509114397022-ed747cca3f65?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Bento Item 4: Kids Room */
.bento-item:nth-child(4) {
    background-color: #27ae60;
    background-image: url('https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    color: white;
}

.link-arrow {
    display: inline-block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--clr-text-main);
    padding-bottom: 2px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.step-card {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

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

.step-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--clr-text-main);
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    border-radius: 16px;
    text-align: left;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--clr-text-main);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-main);
}

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

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--clr-bg-alt);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}



/* Premium Grid Footer */
.footer {
    background-color: var(--clr-off-white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--clr-border);
    position: relative;
    overflow-y: hidden !important; /* Force hide vertical overscrolling container bounds */
}

/* ── Prevent any rogue internal scrollbars from displaying in footer ── */
.footer ::-webkit-scrollbar {
    display: none !important;
}
.footer * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 1px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (max-width: 1px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social, .footer-contact-item {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col .logo {
    display: block;
    margin-bottom: 24px;
}

.footer-col .logo img {
    height: 48px;
    width: auto;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    color: var(--clr-text-main);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-text {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-contact-info {
    margin-top: auto;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-contact-item i {
    color: var(--clr-accent);
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-main);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.location-grid {
    display: grid;
    gap: 24px;
}

.location-item h5 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--clr-text-main);
}

.location-item p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.newsletter-box {
    margin-top: 8px;
}

.newsletter-form {
    display: flex;
    margin-top: 16px;
    position: relative;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.btn-newsletter {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 46px;
    background: var(--clr-accent);
    border: none;
    border-radius: 0 4px 4px 0;
    color: var(--clr-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-newsletter:hover {
    background: var(--clr-accent-hover);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}



.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Categories Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    justify-content: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--clr-off-white);
    padding: 16px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
    border-color: var(--clr-border);
}

.cat-icon {
    font-size: 2rem;
    color: var(--clr-text-main);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-item:hover .cat-icon {
    color: var(--clr-accent);
}

.category-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.drift-in {
    opacity: 0;
    transform: translateX(-20px);
    animation: driftIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.magnetic-wrap {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Catalog Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

@media (max-width: 1px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        display: none;
        /* Mobile filter drawer to be added later */
    }
}

/* Sidebar Filters */
.catalog-sidebar {
    padding-right: 20px;
    border-right: 1px solid var(--clr-border);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.filter-header h4 {
    font-size: 1rem;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    transition: color 0.2s;
}

.custom-checkbox:hover {
    color: var(--clr-text-main);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked+.checkmark {
    background-color: var(--clr-text-main);
    border-color: var(--clr-text-main);
}

.custom-checkbox input:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Color Swatches */
.color-options {
    flex-direction: row;
    flex-wrap: wrap;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--clr-border);
    background: white;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--clr-text-main);
}

.filter-btn:hover {
    border-color: var(--clr-text-main);
    background: var(--clr-bg-alt);
}

.filter-btn.active {
    background: var(--clr-text-main);
    color: white;
    border-color: var(--clr-text-main);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
}

/* Customizer tabs - hidden on desktop */
.customizer-mobile-tabs {
    display: none;
}

.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    /* More standard vertical poster ratio */
    background-color: var(--clr-bg-alt);
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img,
.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:has(video) {
    aspect-ratio: auto !important; /* Resize box for videos */
    background: #000; /* Dark background for videos */
}

.product-image video {
    height: auto !important; /* Allow natural height */
    object-fit: contain; /* Ensure no cropping */
}

.product-image:hover img,
.product-image:hover video {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: white;
    color: black;
    border: none;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-image:hover .btn-sm {
    transform: translateY(0);
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-info .price {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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

/* Category Grid */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Customizer Tool Refined */
.customizer-interface {
    display: grid;
    font-size: 1.45rem;
}

.section-header h2 {
    font-size: 1.4rem;
}

.btn {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.nav-links {
    width: 85%;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 2100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

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

.cart-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty {
    text-align: center;
    color: var(--clr-text-muted);
    margin-top: 40px;
}

.cart-empty p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 16px;
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-detail {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.cart-item-price {
    font-weight: 600;
    color: var(--clr-accent);
    margin-top: 4px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-controls button {
    background: none;
    border: 1px solid var(--clr-border);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-controls button:hover {
    background: var(--clr-bg-alt);
}

.cart-item-controls span {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

.cart-remove-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--clr-text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #dc3545;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-off-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* Tiny screens: 320px */
@media (max-width: 360px) {
    .hero-content {
        padding: 16px 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .art-print {
        width: auto;
        height: auto;
        max-width: 160px;
        max-height: 240px;
        object-fit: contain;
    }
}

/* Tablet: 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-item {
        grid-column: span 1 !important;
    }

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



    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .customizer-interface {
        grid-template-columns: 180px 1fr 180px;
    }
}

/* Global Logo Alignment */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Upload Hub Modal */
.upload-hub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-hub-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.upload-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.upload-choice-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-choice-card:hover {
    border-color: var(--clr-text-main);
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-50px);
}

.upload-choice-card i {
    font-size: 2.5rem;
    color: var(--clr-text-main);
}

/* Camera Interface */
.camera-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    display: none;
    flex-direction: column;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shutter-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid white;
    padding: 5px;
    cursor: pointer;
}

.shutter-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
}

.camera-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* --- Product Detail New Elements --- */
.type-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.type-btn i {
    font-size: 1.5rem;
    color: var(--clr-text-muted);
}

.type-btn.active {
    border-color: var(--clr-accent);
    background: rgba(197, 160, 89, 0.05);
}

.type-btn.active i {
    color: var(--clr-accent);
}

.qty-input {
    width: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.add-cart-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.add-cart-btn:hover {
    background: #333;
}

.trust-item p {
    font-family: var(--font-body);
    color: var(--clr-text-muted);
}
/* --- FAQ Accordion --- */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--clr-text-main);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--clr-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 15px;
    opacity: 1;
}

.faq-item.active .ph-plus {
    transform: rotate(45deg);
    color: var(--clr-gold);
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* --- PRO MARQUEE (PART 3) --- */
.marquee-pro {
    background: #000;
    color: #fff;
    height: 40px;
    line-height: 40px;
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1001; /* Stick ABOVE the navbar */
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.marquee-pro-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 0;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
}

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

/* --- CUSTOMIZER BOX Polishing (PART 2) --- */
.premium-customizer {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.pc-preview-area {
    background: #fdfdfd;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    border-right: 1px solid #eee;
}

@media (max-width: 991px) {
    .pc-preview-area {
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

.pc-sidebar {
    background: #fafafa;
    border-right: 1px solid #eee;
    width: 80px;
}

.pc-tool-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.pc-tool-btn.active, .pc-tool-btn:hover {
    background: #fff;
    color: var(--primary, #2874f0);
    box-shadow: inset 4px 0 0 var(--primary, #2874f0);
}

.pc-tool-btn i { font-size: 1.5rem; }
.pc-tool-btn span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }

/* Desktop Preview Box Control */
.pc-preview-stage {
    position: relative;
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
}

/* --- PRO WALL PREVIEW (PART 1) --- */
.wall-preview-pro {
    position: relative;
    width: 100%;
    /* maintain the Unsplash photo's native aspect ratio (approx 1.6:1) */
    aspect-ratio: 1200 / 750;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #1a1a1a;
    animation: fadeIn 0.5s ease;
}

.wall-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Poster overlay ──────────────────────────────────────────────
   Calibrated to the empty wall area in photo-1513519245088.
   The blank white wall is roughly: left 30%–48%, top 14%–66%
   We position the frame at the center of that area.
──────────────────────────────────────────────────────────────── */
.poster-on-wall {
    position: absolute;
    /* Center of the blank wall area in the photo */
    left: 31%;
    top:  14%;
    width: 18%;       /* frame width relative to container */
    height: 52%;      /* frame height relative to container */
    overflow: hidden;
    box-shadow:
        0  2px  6px rgba(0,0,0,0.25),
        0 12px 32px rgba(0,0,0,0.35),
        inset 0 0 0 3px #1a1a1a;   /* thin dark frame border */
    background: #fff;
    /* Subtle perspective tilt to match the room's viewing angle */
    transform: perspective(800px) rotateY(1.5deg) rotateX(0.5deg);
    transform-origin: center center;
    transition: opacity 0.4s ease;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Hide broken-image icon when src is empty */
    color: transparent;
}

/* Gloss sheen overlay on the poster */
.poster-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.04) 45%,
        rgba(255,255,255,0.0)  100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Placeholder shown when no image is uploaded */
.pro-view-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 10;
}
.pro-view-placeholder i {
    font-size: 2.4rem;
    opacity: 0.7;
}

/* Glassmorphism Application */
.pc-sidebar, .pc-panel {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* ========================================
   CRITICAL FIXES - Preview & Mobile
   ======================================== */

/* Fix Preview Box Overflow */
.preview-container,
.wall-preview-container,
.customizer-preview-area {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden !important;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f8f8;
}

.preview-image,
.preview-canvas,
.design-preview img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.preview-frame,
.frame-overlay,
.design-frame {
    position: absolute !important;
    max-width: 80% !important;
    max-height: 80% !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 5;
}

.preview-frame img,
.frame-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .preview-container,
    .wall-preview-container {
        min-height: 300px;
        max-height: 400px;
    }
    
    .preview-frame,
    .frame-overlay {
        max-width: 90% !important;
        max-height: 90% !important;
    }
    
    /* Fix button text overflow */
    .btn,
    .button,
    .product-btn {
        font-size: 14px !important;
        padding: 10px 12px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide mobile cart on checkout */
    .checkout-page .mobile-bottom-nav,
    .checkout-page .mobile-add-to-cart {
        display: none !important;
    }
    
    /* Fix option buttons */
    .customizer-tool-btn,
    .option-button {
        min-height: 48px !important;
        min-width: 48px !important;
        font-size: 16px !important;
        touch-action: manipulation;
    }
}

/* ─── PREMIUM FLOATING NAVIGATION & UI CLEANUP (Always Desktop Mode) ─── */

/* 1. Hide Broken/Redundant Legacy Fragments */
#editPopup,
.edit-popup, 
.edit-popup-overlay,
.sticky-mobile-buy,
.mobile-toggle,
.mobile-only {
    display: none !important;
}

/* 2. Premium Floating Navigation Pill */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(400px, 92%) !important;
    height: 70px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 35px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    /* Lowered z-index so modals (wall preview, cart) always appear above the pill */
    z-index: 1500 !important;
    padding: 0 20px !important;
    margin: 0 !important;
}

.bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: var(--clr-text-muted, #666) !important;
    text-decoration: none !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    gap: 4px !important;
    transition: all 0.3s ease !important;
}

.bottom-nav-item i {
    font-size: 1.5rem !important;
}

.bottom-nav-item:hover, 
.bottom-nav-item.active {
    color: var(--clr-accent, #C5A059) !important;
}

/* Center FAB for Upload/Customizer */
.bottom-nav-center {
    width: 54px !important;
    height: 54px !important;
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    border: 3px solid #fff !important;
    margin-top: -30px !important;
}

.bottom-nav-center i {
    font-size: 1.6rem !important;
}

/* Ensure the customizer footer (Total Price + Add to Cart) clears the floating nav pill */
.studio-footer.pc-bottom {
    position: relative !important;
    z-index: 10;
}

/* On mobile, push studio controls content up enough so bottom nav pill doesn't obscure Total Price */
@media (max-width: 991px) {
    .studio-controls-col {
        padding-bottom: 120px !important;
    }
}

.customizer-action-footer {
    padding-bottom: 110px !important;
}
/* ─── MOBILE-BOLD READABILITY (Optimized for Touch Devices in Always Desktop Mode) ─── */
@media (pointer: coarse) {
    :root {
        --mobile-bold-weight: 600;
        --mobile-heading-weight: 800;
    }

    body, p, li, a {
        font-weight: 500 !important; /* Slightly bolder for readability */
        letter-spacing: 0.01em !important;
    }

    h1, h2, h3, h4, .scene-title, .product-info h4 {
        font-weight: var(--mobile-heading-weight) !important;
        letter-spacing: -0.01em !important;
    }

    .btn, .btn-primary, .btn-scene-primary {
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
    }

    .price, .total-price, .cart-item-price {
        font-weight: 800 !important;
    }

    /* Enhance interaction contrast for thumb users */
    /* Enhance interaction contrast for thumb users */
    .bottom-nav-item span {
        font-weight: 700 !important;
    }
}

/* 🧱 WALL PREVIEW CUSTOMIZER STYLES */
#wallCanvas {
    touch-action: none; /* Critical for mobile pinch/zoom */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.wpm-room-btn.active {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a1a !important;
    border-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wpm-view-btn.active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1c1b1b !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile-Specific Overrides for Wall Preview Modal */
@media (max-width: 768px) {
    #wallPreviewModal .ar-header, 
    #wallPreviewModal [style*="justify-content:space-between"] {
        padding: 10px 10px !important;
        flex-direction: column;
        gap: 12px;
        align-items: center !important;
    }

    #wallPreviewModal .wpm-room-btn {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
    }

    #wallPreviewModal [onclick="wpmDownload()"] {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
    }

    .wall-preview-stage {
        aspect-ratio: 4/5 !important; /* Taller on mobile for better viewing */
    }
}

/* ────────────────────────────────────────────────────────────
   PREMIUM SITE LOADER
   ──────────────────────────────────────────────────────────── */
.pc-site-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* CLICK SAFETY: Prevent blocking buttons if it hangs */
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.6s;
}

.pc-site-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-wrap img {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.1));
}

.loader-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--clr-accent, #C19C57);
    animation: loaderPulse 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.loader-text {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--clr-text-muted, #666);
    letter-spacing: 0.05em;
    animation: loaderTextFade 2s infinite ease-in-out;
}

@keyframes loaderPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes loaderTextFade {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* Optimize: Add Hardware Acceleration to frequently animated items */
.navbar, .btn, .trending-card, .scene-poster, .poster-item {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Global PhotoCart AI widget removal */
.floating-ai-btn,
.ai-mini-chat {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Global Performance Mode (auto-enabled by script.js on low-power/coarse/reduced-motion devices) */
body.perf-lite *,
body.perf-lite *::before,
body.perf-lite *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    scroll-behavior: auto !important;
}

body.perf-lite .fx-cursor-dot,
body.perf-lite .fx-cursor-ring,
body.perf-lite .fx-social-proof,
body.perf-lite #fxSearchOverlay {
    display: none !important;
}

body.perf-lite video {
    will-change: auto !important;
}
