@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');

:root {
    --gold: #d9a441;
    --gold-dark: #b38121;
    --cream: #f7f2e9;
    --cream-dark: #efe1cf;
    --brown: #2b2019;
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4eee4;
    color: #332720;
    overflow-x: hidden;
}

.brand-logo {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
}

/* HERO SECTION */
.hero {
    background: #9a7b4f;
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 20px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.25);
    opacity: 0.8;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #fffdf8;
    margin-bottom: 1rem;
}

.hero-text {
    color: #fffaf0;
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff9eb;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

/* CARDS & PRODUCTS */
.section-heading {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.badge-hot {
    background: #ed4b82;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card {
    border-radius: 18px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fffdf8;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.product-price {
    font-weight: 700;
    color: var(--brown);
}

/* MAP SECTION */
.map-section {
    border-radius: 24px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-left {
    background: #1f1712;
    color: #f8ede0;
    padding: 2.2rem 2.4rem;
}

.map-right {
    background: #fffdf8;
    padding: 2.4rem 2.4rem;
}

.map-right h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* CART DRAWER */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: none;
    z-index: 1040;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: .3s;
}

.cart-drawer.open { right: 0; }
.cart-header { padding: 15px; border-bottom: 1px solid #e5e5e5; }
.cart-body { flex: 1; overflow-y: auto; padding: 10px; }
.cart-footer { padding: 15px; border-top: 1px solid #e5e5e5; background: #fff; }

/* --- UPDATED: PROFESSIONAL GRID LAYOUT (Vertical Scroll) --- */
#productContainer {
    display: flex;
    flex-wrap: wrap !important; /* FORCE WRAPPING */
    gap: 0; /* Bootstrap handles gaps via gutter classes */
    padding-bottom: 25px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Remove old scrollbars */
#productContainer::-webkit-scrollbar { display: none; }

/* Ensure columns respect Bootstrap grid */
#productContainer > div {
    flex: unset !important;
    max-width: unset !important;
}

/* FOOTER */
.site-footer {
    background-color: var(--brown);
    color: var(--cream);
    padding-top: 3rem;
    margin-top: 4rem;
}
.site-footer h5 { color: var(--gold); font-family: 'Playfair Display', serif; margin-bottom: 1.2rem; }
.site-footer a { color: #ccc; text-decoration: none; transition: 0.3s; }
.site-footer a:hover { color: var(--gold); }
.social-icons a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--cream);
    display: inline-block;
    transition: transform 0.2s;
}
.social-icons a:hover { color: var(--gold); transform: scale(1.1); }

/* --- SIZE BUTTON STYLES --- */
.size-btn {
    border: 1px solid #ddd;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    min-width: 45px;
}

.size-btn:hover {
    border-color: #d9a441;
}

.size-btn.active {
    background-color: #2b2019 !important; /* Dark Brown */
    color: white !important;
    border-color: #2b2019 !important;
}

/* MEDIA QUERIES */
@media (max-width: 991px) {
    .hero { padding: 1.8rem 1.6rem; }
    .hero::after { display: none; }
    .map-section { border-radius: 12px; }
}
@media (max-width: 575px) {
    .hero { margin-inline: -0.5rem; border-radius: 0; }
    .map-left, .map-right { padding: 1.6rem 1.4rem; }
}

/* --- CHECKOUT MODAL STYLES --- */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.checkout-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(0,0,0,0.05);
}

.checkout-header {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h4 {
    margin: 0;
    color: #2b2019;
    font-weight: 700;
}

.checkout-modal .form-label {
    margin-bottom: 4px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkout-modal .form-control {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: 0.2s;
}

.checkout-modal .form-control:focus {
    background-color: #fff;
    border-color: #d9a441;
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.15);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}