/* LNF — Custom Styles */

/* CSS Custom Properties */
:root {
    --bg: #F6F1EA;
    --bg-elevated: #EDE7DD;
    --fg: #2C2825;
    --ink: #2C2825;
    --paper: #F6F1EA;
    --primary: #C4A882;
    --primary-fg: #fff;
    --muted: #8A8279;
    --subtle: #B0A99F;
    --border: #DDD6CC;
    --shadow-border: inset 0 0 0 1px var(--border);
    --shadow-border-hover: inset 0 0 0 1px var(--fg);
}

/* Base */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
}

/* Display font */
.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Rise animations */
.rise {
    opacity: 0;
    transform: translateY(20px);
    animation: riseUp 0.8s ease forwards;
}
.rise-2 { animation-delay: 0.1s; }
.rise-3 { animation-delay: 0.2s; }
.rise-4 { animation-delay: 0.3s; }

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

/* Product card hover */
.product-card img {
    transition: transform 0.5s ease-out;
}
.product-card:hover img {
    transform: scale(1.03);
}

/* Header backdrop */
.header-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Search drawer */
.search-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}
.search-drawer.open {
    max-height: 80px;
    opacity: 1;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}
.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
    height: 3rem;
    padding: 0 1.25rem;
    cursor: pointer;
}
.btn:active { transform: scale(0.96); }
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 168, 130, 0.4);
}

.btn-primary {
    background-color: var(--ink);
    color: var(--paper);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    color: var(--fg);
    box-shadow: var(--shadow-border);
}
.btn-outline:hover {
    box-shadow: var(--shadow-border-hover);
}

.btn-white {
    background-color: var(--paper);
    color: var(--ink);
}
.btn-white:hover { opacity: 0.9; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.badge-new {
    background: rgba(255,255,255,0.9);
    color: var(--muted);
}
.badge-sale {
    background: var(--primary);
    color: var(--primary-fg);
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--ink);
    color: var(--paper);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 100;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Admin sidebar */
.admin-sidebar {
    background: var(--ink);
    color: var(--paper);
    min-height: 100vh;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: rgba(246,241,234,0.7);
    transition: color 0.15s, background 0.15s;
    border-radius: 0.375rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--paper);
    background: rgba(246,241,234,0.1);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: none;
}
.lang-switch:hover { color: var(--fg); }
