/*
Theme Name: Herbal Shop Custom
Author: Gokul
Description: Professional E-commerce Layout with HD Images, Star Rating System, and Premium Design
Version: 9.0.0
*/

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

html, body { 
    height: 100%; 
    scroll-behavior: smooth;
}

body { 
    display: flex; 
    flex-direction: column; 
    background: #f0f4f8; 
    color: #1a202c; 
    line-height: 1.6;
}

.main-content-wrapper { 
    flex: 1 0 auto; 
    padding-bottom: 30px; 
}

/* ========== TOP ANNOUNCEMENT ========== */
.top-announcement { 
    background: linear-gradient(135deg, #1a1a2e, #16213e); 
    color: #fff; 
    padding: 8px 0; 
    font-size: 13px; 
    font-weight: 500; 
    text-align: center;
}

/* ========== APP HEADER ========== */
.app-header { 
    background: #ffffff; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    border-bottom: 1px solid #e2e8f0; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); 
}

.app-header-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 16px; 
    height: 60px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.menu-icon { 
    width: 24px; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 4.5px; 
}

.menu-icon span { 
    height: 2.5px; 
    background: #2d3748; 
    border-radius: 2px; 
    width: 100%; 
    transition: 0.3s;
}

.search-icon { 
    font-size: 18px; 
    cursor: pointer; 
    background: #edf2f7; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s;
}

.search-icon:hover { background: #e2e8f0; }

/* ========== MULTI-BANNER ========== */
.home-banner-container { 
    width: 100%; 
    border-radius: 16px; 
    overflow: hidden; 
    margin-bottom: 20px; 
    background: #1a202c; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.home-banner-wrapper { 
    display: flex; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
    width: 100%; 
}

.home-banner-slide { 
    min-width: 100%; 
}

.home-banner-slide img { 
    width: 100%; 
    display: block; 
    object-fit: cover; 
    border-radius: 16px; 
    max-height: 420px; 
    min-height: 200px;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* ========== CONTAINER ========== */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 12px; 
}

/* ========== SECTION HEADING ========== */
.section-heading { 
    text-align: center; 
    margin: 25px 0 20px; 
}

.section-heading h2 { 
    font-size: 24px; 
    font-weight: 800; 
    color: #1a202c; 
    display: inline-block; 
    position: relative; 
}

.section-heading h2 span { 
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-heading h2::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 50px; 
    height: 3px; 
    background: linear-gradient(90deg, #e53e3e, #fc8181); 
    border-radius: 2px; 
}

.section-heading p { 
    font-size: 14px; 
    color: #718096; 
    margin-top: 8px; 
}

/* ========== PRODUCT GRID ========== */
.pro-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 14px; 
}

@media (min-width: 480px) { 
    .pro-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; 
    } 
}

@media (min-width: 768px) { 
    .pro-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; 
    } 
}

@media (min-width: 1024px) { 
    .pro-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 24px; 
    } 
}

/* ========== PRODUCT CARD ========== */
.pro-card { 
    background: #ffffff; 
    border-radius: 16px; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.pro-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.10); 
}

/* ========== IMAGE SLIDER ========== */
.card-slider-container { 
    width: 100%; 
    height: 200px; 
    position: relative; 
    overflow: hidden; 
    background: #f7fafc;
    cursor: pointer;
}

@media (min-width: 768px) { 
    .card-slider-container { 
        height: 250px; 
    } 
}

.card-slider-wrapper { 
    display: flex; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.card-slide { 
    min-width: 100%; 
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.card-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.card-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    touch-action: none;
    transition: transform 0.5s ease;
}

.pro-card:hover .card-slide img { 
    transform: scale(1.02); 
}

/* ========== SLIDER DOTS ========== */
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

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

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========== PRODUCT INFO ========== */
.pro-info { 
    padding: 12px 14px 16px; 
    text-align: center; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro-title { 
    font-size: 15px; 
    font-weight: 700; 
    line-height: 1.4; 
    height: 40px; 
    overflow: hidden; 
    margin: 0 0 6px 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

.pro-title a { 
    text-decoration: none; 
    color: #2d3748; 
    transition: 0.2s; 
}

.pro-title a:hover { 
    color: #e53e3e; 
}

/* ========== STAR RATING ========== */
.star-rating { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    margin: 4px 0 6px; 
}

.stars-container { 
    display: flex; 
    gap: 1px; 
}

.star { 
    font-size: 15px; 
    color: #e2e8f0; 
    letter-spacing: 1px;
}

.star.full { color: #f6ad55; }
.star.half { 
    color: #f6ad55; 
    position: relative; 
    display: inline-block;
}
.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #e2e8f0;
}
.star.empty { color: #e2e8f0; }

.rating-number { 
    font-size: 13px; 
    font-weight: 600; 
    color: #4a5568; 
    background: #edf2f7; 
    padding: 0 8px; 
    border-radius: 4px; 
}

/* ========== PRICE BOX ========== */
.price-box { 
    margin: 4px 0 10px; 
    text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price { 
    font-size: 20px; 
    font-weight: 800; 
    color: #e53e3e; 
}

.old-price { 
    font-size: 14px; 
    color: #a0aec0; 
    text-decoration: line-through; 
}

.discount-percent { 
    font-size: 12px; 
    font-weight: 700; 
    color: #38a169; 
    background: #c6f6d5; 
    padding: 1px 8px; 
    border-radius: 12px; 
}

/* ========== ORDER BUTTON ========== */
.btn-smooth-zoom {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    background: linear-gradient(135deg, #2d3748, #1a202c); 
    color: #fff; 
    text-align: center; 
    padding: 12px 16px;
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
    width: 100%; 
    margin-top: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.btn-smooth-zoom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn-smooth-zoom:hover::after {
    opacity: 1;
    left: 100%;
}

.btn-smooth-zoom:hover { 
    background: linear-gradient(135deg, #1a202c, #000000); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.30);
}

.btn-smooth-zoom svg {
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.btn-smooth-zoom:hover svg {
    transform: translateX(4px) scale(1.1);
}

@keyframes smoothZoomWobble {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    15% {
        transform: scale(1.06) rotate(-1deg);
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }
    30% {
        transform: scale(1.08) rotate(1deg);
        box-shadow: 0 10px 35px rgba(0,0,0,0.30);
    }
    45% {
        transform: scale(1.06) rotate(-0.5deg);
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }
    60% {
        transform: scale(1.09) rotate(0.5deg);
        box-shadow: 0 10px 35px rgba(0,0,0,0.30);
    }
    80% {
        transform: scale(1.05) rotate(-0.3deg);
        box-shadow: 0 8px 25px rgba(0,0,0,0.22);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
}

.btn-smooth-zoom.wobble-active {
    animation: smoothZoomWobble 2.5s infinite ease-in-out;
}

.btn-smooth-zoom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.05) 50%,
        transparent 70%
    );
    animation: shineMove 3s infinite;
}

@keyframes shineMove {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-smooth-zoom:hover::before {
    animation-duration: 1s;
}

/* ========== FOOTER ========== */
.seba-dark-footer { 
    flex-shrink: 0; 
    background: #1a202c !important; 
    color: #e2e8f0 !important; 
    padding: 40px 20px 110px !important; 
    margin-top: 40px; 
}

.seba-dark-footer a { color: #a0aec0; transition: 0.3s; }
.seba-dark-footer a:hover { color: #fc8181; }

.widget-title { 
    font-size: 18px; 
    font-weight: 700; 
    color: #ffffff !important; 
    position: relative; 
    padding-bottom: 10px; 
    margin-bottom: 15px;
}

.widget-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 40px; 
    height: 3px; 
    background: linear-gradient(90deg, #e53e3e, #fc8181); 
    border-radius: 2px; 
}

/* ========== BOTTOM NAV ========== */
.app-bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: #ffffff; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    height: 62px; 
    border-top: 1px solid #e2e8f0; 
    z-index: 1000; 
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06); 
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    color: #718096; 
    font-size: 11px; 
    font-weight: 500; 
    width: 25%; 
    transition: 0.3s;
    gap: 2px;
}

.nav-icon { 
    font-size: 20px; 
    margin-bottom: 1px; 
}

.nav-item.active { 
    color: #e53e3e; 
    font-weight: 700; 
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 480px) {
    .pro-title { font-size: 13px; height: 36px; }
    .current-price { font-size: 17px; }
    .btn-smooth-zoom { 
        font-size: 12px; 
        padding: 10px 12px; 
    }
    .card-slider-container { height: 160px; }
    .star { font-size: 13px; }
    
    @keyframes smoothZoomWobble {
        0% { transform: scale(1); }
        20% { transform: scale(1.05) rotate(-0.5deg); }
        40% { transform: scale(1.07) rotate(0.5deg); }
        60% { transform: scale(1.05) rotate(-0.3deg); }
        80% { transform: scale(1.03) rotate(0.3deg); }
        100% { transform: scale(1); }
    }
}

/* ========== LOADING ANIMATION ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pro-card {
    animation: fadeInUp 0.6s ease forwards;
}

.pro-card:nth-child(2) { animation-delay: 0.1s; }
.pro-card:nth-child(3) { animation-delay: 0.2s; }
.pro-card:nth-child(4) { animation-delay: 0.3s; }
.pro-card:nth-child(5) { animation-delay: 0.4s; }
.pro-card:nth-child(6) { animation-delay: 0.5s; }

/* ============================================= */
/* ✅ ক্যাটাগরি স্লাইডার - চতুর্ভুজ আকারের ছবি */
/* ============================================= */

.cat-section-wrapper {
    margin: 25px 0 20px;
}

.cat-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 5px 0;
}

.cat-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.cat-carousel-track::-webkit-scrollbar {
    display: none;
}

.square-cat-card {
    flex: 0 0 auto;
    width: 140px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.square-cat-card:hover {
    transform: translateY(-5px);
}

.square-cat-img-box {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.square-cat-card:hover .square-cat-img-box {
    border-color: #e53935;
    box-shadow: 0 8px 25px rgba(229,57,53,0.15);
}

.square-cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.square-cat-card:hover .square-cat-img-box img {
    transform: scale(1.05);
}

.square-cat-title {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* ============================================= */
/* ✅ রিভিউ স্লাইডার */
/* ============================================= */

.review-slider-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.review-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.review-slide {
    min-width: 300px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.review-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.review-slider-prev,
.review-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: 0.3s;
}

.review-slider-prev:hover,
.review-slider-next:hover {
    background: rgba(229,57,53,0.8);
    transform: translateY(-50%) scale(1.1);
}

.review-slider-prev { left: 5px; }
.review-slider-next { right: 5px; }

/* ============================================= */
/* ✅ রেস্পন্সিভ - ক্যাটাগরি ও রিভিউ */
/* ============================================= */

@media (max-width: 768px) {
    .square-cat-card { width: 110px; }
    .square-cat-img-box { width: 110px; height: 110px; }
    .square-cat-title { font-size: 11px; }
    .review-slide { min-width: 250px; }
}

@media (max-width: 480px) {
    .square-cat-card { width: 90px; }
    .square-cat-img-box { width: 90px; height: 90px; }
    .square-cat-title { font-size: 10px; margin-top: 4px; }
    .review-slide { min-width: 200px; padding: 8px; }
    .review-slide img { border-radius: 6px; }
    .review-slider-prev,
    .review-slider-next {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* ============================================= */
/* ✅ সিঙ্গেল প্রোডাক্ট পেজ - BG Mart স্টাইল */
/* ============================================= */

.bgmart-slider-box {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.bgmart-slider-wrapper {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bgmart-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.bgmart-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    background: #ffffff;
}

.bgmart-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.bgmart-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.bgmart-slider-dots .dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.bgmart-slider-dots .dot.active {
    background: #ffffff;
    width: 16px;
    border-radius: 10px;
}

/* ✅ LED অফার বক্স - সিঙ্গেল পেজ */
.compact-ticket-box {
    position: relative;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
    margin: 16px 0;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.compact-ticket-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #ff0000, #d32f2f);
    animation: rotateBorder 3s linear infinite;
    z-index: -2;
}

.compact-ticket-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #fff5f5;
    border-radius: 8px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ অর্ডার বাটন - সিঙ্গেল পেজ */
.btn-updown-smooth {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
    animation: btnUpDown 2.2s infinite ease-in-out;
    transition: 0.3s;
}

.btn-updown-smooth:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: scale(1.02);
}

@keyframes btnUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(211, 47, 47, 0.45); }
}

/* ✅ কন্টাক্ট বাটন - সিঙ্গেল পেজ */
.contact-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.c-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 2px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.c-btn:hover { 
    transform: translateY(-2px); 
    opacity: 0.9; 
}

.btn-call { background: #1e88e5; }
.btn-wa { background: #2e7d32; }
.btn-msg { background: #0084ff; }

/* ✅ রেকমেন্ডেড প্রোডাক্ট বাটন */
.rec-btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #2d3436;
    color: #ffffff !important;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.rec-btn-order:hover { 
    background: #e53935; 
}

/* ✅ সিঙ্গেল পেজ মোবাইল রেস্পন্সিভ */
@media (max-width: 480px) {
    .btn-updown-smooth { 
        font-size: 15px; 
        padding: 12px; 
    }
    .c-btn { 
        font-size: 11px; 
        padding: 10px 2px; 
    }
    .compact-ticket-box { 
        font-size: 12px; 
        padding: 10px 12px; 
    }
}