@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import "tailwindcss";

html, body {
    overflow-x: hidden;
}

@theme {
    /* --font-family-header: 'Anybody', sans-serif; */
    --font-family-header: 'Playfair Display', serif;
    --font-family-body: 'Roboto Condensed', sans-serif;
    --color-primary: #b17862;
    --color-secondary: #4a3d35;
}

/*---------------------- Mobile Menu ----------------------*/
#mobileMenuOverlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

#mobileMenuDrawer {
    width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

/*---------------------- Banner ----------------------*/
.banner-screen {
    height: 350px;
}
@media (min-width: 768px) {
    .banner-screen { height: 450px; }
}
@media (min-width: 1024px) {
    .banner-screen { height: 600px; }
}

.banner-gradient-overlay {
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.2), transparent);
}

/*---------------------- Popular Products Section ----------------------*/
.popular-products-heading {
    margin-top: -40px;
}

/*---------------------- Popular Products Owl Carousel ----------------------*/
.popular-products-carousel .owl-nav {
    position: absolute !important;
    top: -65px !important;
    right: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 8px;
}

.popular-products-carousel .owl-nav button.owl-prev,
.popular-products-carousel .owl-nav button.owl-next {
    background-color: #2a2a2a !important;
    color: white !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background-color 0.3s !important;
}
.popular-products-carousel .owl-nav button.owl-prev:hover,
.popular-products-carousel .owl-nav button.owl-next:hover {
    background-color: var(--color-primary) !important;
}

@media (max-width: 768px) {
    .popular-products-carousel .owl-nav {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        justify-content: center;
        margin-top: 24px !important;
    }
}

/* Ensure the overall structure works nicely */
.popular-products-carousel .owl-stage-outer {
    padding-bottom: 20px;
    padding-top: 10px;
}

/*---------------------- Scroll to Top Button ----------------------*/
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.scroll-top-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/*---------------------- Page Banner (Inner Pages) ----------------------*/
.page-banner {
    height: 200px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .page-banner { height: 250px; }
}
@media (min-width: 1024px) {
    .page-banner { height: 300px; }
}
.page-banner-overlay {
    background: rgba(0, 0, 0, 0.55);
}

/*---------------------- Get Quote Modal ----------------------*/
#quoteModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
}
#quoteModalOverlay.active {
    opacity: 1;
    visibility: visible;
}

#quoteModal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
#quoteModalOverlay.active #quoteModal {
    transform: translateY(0) scale(1);
}

#quoteModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

#quoteModal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
#quoteModal .modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

#quoteModal .modal-body {
    padding: 20px 28px 28px;
}

/* Accent line at top */
#quoteModal::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px 12px 0 0;
}
