/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Pinyon+Script&display=swap');

:root {
    --primary: #5c6b45; /* Olive green */
    --primary-light: #7a8c5d;
    --secondary: #d4af37; /* Gold */
    --text-dark: #2c3e2d;
    --bg-light: #fcf8f7; /* Cream/Beige matching logo */
    --border-color: #e5e0d8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navbar */
.navbar-custom {
    background-color: #fcf8f7 !important;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary) !important;
    font-style: italic;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 107, 69, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(253,252,248,1) 0%, rgba(230,233,222,0.5) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories */
.category-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(92, 107, 69, 0.15);
}

.category-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

/* Decorative elements */
.leaf-decor {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer a {
    color: #e5e0d8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--secondary);
    color: #fff;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: #fcf8f7; /* Cream/Beige matching logo background */
    z-index: 999999; /* Stay above Bootstrap sticky-top */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-brand {
    font-family: 'Pinyon Script', cursive;
    font-size: 6rem;
    color: var(--primary);
    clip-path: inset(0 100% 0 0);
    animation: writeText 2.2s cubic-bezier(0.3, 0.1, 0.3, 1) forwards 0.3s;
    text-shadow: 0 2px 10px rgba(92, 107, 69, 0.05);
    white-space: nowrap;
}

.preloader-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 15px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.4s;
}

.preloader-divider {
    width: 0;
    height: 1px;
    background-color: var(--primary);
    opacity: 0.3;
    margin-top: 15px;
    animation: expandLine 1s ease forwards 1.8s;
}

@keyframes writeText {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.6;
    }
}

@keyframes expandLine {
    to {
        width: 180px;
    }
}
