* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* NAVBAR */

/* .navbar { */
    /* /* position: sticky; */ 
    /* top: 0; */
    /* z-index: 1000; */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
    /* /* background: #2874f0; */ 
	/* background: #5F6045; */
	/* /* background: #D8D9B4; */ 
	/* /* background: #C0C227; */ 
	/* /* background: #4debe3; */ 
	/* /* background: #ccb42f;  */ 
    /* padding: 10px; */
    /* color: white; */
	/* box-shadow: 0 6px 8px rgba(0,0,0,0.1); /* Adds depth */ 
/* } */


body {
  background: #f4f6f9;
  padding: 15px;
}





.navbar {
  /* background: #6b705c; */
  background: #5F6045;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease; /* smooth slide */
}




/* Hidden state */
.navbar.hide {
    transform: translateY(-100%);
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}




.logo {
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

/* .logo { */
    /* font-size: 24px; */
    /* font-weight: 900;          /* Extra bold makes it look like a logo */ */
    /* text-transform: uppercase; /* All caps for a brand feel */ */
    /* letter-spacing: 1px;       /* Adds space between letters */ */
    /* color: white;              /* Main text color */ */

    /* The "Black Border" effect around the text */
    /* text-shadow:  */
        /* -1px -1px 0 #000,   */
         /* 1px -1px 0 #000, */
        /* -1px  1px 0 #000, */
         /* 1px  1px 0 #000; */

    /* cursor: default;           /* Keeps it looking like a title, not a button */ */
/* } */

/* Search bar shrink for mobile */
.search-bar {
    display: flex;
    width: 50%;
}

.search-bar input {
    width: 80%;
    padding: 6px;
    border: none;
    font-size: 14px;
    border-radius: 2px 0 0 2px;
}

.search-bar button {
    padding: 6px 10px;
    background: white;
    border: none;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
}

.login-btn {
    padding: 6px 12px;
    background: white;
    color: #2874f0;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}

/* PRODUCT GRID */
.product-section {
    /* padding: 15px; */
    padding-bottom: 20px; /* space for footer */
	/* padding-top: 20px;  */
	padding-top: 2px;
}

.product-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start; /* 🔥 prevents equal-height stretch */
}


.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    transition: box-shadow 0.3s;
    height: fit-content; /* 🔥 stops expansion */
	background: white;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.product-details {
    width: 100%;
    text-align: left;
    margin-top: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}



.short-description {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;        /* thickness (400–700 range) */
    color: #6b7280;          /* soft gray (different from title/specs) */
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.product-card.active .product-details {
    max-height: 1000px;
    opacity: 1;
}

.product-card.active .short-description {
    display: none;
}


.toggle-btn {
    margin-top: 6px;        /* always below product-details */
    /* color: #1d4ed8; */
	color: #b0a7a7;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}


.toggle-btn-makeup {
    margin-top: 6px;        /* always below product-details */
    /* color: #1d4ed8; */
	color: transparent;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}




.product-card img {
    width: 115%;
    height: 125px;
    object-fit: contain;
}

.product-card h3 {
    margin: 8px 0;
    font-size: 14px;
}

.price {
    font-weight: bold;
    color: green;
}


/* .priceC{ */
  /* font-weight: bold; */
  /* color: green; */
/* } */

.priceC {
  font-weight: bold;
  color: green;
  text-align: left;
  width: 100%;   /* ensures full width so alignment works properly */
}


/* LOADING */
.loading {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    display: none;
}

/* FIXED FOOTER */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    /* background: #2874f0; */
	/* background: #D8D9B4; */
	background: #C0C227;
    padding: 10px 0;
    z-index: 2000;
}

.footer-container {
    display: flex;
    justify-content: space-around;
}

.footer-container a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
}

.description {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;        /* thickness (400–700 range) */
    color: #6b7280;          /* soft gray (different from title/specs) */
    text-align: left;
    width: 100%;
    line-height: 1.4;
}


.specs {
	text-align: left;
    margin-top: 8px;
    padding-left: 16px;
    font-size: 13px;
    color: #555;
}

.specs li {
    margin-bottom: 4px;
}


.image-slider {
    position: relative;        /* 🔥 REQUIRED */
    width: 100%;
    height: 160px;
    overflow: hidden;
    touch-action: pan-y;
}


.image-slider:active {
    cursor: grabbing;
}


.image-slider img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: none;
}

.image-slider img.active {
    display: block;
}

/* Slider buttons */
.image-slider button {
    position: absolute;        /* 🔥 REQUIRED */
    top: 50%;                  /* center vertically */
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: none;             /* mobile first */
}




/* .wa-btn { */
    /* margin-top: 8px; */
    /* padding: 6px 10px; */
    /* font-size: 13px; */
    /* background: #25D366; */
    /* color: white; */
    /* border: none; */
    /* border-radius: 4px; */
    /* cursor: pointer; */
    /* width: 100%; */
/* } */


.wa-btn {
    margin-top: 12px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: bold;
    background: #25D366; /* Official WhatsApp Green */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}




.slider-wrapper .image-slider {
    flex: 1;
}

/* .slider-wrapper button { */
    /* background: rgba(0,0,0,0.6); */
    /* color: white; */
    /* border: none; */
    /* width: 28px; */
    /* height: 28px; */
    /* border-radius: 50%; */
    /* font-size: 18px; */
    /* cursor: pointer; */
/* } */


/* Mobile */
/* .slider-wrapper button { */
    /* display: none; */
/* } */

.image-slider .prev {
    left: 10px;
}

.image-slider .next {
    right: 10px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #4b5563;
    transform: scale(1.3);
}


.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* 🔥 prevents grid expansion */
}


.image-slider {
    flex: 1;
    height: 200px;
    overflow: hidden;
}

/* .slider-wrapper button { */
    /* background: rgba(0,0,0,0.6); */
    /* color: white; */
    /* border: none; */
    /* width: 28px; */
    /* height: 28px; */
    /* border-radius: 50%; */
    /* font-size: 18px; */
    /* cursor: pointer; */
    /* z-index: 10; */
/* } */

/* Desktop only */
/* @media (hover: hover) and (pointer: fine) {
    .slider-wrapper button {
        display: block;
    }
} */

/* Mobile */
/* .slider-wrapper button { */
    /* display: none; */
/* } */


/* .product-no { */
    /* margin-top: 6px; */
    /* font-size: 12px; */
    /* color: #888; */
    /* text-align: left; */
    /* width: 100%; */
/* } */

.product-no {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;

    font-size: 12px;
    color: #6b7280;

    text-align: center;   /* 🔥 center text */
    width: 100%;

    display: flex;        /* 🔥 perfect centering */
    justify-content: center;
}


@media (hover: hover) and (pointer: fine) {
    .image-slider button {
        display: block;
    }
}

@media (hover: hover) and (pointer: fine) {
    .image-slider {
        cursor: default;
    }
}

@media (hover: none) {
    .image-slider {
        cursor: grab;
    }
}




/* ================= SLIDER ARROWS ================= */

.slider-wrapper {
    position: relative;
    width: 100%;
}

/* Arrows */
.slider-wrapper button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    display: none;
}

/* Move arrows OUTSIDE image so they don't disturb view */
.slider-wrapper .prev {
    left: 6px;
}

.slider-wrapper .next {
    right: 6px;
}

/* ✅ SHOW arrows ONLY on desktop */
@media (hover: hover) and (pointer: fine) {
    .slider-wrapper button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ❌ HIDE arrows on mobile */
@media (hover: none) {
    .slider-wrapper button {
        display: none;
    }
}







/* ----------------------------- */
/* 📱 MOBILE OPTIMIZATION */
/* ----------------------------- */
@media (max-width: 600px) {

    .search-bar {
        width: 60%;
    }

    .search-bar input {
        padding: 5px;
        font-size: 12px;
    }

    .navbar {
        padding: 8px;
    }

    .logo {
        font-size: 20px;
    }

    .login-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 📌 Show only ONE PRODUCT per row on mobile */
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-container a {
        font-size: 12px;
    }

	.image-slider button {
        display: none;  /* hide buttons on mobile */
    }

	.toggle-btn-makeup{
		display: none;
	}
}








/* Bottom horizontal section */
.bottom-horizontal-section {
    margin-top: 8px;
    padding-bottom: 20px;
	/* padding: 0 15px;   /* same as product grid */ 
	/* background: white; */
}

/* Horizontal scroll container */
.bottom-horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    /* padding: 10px 5px 15px; */
	padding: 3px 5px 15px;
}

/* Hide vertical scrollbar, show horizontal */
.bottom-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.bottom-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

/* Cards inside horizontal scroll */
.bottom-horizontal-scroll .product-card {
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
}





/* #productGrid { */
    /* display: grid; */
    /* gap: 20px; */
    /* padding-bottom: 10px; */
/* } */

/* .bottom-horizontal-section { */
    /* margin-top: 10px; */
/* } */




.horizontal-title {
	font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    color: #222;
    display: block;
	/* padding-top: 20px; */
	padding-top: 10px;
}






/* ☰ MENU BUTTON */
.menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hide menu button on desktop */
/* @media (min-width: 768px) { */
    /* .menu-btn { */
        /* display: none; */
    /* } */
/* } */

.menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}


/* BACKDROP */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 4000;
}

/* BOTTOM SHEET */
.category-sheet {
    position: fixed;
	align-items: center;
    bottom: -100%;
    /* left: 0; */
    width: 90.5%;
    max-height: 75vh;
    background: white;
    border-radius: 16px 16px 0 0;
    transition: bottom 0.3s ease;
    z-index: 5000;
    display: flex;
    flex-direction: column;
	padding: 20px;
	/* padding-left: 20px; */
}

.category-sheet.active {
    bottom: 0;
}

/* HEADER */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.sheet-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* CONTENT */
.sheet-content {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cat-item {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f9fafb;
    font-size: 14px;
    cursor: pointer;
}




/* =============================== */
/* 📂 CATEGORY SECTION BELOW NAVBAR */
/* =============================== */

.category-section {
	gap: 70px;
    padding: 10px 18px;
    padding-top: 70px; /* 👈 navbar height offset */
    background: #fff;
}

.category-vertical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;   /* 🔥 ensures same height in row */
}

.category-vertical-grid .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;           /* 🔥 forces equal height */
}







.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-btn {
    background: white;
    color: #5F6045;
    border: none;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}









.cost-box {
    font-size: 14px;
    margin-top: 20px;

    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    color: #333;
}

.cost-row span:first-child {
    color: #666;
}

.free {
    color: #388e3c;
    font-weight: 600;
}

.strike {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

.divider {
    border-top: 1px dashed #ddd;
    margin: 8px 0;
}

.total {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.save-text {
    color: #388e3c;
    font-size: 13px;
    margin-top: 4px;
}