:root {
    --primary: #0f766e;
    --primary-dark: #0c5f59;
    --primary-light: #14b8a6;
    --accent: #f59e0b;
    --price: #059669;
    --offer-badge: #dc2626;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

html{
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body{
    background:#f1f3f6;
    color:#111827;
}

a{
    color:inherit;
    text-decoration:none;
}

/* HEADER */

.shop-header{
    width:100%;
    background:#0f172a;
    color:white;

    padding:12px 26px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;

    position:sticky;
    top:0;
    z-index:999;
}

.logo{
    font-size:24px;
    font-weight:bold;
    white-space:nowrap;
}

.search-wrap{
    display:grid;
    grid-template-columns:130px minmax(180px, 1fr) 90px;
    width:min(720px, 100%);
    background:#ffffff;
    border-radius:8px;
    overflow:hidden;
    border:2px solid transparent;
}

.search-wrap:focus-within{
    border-color:#0f766e;
}

.search-wrap select,
.search-wrap input,
.search-wrap button{
    border:none;
    min-height:42px;
    padding:0 12px;
    font-size:14px;
    outline:none;
}

.search-wrap select{
    background:#f3f4f6;
    border-right:1px solid #e5e7eb;
}

.search-wrap button{
    background:#0f766e;
    cursor:pointer;
    font-weight:700;
}

.search-input-wrapper{
    flex:1;
    position:relative;
}

.search-suggestions{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#ffffff;
    border:1px solid #d1d5db;
    border-radius:10px;
    margin-top:4px;
    max-height:300px;
    overflow-y:auto;
    z-index:100;
    display:none;
    box-shadow:0 8px 24px rgba(0,0,0,0.15);
}

.search-suggestions.active{
    display:block;
}

.suggestion-item{
    padding:12px 16px;
    cursor:pointer;
    border-bottom:1px solid #f3f4f6;
    display:flex;
    align-items:center;
    gap:12px;
}

.suggestion-item:hover{
    background:#f9fafb;
}

.suggestion-item:last-child{
    border-bottom:none;
}

.suggestion-item img{
    width:40px;
    height:40px;
    object-fit:contain;
}

.suggestion-item-info{
    flex:1;
}

.suggestion-item-name{
    font-weight:600;
    font-size:14px;
    color: var(--text-dark);
}

.suggestion-item-price{
    color: var(--price);
    font-weight:700;
    font-size:13px;
}

.cart-btn{
    background:#0f766e;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    white-space:nowrap;
}

.header-menu-wrap{
    position:relative;
    flex-shrink:0;
}

.menu-dots-btn{
    width:42px;
    height:42px;
    padding:0;
    border:none;
    border-radius:6px;
    background:#1e293b;
    color:#fff;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    font-weight:700;
}

.menu-dots-btn:hover{
    background:#475569;
}

.shop-menu-dropdown{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    min-width:280px;
    background:#fff;
    color:#111;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,0.15);
    padding:0;
    z-index:1001;
    animation:slideDown 0.2s ease-out;
}

@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.shop-menu-dropdown.open{
    display:block;
}

.shop-menu-label{
    margin:16px 20px 8px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:#6b7280;
    padding-bottom:8px;
    border-bottom:1px solid #f3f4f6;
}

.shop-menu-dropdown a,
.shop-menu-dropdown .menu-action-btn{
    display:flex;
    align-items:center;
    width:100%;
    padding:12px 20px;
    font-size:14px;
    color:#374151;
    text-decoration:none;
    text-align:left;
    background:none;
    border:none;
    cursor:pointer;
    font-weight:500;
    box-shadow:none;
    transform:none;
    transition:all 0.2s ease;
    gap:10px;
}

.shop-menu-dropdown a::before,
.shop-menu-dropdown .menu-action-btn::before{
    content:'→';
    font-size:12px;
    color:#9ca3af;
    transition:transform 0.2s ease;
}

.shop-menu-dropdown a:hover,
.shop-menu-dropdown .menu-action-btn:hover{
    background:#fef3c7;
    color:#92400e;
    transform:translateX(4px);
    box-shadow:none;
}

.shop-menu-dropdown a:hover::before,
.shop-menu-dropdown .menu-action-btn:hover::before{
    transform:translateX(4px);
    color:#d97706;
}

.shop-menu-dropdown .menu-hidden{
    display:none;
}

#menuSellerDashboard,
#menuSellerAddProduct{
    color:#dc2626;
    font-weight:600;
}

#menuSellerDashboard::before,
#menuSellerAddProduct::before{
    content:'⚡';
}

.wishlist-btn-header{
    background:#ffffff;
    color:#111827;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    white-space:nowrap;
    border:1px solid #d5d9d9;
}

.wishlist-btn-header:hover{
    background:#f7f8f8;
}

.compare-btn-header{
    background:#ffffff;
    color:#111827;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    white-space:nowrap;
    border:1px solid #d5d9d9;
}

.compare-btn-header:hover{
    background:#f7f8f8;
}

main{
    width:min(1440px, 100%);
    margin:auto;
}

/* =========================
HERO SLIDER
========================= */

.hero-slider{
    position:relative;
    width:100%;
    height:500px;
    overflow:hidden;
    margin-bottom:24px;
}

.slider-container{
    width:100%;
    height:95%;
    position:relative;
}

.slider-slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:98%;
    opacity:0;
    transition:opacity 0.5s ease;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    background-repeat:no-repeat;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 20px;
}

@media(min-width: 769px){
    .slider-slide{
        background-size:contain;
        background-position:center;
    }
}

.slider-slide.active{
    opacity:1;
}

.slider-slide-content{
    text-align:center;
    color:#ffffff;
    padding:40px;
    max-width:800px;
    background:rgba(0,0,0,0.5);
    border-radius:16px;
}

.slider-slide-content h2{
    font-size:36px;
    margin:0 0 16px;
}

.slider-slide-content p{
    font-size:18px;
    margin:0 0 24px;
}

.slider-slide-content .offer-price{
    font-size:32px;
    font-weight:700;
    color: var(--accent);
    margin:0 0 24px;
}

.slider-slide-content .slider-btn{
    display:inline-block;
    background:#ffffff;
    color:#000000;
    padding:12px 32px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:0.3s ease;
}

.slider-slide-content .slider-btn:hover{
    background:#f3f4f6;
    transform:translateY(-2px);
    color:#000000;
}

.slider-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:#ffffff;
    border:none;
    width:50px;
    height:50px;
    border-radius:50%;
    font-size:24px;
    cursor:pointer;
    z-index:10;
    transition:0.3s ease;
}

.slider-arrow:hover{
    background:rgba(0,0,0,0.8);
}

.slider-prev{
    left:20px;
}

.slider-next{
    right:20px;
}

.slider-dots{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:10;
}

.slider-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,0.5);
    border:none;
    cursor:pointer;
    transition:0.3s ease;
}

.slider-dot.active{
    background:#ffffff;
    width:30px;
    border-radius:6px;
}

.store-hero{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:24px;
    align-items:center;
    margin:20px;
    padding:34px;
    border-radius:18px;
    background:linear-gradient(135deg, #ffffff, #e8f7fb);
    box-shadow:0 10px 28px rgba(15,23,42,0.08);
}

.hero-kicker{
    color:#0f766e;
    font-weight:700;
    margin-bottom:8px;
}

.store-hero h1{
    font-size:42px;
    line-height:1.1;
    max-width:680px;
    margin-bottom:12px;
}

.store-hero p{
    color:#475569;
    line-height:1.6;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:22px;
}

.primary-link,
.secondary-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    border-radius:10px;
    font-weight:700;
}

.primary-link{
    background:#111827;
    color:#ffffff;
}

.secondary-link{
    background:#25d366;
    color:#ffffff;
}

.hero-offer{
    background:#111827;
    color:#ffffff;
    border-radius:16px;
    padding:24px;
    min-height:180px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
}

.hero-offer span{
    color:#0f766e;
    font-weight:700;
}

.hero-offer strong{
    font-size:26px;
    line-height:1.2;
}

.hero-offer small{
    color:#d1d5db;
    line-height:1.5;
}

.trust-strip{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:12px;
    margin:0 20px 20px;
}

.trust-strip div{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:14px;
}

.trust-strip span{
    display:block;
    color:#6b7280;
    margin-top:4px;
    font-size:13px;
}

.shop-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin:0 20px 4px;
}

.chip-row{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:8px;
}

.chip{
    border:1px solid #d1d5db;
    background:#ffffff;
    padding:9px 14px;
    border-radius:999px;
    cursor:pointer;
    font-weight:700;
    white-space:nowrap;
}

.chip.active{
    background:#111827;
    color:#ffffff;
    border-color:#111827;
}

.sort-row{
    display:flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
}

.price-filter{
    display:flex;
    align-items:center;
    gap:8px;
}

.price-filter input{
    width:80px;
    padding:8px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:14px;
}

.price-filter span{
    color:#6b7280;
}

.price-filter button{
    background: var(--primary);
    border:none;
    padding:8px 12px;
    border-radius:8px;
    font-weight:700;
    cursor:pointer;
    font-size:13px;
    color:#fff;
}

.price-filter button:hover{
    background:#0f766e;
}

.sort-row select{
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:10px;
    background:#ffffff;
}

/* PRODUCTS */

.products-section{
    padding:20px;
}

.products-container{

    display:grid;

    grid-template-columns:
    repeat(4, 1fr);

    gap:18px;
}

/* PRODUCT CARD */


/* CONTENT */

.product-content{
    padding:12px;
}

.product-name{
    font-size:16px;
    margin-bottom:5px;
}

.product-brand{
    color:#555;
    font-size:14px;
}

.product-price{
    color: var(--price);
    font-size:20px;
    font-weight:bold;
    margin:8px 0;
}

.product-description{
    font-size:13px;
    color:#444;
    margin-bottom:10px;
}

.product-warranty{
    font-size:13px;
    color:green;
    margin-bottom:10px;
}

/* QUANTITY */

.quantity-box{
    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:12px;
}

.qty-btn{
    width:28px;
    height:28px;

    border:none;

    background:#ddd;

    cursor:pointer;

    border-radius:4px;
}

.qty-number{
    font-weight:bold;
}

/* BUTTONS */

.button-group{
    display:flex;
    gap:10px;
}

.add-cart-btn{

    background: var(--primary);

    border:none;

    padding:10px;

    border-radius:6px;

    cursor:pointer;

    font-weight:bold;

    color:#fff;

}

.buy-btn{

    background: var(--accent);

    border:none;

    padding:10px;

    border-radius:6px;

    cursor:pointer;

    font-weight:bold;
}

button:disabled{
    opacity:0.55;
    cursor:not-allowed;
    transform:none !important;
}

/* TABLET */

@media(max-width:1200px){

    .products-container{
        grid-template-columns:repeat(3,1fr);
    }

}

/* MOBILE */

@media(max-width:768px){

    .shop-header{
        flex-direction:column;
        align-items:stretch;
        padding:12px;
    }

    .search-wrap{
        grid-template-columns:95px minmax(0, 1fr) 76px;
    }

    .store-hero{
        grid-template-columns:1fr;
        margin:12px;
        padding:22px;
    }

    .store-hero h1{
        font-size:30px;
    }

    .trust-strip{
        grid-template-columns:1fr 1fr;
        margin:0 12px 16px;
    }

    .shop-toolbar{
        flex-direction:column;
        align-items:stretch;
        margin:0 12px 4px;
    }

    /* Reduce section padding to use more horizontal space on mobile */
    .products-section{
        padding:12px 8px !important;
    }

    /* COMPACT MOBILE TILE GRID - 3 columns on standard mobile */
    .products-container{
        display:grid !important;
        grid-template-columns:repeat(3, 1fr) !important;
        gap:6px !important;
    }

    /* Recently Viewed - flex row with horizontal scroll on mobile */
    #recentlyViewedContainer .recently-viewed-grid{
        display:flex !important;
        flex-direction:row !important;
        overflow-x:auto !important;
        gap:6px !important;
        padding:6px !important;
        scroll-snap-type:x mandatory !important;
        grid-template-columns:none !important;
        width:100% !important;
        max-width:100% !important;
    }

    #recentlyViewedContainer .recently-viewed-item{
        flex:0 0 auto !important;
        min-width:140px !important;
        max-width:140px !important;
        padding:6px !important;
        scroll-snap-align:start !important;
        display:block !important;
        width:auto !important;
    }

    /* Add padding to bottom of body for mobile nav */
    body {
        padding-bottom: 70px;
    }
}

@media(max-width:500px){

    /* Keep 3 columns on small mobile, reduce gap */
    .products-container{
        display:grid !important;
        grid-template-columns:repeat(3, 1fr) !important;
        gap:4px !important;
    }

    .search-wrap{
        grid-template-columns:1fr;
    }

    .trust-strip{
        grid-template-columns:1fr;
    }

}
/* TOAST */

#toast{

    position:fixed;

    top:20px;

    right:20px;

    background:#28a745;

    color:white;

    padding:14px 20px;

    border-radius:8px;

    font-weight:bold;

    opacity:0;

    transform:translateY(-20px);

    transition:0.4s;

    z-index:9999;
}

#toast.show{

    opacity:1;

    transform:translateY(0);
}

.product-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:10px 0;

}

.rating-badge{

    background:#00b894;

    color:white;

    padding:4px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

.sold-count{

    font-size:12px;

    color:#666;

}

.details-btn{

    width:100%;

    padding:10px;

    border:none;

    border-radius:8px;

    background:#111827;

    color:white;

    cursor:pointer;

    margin-bottom:10px;

    font-weight:600;

}
/* =========================
DETAILS BOX
========================= */


.details-box p{

    font-size: 14px;

    color: #444;

    margin-bottom: 8px;

    line-height: 1.5;
}

.details-box p{

    margin:6px 0;

    font-size:14px;

}

.product-meta{

    display:flex;

    justify-content:flex-end;

    margin-bottom:10px;

}

.rating-badge{

    background:#00b894;

    color:white;

    padding:5px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

.product-name{

    font-size:18px;

    font-weight:700;

    margin-bottom:6px;

}

.brand-name{

    color:#777;

    margin-bottom:10px;

}

.product-price{

    font-size:22px;

    font-weight:bold;

    margin-bottom:8px;

}

.old-price{

    font-size:14px;

    color:#888;

    text-decoration:line-through;

    margin-left:10px;

}

.discount-text{

    color:#00b894;

    font-weight:600;

    margin-bottom:10px;

}

.deal-timer{
    display:flex;
    justify-content:space-between;
    gap:8px;
    background:#fff7ed;
    color:#9a3412;
    border:1px solid #fed7aa;
    border-radius:10px;
    padding:9px 10px;
    font-size:13px;
    margin:4px 0 12px;
}

.deal-timer strong{
    color:#c2410c;
}

.sold-count{

    font-size:13px;

    color:#555;

    margin-bottom:12px;

}

.details-btn{

    width:100%;

    padding:10px;

    border:none;

    border-radius:8px;

    background:#111827;

    color:white;

    cursor:pointer;

    margin-bottom:10px;

    font-weight:600;

}


.details-box p{

    margin:6px 0;

    font-size:14px;

}

/* =========================
PREMIUM PRODUCT CARD
========================= */

.product-card{

    background:#ffffff;

    border-radius:12px;

    overflow:hidden;

    transition:0.35s ease;

    box-shadow:
    0 8px 25px rgba(0,0,0,0.08);

    position:relative;

    border:
    1px solid #f1f5f9;

}

.product-card:hover{

    transform:
    translateY(-8px);

    box-shadow:
    0 18px 40px rgba(0,0,0,0.15);

}


/* IMAGE */

.image-wrap{
    position:relative;
    background:#f8fafc;
}



/* CONTENT */

.product-content{

    padding:14px;

}


/* RATING */

.product-meta{

    position:absolute;

    top:14px;

    right:14px;

    z-index:5;

}

.rating-badge{

    background:linear-gradient(
        135deg,
        #00b894,
        #00cec9
    );

    color:white;

    padding:7px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    box-shadow:
    0 6px 18px rgba(0,0,0,0.18);

    position:absolute;
    top:12px;
    right:12px;
    z-index:10;
}


/* NAME */

.product-name{

    font-size:17px;

    font-weight:700;

    margin-bottom:8px;

    color:#111827;
    min-height:42px;

}


/* BRAND */

.brand-name{

    color:#6b7280;

    margin-bottom:10px;

    font-size:14px;

}


/* PRICE */

.product-price{

    font-size:22px;

    font-weight:800;

    color:#111827;

    margin-bottom:8px;

}

.price-row{
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
}

.old-price{

    font-size:15px;

    color:#9ca3af;

    text-decoration:line-through;

    margin-left:10px;

}


/* DISCOUNT */

.discount-text{

    display:inline-block;

    background:#dcfce7;

    color:#16a34a;

    padding:6px 10px;

    border-radius:8px;

    font-size:13px;

    font-weight:700;

    margin-bottom:12px;

}

.offer-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    flex-wrap:wrap;
}

.offer-badge{
    background:#2563eb;
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:4px 10px;
    border-radius:20px;
}

.stock-line{
    color:#047857;
    font-size:13px;
    font-weight:700;
    margin-bottom:8px;
}

.delivery-line{
    color:#4b5563;
    font-size:13px;
    line-height:1.4;
    margin-bottom:12px;
}


/* SOLD */

.sold-count{

    font-size:13px;

    color:#6b7280;

    margin-bottom:16px;

}


/* DETAILS BUTTON */

.details-btn{

    width:100%;

    padding:8px 10px;

    border:none;

    border-radius:8px;

    background:#111827;

    color:white;

    cursor:pointer;

    font-weight:700;

    transition:0.3s ease;

    margin-bottom:8px;

    font-size:12px;

}

.details-btn:hover{

    background:#2563eb;

    transform:translateY(-2px);

}


/* DETAILS BOX */
/* =========================
FINAL DETAILS BOX
========================= */
/* =========================
DETAILS POPUP INSIDE CARD
========================= */

.product-card{

    position:relative;

    overflow:hidden;
}

.details-box{

    position:absolute;

    left:15px;

    right:15px;

    top:50%;

    transform:
    translateY(-50%)
    scale(0.9);

    background:white;

    border-radius:14px;

    padding:16px;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.18);

    opacity:0;

    visibility:hidden;

    transition:0.3s ease;

    z-index:100;
}

.close-details{
    border:none;
    border-radius:8px;
    padding:8px 10px;
    background:#111827;
    color:#ffffff;
    cursor:pointer;
    margin-bottom:10px;
}

.details-box.active{

    opacity:1;

    visibility:visible;

    transform:
    translateY(-50%)
    scale(1);
}

.details-box p{

    margin:10px 0;

    color:#374151;

    font-size:14px;

    line-height:1.5;
}

.details-box p{

    margin:8px 0;

    color:#374151;

    font-size:14px;

    line-height:1.5;
}


/* BUTTONS */

.button-group{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:stretch;
}

.wishlist-btn{
    flex:0 0 auto;
    min-width:60px;
    padding:8px 10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:700;
    transition:0.3s ease;
    background:#ffffff;
    color:#111827;
    border:1px solid #d5d9d9;
    font-size:11px;
}

.wishlist-btn:hover{
    background:#f7f8f8;
    transform:translateY(-2px);
}

.wishlist-btn.active{
    background:#fee2e2;
    color:#dc2626;
    border-color:#dc2626;
}

.compare-btn{
    flex:0 0 auto;
    min-width:60px;
    padding:8px 10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:700;
    transition:0.3s ease;
    background:#ffffff;
    color:#111827;
    border:1px solid #d5d9d9;
    font-size:11px;
}

.compare-btn:hover{
    background:#f7f8f8;
    transform:translateY(-2px);
}

.compare-btn.active{
    background:#dbeafe;
    color:#1e40af;
    border-color:#1e40af;
}

.stock-alert-btn{
    flex:1;
    min-width:120px;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
    transition:0.3s ease;
    background:#fef3c7;
    color:#92400e;
    border:1px solid #f59e0b;
    font-size:13px;
}

.stock-alert-btn:hover{
    background:#fde68a;
    transform:translateY(-2px);
}

.add-cart-btn,
.buy-btn{
    flex:1;
    min-width:70px;
    padding:8px 10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:700;
    transition:0.3s ease;
    font-size:12px;
}

.add-cart-btn{

    background:#0f766e;
    color:#fff;

}

.add-cart-btn:hover{

    background:#0d9488;

    transform:translateY(-2px);

}

.buy-btn{

    background:#047857;
    color:#fff;

}

.buy-btn:hover{

    background:#059669;

    transform:translateY(-2px);

}
/* =========================
FINAL IMAGE ZOOM
========================= */

.product-card{

    overflow:hidden;
}

.product-image{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:transform 0.4s ease;

    cursor:zoom-in;
}

/* IMAGE ZOOM */

.product-image:hover{

    transform:scale(1.15);
}

/* IMAGE GALLERY THUMBNAILS */

.image-gallery{
    position:absolute;
    bottom:12px;
    left:12px;
    right:12px;
    display:flex;
    gap:8px;
    z-index:8;
}

.gallery-thumb{
    width:48px;
    height:48px;
    border-radius:8px;
    overflow:hidden;
    cursor:pointer;
    border:2px solid transparent;
    transition:all 0.2s ease;
    background:#ffffff;
}

.gallery-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.gallery-thumb.active{
    border-color:#FFD814;
    box-shadow:0 0 0 3px rgba(255,216,20,0.3);
}

.gallery-thumb:hover{
    border-color:#FFD814;
    transform:scale(1.05);
}

.empty-state{
    grid-column:1 / -1;
    background:#ffffff;
    border-radius:14px;
    padding:34px;
    text-align:center;
    color:#475569;
}

.shop-footer{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:26px;
    padding:28px;
    background:#111827;
    color:#ffffff;
}

.shop-footer p{
    color:#d1d5db;
    margin-top:6px;
}

.shop-footer div:last-child{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

.shop-footer a{
    color:#0f766e;
    font-weight:700;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    padding: 5px 8px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.support-link i {
    font-size: 14px;
}

/* =========================
REVIEW MODAL
========================= */

.review-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter:blur(4px);
}

.review-modal.active{
    opacity:1;
    visibility:visible;
}

.review-modal-content{
    width:90%;
    max-width:600px;
    max-height:90vh;
    background:white;
    border-radius:24px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transform:scale(0.85);
    transition:transform 0.25s ease;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);
}

.review-modal.active .review-modal-content{
    transform:scale(1);
}

.review-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px;
    border-bottom:1px solid #e5e7eb;
}

.review-modal-header h3{
    margin:0;
    font-size:24px;
}

.close-modal-btn{
    width:36px;
    height:36px;
    border-radius:50%;
    border:none;
    background:#f3f4f6;
    font-size:24px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.close-modal-btn:hover{
    background:#e5e7eb;
}

.review-modal-body{
    padding:24px;
    overflow-y:auto;
    flex:1;
}

.review-form{
    display:grid;
    gap:16px;
    margin-bottom:24px;
    padding-bottom:24px;
    border-bottom:1px solid #e5e7eb;
}

.review-form label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
}

.review-form select,
.review-form textarea{
    width:100%;
    padding:12px;
    border:1px solid #d5d9d9;
    border-radius:8px;
    font-size:15px;
}

.review-form textarea{
    min-height:100px;
    resize:vertical;
}

.review-form button{
    background:#FFD814;
    border:none;
    padding:12px 24px;
    border-radius:8px;
    font-weight:700;
    cursor:pointer;
}

.reviews-list{
    display:grid;
    gap:16px;
}

.review-item{
    background:#f9fafb;
    padding:16px;
    border-radius:12px;
}

.review-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:8px;
}

.review-stars{
    color:#FFD814;
    font-size:18px;
}

.review-text{
    margin:8px 0;
    line-height:1.5;
}

.review-date{
    color:#6b7280;
    font-size:12px;
}

.review-btn{
    width:100%;
    padding:10px;
    border:none;
    border-radius:8px;
    background:#111827;
    color:white;
    cursor:pointer;
    font-weight:600;
    margin-top:12px;
}

.review-btn:hover{
    background:#2563eb;
}

/* =========================
ORDER HISTORY
========================= */

.order-history-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

.order-history-toolbar h2{
    margin:0;
    font-size:28px;
}

.orders-history-container{
    display:grid;
    gap:20px;
}

.order-history-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
}

.order-history-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:16px;
    padding-bottom:16px;
    border-bottom:1px solid #e5e7eb;
}

.order-history-header h3{
    margin:0 0 4px;
    font-size:18px;
}

.order-history-header p{
    margin:0;
    color:#6b7280;
    font-size:14px;
}

.order-history-products{
    display:grid;
    gap:12px;
    margin-bottom:16px;
}

.order-history-product{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:12px;
    background:#f9fafb;
    border-radius:8px;
}

.more-products{
    color:#6b7280;
    font-size:13px;
    margin:4px 0;
}

.order-history-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding-top:16px;
    border-top:1px solid #e5e7eb;
}

.order-history-footer strong{
    display:block;
    font-size:18px;
}

.order-history-footer p{
    margin:4px 0 0;
    color:#6b7280;
    font-size:14px;
}

.order-history-actions{
    display:flex;
    gap:12px;
    align-items:center;
}

/* =========================
RECENTLY VIEWED
========================= */

#recentlyViewedContainer h3{
    margin:0 0 16px;
    font-size:22px;
}

.recently-viewed-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
    gap:16px;
}

.recently-viewed-item{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:12px;
    cursor:pointer;
    transition:0.3s ease;
    text-align:center;
}

.recently-viewed-item:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    border-color:#FFD814;
}

.recently-viewed-item img{
    width:100%;
    height:120px;
    object-fit:contain;
    margin-bottom:8px;
}

.recently-viewed-item p{
    font-size:13px;
    margin:4px 0;
    color:#374151;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.recently-viewed-item strong{
    display:block;
    font-size:16px;
    color: var(--price);
    margin-top:4px;
}

/* =========================
PRODUCT COMPARISON
========================= */

.compare-container{
    overflow-x:auto;
}

.comparison-table{
    min-width:800px;
}

.comparison-row{
    display:grid;
    grid-template-columns:200px repeat(auto-fit, minmax(200px, 1fr));
    gap:1px;
    background:#e5e7eb;
    border:1px solid #e5e7eb;
}

.comparison-row.even{
    background:#f9fafb;
}

.comparison-row.odd{
    background:#ffffff;
}

.comparison-row.actions{
    background:#f3f4f6;
}

.comparison-label{
    background:#f3f4f6;
    padding:16px;
    font-weight:700;
    display:flex;
    align-items:center;
    position:sticky;
    left:0;
}

.comparison-value{
    background:inherit;
    padding:16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:8px;
}

.comparison-value img{
    width:120px;
    height:auto;
    object-fit:contain;
}

.comparison-value p{
    margin:0;
    font-size:14px;
    line-height:1.4;
}

.review-btn:hover{
    background:#f3f4f6;
}

.review-hint{
    display:block;
    margin-top:10px;
    font-size:13px;
    color:#6b7280;
}

.review-done-badge{
    display:inline-block;
    margin-top:10px;
    padding:6px 10px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:12px;
    font-weight:700;
}

.order-review-block{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid #e5e7eb;
}

.order-review-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.review-order-btn{
    padding:10px 14px;
    border:none;
    border-radius:8px;
    background:#FFD814;
    color:#111827;
    font-weight:700;
    cursor:pointer;
}

.review-order-btn:hover{
    background:#0f766e;
}

.order-pending-review{
    margin-top:14px;
    padding:12px 14px;
    background:#f9fafb;
    border-radius:10px;
}

.rating-stars{
    color:#FFD814;
    font-size:18px;
}

.in-stock{
    color:#16a34a;
    font-weight:600;
}

.out-stock{
    color:#dc2626;
    font-weight:600;
}

.comparison-value .add-cart-btn,
.comparison-value .buy-btn{
    width:100%;
    margin:4px 0;
}

/* =========================
MOBILE COMPARISON IMPROVEMENTS
========================= */

@media(max-width:768px){
    .compare-container{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scroll-behavior:smooth;
        padding:0;
        margin:0 -12px;
        width:calc(100% + 24px);
    }

    .comparison-table{
        min-width:600px;
        border-radius:0;
    }

    .comparison-row{
        grid-template-columns:140px repeat(auto-fit, minmax(160px, 1fr));
        gap:1px;
    }

    .comparison-label{
        padding:12px 10px;
        font-size:12px;
        font-weight:600;
        position:sticky;
        left:0;
        z-index:10;
        min-width:140px;
        background:#f3f4f6;
        box-shadow:2px 0 4px rgba(0,0,0,0.1);
    }

    .comparison-value{
        padding:12px 10px;
        min-width:160px;
    }

    .comparison-value img{
        width:80px;
        height:80px;
        object-fit:contain;
    }

    .comparison-value p{
        font-size:12px;
        line-height:1.3;
        max-height:60px;
        overflow-y:auto;
        word-wrap:break-word;
        overflow-wrap:break-word;
    }

    .comparison-value strong{
        font-size:14px;
        word-wrap:break-word;
        overflow-wrap:break-word;
    }

    .comparison-value .old-price{
        font-size:11px;
    }

    .rating-stars{
        font-size:14px;
    }

    .in-stock,
    .out-stock{
        font-size:11px;
    }

    .comparison-value .add-cart-btn,
    .comparison-value .buy-btn{
        padding:8px 12px;
        font-size:12px;
        margin:2px 0;
        border-radius:6px;
    }

    .comparison-row.actions{
        position:sticky;
        bottom:0;
        z-index:10;
    }

    .comparison-row.actions .comparison-label{
        background:#f3f4f6;
    }

    /* Scroll indicator */
    .compare-container::after{
        content:'';
        position:absolute;
        right:12px;
        top:50%;
        transform:translateY(-50%);
        width:30px;
        height:30px;
        background:rgba(0,0,0,0.1);
        border-radius:50%;
        pointer-events:none;
        display:none;
    }

    .compare-container:hover::after{
        display:block;
    }
}

@media(max-width:480px){
    .compare-container{
        margin:0 -8px;
        width:calc(100% + 16px);
    }

    .comparison-table{
        min-width:500px;
    }

    .comparison-row{
        grid-template-columns:120px repeat(auto-fit, minmax(140px, 1fr));
    }

    .comparison-label{
        padding:10px 8px;
        font-size:11px;
        min-width:120px;
    }

    .comparison-value{
        padding:10px 8px;
        min-width:140px;
    }

    .comparison-value img{
        width:60px;
        height:60px;
    }

    .comparison-value p{
        font-size:11px;
        max-height:50px;
    }

    .comparison-value strong{
        font-size:13px;
    }

    .comparison-value .add-cart-btn,
    .comparison-value .buy-btn{
        padding:6px 10px;
        font-size:11px;
    }
}


/* Confirm dialog */
.confirm-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:10000;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter:blur(4px);
    padding:20px;
}

.confirm-overlay.active{
    opacity:1;
    visibility:visible;
}

.confirm-box{
    width:100%;
    max-width:380px;
    background:#fff;
    border-radius:16px;
    padding:28px 24px 22px;
    text-align:center;
    box-shadow:0 24px 48px rgba(0,0,0,0.2);
    transform:scale(0.92);
    transition:transform 0.25s ease;
}

.confirm-overlay.active .confirm-box{
    transform:scale(1);
}

.confirm-box h3{
    margin:0 0 10px;
    font-size:22px;
    color:#111827;
}

.confirm-box p{
    margin:0 0 24px;
    font-size:15px;
    line-height:1.5;
    color:#6b7280;
}

.confirm-actions{
    display:flex;
    gap:12px;
}

.confirm-btn{
    flex:1;
    padding:12px 16px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    border:none;
    transition:background 0.2s ease, transform 0.15s ease;
}

.confirm-cancel{
    background:#f3f4f6;
    color:#374151;
}

.confirm-cancel:hover{
    background:#e5e7eb;
}

.confirm-ok{
    background:#0f766e;
    color:#111827;
}

.confirm-ok:hover{
    background:#f0ad4e;
}

.confirm-btn:active{
    transform:scale(0.98);
}

/* =========================
MOBILE RESPONSIVE
========================= */

@media(max-width:768px){
    
    /* GLOBAL FIX - like hero.css */
    
    html,
    body{
        overflow-x:hidden;
        max-width:100%;
    }
    
    /* HEADER - Two-row layout for mobile */
    
    .shop-header{
        flex-direction:row;
        flex-wrap:wrap;
        padding:8px 12px;
        gap:8px;
        position:sticky;
        overflow-x:hidden;
    }
    
    /* Logo - first in row */
    
    .shop-header > .logo{
        font-size:14px;
        flex:1;
        text-align:left;
        white-space:nowrap;
    }
    
    /* Action buttons - compact horizontal row */
    
    .shop-header > .wishlist-btn-header,
    .shop-header > .compare-btn-header,
    .shop-header > .cart-btn,
    .shop-header > #userBtn{
        padding:6px 10px;
        font-size:11px;
        min-width:auto;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:4px;
    }
    
    .wishlist-btn-header span,
    .compare-btn-header span,
    .cart-btn span,
    #userBtn span{
        font-size:11px;
    }
    
    .header-menu-wrap{
        flex-shrink:0;
    }
    
    .menu-dots-btn{
        width:36px;
        height:36px;
        font-size:18px;
    }
    
    /* Search bar - full width, forces new line */
    
    .search-wrap{
        width:100%;
        flex-basis:100%;
        display:flex;
        gap:4px;
        order:10;
    }
    
    .search-wrap select{
        display:none; /* Hide category dropdown on mobile */
    }
    
    .search-input-wrapper{
        flex:1;
        min-width:0;
    }
    
    .search-wrap input{
        width:100%;
        font-size:13px;
        padding:0 12px;
        min-height:40px;
        border-radius:8px;
    }
    
    .search-wrap button{
        width:60px;
        font-size:12px;
        padding:0;
        min-height:40px;
        flex-shrink:0;
        border-radius:8px;
    }
    
    /* User button visible on mobile/tablets */
    
    /* Dropdown menu mobile fix */
    
    .shop-menu-dropdown{
        position:fixed;
        top:auto;
        right:12px;
        bottom:80px;
        left:12px;
        min-width:auto;
        max-height:70vh;
        overflow-y:auto;
        border-radius:12px;
    }
    
    /* Very small screens (under 380px) */
    
    @media(max-width:380px){
        
        .logo{
            font-size:14px;
        }
        
        .wishlist-btn-header,
        .compare-btn-header,
        .cart-btn{
            padding:5px 8px;
            font-size:10px;
        }
        
        .wishlist-btn-header span,
        .compare-btn-header span,
        .cart-btn span{
            display:none; /* Hide text, show only icon/count */
        }
        
        .wishlist-btn-header::before{
            content:'♡';
        }
        
        .compare-btn-header::before{
            content:'⇄';
        }
        
        .cart-btn::before{
            content:'🛒';
        }
        
        .search-wrap button{
            width:50px;
            font-size:11px;
        }
        
        .menu-dots-btn{
            width:32px;
            height:32px;
            font-size:16px;
        }
    }
    
    /* HERO SLIDER */
    
    .hero-slider{
        height:250px;
    }
    
    .slider-slide-content{
        padding:20px;
    }
    
    .slider-slide-content h2{
        font-size:22px;
    }
    
    .slider-slide-content p{
        font-size:14px;
    }
    
    .slider-arrow{
        width:40px;
        height:40px;
        font-size:18px;
    }
    
    /* STORE HERO */
    
    .store-hero{
        grid-template-columns:1fr;
        padding:20px;
        margin:12px;
    }
    
    .store-hero h1{
        font-size:28px;
    }
    
    .hero-actions{
        flex-direction:column;
    }
    
    .primary-link,
    .secondary-link{
        width:100%;
    }
    
    /* TRUST STRIP */
    
    .trust-strip{
        grid-template-columns:repeat(2, 1fr);
        margin:0 12px 12px;
    }
    
    .trust-strip div{
        font-size:12px;
    }
    
    /* SHOP TOOLBAR */
    
    .shop-toolbar{
        padding:0 12px;
    }
    
    .chip-row{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:8px;
    }
    
    .chip{
        font-size:13px;
        padding:8px 14px;
        white-space:nowrap;
    }
    
    .sort-row{
        flex-direction:column;
        gap:12px;
    }
    
    .price-filter{
        flex-direction:row;
        gap:4px;
        align-items:center;
        flex-wrap:nowrap;
    }

    .price-filter input{
        width:60px;
        flex:0 0 auto;
        min-width:50px;
        padding:6px;
        font-size:12px;
    }

    .price-filter span{
        font-size:12px;
    }

    .price-filter button{
        padding:6px 10px;
        font-size:11px;
        flex:0 0 auto;
    }
    
    /* PRODUCTS GRID */
    
    .products-container{
        grid-template-columns:1fr;
        padding:12px;
    }
    
    /* PRODUCT CARD */
    
    .products-card{
        max-width:100%;
    }
    
    .slider{
        height:200px;
    }
    
    .product-title{
        font-size:16px;
    }
    
    .price{
        font-size:20px;
    }
    
    /* FOOTER */
    
    .shop-footer{
        flex-direction:column;
        text-align:center;
        padding:20px;
    }
    
    .shop-footer div:last-child{
        justify-content:center;
    }

    .shop-footer a{
        font-size:12px;
    }
    
    /* MODAL */
    
    .review-modal-content{
        width:95%;
        max-height:95vh;
    }
    
    .review-modal-header h3{
        font-size:20px;
    }
    
    /* CONFIRM DIALOG */
    
    .confirm-box{
        padding:20px 16px;
    }
    
    /* ORDER HISTORY - Mobile Responsive */
    
    .order-history-toolbar{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
    
    .order-history-toolbar h2{
        font-size:20px;
    }
    
    .order-history-card{
        padding:16px;
    }
    
    .order-history-header{
        flex-direction:column;
        gap:8px;
    }
    
    .order-history-header h3{
        font-size:16px;
    }
    
    .order-history-header p{
        font-size:13px;
    }
    
    .order-history-product{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
    
    .order-history-footer{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    
    .order-history-footer strong{
        font-size:16px;
    }
    
    .order-history-footer p{
        font-size:13px;
    }
    
    .order-history-actions{
        flex-wrap:wrap;
    }
    
    .confirm-box h3{
        font-size:18px;
    }
    
    .confirm-box p{
        font-size:14px;
    }
}

/* Review Prompt Modal */
.review-prompt-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:10000;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter:blur(8px);
}

.review-prompt-modal.active{
    opacity:1;
    visibility:visible;
}

.review-prompt-content{
    background:white;
    border-radius:12px;
    max-width:500px;
    width:90%;
    box-shadow:0 20px 60px rgba(0,0,0,0.3);
    overflow:hidden;
    animation:slideIn 0.3s ease;
}

@keyframes slideIn{
    from{
        transform:translateY(20px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

.review-prompt-header{
    background:#FFD814;
    padding:20px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #e5e7eb;
}

.review-prompt-header h3{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:#111;
}

.review-prompt-body{
    padding:24px;
}

.review-prompt-body p{
    margin:0 0 16px 0;
    font-size:16px;
    color:#333;
}

.review-prompt-product{
    background:#f9f9f9;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:16px;
    margin-bottom:20px;
}

.review-prompt-product img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:4px;
    margin-right:12px;
    float:left;
}

.review-prompt-product h4{
    margin:0 0 4px 0;
    font-size:14px;
    font-weight:600;
    color:#111;
}

.review-prompt-product p{
    margin:0;
    font-size:13px;
    color:#666;
}

.review-prompt-rating{
    margin-bottom:20px;
}

.review-prompt-rating p{
    margin:0 0 12px 0;
    font-size:14px;
    font-weight:600;
    color:#333;
}

.star-rating{
    display:flex;
    gap:8px;
}

.star-rating .star{
    font-size:32px;
    color:#d5d9d9;
    cursor:pointer;
    transition:color 0.2s ease;
    user-select:none;
}

.star-rating .star:hover,
.star-rating .star.active{
    color:#FFD814;
}

.star-rating .star:hover{
    transform:scale(1.1);
}

.review-prompt-actions{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.review-now-btn{
    flex:1;
    background:#FFD814;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:background 0.2s ease;
}

.review-now-btn:hover{
    background:#F7CA00;
}

.review-later-btn{
    flex:1;
    background:white;
    border:1px solid #d5d9d9;
    padding:12px 20px;
    border-radius:8px;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:background 0.2s ease;
}

.review-later-btn:hover{
    background:#f7f7f7;
}

@media(max-width:768px){
    .review-prompt-content{
        width:95%;
        max-width:none;
    }
    
    .review-prompt-header h3{
        font-size:18px;
    }
    
    .review-prompt-body{
        padding:20px;
    }
    
    .review-prompt-actions{
        flex-direction:column;
    }
}

/* =========================
COMPACT MOBILE PRODUCT TILES
Compact mini tiles for mobile
========================= */

@media(max-width:768px){
    /* Hide unnecessary elements on mobile tiles - KEEP RATING VISIBLE */
    .product-card .image-gallery,
    .product-card .brand-name,
    .product-card .offer-row,
    .product-card .deal-timer,
    .product-card .stock-line,
    .product-card .delivery-line,
    .product-card .details-btn,
    .product-card .button-group{
        display:none !important;
    }
    
    /* Keep details-box hidden on mobile - will use side panel instead */
    .product-card .details-box{
        display:none !important;
    }
    
    /* Hide button-group on mobile - will show in side panel */
    .product-card .button-group{
        display:none !important;
    }
    
    /* EXCEPTION: Show button-group on wishlist page on mobile */
    #wishlistContainer .product-card .button-group{
        display:flex !important;
    }
    
    /* Force product card to be a compact vertical tile */
    .product-card{
        cursor:pointer;
        padding:4px;
        border-radius:6px;
        box-shadow:0 1px 3px rgba(0,0,0,0.08);
        transition:transform 0.15s ease, box-shadow 0.15s ease;
        background:#ffffff;
        display:flex;
        flex-direction:column;
        width:100%;
        height:auto;
        min-height:0;
    }
    
    .product-card:active{
        transform:scale(0.97);
        box-shadow:0 0 2px rgba(0,0,0,0.12);
    }
    
    /* Force image wrap to be compact */
    .product-card .image-wrap{
        width:100%;
        height:auto;
        min-height:0;
        display:flex;
        justify-content:center;
        align-items:center;
        background:#ffffff;
    }
    
    /* Compact image - very small for tile layout */
    .product-card .product-image{
        height:80px;
        width:100%;
        object-fit:contain;
        background:#ffffff;
        padding:2px;
        display:block;
    }
    
    /* Compact rating badge - keep visible but small */
    .product-card .rating-badge{
        position:absolute;
        top:4px;
        right:4px;
        padding:2px 6px;
        font-size:10px;
        border-radius:10px;
        z-index:10;
    }
    
    /* Force content to be vertical compact */
    .product-card .product-content{
        padding:2px 1px;
        width:100%;
        display:flex;
        flex-direction:column;
        gap:1px;
    }
    
    /* Product name - max 2 lines with ellipsis, very compact */
    .product-card .product-name{
        font-size:10px;
        font-weight:600;
        line-height:1.1;
        max-height:2.2em;
        overflow:hidden;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        margin-bottom:0;
        min-height:auto;
        width:100%;
    }
    
    /* Compact price - smaller font */
    .product-card .product-price{
        font-size:12px;
        font-weight:700;
        margin-bottom:0;
    }
    
    .product-card .old-price{
        font-size:10px;
        margin-left:3px;
    }
    
    /* Tiny discount badge - keep visible */
    .product-card .discount-text{
        display:inline-block;
        background:#dcfce7;
        color:#16a34a;
        padding:1px 4px;
        border-radius:3px;
        font-size:9px;
        font-weight:600;
        margin-bottom:0;
    }
    
    /* Price row layout */
    .product-card .price-row{
        display:flex;
        align-items:center;
        gap:3px;
        flex-wrap:wrap;
    }
    
    /* Remove hover effects on mobile */
    .product-card:hover{
        transform:none;
        box-shadow:0 1px 3px rgba(0,0,0,0.08);
    }
    
    /* Remove card hover lift effect on mobile */
    .product-card{
        transform:none !important;
    }
    
    /* =========================
    MOBILE SIDE PANEL / DRAWER
    Side panel for product details
    ========================== */
    
    .mobile-product-panel{
        display:none;
        position:fixed;
        inset:0;
        z-index:9999;
    }
    
    .mobile-product-panel.active{
        display:block;
    }
    
    .panel-overlay{
        position:absolute;
        inset:0;
        background:rgba(0,0,0,0.5);
        z-index:1;
    }
    
    .panel-content{
        position:absolute;
        top:0;
        right:0;
        bottom:0;
        width:85%;
        max-width:400px;
        background:#ffffff;
        z-index:2;
        transform:translateX(100%);
        transition:transform 0.3s ease;
        overflow-y:auto;
    }
    
    .mobile-product-panel.active .panel-content{
        transform:translateX(0);
    }
    
    .panel-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:16px;
        border-bottom:1px solid #e5e7eb;
        position:sticky;
        top:0;
        background:#ffffff;
        z-index:10;
    }
    
    .panel-header h3{
        font-size:18px;
        font-weight:600;
        margin:0;
    }
    
    .panel-close{
        border:none;
        background:none;
        font-size:24px;
        cursor:pointer;
        padding:4px;
        width:32px;
        height:32px;
        display:flex;
        align-items:center;
        justify-content:center;
    }
    
    #panelProductContent{
        padding:12px;
        max-height:100vh;
        overflow-y:auto;
    }

    #panelProductContent .panel-image{
        width:100%;
        height:auto;
        max-height:250px;
        object-fit:contain;
        border-radius:8px;
        margin-bottom:8px;
        background:#f9fafb;
    }

    #panelProductContent .panel-thumbnails{
        display:flex;
        gap:6px;
        margin-bottom:10px;
        overflow-x:auto;
        padding:4px;
        -webkit-overflow-scrolling:touch;
    }

    #panelProductContent .panel-thumbnail{
        width:50px;
        height:50px;
        object-fit:cover;
        border-radius:6px;
        cursor:pointer;
        border:2px solid transparent;
        flex:0 0 auto;
    }

    #panelProductContent .panel-thumbnail.active{
        border-color:#FFD814;
    }

    #panelProductContent .panel-thumbnail:hover{
        opacity:0.8;
    }

    #panelProductContent .panel-name{
        font-size:16px;
        font-weight:600;
        margin-bottom:6px;
        line-height:1.3;
    }

    #panelProductContent .panel-price-row{
        display:flex;
        align-items:center;
        gap:8px;
        margin-bottom:8px;
    }

    #panelProductContent .panel-price{
        font-size:18px;
        font-weight:700;
        color:#16a34a;
    }

    #panelProductContent .panel-old-price{
        font-size:13px;
        color:#6b7280;
        text-decoration:line-through;
    }

    #panelProductContent .panel-offer-row{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        gap:6px;
        margin-bottom:6px;
    }

    #panelProductContent .panel-discount{
        display:inline-block;
        background:#dcfce7;
        color:#16a34a;
        padding:3px 6px;
        border-radius:4px;
        font-size:11px;
        font-weight:600;
    }

    #panelProductContent .panel-coupon{
        display:inline-block;
        background:#fef3c7;
        color:#d97706;
        padding:3px 6px;
        border-radius:4px;
        font-size:11px;
        font-weight:600;
    }

    #panelProductContent .panel-sold-count{
        color:#6b7280;
        font-size:11px;
    }

    #panelProductContent .panel-deal-timer{
        background:#fef3c7;
        color:#d97706;
        padding:6px;
        border-radius:6px;
        font-size:12px;
        margin-bottom:6px;
    }

    #panelProductContent .panel-stock-line{
        font-size:12px;
        color:#16a34a;
        margin-bottom:3px;
    }

    #panelProductContent .panel-delivery-line{
        font-size:11px;
        color:#6b7280;
        margin-bottom:12px;
    }

    #panelProductContent .panel-actions{
        display:flex;
        flex-direction:column;
        gap:6px;
        margin-bottom:12px;
    }

    #panelProductContent .panel-actions button{
        width:100%;
        padding:10px 12px;
        font-size:13px;
        font-weight:600;
        border-radius:6px;
        cursor:pointer;
        min-height:40px;
    }

    #panelProductContent .panel-actions .add-cart-btn{
        background:#FFD814;
        color:#111;
        border:none;
    }

    #panelProductContent .panel-actions .buy-btn{
        background: var(--accent);
        color:#111;
        border:none;
    }

    #panelProductContent .panel-actions .wishlist-btn{
        background:#ffffff;
        color:#1f2937;
        border:1px solid #d1d5db;
    }

    #panelProductContent .panel-actions .compare-btn{
        background:#ffffff;
        color:#1f2937;
        border:1px solid #d1d5db;
    }

    #panelProductContent .panel-details{
        background:#f9fafb;
        padding:10px;
        border-radius:8px;
    }

    #panelProductContent .panel-details p{
        font-size:12px;
        margin-bottom:6px;
        line-height:1.4;
    }

    #panelProductContent .panel-details strong{
        font-size:12px;
    }
}

/* Extra compact for very small mobile */
@media(max-width:500px){
    .product-card .product-image{
        height:90px;
        padding:3px;
    }
    
    .product-card .product-name{
        font-size:10px;
        line-height:1.1;
    }
    
    .product-card .product-price{
        font-size:12px;
    }
    
    .product-card .old-price{
        font-size:9px;
    }
}
