:root {
    --primary: #3E2723;       
    --accent: #C8AD7F;         
    --accent-hover: #b09265;
    --accent-light: #f5efe6;
    --bg-body: #FDFBF7;       
    --bg-white: #FFFFFF;      
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 15px; 
    --shadow: 0 10px 40px rgba(62, 39, 35, 0.08);

    --chat--window--background: #FFFFFF !important;
    --chat--color-primary: #3E2723 !important; 
    --chat--color-secondary: #C8AD7F !important;
    --chat--header--background: #3E2723 !important;
    --chat--header--color: #FFFFFF !important;
    --chat--message--bot--background: #f5f5f5 !important;
    --chat--message--bot--color: #333333 !important;
    --chat--message--user--background: #C8AD7F !important;
    --chat--message--user--color: #FFFFFF !important;
    --chat--toggle--background: #C8AD7F !important;
    --chat--toggle--color: #3E2723 !important;
    --chat--toggle--hover--background: #3E2723 !important;
    --chat--toggle--hover--color: #C8AD7F !important;
    --chat--font-family: 'Montserrat', sans-serif !important;
    --chat--z-index: 999999 !important;
}

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 0px; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
ul { list-style: none; }

header {
    background: rgba(255, 255, 255, 0.98); 
    height: 110px; 
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03); padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    transition: height 0.3s ease;
}

.logo img { 
    height: 85px; 
    width: auto; 
    transition: transform 0.3s ease, height 0.3s ease;
}
.logo:hover img { transform: scale(1.05); }

@keyframes logoEntrance {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.logo-animate { animation: logoEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.desktop-nav ul { display: flex; gap: 35px; }
.desktop-nav a { font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; color: var(--primary); padding-bottom: 5px; position: relative; }
.desktop-nav a::after { content:''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background: var(--accent); transition: 0.3s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--accent); }
.desktop-nav a.active::after { width: 100%; }

.header-icons { display: flex; gap: 20px; align-items: center; }
.icon-btn { font-size: 1.3rem; cursor: pointer; color: var(--primary); transition:0.3s; position: relative; }
.icon-btn:hover { color: var(--accent); transform: scale(1.1); }
.badge { position: absolute; top: -5px; right: -8px; background: var(--accent); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }

.user-dropdown { position: relative; }
.dropdown-content { position: absolute; right: 0; top: 40px; background: white; width: 220px; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; display: none; flex-direction: column; z-index: 2000; border-top: 3px solid var(--accent); }
.dropdown-content.active { display: flex; animation: fadeIn 0.3s; }
.dropdown-content a { padding: 15px 20px; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; }
.dropdown-content a:hover { background: var(--accent-light); color: var(--primary); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

.mobile-nav-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(62, 39, 35, 0.98); 
    z-index: 5000; 
    display: none; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.mobile-links a {
    color: #fff;
    font-family: var(--font-head);
    font-size: 2rem;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.mobile-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.close-mobile {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 5001;
}

.btn {
    background: var(--accent); color: white; padding: 16px 45px; 
    border-radius: 50px; font-weight: 700; text-transform: uppercase; border: none; letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(200, 173, 127, 0.4); transition: 0.3s; cursor: pointer; display: inline-block;
}
.btn:hover { background: #b09265; transform: translateY(-3px); }
.btn-full { width: 100%; }

.btn-outline {
    background: transparent; border: 2px solid var(--accent); color: var(--primary); padding: 10px 30px; 
    font-weight: 700; cursor: pointer; transition: 0.3s; border-radius: 50px;
}
.btn-outline:hover, .btn-filter.active { background: var(--accent); color: white; }

.hero {
    height: 85vh; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1626263468007-a9e0cf83f1ac?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white;
    position: relative;
}
.hero-content { animation: fadeIn 1s; padding:20px; width: 100%; max-width: 800px; }
.hero h1 { font-family: var(--font-head); font-size: 4rem; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); line-height: 1.1; font-weight: 700; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; font-size: 2.5rem; cursor: pointer; z-index: 10;
    animation: bounce 2s infinite; opacity: 0.8; transition: 0.3s;
}
.scroll-down:hover { opacity: 1; color: var(--accent); }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

.page-view { display: none; animation: fadeIn 0.5s; padding-bottom: 60px; min-height: 80vh; }
.page-view.active { display: block; }
@keyframes fadeIn { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-title { font-family: var(--font-head); font-size: 3rem; text-align: center; margin-bottom: 15px; color: var(--primary); font-weight: 700; }
.subtitle { text-align: center; color: #8d7772; margin-bottom: 60px; font-style: italic; font-size: 1.1rem; }

.form-page-container, .custom-page-container {
    max-width: 800px; margin: 0 auto; background: white; padding: 40px; 
    border-radius: 20px; box-shadow: var(--shadow); width: 100%; box-sizing: border-box;
}

.search-container { max-width: 600px; margin: 0 auto 40px; position: relative; }
.search-input { width: 100%; padding: 15px 20px 15px 50px; border: 2px solid #eee; border-radius: 50px; font-family: var(--font-body); font-size: 1rem; transition: 0.3s; background: white; box-sizing: border-box; }
.search-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #ccc; }

.banner-separator {
    background: linear-gradient(rgba(62,39,35,0.7), rgba(62,39,35,0.7)), url('https://images.unsplash.com/photo-1579306194872-64d3b7bac4c2?auto=format&fit=crop&q=80');
    background-size: cover; background-attachment: fixed; color: white; padding: 80px 20px; text-align: center;
}
.banner-text h3 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; }

.carousel-wrapper { position: relative; padding: 0 40px; }
.carousel { 
    display: flex; gap: 30px; overflow-x: auto; padding: 20px 5px; 
    scroll-behavior: smooth; scrollbar-width: none; 
    scroll-snap-type: x mandatory; 
}
.carousel::-webkit-scrollbar { display: none; }

.carousel .product-card { 
    min-width: 300px; max-width: 300px; flex: 0 0 auto; 
    scroll-snap-align: center; 
}

.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%; background: white; border: 1px solid #eee;
    cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 10; transition: 0.3s; font-size: 1.2rem; color: var(--primary);
}
.sb-left { left: 0; } .sb-right { right: 0; }

.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.btn-filter { background: transparent; border: 2px solid #ddd; color: #888; padding: 10px 25px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-filter.active, .btn-filter:hover { border-color: var(--accent); background: var(--accent); color: white; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card {
    background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: 0.3s; border: 1px solid #f5f5f5;
    display: flex; flex-direction: column; cursor: pointer; height: 100%;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(62, 39, 35, 0.15); border-color: transparent; }
.card-img-box { height: 280px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.product-card:hover .card-img { transform: scale(1.08); }
.card-info { padding: 25px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 5px; color: var(--primary); font-weight: 700; }
.badge-accent { color: var(--accent); font-weight: bold; font-size: 0.8rem; display: block; margin-top: 5px; }
.card-price { font-weight: 700; color: var(--accent); font-size: 1.2rem; display: block; margin-bottom: 15px; }
.card-btn {
    width: 100%; padding: 12px; background: transparent; border: 2px solid var(--accent);
    color: var(--primary); font-weight: 700; text-transform: uppercase; border-radius: 50px;
    font-size: 0.8rem; transition: 0.3s; cursor: pointer; margin-top: auto;
}
.product-card:hover .card-btn { background: var(--accent); color: white; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.review-card { background: white; padding: 30px; border-radius: 12px; box-shadow: var(--shadow); }
.stars { color: #FFC107; letter-spacing: 2px; margin-bottom: 10px; }
.review-author { font-weight: bold; margin-top: 15px; color: var(--accent); text-align: right; }

.about-split { display: flex; align-items: center; gap: 60px; margin-bottom: 60px; }
.about-text { flex: 1; font-size: 1.1rem; color: #555; text-align: justify; }
.about-img { flex: 1; } .about-img img { width: 100%; border-radius: 20px; box-shadow: 20px 20px 0 var(--accent-light); }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.store-item { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-left: 4px solid var(--accent); }

input, select, textarea { box-sizing: border-box; }
input[type="datetime-local"] { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; color: #333; background-color: #fafafa; cursor: pointer; }

.form-label { font-size: 0.85rem; font-weight: 700; display: block; margin-bottom: 8px; color: #888; text-transform: uppercase; }
.form-input, .form-select { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; font-family: inherit; font-size: 1rem; background: #fafafa; }
.form-input:focus { border-color: var(--accent); outline: none; background: white; }

.qty-selector { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; width: fit-content; margin-bottom: 20px; }
.qty-btn { background: transparent; border: none; padding: 10px 15px; cursor: pointer; color: var(--primary); font-size: 1.2rem; transition: 0.3s; }
.qty-btn:hover { background: #eee; color: var(--accent); }
.qty-input { border: none; text-align: center; width: 50px; background: transparent; font-weight: bold; -moz-appearance: textfield; font-size: 1rem; color: #333; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

select.form-select {
    appearance: none; -webkit-appearance: none; background-color: #fafafa; padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23C8AD7F%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right .7em top 50%; background-size: .65em auto; cursor: pointer;
}

.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 1px solid #eee; }
.auth-tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-weight: 600; color: #999; }
.auth-tab.active { color: var(--accent); border-bottom: 3px solid var(--accent); }

.modal-overlay, .payment-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 30, 28, 0.6); z-index: 5000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.payment-modal { background: rgba(255, 255, 255, 0.95); z-index: 9000; }

.modal-box { 
    background: white; padding: 40px; border-radius: 20px; width: 95%; max-width: 450px; 
    position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; 
    scrollbar-width: none; 
}
.modal-box::-webkit-scrollbar { display: none; }

.modal-large { max-width: 900px; padding: 0; display: flex; overflow: hidden; }
.prod-modal-layout { display: flex; width: 100%; }
.prod-img-container { width: 50%; } .prod-modal-img { width: 100%; height: 100%; object-fit: cover; }
.prod-modal-info { width: 50%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #999; z-index: 10; }

.payment-box { background: white; width: 95%; max-width: 1000px; height: 80vh; border-radius: 12px; display: flex; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.15); border: 1px solid #eee; }
.pay-col-left { flex: 1.5; padding: 50px; overflow-y: auto; border-right: 1px solid #f0f0f0; }
.pay-col-right { flex: 1; padding: 50px; background: #fafafa; display: flex; flex-direction: column; justify-content: space-between; }
.pay-title { font-size: 2.2rem; font-family: var(--font-head); margin-bottom: 40px; color: #000; }
.pay-row { display: flex; gap: 20px; }
.btn-confirm { background: #1a1a1a; color: white; width: 100%; padding: 18px; border-radius: 50px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; font-size: 1.1rem; }
.btn-confirm:hover { background: #000; transform: translateY(-2px); }
.close-pay { position: absolute; top: 30px; right: 30px; font-size: 2rem; cursor: pointer; color: #999; }
.summary-card { display: flex; gap: 15px; margin-bottom: 15px; background: white; padding: 10px; border-radius: 8px; border: 1px solid #eee; }
.summary-img { width: 50px; height: 50px; border-radius: 5px; object-fit: cover; }
.pay-scroll { flex:1; overflow-y:auto; margin-bottom:20px; padding-right:10px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; }

.cart-sidebar { position: fixed; top: 0; right: 0; width: 400px; height: 100%; background: white; box-shadow: -10px 0 50px rgba(0,0,0,0.2); transform: translateX(100%); transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: 6000; display: flex; flex-direction: column; }
.cart-sidebar.active { transform: translateX(0); }
.cart-header { padding: 25px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.cart-content { flex: 1; padding: 30px; overflow-y: auto; }
.cart-item-row { display: flex; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.cart-img-small { width: 60px; height: 60px; border-radius: 5px; object-fit: cover; }
.remove-link { font-size: 0.7rem; color: #d9534f; cursor: pointer; text-decoration: underline; }
.cart-footer { padding: 30px; background: #fafafa; border-top: 1px solid #eee; }

#n8n-chat { position: fixed !important; bottom: 20px !important; right: 20px !important; z-index: 999999 !important; display: block !important; }
.n8n-chat-widget [class*="chat-toggle"] { display: flex !important; visibility: visible !important; opacity: 1 !important; border: 2px solid #3E2723 !important; box-shadow: 0 5px 25px rgba(62, 39, 35, 0.3) !important; width: 65px !important; height: 65px !important; }

footer { background: #2D1E1B; color: #e6dace; padding: 70px 5% 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; max-width: 1200px; margin: 0 auto; }
.footer-logo { height: 70px; width: auto; object-fit: contain; }
.footer-col h4 { font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); margin-bottom: 25px; }
.footer-col a { color: #e6dace; font-size: 0.9rem; }
.social-links a { font-size: 1.5rem; margin-right: 15px; color: white; transition: 0.3s; }
.social-links a:hover { color: var(--accent); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(62, 39, 35, 0.98); z-index: 5000; display: none; flex-direction: column; align-items: center; justify-content: center; }
.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.mobile-links a { color: #fff; font-family: var(--font-head); font-size: 2rem; text-decoration: none; display: block; transition: 0.3s; }
.mobile-links a:hover { color: var(--accent); transform: scale(1.1); }
.close-mobile { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: white; cursor: pointer; z-index: 5001; }

.map-layout { display: flex; gap: 30px; align-items: flex-start; margin-top: 30px; }
.map-layout iframe { width: 65%; height: 450px; border-radius: 15px; border: none; box-shadow: var(--shadow); }
.locations-list { width: 35%; max-height: 450px; overflow-y: auto; background: white; padding: 0; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid #eee; }
.locations-list-header { padding: 20px; background: var(--primary); color: white; font-family: var(--font-head); font-size: 1.2rem; border-top-left-radius: 15px; border-top-right-radius: 15px; }
.locations-list ul { padding: 10px; }
.locations-list ul li { 
    padding: 15px; border-bottom: 1px solid #f5f5f5; display: flex; align-items: flex-start; 
    font-size: 0.9rem; color: #555; cursor: pointer; transition: all 0.2s ease; border-radius: 8px; margin-bottom: 5px;
}
.locations-list ul li:hover { background-color: var(--accent-light); color: var(--primary); transform: translateX(5px); }
.locations-list ul li:last-child { border-bottom: none; }
.locations-list i { color: var(--accent); margin-top: 5px; margin-right: 12px; font-size: 1.1rem; }

@media(max-width: 900px) {
    header { height: 80px; padding: 0 20px; }
    .logo img { height: 60px; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    
    #auth-btn, #user-menu { display: none !important; }
    
    .hero h1 { font-size: 2.8rem; }
    .hero-content { padding: 0 20px; }

    .about-split { flex-direction: column; }
    .map-layout { flex-direction: column; }
    .map-layout iframe, .locations-list { width: 100%; }
    .payment-box { flex-direction: column; height: auto; max-height: 95vh; border-radius: 12px; }
    .pay-col-left, .pay-col-right { border: none; padding: 25px; }

    .prod-modal-layout { flex-direction: column; }
    .prod-img-container { width: 100%; height: 250px; }
    .prod-modal-info { width: 100%; padding: 25px; }
    .modal-box { padding: 25px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .social-links { justify-content: center; }
    .footer-col { display: flex; flex-direction: column; align-items: center; } 
    
    .footer-col ul li a { justify-content: center; }

    .cart-sidebar { width: 100%; max-width: 100%; }
    
    .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
    .checkout-card { padding: 25px 20px; }
    .order-summary-box { position: static; order: -1; margin-bottom: 20px; }
}

@media(max-width: 600px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; margin-bottom: 40px; }
    
    .container { padding: 60px 20px; }
    
    .carousel-wrapper { padding: 0; }
    .scroll-btn { display: none !important; } 
    .carousel { padding: 20px 20px; gap: 15px; }
    .carousel .product-card { 
        min-width: 80vw; max-width: 80vw; 
        margin: 0 auto; 
    }

    .product-card { max-width: 100%; } 
    .shop-grid { grid-template-columns: 1fr; } 
    
    .row-gap { flex-direction: column !important; gap: 0 !important; }
    .form-page-container, .custom-page-container { padding: 25px; }
    
    .form-input, .form-select, select, input {
        font-size: 16px !important; 
        padding: 12px 15px !important;
    }
    
    .btn { padding: 14px 30px; font-size: 0.9rem; width: 100%; text-align: center; }
    .header-icons { gap: 15px; }
    
    .auth-wrapper { padding: 120px 20px 60px; }
    .auth-card { max-width: 100%; }
}