/* 1. Import Fonts: Montserrat (for Headings/Logo feel) and Open Sans (for reading) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --brand-green: #006B3E;
    --brand-gold: #D4AF37;
    --brand-dark: #0a2e1d;
    
    /* Font Variables */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body); /* Body text uses clean Open Sans */
    background-color: #ffffff;
    overflow-x: hidden;
    color: #4b5563; /* Soft gray text */
}

/* 2. Apply Logo Font Style to Headings */
h1, h2, h3, h4, h5, h6, .font-bold, .uppercase {
    font-family: var(--font-heading);
}

/* Specific Override for Nav Links to look like the logo */
.nav-link {
    font-family: var(--font-heading);
    font-weight: 600; /* Semi-bold matches the logo weight */
    letter-spacing: 0.5px;
}

/* Buttons should also use the logo font */
button, a.bg-\[\#006B3E\], a.bg-\[\#0a2e1d\], a.border-2 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

/* Utilities */
.text-brand-green { color: var(--brand-green); }
.bg-brand-green { background-color: var(--brand-green); }
.text-brand-gold { color: var(--brand-gold); }

/*^ my styles */
.KBlogoStyle{
    border-radius: 10px;
    border: 2px solid var(--brand-gold);
    -webkit-mask-image: radial-gradient(circle, #000 90%, transparent 100%);
    mask-image: radial-gradient(circle, #000 90%, transparent 100%);
}
/* .KBClogoStyle{
    border-radius: 10px;
    border: 2px solid var(--brand-gold);
    -webkit-mask-image: radial-gradient(circle, #000 90%, transparent 100%);
    mask-image: radial-gradient(circle, #000 90%, transparent 100%);
} */
/*  */
/* 3D Space Setup */
.perspective-container {
    perspective: 1000px; /* Creates the 3D depth */
    transform-style: preserve-3d;
}

.hero-slide {
    transform-origin: center center;
    will-change: transform, opacity, opacity; /* Performance optimization */
}

/* --- 1. REFINED CART BADGE --- */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #D4AF37; /* Gold */
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px; /* Ensures it stays round even with 2 digits */
    padding: 0 4px;
    border-radius: 99px; /* Perfect pill/circle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white; /* Creates a clean cut between icon and badge */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation when number changes */
.cart-badge.bump {
    transform: scale(1.3);
}

/* --- 2. PROFESSIONAL TOAST NOTIFICATION --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-left: 4px solid #006B3E; /* Green accent */
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%); /* Start hidden off-screen */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.remove {
    border-left-color: #ef4444; /* Red for remove */
}

.toast i {
    font-size: 1.2rem;
}

/* --- 3D MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 46, 29, 0.85); /* Dark Green Tint */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    perspective: 1500px; /* Essential for 3D effect */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content-3d {
    background: white;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Mobile first */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(20deg) scale(0.8) translateY(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy physics */
    overflow: hidden;
}

/* The Active State (Flat and visible) */
.modal-overlay.active .modal-content-3d {
    transform: rotateX(0deg) scale(1) translateY(0);
    opacity: 1;
}

/* Map Container */
#map-picker {
    height: 250px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-top: 10px;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .modal-content-3d {
        flex-direction: row;
        height: 80vh; /* Fixed height for desktop */
    }
}