@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #FCFCFB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5F4F0;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --accent-gold: #C5A880;
    --accent-gold-dark: #A88F65;
    --accent-gold-light: #F6F3EC;
    --border-color: #E8E7E3;
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1EBE57;
    
    /* Layout & Styling Tokens */
    --max-width: 1300px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 4px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.06);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Common Layout Elements */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

/* Header & Navigation (Westwing Style) */
.header-wrapper {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

.header-top {
    height: 38px;
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    /* Invert logo back to black for white background headers */
    filter: brightness(0);
}

.main-nav {
    display: flex;
    gap: 36px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link {
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--bg-primary);
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer Section */
footer {
    background-color: #111;
    color: #FFF;
    padding: 80px 0 40px 0;
    font-size: 13px;
    line-height: 2;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
}

.footer-col p {
    color: #AAA;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #AAA;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-logo img {
    height: 38px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border: 1px solid #333;
}

.social-link:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
}

/* Premium Buttons & Cards */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--text-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #FFFFFF;
    font-size: 13px;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Product Card Design (Westwing Hover Style) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 24px;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.product-image.main-img {
    position: relative;
    z-index: 1;
}

.product-image.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.card-swatches {
    display: flex;
    gap: 6px;
    padding: 0 16px 16px 16px;
    margin-top: -4px;
    flex-wrap: wrap;
    z-index: 5;
}

.card-swatch-item {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
}

.card-swatch-item.active {
    border-color: var(--text-primary) !important;
    transform: scale(1.15);
    box-shadow: 0 0 0 1px var(--text-primary);
}

.card-swatch-item:hover {
    transform: scale(1.15);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-gold);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    z-index: 5;
}

.product-info {
    padding: 20px 16px;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold-dark);
}

/* Hero Section (Aesthetic slider / banner) */
.hero {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #EFEFEF;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 16px;
    color: var(--accent-gold);
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 36px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Mobile menu can toggle in JS */
    }
    .mobile-nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .section-title {
        font-size: 2rem;
    }
}


/* Language Switcher Styling */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    margin-right: 15px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    padding: 2px 4px;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--accent-gold-dark);
}

.lang-btn.active {
    color: var(--text-primary);
    font-weight: 700;
}

.lang-divider {
    color: var(--border-color);
    font-size: 11px;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 0;
    }
}

/* ==========================================
   HOMEMERRY HERO SLIDER STYLES
   ========================================== */
.hero-slider-container {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: #EFEFEF;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
}

.slider-arrow:hover {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-arrow-left {
    left: 30px;
}

.slider-arrow-right {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-arrow-left {
        left: 15px;
    }
    .slider-arrow-right {
        right: 15px;
    }
    .hero-slider-container {
        height: 500px;
    }
}

/* ==========================================
   HOMEMERRY ACCESSIBILITY DESK WIDGET STYLES
   ========================================== */
@import url('https://fonts.cdnfonts.com/css/open-dyslexic');

.accessibility-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-gold-dark);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accessibility-floating-btn:hover {
    transform: scale(1.08) rotate(15deg);
    background-color: #b2946c;
}

.accessibility-desk {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background-color: #FCFBFA;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 30px rgba(110, 106, 95, 0.15);
    z-index: 100000;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.accessibility-desk.open {
    left: 0;
}

.accessibility-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.accessibility-header .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.accessibility-header .close-btn:hover {
    color: var(--text-primary);
}

.accessibility-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.accessibility-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessibility-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Control Buttons & Grid */
.accessibility-control-group {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    justify-content: space-between;
}

.accessibility-control-group span {
    font-weight: 600;
    font-size: 14px;
}

.accessibility-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.accessibility-section .control-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.accessibility-section .control-btn:hover {
    border-color: var(--accent-gold-dark);
    background-color: #FCFBFA;
}

.accessibility-section .control-btn.active {
    background-color: var(--accent-gold-dark);
    color: #FFFFFF;
    border-color: var(--accent-gold-dark);
}

/* Switch styling */
.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.switch-container input {
    display: none;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

input:checked + .switch-slider {
    background-color: var(--accent-gold-dark);
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Reading Ruler */
.reading-ruler {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-gold-dark);
    pointer-events: none;
    z-index: 99999;
    display: none;
    box-shadow: 0 0 8px var(--accent-gold);
}

/* ==========================================
   HOMEMERRY ACCESSIBILITY MODES OVERRIDES
   ========================================== */
/* Dyslexia mode */
body.dyslexia-mode, body.dyslexia-mode * {
    font-family: 'OpenDyslexic', 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.18em !important;
    line-height: 1.8 !important;
}

/* Contrast mode */
body.contrast-mode {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.contrast-mode * {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: none !important;
}

body.contrast-mode a, body.contrast-mode button, body.contrast-mode span[onclick], body.contrast-mode .nav-link {
    color: #FFFF00 !important;
    text-decoration: underline !important;
}

body.contrast-mode a:hover, body.contrast-mode button:hover {
    color: #00FFFF !important;
}

body.contrast-mode img {
    filter: contrast(1.5) brightness(0.8);
}

/* Grayscale Mode */
body.grayscale-mode {
    filter: grayscale(1) !important;
}

/* Night Mode warm dark tone */
body.night-mode {
    background-color: #1a1915 !important;
    background: #1a1915 !important;
    color: #e4dec9 !important;
}

body.night-mode .header-wrapper, 
body.night-mode header,
body.night-mode footer, 
body.night-mode section, 
body.night-mode div, 
body.night-mode aside, 
body.night-mode form, 
body.night-mode input,
body.night-mode textarea,
body.night-mode select {
    background-color: #1a1915 !important;
    color: #e4dec9 !important;
    border-color: #2e2c26 !important;
}

body.night-mode a, body.night-mode button, body.night-mode span {
    color: #c5a880 !important;
}

body.night-mode .btn-primary {
    background-color: #c5a880 !important;
    color: #1a1915 !important;
}

body.night-mode .btn-secondary {
    background-color: transparent !important;
    border-color: #c5a880 !important;
    color: #c5a880 !important;
}

/* Stop animations */
body.stop-animations, body.stop-animations * {
    animation: none !important;
    transition: none !important;
}
