/* ================================================================
   UNIC Home Furniture — Design System
   Color Palette: Warm browns, cream, sandy accents
   Typography: Playfair Display (headings) + Poppins (body)
   ================================================================ */

/* ===========================
   1. CSS Custom Properties
   =========================== */
:root {
    /* Sage Green & Terracotta Theme */
    --primary: #6B8E7C; 
    --primary-dark: #4A6B5B; 
    --primary-light: #8BAA9B; 
    --secondary: #C87964; 
    --secondary-light: #E09887; 
    --accent: #DDA77B; 
    --accent-light: #EFD0B6; 
    
    --bg: #F9F8F6; 
    --bg-alt: #F1EFEA; 
    --bg-dark: #2D3A33; 
    
    --text: #2C332F; 
    --text-light: #6A7570; 
    --text-lighter: #9CA8A3; 
    
    --white: #FFFFFF;
    --border: #E2DFDA; 
    --border-light: #EDEBE7;
    --success: #4CAF50;
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.06);
    --shadow: 0 4px 15px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 6px 20px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 30px rgba(44, 24, 16, 0.15);
    --shadow-xl: 0 15px 50px rgba(44, 24, 16, 0.2);
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --container: 1200px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ===========================
   2. Reset & Base
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--text);
}

/* ===========================
   3. Layout Utilities
   =========================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* ===========================
   4. Navigation
   =========================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.logo span {
    color: var(--secondary);
    font-weight: 400;
    margin-left: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    background: transparent;
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    position: relative;
    color: var(--text);
}

@media (hover: hover) {
    .nav-links li a:hover {
        color: var(--secondary);
        background: rgba(210, 105, 30, 0.06);
    }
}

.nav-links li a.active {
    color: var(--secondary);
    background: rgba(210, 105, 30, 0.06);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4) !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   5. Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../Images/amazing_3d_sofa.png') center/cover no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(45, 58, 51, 0.8) 0%,
            rgba(107, 142, 124, 0.5) 50%,
            rgba(45, 58, 51, 0.8) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite ease-in-out;
}

.hero-particles span:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-particles span:nth-child(2) {
    left: 30%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.hero-particles span:nth-child(3) {
    left: 50%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.hero-particles span:nth-child(4) {
    left: 70%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.hero-particles span:nth-child(5) {
    left: 85%;
    top: 40%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.hero-particles span:nth-child(6) {
    left: 20%;
    top: 80%;
    animation-delay: 5s;
    animation-duration: 13s;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 164, 96, 0.2);
    border: 1px solid rgba(244, 164, 96, 0.3);
    color: var(--accent);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
    color: var(--white);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   6. Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--secondary-light));
    color: var(--text);
    font-weight: 600;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 164, 96, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 1.2em;
}

/* ===========================
   7. Category Cards
   =========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-image {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(44, 24, 16, 0.9) 0%,
            rgba(44, 24, 16, 0.3) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top,
            rgba(44, 24, 16, 0.95) 0%,
            rgba(44, 24, 16, 0.5) 60%,
            rgba(44, 24, 16, 0.2) 100%);
}

.category-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.category-card .btn-sm {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.category-card:hover .btn-sm {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   8. Product Cards
   =========================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-body {
    padding: 20px;
}

.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-family: var(--font-body);
}

.product-card-body .description {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body .price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-card-body .price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-lighter);
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
}

.product-colors .label {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-right: 4px;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.3);
    border-color: var(--primary);
}

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px 12px;
}

/* ===========================
   9. Features Section
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08), rgba(244, 164, 96, 0.15));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.05) rotate(-3deg);
}

.feature-card:hover .feature-icon span {
    filter: brightness(10);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   10. Filter Bar
   =========================== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(210, 105, 30, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.3);
}

/* ===========================
   11. Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   12. Match My Room — Upload
   =========================== */
.match-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.match-hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 12px;
}

.match-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.upload-section {
    padding: 60px 0;
    text-align: center;
}

.upload-area {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--secondary);
    background: rgba(210, 105, 30, 0.03);
    box-shadow: var(--shadow-md);
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.upload-area h3 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.upload-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-btn {
    position: relative;
    overflow: hidden;
}

.upload-btn input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 100px;
}

.camera-container {
    display: none;
    max-width: 700px;
    margin: 30px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.camera-container video {
    width: 100%;
    display: block;
    background: #000;
}

.camera-container canvas {
    display: none;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.capture-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.capture-btn:hover {
    transform: scale(1.1);
    border-color: var(--secondary);
}

/* ===========================
   13. Match My Room — Preview
   =========================== */
.preview-section {
    display: none;
    padding: 40px 0;
}

.preview-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.preview-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    background: var(--bg-alt);
}

.preview-image-wrapper img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   14. Match My Room — Colors
   =========================== */
.color-results {
    display: none;
    padding: 30px 0;
    text-align: center;
}

.color-results h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.color-palette {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.color-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: var(--shadow), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 3px solid var(--white);
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-hex {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    font-family: monospace;
}

/* ===========================
   15. Match My Room — Results
   =========================== */
.results-section {
    display: none;
    padding: 40px 0;
}

.analysis-card {
    background: linear-gradient(135deg, var(--white), var(--bg-alt));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.analysis-card h3 {
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.suggestion-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

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

.suggestion-category {
    font-weight: 600;
    font-size: 1.05rem;
}

.suggestion-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    margin-left: auto;
    box-shadow: var(--shadow-sm);
}

.suggestion-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.suggestion-body p strong {
    color: var(--text);
}

.match-score {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.match-score-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.score-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.score-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-actions {
    margin-top: 16px;
}

/* ===========================
   16. Match My Room — Visualization
   =========================== */
.visualization-section {
    display: none;
    padding: 40px 0;
    text-align: center;
}

.visualization-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.visualization-section>p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.generated-image-container {
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-alt);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.generated-image-container img {
    width: 100%;
    display: block;
}

.image-loading-text {
    position: absolute;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.download-tooltip {
    display: none;
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 8px;
    font-style: italic;
}

/* ===========================
   17. Loading Overlay
   =========================== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 164, 96, 0.2);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.loading-step {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: -20px;
}

/* ===========================
   18. Contact Page
   =========================== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08), rgba(244, 164, 96, 0.15));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item-content a:hover {
    color: var(--secondary);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
    background: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--secondary);
    cursor: pointer;
    margin: 0;
}


.map-container {
    margin-top: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
    background: var(--bg-alt);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   19. Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--accent);
    font-weight: 400;
    margin-left: 4px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

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

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--accent);
}

.footer-contact a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   20. CTA Banner
   =========================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   21. Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes floatParticle {

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

    25% {
        transform: translate(30px, -50px) scale(1.5);
    }

    50% {
        transform: translate(-20px, -100px) scale(0.8);
    }

    75% {
        transform: translate(40px, -50px) scale(1.2);
    }
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animation delays */
.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.5s;
}

/* ===========================
   22. Scrollbar
   =========================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-lighter);
}

/* ===========================
   22b. Showcase Carousel
   =========================== */
.showcase-section {
    padding: 80px 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.showcase-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    display: flex;
    gap: 24px;
    overflow: hidden;
    user-select: none;
    padding: 16px 0;
    margin-bottom: -16px;
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.showcase-marquee {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    animation: marquee-scroll 80s linear infinite;
}

.showcase-carousel-container:hover .showcase-marquee {
    animation-play-state: paused;
}

.showcase-card {
    position: relative;
    width: 300px;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover img {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-100% - 24px), 0, 0);
    }
}

/* Responsive overrides for carousel */
@media (max-width: 768px) {
    .showcase-section {
        padding: 60px 0;
    }
    .showcase-card {
        width: 240px;
        height: 300px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .showcase-section {
        padding: 40px 0;
    }
    .showcase-card {
        width: 180px;
        height: 230px;
    }
}

/* ===========================
   22c. Categories Grid & Cards
   =========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    position: relative;
    display: block;
    height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-image {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(45, 58, 51, 0.95) 0%, 
        rgba(45, 58, 51, 0.6) 40%, 
        rgba(45, 58, 51, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: opacity 0.4s ease;
}

.category-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    transform: translateY(20px);
    opacity: 0.8;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease;
}

.category-card:hover .category-card-icon {
    transform: translateY(0);
    opacity: 1;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

.category-card:hover h3 {
    transform: translateY(0);
}

.category-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s;
}

.category-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

.category-card .btn-sm {
    align-self: flex-start;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.25s, opacity 0.4s ease 0.25s;
    background: var(--accent);
    color: var(--text);
    border: none;
}

.category-card:hover .btn-sm {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Dynamic Staggering using CSS variables */
.fade-in[style*="--stagger"] {
    transition-delay: calc(var(--stagger) * 100ms);
}

/* ===========================
   23. Responsive — Tablet (768px)
   =========================== */
@media (max-width: 768px) {
    .navbar {
        position: relative !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .logo-img {
        height: 50px;
        width: auto;
    }
    
    .logo {
        font-size: 1.0rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 14px 16px;
        border-radius: var(--radius);
        font-size: 1.05rem;
    }

    @media (hover: hover) {
        .nav-links li a:hover {
            background: rgba(210, 105, 30, 0.08);
        }
    }

    .nav-links li a.active {
        background: rgba(210, 105, 30, 0.08);
        font-weight: 600;
    }

    .nav-cta {
        text-align: center !important;
        margin-top: 10px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .category-card {
        height: 220px;
    }

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

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

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

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

    .page-header h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }
}

/* ===========================
   24. Responsive — Mobile (480px)
   =========================== */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 75vh;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

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

    .category-card {
        height: 200px;
    }

    .category-card .btn-sm {
        opacity: 1;
        transform: translateY(0);
    }

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

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

    .filter-bar {
        border-radius: var(--radius-lg);
        padding: 12px 16px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-buttons {
        flex-direction: column;
        align-items: center;
    }

    .upload-buttons .btn {
        width: 100%;
        max-width: 260px;
    }

    .color-dot {
        width: 42px;
        height: 42px;
    }

    .analysis-card {
        padding: 20px;
    }

    .suggestion-card {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .match-hero h1 {
        font-size: 2rem;
    }

    .generated-image-container {
        border-radius: var(--radius-lg);
        min-height: 200px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-banner {
        padding: 40px 0;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 24px;
    }

    .product-card-actions {
        flex-direction: column;
    }
}

/* Product Detail Modal */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overscroll-behavior: contain;
}

.product-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 32px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overscroll-behavior: contain;
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    font-size: 14px !important;
    cursor: pointer;
    color: #1f2937 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
    z-index: 100;
}

.product-modal-close:hover {
    background: #ffffff !important;
    color: var(--secondary) !important;
    transform: scale(1.05);
}

/* Background scroll lock */
html:has(body[style*="hidden"]) {
    overflow: hidden !important;
}

body[style*="hidden"] {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
}

body[style*="hidden"] .product-detail-modal {
    touch-action: auto !important;
}

body[style*="hidden"] .product-modal-content {
    touch-action: pan-y !important;
}

.product-modal-image-col {
    flex: 1;
    min-width: 300px;
}

.product-modal-image-col img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: cover;
}

.product-modal-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 16px;
}

#detailModalCategory {
    font-size: 0.875rem;
    color: var(--primary-color, #c19a6b);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#detailModalName {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: #111827;
    margin-bottom: 12px;
}

#detailModalPrice {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 16px;
}

#detailModalDescription {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-modal-colors {
    margin-bottom: 24px;
}
.product-modal-colors strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 0.875rem;
}
#detailModalColors {
    display: flex;
    align-items: center;
}

.product-modal-actions {
    margin-top: auto;
}
.product-modal-actions .btn {
    width: 100%;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
    padding: 12px;
}

/* Modal and Grid overrides for Mobile */
@media (max-width: 768px) {
    .product-modal-content {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }
    .product-modal-image-col {
        min-width: 100%;
    }
    .product-modal-image-col img {
        max-height: 300px;
    }
    .products-grid, .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
    .modal-image-slider-wrapper,
    .modal-image-slide img {
        max-height: 300px !important;
    }
}

/* Product Image Slider (Modal) */
.modal-image-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.modal-image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    width: 100%;
}

.modal-image-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modal-image-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-slide img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 5;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #ffffff;
    color: var(--primary-color, #c19a6b);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Admin Images List & Overlay Styles */
.admin-img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    gap: 6px;
    padding: 8px;
}

.admin-img-overlay-parent {
    position: relative;
}

.admin-img-overlay-parent:hover .admin-img-overlay {
    opacity: 1;
}

.admin-img-overlay button {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* ===========================
   25. Print Styles
   =========================== */
@media print {

    .navbar,
    .footer,
    .btn-whatsapp,
    .hamburger,
    .loading-overlay {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    body {
        background: #fff;
        color: #000;
    }
}