/* ═══════════════════════════════════════════════ */
/* LOCAL FONTS                                     */
/* ═══════════════════════════════════════════════ */
@font-face {
    font-family: 'Canela';
    src: url('../All-Fonts/Canela Family/Canela-Light-Trial.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('../All-Fonts/Canela Family/Canela-Regular-Trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('../All-Fonts/Canela Family/Canela-Medium-Trial.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('../All-Fonts/Canela Family/Canela-Bold-Trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../All-Fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../All-Fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../All-Fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../All-Fonts/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════ */
/* BASE RESET & GLOBALS                            */
/* ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', 'DM Sans', 'Inter', system-ui, sans-serif;
    background-color: #FAF8F2; /* Ivory Background */
    color: #1D1D1D; /* Charcoal Text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[dir="rtl"] {
    font-family: 'Satoshi', 'system-ui', 'Cairo', sans-serif;
}

::selection {
    background: rgba(11, 59, 46, 0.15); /* Light primary green tint */
    color: #0B3B2E;
}

/* ═══════════════════════════════════════════════ */
/* SCROLLBAR                                       */
/* ═══════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #FAF8F2;
}

::-webkit-scrollbar-thumb {
    background: #EAE5DA;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D7C8A4;
}

/* ═══════════════════════════════════════════════ */
/* TYPOGRAPHY                                      */
/* ═══════════════════════════════════════════════ */
.font-serif {
    font-family: 'Canela', 'Cormorant Garamond', 'Georgia', serif;
}

.font-sans {
    font-family: 'Satoshi', 'DM Sans', 'Inter', system-ui, sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Gold/Champagne gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #0B3B2E 0%, #306655 50%, #0B3B2E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════ */
/* REVEAL ANIMATIONS (Scroll-triggered)            */
/* ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════ */
/* PRODUCT CARDS                                   */
/* ═══════════════════════════════════════════════ */
.product-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #EAE5DA;
    box-shadow: 0 4px 20px rgba(26, 24, 22, 0.02);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 59, 46, 0.08);
    border-color: rgba(170, 180, 138, 0.5);
}

.product-card .card-image {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-card .card-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ═══════════════════════════════════════════════ */
/* SEARCH                                          */
/* ═══════════════════════════════════════════════ */
.search-highlight {
    background: rgba(170, 180, 138, 0.2);
    color: #0B3B2E;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 600;
}

.search-item {
    transition: background-color 0.15s ease;
}

.search-item:hover,
.search-item.active {
    background-color: rgba(11, 59, 46, 0.04);
}

/* ═══════════════════════════════════════════════ */
/* PAGE TRANSITIONS                                */
/* ═══════════════════════════════════════════════ */
@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-enter {
    animation: viewFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ═══════════════════════════════════════════════ */
/* LOADING SHIMMER                                 */
/* ═══════════════════════════════════════════════ */
.shimmer {
    background: linear-gradient(90deg, #FAF8F2 25%, #EAE5DA 50%, #FAF8F2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ═══════════════════════════════════════════════ */
/* TOAST                                           */
/* ═══════════════════════════════════════════════ */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
}

.toast-enter {
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

/* ═══════════════════════════════════════════════ */
/* GLASSMORPHISM & BLURS                           */
/* ═══════════════════════════════════════════════ */
.glass {
    background: rgba(250, 248, 244, 0.85); /* Ivory base glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════════ */
/* DECORATIVE BACKGROUNDS                          */
/* ═══════════════════════════════════════════════ */
.grid-pattern {
    background-image:
        linear-gradient(rgba(170, 180, 138, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 180, 138, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ═══════════════════════════════════════════════ */
/* FORM INPUTS (Light luxury styling)              */
/* ═══════════════════════════════════════════════ */
[type='text'], [type='email'], [type='url'], [type='password'], [type='number'], [type='search'], [type='tel'], textarea, select {
    background-color: #FFFFFF !important;
    color: #1D1D1D !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
}

.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    background: #FFFFFF !important;
    border: 1px solid #EAE5DA !important;
    padding: 0.75rem 1.2rem !important;
    border-radius: 0.5rem !important;
    color: #1D1D1D !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    font-family: 'Satoshi', system-ui, sans-serif !important;
}

.form-input:focus,
input.form-input:focus,
textarea.form-input:focus,
select.form-input:focus {
    border-color: #0B3B2E !important;
    box-shadow: 0 0 0 3px rgba(11, 59, 46, 0.06) !important;
    background: #FFFFFF !important;
    --tw-ring-color: transparent !important;
}

.form-input::placeholder,
::placeholder {
    color: #8c887f !important;
    font-weight: 400 !important;
}

/* ═══════════════════════════════════════════════ */
/* ADMIN DASHBOARD STYLES                          */
/* ═══════════════════════════════════════════════ */
.admin-overlay {
    animation: viewFadeIn 0.3s ease-out;
    background-color: #FAF8F2;
    color: #1D1D1D;
}

.admin-overlay .form-input {
    background: #FFFFFF !important;
    border: 1px solid #EAE5DA !important;
    color: #1D1D1D !important;
}

.admin-overlay .form-input:focus {
    border-color: #0B3B2E !important;
    box-shadow: 0 0 0 3px rgba(11, 59, 46, 0.06) !important;
}

/* ═══════════════════════════════════════════════ */
/* MOBILE SAFE AREAS                               */
/* ═══════════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 68px;
    }
    #site-footer {
        margin-bottom: 68px;
    }
}

/* ═══════════════════════════════════════════════ */
/* BRAND CARDS                                     */
/* ═══════════════════════════════════════════════ */
.brand-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease, background-color 0.3s ease;
    background-color: #FFFFFF;
    border: 1px solid #EAE5DA;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: #0B3B2E;
    background-color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(11, 59, 46, 0.04);
}

/* ═══════════════════════════════════════════════ */
/* VARIANT SELECTORS                               */
/* ═══════════════════════════════════════════════ */
.variant-chip {
    transition: all 0.2s ease;
    cursor: pointer;
    background: #FFFFFF;
    border: 1.5px solid #EAE5DA;
    color: #1D1D1D;
}

.variant-chip:hover {
    border-color: #0B3B2E;
    background: rgba(11, 59, 46, 0.02);
}

.variant-chip.selected {
    border-color: #0B3B2E;
    background: rgba(11, 59, 46, 0.05);
    color: #0B3B2E;
}

.variant-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    background: #FAF8F2 !important;
    border-color: #EAE5DA !important;
    color: #8c887f !important;
}

.variant-chip.disabled:hover {
    background: #FAF8F2 !important;
    border-color: #EAE5DA !important;
}

/* ═══════════════════════════════════════════════ */
/* PREMIUM BUTTONS                                 */
/* ═══════════════════════════════════════════════ */
.btn-primary {
    background: #0B3B2E;
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.95rem 2.2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #1a5c47;
    box-shadow: 0 8px 20px rgba(11, 59, 46, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: #0B3B2E;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.95rem 2.2rem;
    border-radius: 0.5rem;
    border: 1.5px solid #0B3B2E;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: rgba(11, 59, 46, 0.04);
    border-color: #0B3B2E;
}

/* ═══════════════════════════════════════════════ */
/* BADGES SYSTEM                                   */
/* ═══════════════════════════════════════════════ */
.badge-premium {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.badge-new {
    background-color: #E8F0E2;
    color: #0B3B2E;
    border: 1px solid rgba(11, 59, 46, 0.1);
}

.badge-best-seller {
    background-color: #D7C8A4;
    color: #4A3E25;
    border: 1px solid rgba(74, 62, 37, 0.15);
}

.badge-top-seller {
    background-color: #EAE5DA;
    color: #1D1D1D;
    border: 1px solid rgba(29, 29, 29, 0.1);
}

/* ═══════════════════════════════════════════════ */
/* ANIMATION / PULSE                               */
/* ═══════════════════════════════════════════════ */
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

/* Horizontal pill scroll adjustments */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* RTL Layout Flip Helpers */
[dir="rtl"] .flex-row-reverse-rtl {
    flex-direction: row-reverse;
}
[dir="rtl"] .text-right-rtl {
    text-align: right;
}
[dir="rtl"] .text-left-rtl {
    text-align: left;
}

.fill-1 {
    font-variation-settings: 'FILL' 1 !important;
}