:root {
    /* ==========================================================================
       MAIN BACKGROUNDS & OVERLAYS (Anti-Glare & Balanced Dark-Pink Base)
       ========================================================================== */
    --bg-dark-base: #140a0c;
    --overlay-light: rgba(28, 14, 17, 0.7);
    --overlay-dark: rgba(15, 7, 9, 0.92);

    /* ==========================================================================
       TYPOGRAPHY COLORS (High-Contrast & Readable)
       ========================================================================== */
    --text-primary: #ffffff;
    --text-secondary: #fcebee;
    --text-muted: #e6ccd2;
    --text-dark-contrast: #1c0e11;

    /* ==========================================================================
       BRANDING & THEME COLORS (Light Gold & Premium Accents)
       ========================================================================== */
    --gold-primary: #e5b842;
    --gold-gradient-end: #c29933;
    --pink-pastel: #f7dcd1;

    /* ==========================================================================
       HOVER STATES (Soft Pink Backgrounds)
       ========================================================================== */
    --hover-pink-bg: #f3b0bc;
    --hover-pink-border: #e29ba7;

    /* ==========================================================================
       SHADOWS & EFFECTS
       ========================================================================== */
    --shadow-gold: rgba(229, 184, 66, 0.3);
    --shadow-pink-glow: rgba(243, 176, 188, 0.5);

    /* ==========================================================================
       RESPONSIVE HELPERS
       ========================================================================== */
    --sidebar-w: min(85vw, 360px);
    --overlay-w: min(92vw, 620px);
    --safe-pad-x: clamp(16px, 4vw, 40px);
}

/* 1. Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cinzel', serif; }

html, body { overflow-x: hidden; }

body { background-color: #fcf1f3; color: #2b1419; }

.home-btn {
    position: absolute;
    top: 20px;
    left: 40px; 
    font-size: 3.5rem;
    color: #c5a059;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    z-index: 100; /* Para laging nasa ibabaw */
}

.home-btn:hover {
    transform: scale(1.2);
    color: #e5b842;
}
/* 2. Header & Cart Icon */
.shop-header {
    text-align: center;
    color: #c5a059;
    padding: 56px 0 24px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    position: relative;
}

.cart-icon {
    cursor: pointer;
    font-size: clamp(2rem, 5vw, 2.5rem);
    position: absolute;
    top: 14px;
    right: var(--safe-pad-x);
    color: #c5a059;
    z-index: 100;
}


/* 3. Product Grid (Mobile-first) */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 4vw, 50px);
    justify-content: center;
    padding: 24px var(--safe-pad-x) 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Prevent any card from forcing overflow */
.product-card { min-width: 0; }

.product-card {
    border: 3px solid #c5a059;
    border-radius: 15px;
    padding: 20px;
    background: #fff;
    width: 100%;

    /* Flexbox setup */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pinaghihiwalay ang top at bottom */
}


.product-content {
    flex-grow: 1; /* Sasakupin nito ang lahat ng space sa taas */
}

.product-footer {
    margin-top: 20px; /* Space sa pagitan ng info at footer */
    border-top: 1px solid #c5a059;
    padding-top: 15px;
}

.price { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #c5a059; 
    margin-bottom: 10px; /* Space sa pagitan ng price at buttons */
}

.product-card img {
    width: 100%;
    height: clamp(180px, 30vw, 300px);
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}


/* 4. Action Buttons (Borderless at Malalaking Icons) */
.product-actions { 
    display: flex; align-items: center; justify-content: space-around; 
    border-top: 1px solid #c5a059; padding-top: 15px; margin-top: 10px; 
}

.cart-btn, .details-btn {
    background: none !important; 
    border: none !important; 
    color: #c5a059; 
    cursor: pointer; 
    padding: 10px;
    transition: transform 0.2s;
}

.cart-btn i, .details-btn i {
    font-size: 2.5rem !important; /* Dito ginawang malaki ang icons */
}

.cart-btn:hover, .details-btn:hover { transform: scale(1.2);
    color: #e5b842; }
.divider { width: 1px; height: 30px; background: #c5a059; }

/* 5. Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--sidebar-w));
    width: var(--sidebar-w);
    max-width: 100vw;
    height: 100%;
    background: #fff;
    border-left: 3px solid #c5a059;
    padding: 60px 16px 20px;
    transition: 0.3s;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-sidebar .close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 30px;
    cursor: pointer;
}

.cart-sidebar h2 {
    margin-bottom: 20px;
    color: #2b1419;
    text-align: center;
    border-bottom: 2px solid #c5a059;
    padding-bottom: 10px;
}

/* 4. Siguraduhin na ang items ay scrollable kapag marami na */
#cart-items-list {
    max-height: 70vh; /* Para hindi lumampas sa screen */
    overflow-y: auto;
}
.cart-sidebar.active { right: 0; }
.checkout-btn { width: 100%; padding: 15px; background: #c5a059; color: #fff; border: none; cursor: pointer; margin-top: 20px; }

/* 6. Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.overlay.active { display: flex; }
.overlay-content {
    background: #fff;
    width: var(--overlay-w);
    max-width: 100vw;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    border: 3px solid #c5a059;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.slider img {
    width: 100%;
    height: clamp(220px, 45vw, 350px);
    object-fit: contain;
    background: #fcf1f3;
}

.nav { cursor: pointer; background: #c5a059; border: none; padding: 15px; color: white; font-weight: bold; }
.close-btn { cursor: pointer; font-size: 30px; position: absolute; top: 20px; left: 20px; }
/* Styling para sa bawat item sa loob ng cart */
.cart-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border: 2px solid #c5a059; /* Dito yung border para mapansin */
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #fff;
}

.qty-btn { 
    background: #c5a059; 
    color: white; 
    border: none; 
    padding: 5px 12px; 
    cursor: pointer; 
    font-weight: bold; 
    border-radius: 4px;
    font-size: 1rem;
}

.qty-display {
    margin: 0 12px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Tablet/desktop enhancements */
@media (min-width: 768px) {
    .products-container { padding-top: 48px; }
    .cart-sidebar { padding-top: 72px; }
}
@media (max-width: 768px) {
    /* 1. I-lock ang container ng image */
    .slider {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 200px !important; /* Siguradong may space para sa arrows */
        position: relative !important;
    }

    /* 2. Susi sa landscape images: object-fit: contain */
    .slider img {
        max-width: 75% !important; /* Binabawasan ang width para may space ang arrows sa gilid */
        max-height: 250px !important; /* Limit ang height para hindi ito lumampas sa screen */
        object-fit: contain !important; /* Hindi ma-stretchy/distort ang landscape img */
        margin: 0 auto !important;
    }

    /* 3. Siguraduhin na ang arrows ay nasa ibabaw o fixed sa sides */
   .nav {
        background-color: #c5a059 !important; /* Gold background */
        color: #ffffff !important;           /* White icon color */
        border: 2px solid #ffffff !important; /* Para lumitaw ang ganda sa gold */
        
        /* Siguraduhin na hindi ito mag-o-overlap at visible */
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        
        /* Touch friendly size */
        padding: 12px 10px !important; 
        font-size: 1.2rem !important;
        z-index: 1000 !important;
    }

    /* 2. Siguraduhin na ang mga icon mismo ay nakakakuha ng tamang kulay */
    .nav:active {
        background-color: #b08d4a !important; /* Mas dark gold pag pinindot */
    }
}

    .nav.prev { left: 0 !important; }
    .nav.next { right: 0 !important; }
    .overlay .close-btn {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important; /* Para siguradong nasa kanan siya */
        z-index: 99999 !important; /* Napakataas na z-index para hindi matakpan */
        cursor: pointer !important;
        background: rgba(255, 255, 255, 0.8) !important; /* Lagyan ng semi-transparent background */
        padding: 5px 12px !important;
        border-radius: 50% !important;
        font-size: 30px !important;
        display: block !important;
        visibility: visible !important;
    }

    /* 2. Siguraduhin na ang overlay-content ay hindi humaharang sa click */
    .overlay-content {
        position: relative !important;
        z-index: 1000 !important;
    }
    .home-btn {
        font-size: 2.8rem !important; /* Mas maliit na size para sa mobile */
        top: 15px !important;
        left: 15px !important; /* Mas malapit sa gilid para hindi masyadong agaw-pansin */
    }
.service-footer{
    text-align:center;
    margin-top:70px;
}

.book-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:240px;
    height:65px;

    background:#d8ab38;
    color:#000;

    text-decoration:none;
    font-weight:700;
    font-size:1.1rem;

    border-radius:60px;

    transition:.3s;
}

.book-btn:hover{
    transform:translateY(-5px);
}


