:root {
    --primary: #5C3D2E;
    --secondary: #D4A853;
    --background: #F5F0E8;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-muted: #7A7A7A;
    --success: #4CAF50;
    --danger: #E53935;
    --border: #E0D8CC;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .playfair {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Custom Utilities */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; color: var(--white); }
.bg-secondary-custom { background-color: var(--secondary) !important; color: var(--white); }

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background-color: #c49942;
    color: var(--white);
    transform: translateY(-2px);
}

/* Navbar & Glassmorphism */
.navbar-custom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    border-bottom: 1px solid transparent;
}
.navbar-custom .nav-link {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
}
.navbar-custom.scrolled .nav-link, 
.navbar-custom.scrolled .navbar-brand,
.navbar-custom.scrolled .nav-icon {
    color: var(--text-dark) !important;
}
.navbar-custom .nav-link:hover, .navbar-custom.scrolled .nav-link:hover {
    color: var(--secondary) !important;
}

.nav-icon {
    color: var(--white);
    transition: all 0.3s ease;
}
.nav-icon:hover {
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

/* Updated Button Styles */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary-custom {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    font-weight: 600;
}
.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline-light-custom {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transition: all 0.4s ease;
    letter-spacing: 1px;
    font-weight: 600;
}
.btn-outline-light-custom:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Top Announcement Bar */
.top-announcement {
    background-color: var(--text-dark);
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 8px 0;
    z-index: 1040;
    position: relative;
}

/* Cards */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}
.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Floating Actions */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 99;
}

/* Custom Category Dropdown from Search Bar */
.custom-category-dropdown .category-item {
    transition: all 0.2s ease;
}
.custom-category-dropdown .category-item:hover:not(.bg-primary-custom) {
    background-color: rgba(92, 61, 46, 0.08) !important;
    color: var(--primary) !important;
}
.custom-category-dropdown::-webkit-scrollbar {
    width: 6px;
}
.custom-category-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.custom-category-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Header Utilities */
.hover-primary {
    transition: all 0.3s ease;
}
.hover-primary:hover {
    color: var(--primary) !important;
}
.hover-primary:hover i {
    color: var(--primary) !important;
}

.no-caret::after {
    display: none;
}

.header-top {
    position: relative;
    z-index: 1070; /* Higher than sticky nav (1050) */
}

.dropdown-menu {
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    z-index: 1100 !important;
}

.dropdown-item {
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(92, 61, 46, 0.05);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
}

/* WhatsApp Floating Button */
#whatsapp-chat {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}
#whatsapp-chat:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    color: white;
}
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}
@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 576px) {
    #whatsapp-chat {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}
