@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

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

body{
    font-family:'Poppins', sans-serif;
    background:#fff8fc;
    color:#333;
    overflow-x:hidden;
    opacity:0;
    position:relative;
    animation:fadePage .4s ease forwards;
}




@keyframes fadePage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* FIXED FADED BACKGROUND */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(rgba(255,248,252,0.92), rgba(255,248,252,0.92)),
        url('../assets/bg_logo.jpeg');
    background-repeat:no-repeat;
    background-position:center;
    background-size:500px;
    opacity:1;
    z-index:-999;
    pointer-events:none;
}


/* MOBILE FADED LOGO BACKGROUND */
@media (max-width: 768px) {
    body::before {
        background-position: center center;
        background-size: min(85vw, 360px);
        background-repeat: no-repeat;
    }
}

/* HEADER */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 70px;
    background:white;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0px 4px 15px rgba(0,0,0,0.05);
}

.logo-section img {

    height: 65px;

    width: auto;

    object-fit: contain;
}

/* NAVBAR */
.navbar{
    display:flex;
    align-items:center;
    gap:30px;
}

.navbar a{
    text-decoration:none;
    color:#4b145f;
    font-weight:600;
    font-size:18px;
}

/* DROPDOWN */
.dropdown{
    position:relative;
}

.dropbtn{
    background:none;
    border:none;
    color:#4b145f;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:220px;
    box-shadow:0px 5px 20px rgba(0,0,0,0.1);
    border-radius:10px;
    overflow:hidden;
}

.dropdown-content a{
    display:block;
    padding:12px 20px;
}

.dropdown-content a:hover{
    background:#ffe6f2;
}

/* Desktop: open when hovering or using keyboard focus */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}

/* Mobile: the JavaScript toggles this class on tap */
.dropdown.open .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .dropdown {
        position: relative;
        flex-shrink: 0;
    }

    .dropdown-content {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 220px;
        max-width: min(280px, 90vw);
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1200;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(75, 20, 95, 0.18);
    }

    .dropdown-content a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
    }

    .dropdown .dropbtn {
        min-height: 44px;
        white-space: nowrap;
    }
}

/* HERO */
.hero-section{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:70px;
    min-height:90vh;
}

.hero-left{
    width:50%;
}

.hero-left h5{
    color:#ff4e8b;
    letter-spacing:4px;
    margin-bottom:20px;
}

.hero-left h1{
    font-family:'Playfair Display', serif;
    font-size:75px;
    color:#4b145f;
    line-height:1.1;
    margin-bottom:20px;
}

.hero-left p{
    font-size:18px;
    line-height:1.8;
    margin-bottom:25px;
}

.shop-btn{
    background:linear-gradient(135deg,#8E2DE2,#FF4E8B);
    color:white;
    border:none;
    padding:15px 35px;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
}

.hero-right{
    width:45%;
}

.hero-right img{
    width:100%;
    height:550px;
    object-fit:cover;
    border-radius:25px;
}

/* FEATURES */
.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    padding:60px 70px;
    background:white;
}

.feature-card{
    background:#fff7fb;
    padding:30px;
    border-radius:20px;
    text-align:center;
}

/* CATEGORY */
.category-section{
    padding:70px;
    text-align:center;
}

.category-section h5{
    color:#ff4e8b;
    letter-spacing:4px;
    margin-bottom:10px;
}

.category-section h2{
    font-family:'Playfair Display', serif;
    font-size:50px;
    color:#4b145f;
    margin-bottom:40px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.category-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
}

.category-card img{
    width:100%;
    height:400px;
    object-fit:cover;
    transition:0.4s;
}

.category-card:hover img{
    transform:scale(1.08);
}

.category-overlay{
    position:absolute;
    bottom:20px;
    left:20px;
    color:white;
}

.category-overlay h3{
    font-family:'Playfair Display', serif;
    font-size:35px;
}

.category-overlay button{
    margin-top:10px;
    padding:10px 20px;
    border:none;
    border-radius:25px;
    cursor:pointer;
}

/* FOOTER */
footer{
    background:linear-gradient(135deg,#4b145f,#8E2DE2,#ff4e8b);
    color:white;
    padding:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

footer h3{
    margin-bottom:20px;
    font-size:28px;
}

footer a{
    color:white;
    text-decoration:none;
    line-height:2;
}

/* ================= PRODUCTS PAGE ================= */

.collection-section{
    padding:60px 8%;
}

.collection-label{
    color:#ff4e8b;
    letter-spacing:4px;
    font-size:14px;
    font-weight:600;
    margin-bottom:15px;
}

.collection-title{
    font-family:'Playfair Display', serif;
    font-size:60px;
    color:#4b145f;
    margin-bottom:30px;
}

.category-filters{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.filter-btn{
    padding:12px 28px;
    border-radius:30px;
    border:1px solid #f4d9e8;
    background:white;
    color:#4b145f;
    font-weight:600;
    cursor:pointer;
}

.filter-btn.active{
    background:linear-gradient(135deg,#ff4e8b,#ff1e78);
    color:white;
    border:none;
}


/* POPUP */

/* PROMISE SECTION */
.promise-section{
    margin:80px;
    padding:60px;
    border-radius:30px;
    background:linear-gradient(135deg,#4b145f,#8E2DE2,#ff4e8b);
    color:white;
}

.promise-section h5{
    letter-spacing:4px;
    margin-bottom:20px;
}

.promise-section h2{
    font-family:'Playfair Display', serif;
    font-size:55px;
    margin-bottom:25px;
}

.promise-section p{
    font-size:18px;
    line-height:1.8;
}

.talk-btn{
    margin-top:30px;
    background:#ff1e78;
    color:white;
    border:none;
    padding:15px 35px;
    border-radius:30px;
    cursor:pointer;
}




/* footer */
footer{
    background:linear-gradient(135deg,#4b145f,#ff2c7d);
    color:white;
    padding:50px 80px;
    margin-top:80px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

footer a{
    color:white;
    text-decoration:none;
}

.hidden{
    display:none;
}


/* MOBILE */

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        padding: 8px 12px;
    }

    .logo-section {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo-section img {
        display: block;
        height: 44px;
        width: auto;
        max-width: 150px;
        object-fit: contain;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 4px 0 8px;
        overflow: visible;
    }

    .navbar > a,
    .navbar .dropbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 7px 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    .navbar .dropdown {
        position: relative;
        flex-shrink: 0;
    }

    .navbar .dropdown.open {
        flex-basis: 100%;
        text-align: center;
    }

    .navbar .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 45vh;
        overflow-y: auto;
        margin-top: 4px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(75, 20, 95, 0.18);
    }

    .navbar .dropdown.open .dropdown-content {
        display: block;
    }

    .navbar .dropdown-content a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
    }





    .hero-section {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 18px;
        min-height: auto;
        padding: 18px 16px 28px;
        text-align: left;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left h5 {
        font-size: 10px;
        line-height: 1.6;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .hero-left h1 {
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.08;
        margin-bottom: 12px;
    }

    .hero-left p {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 18px;
        max-width: 520px;
    }

    .shop-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .hero-right img {
        display: block;
        width: 100%;
        height: clamp(220px, 65vw, 360px);
        margin-top: 0;
        object-fit: cover;
        object-position: center;
        border-radius: 18px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card img {
        height: 190px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    body::before{
        width:300px;
        height:300px;
    }
       

    .popup-box{
        flex-direction:column;
        width:95%;
    }

    .popup-left,
    .popup-right{
        width:100%;
    }

    .popup-right{
        padding-left:0;
        margin-top:20px;
    }

    .collection-title{
        font-size:40px;
    }

    .promise-section{
        margin:20px;
        padding:30px;
    }

    .promise-section h2{
        font-size:35px;
    }
}


/* Desktop/global product grid starts outside the media query */
.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:25px;
    padding:30px;
}

.product-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}

.product-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}

.product-card h3{
    padding:15px;
    text-align:center;
}

.hidden{
    display:none !important;
}

.cart-btn {

    width: 100%;

    margin-top: 20px;

    padding: 14px;

    border: none;

    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;

    font-weight: 600;

    color: white;

    background: linear-gradient(
        135deg,
        #8E2DE2,
        #FF4E8B
    );

    transition: 0.3s;
}

.cart-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(
            142,
            45,
            226,
            0.3
        );
}

.popup-right{
    width:50%;
    padding:30px;
    position:relative;
    overflow-y:auto;
}
.popup-left{
    width:50%;
    padding:20px;
}

.main-image-container img{
    width:100%;
    height:500px;
    object-fit:cover;
}

.thumbnail-strip{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.thumbnail-strip img{
    width:70px;
    height:70px;
    object-fit:cover;
    cursor:pointer;
}

.quantity-section{
    margin-top:20px;
    display:flex;
    gap:20px;
    align-items:center;
}

.quantity-section button{
    width:40px;
    height:40px;
}

.actual-price{
    text-decoration:line-through;
    color:#888;
    margin-right:15px;
}

.offer-price{
    color:#e91e63;
    font-size:28px;
    font-weight:bold;
}

.close-popup{
    position:absolute;
    top:15px;
    right:15px;
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
}

.filter-section{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin:30px 0;
}

.filter-btn.active{
    background:#e91e63;
    color:white;
}

.mini-thumb{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #ddd;
}

.thumb-container{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    max-width:220px;
}
.logout-btn{
    background:#4b1765;
    color:white;
    border:none;
    padding:12px 22px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
    margin-left:10px;
    transition:0.3s;
}

.logout-btn:hover{
    opacity:.9;
}

.edit-btn{
    background:#4b1765;
    color:white;
    border:none;
    padding:8px 15px;
    border-radius:20px;
    cursor:pointer;
    margin-right:5px;
}

.delete-btn{
    background:#ff4e8b;
    color:white;
    border:none;
    padding:8px 15px;
    border-radius:20px;
    cursor:pointer;
}

.done-btn{
    background:#28a745;
    color:white;
    border:none;
    padding:8px 15px;
    border-radius:20px;
    cursor:pointer;
}
.inventory-table-container{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:15px;
}

.inventory-table{
    min-width:1200px;
    width:100%;
    border-collapse:collapse;
}

.inventory-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.inventory-header h1{
    margin:0;
}

.inventory-header div{
    display:flex;
    align-items:center;
}
.inventory-table td{
    padding:15px;
    vertical-align:middle;
}

.inventory-table th{
    padding:15px;
}

.inventory-table img{
    max-width:60px;
    max-height:60px;
}

.inventory-table td:nth-child(2){
    width:220px;
}


/* ==========================
   ORDERS SECTION
========================== */

.orders-section {

    margin-top: 60px;

}

.status-badge {

    padding: 6px 12px;

    border-radius: 20px;

    color: white;

    font-size: 12px;

    font-weight: bold;

}

.status-pending {

    background: orange;

}

.status-confirmed {

    background: green;

}

.status-cancelled {

    background: red;

}

/* ==========================
   ORDER POPUP
========================== */

.order-popup {

    background: white;

    width: 700px;

    max-width: 95%;

    max-height: 90vh;

    overflow-y: auto;

    border-radius: 15px;

    padding: 25px;

}

.order-popup h2 {

    text-align: center;

    margin-bottom: 20px;

    color: #8E2DE2;

}

.order-item {

    padding: 10px;

    border-bottom: 1px solid #ddd;

}

.order-action-btn {

    padding: 8px 12px;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    color: white;

    margin-right: 5px;

}

.confirm-btn {

    background: green;

}

.cancel-btn {

    background: red;

}

.view-btn {

    background: #8E2DE2;

}


/* ==========================
   WHATSAPP FLOAT
========================== */

.whatsapp-float{

    position:fixed !important;

    bottom:20px !important;

    right:20px !important;

    width:62px !important;

    height:62px !important;

    z-index:9999 !important;

    transition:.3s !important;

    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    box-shadow:0 10px 24px rgba(0,0,0,.18);

}

.whatsapp-float img{

    width:100%;
    height:100%; 
    object-fit:contain;
    display:block;

}

.whatsapp-float:hover{

    transform:scale(1.1);

}

.add-review-box{

    margin-bottom:15px;
}

.add-review-box input,
.add-review-box select,
.add-review-box textarea{

    width:100%;
    margin-bottom:10px;
    padding:10px;
    border-radius:8px;
    border:1px solid #ddd;
}

.submit-review-btn{

    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;

    background:
    linear-gradient(
        135deg,
        #8E2DE2,
        #FF4E8B
    );

    color:white;
}

.reviews-section{

    margin-top:25px;

    max-height:250px;

    overflow-y:auto;

    border-top:1px solid #eee;

    padding-top:15px;

}

.review-card{

    background:#fff8fc;

    padding:12px;

    border-radius:10px;

    margin-bottom:10px;

}
/* ===========================
   OFFER BANNER
=========================== */

.offer-banner{
    width:100%;
    background:linear-gradient(90deg,#4b145f,#8e2de2,#ff4e8b);
    color:white;
    overflow:hidden;
    height:46px;
    display:flex;
    align-items:center;
    white-space:nowrap;
    position:relative;
    z-index:20;
    box-shadow:0 8px 24px rgba(75,20,95,0.18);
}

.offer-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
    animation: offerScroll 34s linear infinite;
}

.offer-item{
    padding:0 42px;
    font-size:15px;
    font-weight:700;
    color:white;
    letter-spacing:0.4px;
}

.offer-dot{
    color:#ffe082;
    font-size:18px;
    margin:0 6px;
}

@keyframes offerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.offer-banner:hover .offer-track{
    animation-play-state:paused;
}

/* =====================================
   OFFER SUMMARY CARD
===================================== */


.offer-summary-card {

    margin-top:20px;

    padding:15px;

    border-radius:15px;

    background:
    linear-gradient(
        135deg,
        #fff0f7,
        #f5e8ff
    );

    border:
    1px solid #e8b6ff;

    font-size:14px;

    line-height:1.6;

}


.offer-summary-card strong {

    color:#8E2DE2;

    font-size:16px;

}


.offer-summary-card small {

    color:#ff4e8b;

    font-weight:600;

}



.freebie-message {

    margin-top:12px;

    padding:12px;

    border-radius:12px;

    background:#fff5d6;

    color:#8a5a00;

    font-weight:600;

}
.offer-summary-box{
    margin:12px 0 20px;
}
/* ==========================
   PRODUCT POPUP BODY LOCK
========================== */

body.popup-open {
    overflow: hidden !important;
}


/* ==========================
Quick category shortcuts 
========================== */
.quick-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 20px 28px;
    max-width: 1100px;
    margin: 0 auto;
}


.quick-categories a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8e2de2, #ff4e8b);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(142, 45, 226, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-categories a span {
    color: #fff;
    font-size: 18px;
}

.quick-categories a:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(142, 45, 226, 0.25);
}

.quick-categories a:focus-visible {
    outline: 3px solid #4b145f;
    outline-offset: 3px;
}
.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 3px solid #8e2de2;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .quick-categories {
        gap: 7px;
        padding: 0 12px 22px;
    }

    .quick-categories a {
        flex-direction: column;
        gap: 3px;
        font-size: 11px;
        padding: 8px 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================
Banner for Mobile 
========================== */

@media (max-width: 768px) {
    .offer-banner {
        height: 36px;
    }

    .offer-item {
        padding: 0 20px;
        font-size: 12px;
        letter-spacing: 0.2px;
    }

    .offer-dot {
        font-size: 14px;
    }
}



/* ==========================
HOMEPAGE LATEST & TRENDING CAROUSEL 
========================== */
.latest-trending-section {
    padding: 55px 5%;
}

.latest-trending-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.latest-trending-heading h2 {
    margin: 8px 0;
    color: #4b145f;
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 4vw, 44px);
}

.latest-trending-heading > div > p:last-child {
    color: #666;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid #ead7e7;
    border-radius: 50%;
    background: #fff;
    color: #4b145f;
    font-size: 22px;
    cursor: pointer;
}

.latest-trending-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 2px 18px;
}

.latest-product-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f1e4ed;
    border-radius: 12px;
    cursor: pointer;
    scroll-snap-align: start;
}

.latest-product-image {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.latest-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.latest-product-info {
    padding: 12px;
}

.latest-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.latest-product-price strong {
    color: #222;
    font-size: 16px;
}

.latest-product-price del {
    color: #888;
    font-size: 12px;
}

.latest-product-info h3 {
    margin: 8px 0;
    color: #4b145f;
    font-size: 13px;
    line-height: 1.45;
}

.latest-product-info a {
    color: #8e2de2;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .latest-trending-section {
        padding: 35px 16px;
    }

    .latest-trending-heading {
        align-items: center;
        gap: 10px;
    }

    .latest-trending-heading .collection-label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .carousel-controls {
        flex-shrink: 0;
    }

    .carousel-controls button {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .latest-trending-track {
        grid-auto-columns: 44vw;
        gap: 12px;
    }
}


/* LATEST & TRENDING: CENTERED HEADING + OVERLAY ARROWS */
.latest-trending-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    text-align: center;
}

.latest-trending-heading .collection-label {
    margin: 0;
    text-align: center;
}

.latest-trending-heading h2 {
    width: 100%;
    margin: 0;
    text-align: center;
}

.latest-trending-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

.latest-trending-track {
    width: 100%;
    padding: 4px 2px 18px;
    scroll-behavior: smooth;
}

.latest-carousel-arrow {
    position: absolute;
    top: 42%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 58px;
    border: 0;
    border-radius: 12px;
    background: rgba(75, 20, 95, 0.24);
    color: #fff;
    font-size: 28px;
    opacity: 0.55;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background 0.2s ease;
}

.latest-carousel-arrow:hover {
    opacity: 0.9;
    background: rgba(75, 20, 95, 0.65);
}

.latest-prev {
    left: 5px;
}

.latest-next {
    right: 5px;
}

@media (max-width: 768px) {
    .latest-trending-heading {
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Touch scrolling on phones; arrows are desktop-only. */
    .latest-carousel-arrow {
        display: none;
    }

    .latest-trending-track {
        grid-auto-columns: 44vw;
        gap: 12px;
    }
}


/* KEEP HOMEPAGE FLAGS ATTACHED TO PRODUCT IMAGES */
.latest-product-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.latest-product-image > .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    z-index: 3;
    display: inline-block;
    width: auto;
    max-width: calc(100% - 20px);
}


.latest-product-image > img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}
/* OPAQUE GLIMMER FLAGS FOR HOMEPAGE CAROUSEL */
.latest-product-image > .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    z-index: 3;

    display: inline-block;
    width: auto;
    max-width: calc(100% - 20px);

    padding: 6px 11px;
    border: none;
    border-radius: 3px 12px 12px 3px;

    background: linear-gradient(135deg, #8e2de2, #ff4e8b);
    color: #fff;

    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(75, 20, 95, 0.14);
}

.latest-product-image > .product-badge.trending-badge {
    background: linear-gradient(135deg, #4b145f, #8e2de2);
    color: #fff;
    opacity: 1;
}



/* Smooth homepage hero image rotation */
.hero-right img {
    transition: opacity 0.25s ease;
}


/* Home Logo Link */

.logo-home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-home-link img {
    display: block;
}
.hero-right img.hero-image-changing {
    opacity: 0.65;
}




/* MOBILE CATEGORY GRID — FULL WIDTH, UNCROPPED CONTENT */
@media (max-width: 768px) {
    .category-section {
        width: 100%;
        padding: 36px 12px;
        box-sizing: border-box;
        overflow: visible;
    }

    .category-section h5 {
        font-size: 11px;
        letter-spacing: 2px;
        line-height: 1.5;
    }

    .category-section h2 {
        max-width: 100%;
        margin: 0 auto 24px;
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.2;
        overflow-wrap: normal;
    }

    .category-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        box-sizing: border-box;
    }

    .category-card {
        width: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 3 / 4;
        border-radius: 16px;
        overflow: hidden;
    }

    .category-card img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center;
    }

    .category-overlay {
        right: 10px;
        bottom: 12px;
        left: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-width: 0;
    }

    .category-overlay h3 {
        max-width: 100%;
        margin: 0;
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .category-overlay a {
        display: inline-block;
        max-width: 100%;
    }

    .category-overlay button {
        max-width: 100%;
        padding: 9px 14px;
        font-size: 13px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
