* {
    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 */
}


.logo {
    font-size: 22px;
    font-weight: bold;
}

/* .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: 120px; /* space for footer */
}

.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 */
}

.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: 100%;
    height: 140px;
    object-fit: contain;
}

.product-card h3 {
    margin: 8px 0;
    font-size: 14px;
}

.price {
    font-weight: bold;
    color: green;
}

/* 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: 160px;
    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: 160px;
    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;
	}
}