/* ==========================================================================
   Happilo Theme - Green & White
   ========================================================================== */

:root {
    --happilo-green: #5fb04d;
    --happilo-green-dark: #2f7d32;
    --happilo-green-darker: #245f28;
    --happilo-lime: #a8d94a;
    --happilo-cream: #f5f9ee;
    --happilo-brown: #8a5a22;
    --happilo-text: #333f33;
    --happilo-muted: #6b7a6b;
    --happilo-border: #e3eddc;
    --happilo-shadow: 0 4px 16px rgba(47, 125, 50, 0.10);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--happilo-text);
    background: #fff;
}

a { text-decoration: none; }

.text-success { color: var(--happilo-green-dark) !important; }

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--happilo-green-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a { color: #fff; transition: opacity .2s; }
.top-bar a:hover { opacity: .8; }

/* ---------- Header ---------- */
.main-header { background: #fff; padding: 14px 0; box-shadow: 0 2px 10px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 1030; }
.main-header .brand-logo { display: inline-block; }

.header-icons .header-icon {
    position: relative;
    font-size: 1.35rem;
    color: var(--happilo-green-darker);
    padding: 8px;
    border-radius: 50%;
    transition: background .2s;
    line-height: 1;
}
.header-icons .header-icon:hover { background: var(--happilo-cream); color: var(--happilo-green-dark); }
.icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e2574c;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Search ---------- */
.search-form { position: relative; }
.search-form .form-control { border-radius: 30px 0 0 30px; border: 2px solid var(--happilo-green); padding-left: 18px; }
.search-form .btn { border-radius: 0 30px 30px 0; background: var(--happilo-green); border-color: var(--happilo-green); padding: 0 22px; }
.search-form .btn:hover { background: var(--happilo-green-dark); }

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--happilo-shadow);
    border: 1px solid var(--happilo-border);
    z-index: 1060;
    display: none;
    overflow: hidden;
}
.search-suggestions .sugg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f5ec;
}
.search-suggestions .sugg-item:hover { background: var(--happilo-cream); }
.search-suggestions .sugg-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.search-suggestions .sugg-name { font-weight: 600; color: var(--happilo-text); font-size: .9rem; }
.search-suggestions .sugg-price { color: var(--happilo-green-dark); font-size: .85rem; }

/* ---------- Category nav ---------- */
.nav-categories { background: var(--happilo-cream); border-bottom: 1px solid var(--happilo-border); }
.nav-categories .nav { flex-wrap: nowrap; }
.nav-categories .nav li { list-style: none; }
.nav-categories a {
    display: inline-block;
    padding: 12px 16px;
    color: var(--happilo-text);
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 3px solid transparent;
}
.nav-categories a:hover { color: var(--happilo-green-dark); border-bottom-color: var(--happilo-green); }
.nav-categories a.active { color: var(--happilo-green-dark); border-bottom-color: var(--happilo-green); }

/* ---------- Buttons ---------- */
.btn-success { background-color: var(--happilo-green); border-color: var(--happilo-green); }
.btn-success:hover, .btn-success:focus { background-color: var(--happilo-green-dark); border-color: var(--happilo-green-dark); }
.btn-outline-success { color: var(--happilo-green-dark); border-color: var(--happilo-green); }
.btn-outline-success:hover { background: var(--happilo-green); border-color: var(--happilo-green); }

/* ---------- Hero banner ---------- */
.hero-carousel .carousel-item img { width: 100%; height: 400px; object-fit: cover; }
.hero-carousel .carousel-caption { bottom: 0; right: 0; left: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.45)); padding-bottom: 30px; }
.hero-carousel .carousel-caption h2 { font-size: 2rem; font-weight: 800; }
@media (max-width: 768px) { .hero-carousel .carousel-item img { height: 220px; } .hero-carousel .carousel-caption h2 { font-size: 1.3rem; } }

/* ---------- Section titles ---------- */
.section-title { text-align: center; margin: 48px 0 28px; }
.section-title h2 { font-weight: 800; color: var(--happilo-green-darker); }
.section-title .leaf-divider { color: var(--happilo-green); letter-spacing: 6px; }
.section-title p { color: var(--happilo-muted); max-width: 560px; margin: 8px auto 0; }

/* ---------- Category cards ---------- */
.category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--happilo-shadow);
    transition: transform .25s;
    border: 1px solid var(--happilo-border);
}
.category-card:hover { transform: translateY(-6px); }
.category-card img { width: 100%; height: 180px; object-fit: cover; }
.category-card .cat-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(47, 125, 50, .82);
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 10px;
}

/* ---------- Product card ---------- */
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--happilo-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.product-card:hover { box-shadow: 0 10px 28px rgba(47, 125, 50, .16); transform: translateY(-4px); }
.product-card.out-of-stock { opacity: .75; }
.product-card.out-of-stock .product-thumb img { filter: grayscale(.4); }
.product-thumb { display: block; position: relative; overflow: hidden; }
.product-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-sale {
    position: absolute;
    top: 12px; left: 12px;
    background: #e2574c;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
}
.badge-oos {
    position: absolute;
    top: 12px; left: 12px;
    background: #6c757d;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
}
.badge-in-stock {
    display: inline-block;
    background: #e8f6e9;
    color: var(--happilo-green-dark);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.product-card.out-of-stock .badge-oos { display: block; }
.product-actions {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.action-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--happilo-border);
    background: #fff;
    color: var(--happilo-green-darker);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    opacity: 0;
    transform: translateX(8px);
}
.product-card:hover .action-btn { opacity: 1; transform: translateX(0); }
.action-btn:hover { background: var(--happilo-green); color: #fff; border-color: var(--happilo-green); }
.action-btn.active { background: #e2574c; color: #fff; border-color: #e2574c; opacity: 1; transform: none; }
.product-info { padding: 14px; }
.stars-sm { color: #f6b01e; font-size: .78rem; }
.stars-sm small { color: var(--happilo-muted); }
.product-name { font-size: .92rem; font-weight: 600; margin: 6px 0 2px; line-height: 1.3; min-height: 2.4em; }
.product-name a { color: var(--happilo-text); }
.product-name a:hover { color: var(--happilo-green-dark); }
.product-weight { font-size: .75rem; color: var(--happilo-muted); margin-bottom: 6px; }
.price-now { font-weight: 700; color: var(--happilo-green-darker); font-size: 1rem; }
.price-old { color: var(--happilo-muted); text-decoration: line-through; font-size: .85rem; }
.product-info .btn-success { border-radius: 30px; font-weight: 600; }

/* ---------- Feature strip (home) ---------- */
.feature-strip { background: var(--happilo-cream); padding: 22px 0; border-top: 1px solid var(--happilo-border); border-bottom: 1px solid var(--happilo-border); }
.feature-item { text-align: center; padding: 8px; }
.feature-item i { font-size: 1.7rem; color: var(--happilo-green); }
.feature-item h6 { font-weight: 700; margin: 6px 0 2px; color: var(--happilo-green-darker); }
.feature-item p { font-size: .8rem; color: var(--happilo-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--happilo-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    box-shadow: var(--happilo-shadow);
}
.testimonial-card .quote-icon { color: var(--happilo-lime); font-size: 1.6rem; }
.testimonial-card p { font-style: italic; color: var(--happilo-text); }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--happilo-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Blog cards ---------- */
.blog-card { border: 1px solid var(--happilo-border); border-radius: 16px; overflow: hidden; background: #fff; height: 100%; transition: box-shadow .25s, transform .25s; }
.blog-card:hover { box-shadow: var(--happilo-shadow); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-body { padding: 18px; }
.blog-card .blog-date { font-size: .78rem; color: var(--happilo-muted); }
.blog-card h4 { font-size: 1.05rem; font-weight: 700; }
.blog-card h4 a { color: var(--happilo-text); }
.blog-card h4 a:hover { color: var(--happilo-green-dark); }

/* ---------- Newsletter ---------- */
.newsletter-cta { background: linear-gradient(90deg, var(--happilo-green-dark), var(--happilo-green)); color: #fff; padding: 36px 0; border-radius: 20px; margin: 48px 0; }
.newsletter-cta h3 { font-weight: 800; }
.newsletter-cta .form-control { border-radius: 30px 0 0 30px; }
.newsletter-cta .btn { border-radius: 0 30px 30px 0; background: var(--happilo-lime); color: var(--happilo-green-darker); font-weight: 700; }

/* ---------- Shop / filters ---------- */
.shop-sidebar .card { border: 1px solid var(--happilo-border); border-radius: 14px; box-shadow: var(--happilo-shadow); }
.filter-title { font-weight: 700; color: var(--happilo-green-darker); font-size: .95rem; }
.form-check-input:checked { background-color: var(--happilo-green); border-color: var(--happilo-green); }
.price-range-slider { width: 100%; accent-color: var(--happilo-green); }
.sort-select { border-radius: 30px; border: 1px solid var(--happilo-border); padding: 8px 16px; font-size: .88rem; }
.pagination .page-link { color: var(--happilo-green-dark); border-color: var(--happilo-border); }
.pagination .page-item.active .page-link { background: var(--happilo-green); border-color: var(--happilo-green); color: #fff; }

/* ---------- Product detail ---------- */
.product-gallery .main-img { border: 1px solid var(--happilo-border); border-radius: 16px; overflow: hidden; }
.product-gallery .main-img img { width: 100%; cursor: zoom-in; }
.zoom-magnifier {
    position: absolute;
    width: 180px; height: 180px;
    border: 2px solid var(--happilo-green);
    border-radius: 50%;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 9999px rgba(255,255,255,.4);
    pointer-events: none;
    display: none;
    z-index: 5;
}
.product-title { font-weight: 800; color: var(--happilo-text); }
.product-meta { color: var(--happilo-muted); font-size: .85rem; }
.price-big { font-size: 1.8rem; font-weight: 800; color: var(--happilo-green-darker); }
.price-old-big { font-size: 1.1rem; color: var(--happilo-muted); text-decoration: line-through; }
.save-badge { background: #eef7e8; color: var(--happilo-green-dark); border-radius: 20px; padding: 4px 10px; font-size: .8rem; font-weight: 600; }
.quantity-box { display: inline-flex; align-items: center; border: 1px solid var(--happilo-border); border-radius: 30px; overflow: hidden; }
.quantity-box button { width: 40px; height: 44px; border: none; background: var(--happilo-cream); color: var(--happilo-green-darker); font-weight: 700; font-size: 1.1rem; }
.quantity-box input { width: 52px; height: 44px; border: none; text-align: center; font-weight: 700; }
.tab-nutrition { white-space: pre-line; }
.review-item { border-bottom: 1px solid var(--happilo-border); padding: 16px 0; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--happilo-lime); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Cart ---------- */
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-summary-card { border: 1px solid var(--happilo-border); border-radius: 16px; box-shadow: var(--happilo-shadow); }
.coupon-input { border-radius: 30px 0 0 30px; }
.coupon-btn { border-radius: 0 30px 30px 0; }

/* Cart drawer */
.cart-drawer {
    position: fixed;
    top: 0; right: -380px;
    width: 360px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    box-shadow: -6px 0 30px rgba(0,0,0,.15);
    z-index: 1080;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--happilo-border); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-drawer-foot { padding: 16px; border-top: 1px solid var(--happilo-border); }
.drawer-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f5ec; }
.drawer-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1070; display: none; }
.cart-overlay.open { display: block; }

/* ---------- Auth pages ---------- */
.auth-card { max-width: 460px; margin: 48px auto; border: 1px solid var(--happilo-border); border-radius: 18px; box-shadow: var(--happilo-shadow); padding: 32px; }
.auth-card h2 { color: var(--happilo-green-darker); font-weight: 800; }
.form-control:focus { border-color: var(--happilo-green); box-shadow: 0 0 0 .2rem rgba(95,176,77,.18); }

/* ---------- Account ---------- */
.account-sidebar .card { border: 1px solid var(--happilo-border); border-radius: 14px; }
.account-sidebar .nav-link { color: var(--happilo-text); border-radius: 8px; padding: 10px 14px; }
.account-sidebar .nav-link.active, .account-sidebar .nav-link:hover { background: var(--happilo-cream); color: var(--happilo-green-dark); }
.order-card { border: 1px solid var(--happilo-border); border-radius: 14px; padding: 16px; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.status-Processing { background: #fff3cd; color: #856404; }
.status-Shipped { background: #cce5ff; color: #004085; }
.status-Delivered { background: #d4edda; color: #155724; }
.status-Cancelled { background: #f8d7da; color: #721c24; }
.status-Pending { background: #fff3cd; color: #856404; }
.status-Paid { background: #d4edda; color: #155724; }
.status-Failed { background: #f8d7da; color: #721c24; }
.status-Refunded { background: #e2e3e5; color: #383d41; }

/* ---------- Checkout ---------- */
.checkout-step .card { border: 1px solid var(--happilo-border); border-radius: 14px; }
.payment-option { border: 2px solid var(--happilo-border); border-radius: 12px; padding: 14px; cursor: pointer; }
.payment-option.selected { border-color: var(--happilo-green); background: var(--happilo-cream); }
.razorpay-note { font-size: .8rem; color: var(--happilo-muted); }

/* ---------- Contact / static pages ---------- */
.page-hero { background: linear-gradient(120deg, var(--happilo-green-dark), var(--happilo-green)); color: #fff; padding: 48px 0; margin-bottom: 40px; }
.page-hero h1 { font-weight: 800; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #e5eecb; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; }
.content-card { border: 1px solid var(--happilo-border); border-radius: 16px; box-shadow: var(--happilo-shadow); padding: 32px; }
.content-card h2, .content-card h3 { color: var(--happilo-green-darker); }
.contact-icon-box { text-align: center; padding: 24px; border: 1px solid var(--happilo-border); border-radius: 16px; height: 100%; }
.contact-icon-box i { font-size: 2rem; color: var(--happilo-green); }
.contact-icon-box h6 { margin-top: 10px; font-weight: 700; }

/* ---------- Blog detail ---------- */
.blog-hero-img { width: 100%; border-radius: 16px; max-height: 420px; object-fit: cover; }
.blog-content { line-height: 1.8; }
.blog-content h2, .blog-content h3 { color: var(--happilo-green-darker); margin-top: 24px; }
.blog-content ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--happilo-green-darker); color: #eaf3e2; margin-top: 60px; }
.footer-top { padding: 48px 0 32px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 8px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--happilo-lime); }
.footer-about { font-size: .9rem; color: #c9ddbd; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c9ddbd; font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--happilo-lime); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { font-size: .88rem; margin-bottom: 8px; color: #c9ddbd; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; transition: all .2s; }
.social-btn:hover { background: var(--happilo-lime); color: var(--happilo-green-darker); }
.footer-bottom { background: rgba(0,0,0,.18); padding: 14px 0; font-size: .82rem; }
.footer-links-inline a { color: #c9ddbd; }
.footer-links-inline a:hover { color: var(--happilo-lime); }

/* ---------- Deal banner & coupon strip ---------- */
.deal-banner { background: linear-gradient(120deg, var(--happilo-green-darker), var(--happilo-green) 70%); color: #fff; padding: 26px 16px; text-align: center; }
.deal-banner-inner { max-width: 780px; margin: 0 auto; }
.deal-badge { display: inline-block; background: var(--happilo-lime); color: var(--happilo-green-darker); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 14px; border-radius: 999px; }
.deal-title { font-size: 1.5rem; font-weight: 800; margin: 12px 0 6px; color: #fff; }
.deal-meta { font-size: .95rem; }
.deal-discount { font-weight: 700; color: var(--happilo-lime); }
.deal-cta { opacity: .85; margin-left: 10px; }
.deal-timer { display: flex; justify-content: center; gap: 14px; margin: 14px 0 16px; }
.deal-timer span { background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 14px; min-width: 74px; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.deal-timer b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: #fff; }
.deal-shop-btn { background: #fff; color: var(--happilo-green-darker); }
.coupon-strip { background: var(--happilo-cream); border-bottom: 1px solid var(--happilo-border); }
.coupon-strip-inner { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 0; white-space: nowrap; }
.coupon-strip-label { font-weight: 700; font-size: .85rem; color: var(--happilo-green-darker); }
.coupon-chip { border: 1px dashed var(--happilo-green); color: var(--happilo-green-darker); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.coupon-chip:hover { background: var(--happilo-green); color: #fff; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: #d7e5cf; }
.empty-state h4 { color: var(--happilo-green-darker); font-weight: 700; margin-top: 16px; }

/* ---------- Misc ---------- */
.page-loading { position: fixed; inset: 0; background: rgba(255,255,255,.85); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.spinner-green { width: 44px; height: 44px; border: 4px solid var(--happilo-border); border-top-color: var(--happilo-green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--happilo-green); color: #fff; border: none; box-shadow: var(--happilo-shadow); display: none; z-index: 1050; }
.back-to-top:hover { background: var(--happilo-green-dark); }

.razorpay-badge { background: #fff; border: 1px solid var(--happilo-border); border-radius: 8px; padding: 8px 14px; }
.payment-icons img { height: 26px; margin-right: 8px; opacity: .85; }

@media (max-width: 991px) {
    .nav-categories { display: none; }
}

/* ---------- Order tracking timeline ---------- */
.track-timeline { position: relative; padding-left: 8px; }
.track-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--happilo-border); }
.track-step:last-child::before { display: none; }
.track-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--happilo-border); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--happilo-border); flex-shrink: 0; margin-top: 3px; position: relative; z-index: 1; }
.track-step.current .track-dot { background: var(--happilo-green); box-shadow: 0 0 0 1px var(--happilo-green); }
.track-step.current::before { background: var(--happilo-green); }
.track-content { color: var(--happilo-muted); }
.track-step.current .track-content { color: var(--happilo-text); }

/* ---------- Product gallery & variants ---------- */
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-gallery-thumbs .thumb { width: 64px; height: 64px; border: 2px solid var(--happilo-border); border-radius: 8px; padding: 4px; cursor: pointer; background: #fff; }
.product-gallery-thumbs .thumb.active { border-color: var(--happilo-green); }
.product-gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; }
.variant-option { border: 2px solid var(--happilo-border); border-radius: 8px; padding: 8px 14px; cursor: pointer; background: #fff; transition: all .2s; }
.variant-option:hover { border-color: var(--happilo-lime); }
.variant-option.active { border-color: var(--happilo-green); background: var(--happilo-cream); }
.gallery-thumb { border: 2px solid var(--happilo-border) !important; overflow: hidden; transition: border-color .2s; }
.gallery-thumb.active { border-color: var(--happilo-green) !important; }
.variant-chip { border: 2px solid var(--happilo-border) !important; background: #fff; transition: all .2s; font-weight: 600; }
.variant-chip:hover { border-color: var(--happilo-lime) !important; }
.variant-chip.active { border-color: var(--happilo-green) !important; background: var(--happilo-cream); }
.badge-low-stock { background: #fff3cd; color: #8a6d1a; border: 1px solid #f0e0a8; }
.newsletter-msg { min-height: 1.2rem; }

/* ---------- Compare ---------- */
.btn-compare { width: 34px; height: 34px; border: 1px solid var(--happilo-border); background: #fff; color: var(--happilo-muted); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.btn-compare:hover { border-color: var(--happilo-green); color: var(--happilo-green); }
.btn-compare.active { background: var(--happilo-green); border-color: var(--happilo-green); color: #fff; }
.compare-table th { vertical-align: middle; color: var(--happilo-green-darker); font-weight: 600; white-space: nowrap; }
.compare-table td { vertical-align: middle; }
.compare-table img { width: 70px; height: 70px; }

/* ---------- Quick view modal ---------- */
#quickViewModal .modal-body { max-height: 82vh; overflow-y: auto; }
.stars-sm { color: #ffb400; font-size: .8rem; }

/* ---------- Chat / WhatsApp widget ---------- */
.chat-widget { position: fixed; bottom: 24px; left: 24px; z-index: 1200; }
.chat-widget-toggle { width: 54px; height: 54px; border-radius: 50%; border: none; background: #25D366; color: #fff; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .2s; }
.chat-widget-toggle:hover { transform: scale(1.06); }
.chat-widget-panel { position: absolute; bottom: 68px; left: 0; width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); border: 1px solid var(--happilo-border); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; }
.chat-widget-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-widget-head { background: linear-gradient(135deg, var(--happilo-green-dark), var(--happilo-green)); color: #fff; padding: 14px 16px; border-radius: 14px 14px 0 0; }
.chat-widget-body { padding: 14px; }
.chat-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--happilo-border); border-radius: 10px; margin-bottom: 8px; color: var(--happilo-text); text-decoration: none; transition: all .2s; }
.chat-option:last-child { margin-bottom: 0; }
.chat-option:hover { border-color: var(--happilo-green); background: var(--happilo-cream); color: var(--happilo-text); }
.chat-option i { font-size: 1.3rem; color: var(--happilo-green); }
.chat-option.whatsapp i { color: #25D366; }
.chat-option div { line-height: 1.2; }
.chat-option strong { display: block; font-size: .85rem; }
.chat-option span { font-size: .75rem; color: var(--happilo-muted); }

/* ---------- Newsletter popup ---------- */
#newsletterPopup .modal-content { border: none; border-radius: 14px; }
#newsletterPopup h4 { font-size: 1.3rem; }

/* ---------- Reviews & Q&A ---------- */
.verified-badge { background: var(--happilo-cream); color: var(--happilo-green-darker); border: 1px solid #cde5b8; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; display: inline-block; vertical-align: middle; }
.review-photo { width: 72px; height: 72px; border: 1px solid var(--happilo-border); border-radius: 8px; overflow: hidden; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-photo:hover { border-color: var(--happilo-green); }
.admin-reply { background: #f5faf1; border-left: 3px solid var(--happilo-green); border-radius: 6px; padding: 8px 12px; }
#questionForm textarea { resize: vertical; }
