/* =========== GLOBAL STYLES & VARIABLES =========== */
:root {
    --highlight-brown: #4D4242;
    --background-pink: #FFF5F5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-pink);
    color: var(--text-dark);
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


body.sidebar-open {
    overflow: hidden;
}

.navbar-container, .products-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========== NAVBAR STYLES =========== */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--highlight-brown);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--highlight-brown);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
}

.brand-logo .logo-text {
    background-color: var(--highlight-brown);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-right: 12px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu-toggle {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    color: var(--highlight-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

#menu-toggle:hover {
    background-color: #f0f0f0;
}


/* =========== GENERAL SECTION STYLES (UPDATED FOR MOBILE-FIRST) =========== */
#home, #products, #announcements, #services-offered, #testimonials, #about, #contact {
    padding: 60px 0;
    position: relative;
    background-color: transparent;
}

/* Para magkaroon pa rin ng kulay ang ibang sections at hindi maging transparent lahat */
#products, #testimonials, #about {
    background-color: rgba(255, 245, 245, 0.85);
    backdrop-filter: blur(5px);
}

.section-title {
    color: var(--highlight-brown);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-brown);
}


/* =========== HERO SECTION STYLES =========== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* =========== BUTTON STYLES =========== */
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--highlight-brown);
    color: var(--highlight-brown);
    padding: 8px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--highlight-brown);
    color: var(--white);
}

/* =========== PRODUCT CARD STYLES (UPDATED FOR MOBILE-FIRST) =========== */
.product-card {
    background-color: var(--white);
    border-radius: 16px;
    text-align: center;
    padding: 20px 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.product-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--highlight-brown);
    font-size: 16px;
    font-weight: 500;
}

/* =========== ANNOUNCEMENT SECTION STYLES =========== */
.announcements-swiper .swiper-button-next,
.announcements-swiper .swiper-button-prev {
    color: var(--highlight-brown) !important;
}
.announcements-swiper .swiper-pagination-bullet-active {
    background-color: var(--highlight-brown);
}

/* =========== SERVICES FILTER BUTTONS STYLES =========== */
.glass-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
    color: var(--highlight-brown);
    transition: all 0.3s ease;
    border: 1px solid var(--highlight-brown);
    cursor: pointer;
}
.glass-btn:hover { 
    background-color: rgba(77, 66, 66, 0.1);
}
.glass-btn.active {
    background-color: var(--highlight-brown);
    color: var(--white);
    border-color: var(--highlight-brown);
}

/* =========== TESTIMONIALS SECTION STYLES =========== */
.testimonials-swiper .swiper-slide { height: auto; display: flex; }
.testimonial-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    border-top: 4px solid var(--highlight-brown);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.testimonials-arrow { display: none; }


/* =========== FORMS SECTION STYLES (UPDATED FOR MOBILE-FIRST) =========== */
.form-section-bg {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
}

.form-input {
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.form-input::placeholder { color: #999; }
.form-input:focus {
    outline: none;
    border-color: var(--highlight-brown);
    box-shadow: 0 0 0 2px rgba(77, 66, 66, 0.2);
}

/* =========== PRODUCTS CAROUSEL FADE EFFECT (UPDATED FOR MOBILE-FIRST) =========== */
.products-swiper { position: relative; }
.products-swiper::before,
.products-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}
.products-swiper::before { left: 0; background: linear-gradient(to right, rgba(255, 245, 245, 0.95) 20%, transparent); }
.products-swiper::after { right: 0; background: linear-gradient(to left, rgba(255, 245, 245, 0.95) 20%, transparent); }

.products-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
  -webkit-transition-timing-function: linear !important;
}

/* =========== FOOTER STYLES =========== */
.main-footer {
    background-color: #fdfdfd;
    color: var(--text-light);
    border-top: 2px solid var(--highlight-brown);
}
.main-footer .footer-heading { color: var(--highlight-brown); }
.main-footer .footer-text { color: var(--text-light); }
.main-footer .footer-icon { color: var(--highlight-brown); }
.main-footer .footer-link { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
.main-footer .footer-link:hover { color: var(--highlight-brown); }

/* =========== PRODUCT MODAL STYLES =========== */
#productModal { transition: opacity 0.3s ease; }
#productModal > div { transform: scale(0.95); transition: transform 0.3s ease; }
#productModal:not(.hidden) > div { transform: scale(1); }
#closeModal { font-size: 2rem; line-height: 1; }

/* =========== RATING FORM STARS =========== */
.star { transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; }
.star:hover { transform: scale(1.2); }
#star-rating-container .star.hovered { color: #f59e0b; }
#star-rating-container .star.selected { color: #f59e0b; }


/* =========== REFINED SIDEBAR STYLES =========== */
#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1900;
    opacity: 0; pointer-events: none; backdrop-filter: blur(0);
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
#sidebar {
    position: fixed; top: 0; right: 0; height: 100%; width: 280px;
    max-width: 80%; z-index: 2000; display: flex; flex-direction: column;
    padding: 2rem 1.5rem; box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    background: var(--white); transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar ul { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; }
#sidebar ul li a {
    color: var(--text-dark); text-decoration: none; font-size: 1.125rem;
    font-weight: 500; padding: 0.75rem 0.5rem; display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease, background-color 0.2s ease;
}
#sidebar ul li a:hover { color: var(--highlight-brown); background-color:  #FFF5F5; }
body.sidebar-open #overlay { opacity: 1; pointer-events: auto; backdrop-filter: blur(4px); }
body.sidebar-open #sidebar { transform: translateX(0); }


/* ================================================================
    DESKTOP STYLES - Media Query to restore desktop styles
================================================================
*/
@media (min-width: 768px) {
    .testimonials-arrow {
        display: flex;
        background-color: var(--white);
        color: var(--highlight-brown) !important;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        border: 1px solid #eee;
    }
    .testimonials-arrow:hover {
        background-color: var(--highlight-brown);
        color: var(--white) !important;
        transform: translateY(-50%) scale(1.1);
    }
    .testimonials-arrow::after { font-size: 18px !important; }
    .swiper-button-prev.testimonials-arrow { left: 0px; }
    .swiper-button-next.testimonials-arrow { right: 0px; }

    #home, #products, #announcements, #services-offered, #testimonials, #about, #contact {
        padding: 80px 0;
    }

    .section-title::after {
        width: 80px;
    }

    .products-swiper::before,
    .products-swiper::after {
        width: 100px;
    }

    .form-section-bg {
        padding: 2.5rem;
    }
}

/* ============================================= */
/* ### MOBILE-SPECIFIC STYLES (IF NEEDED) ### */
/* ============================================= */
@media (max-width: 767px) {
    /* ITO ANG DINAGDAG: Pinaliit ang font-size ng pangalan ng store sa mobile navbar */
    .brand-logo span:not(.logo-text) {
        font-size: 18px;
    }

    /* Ginawang scrollable ang service filters sa mobile */
    #service-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 10px;
    }
    #service-filters::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    #service-filters .glass-btn {
        flex-shrink: 0;
    }
}


/* ============================================= */
/* ### GSAP ANIMATIONS HELPER CLASS ### */
/* ============================================= */
.gsap-anim {
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================================== */
/* ### UPDATED: SIDEBAR CLOSE BUTTON (MORE RESPONSIVE) ### */
/* ===================================================== */
#close-menu {
    position: absolute;
    top: 0.75rem;      /* UPDATED: Gumamit ng rem para sa responsive spacing */
    right: 0.75rem;    /* UPDATED: Gumamit ng rem para sa responsive spacing */
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    
    /* UPDATED: Pinalaki ang button para sa mas madaling pag-tap */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

#close-menu:hover {
    background-color: rgba(0, 0, 0, 0.07); /* UPDATED: Mas kitang hover effect */
    color: var(--highlight-brown); /* UPDATED: Nagbabago ang kulay ng arrow */
    transform: translateX(-3px); /* UPDATED: Gumagalaw pakaliwa para ipakita ang "back" action */
}

/* UPDATED: Pinalaki nang bahagya ang icon */
#close-menu svg {
    width: 30px;
    height: 30px;
}