/* =========================================================
   AquaPure Store — Bootstrap 5 theme overrides + custom styles
   ========================================================= */

/* Override Bootstrap's CSS variables so every Bootstrap component
   (buttons, badges, accordion, links, navbar) automatically picks
   up the brand color — no need to fight Bootstrap's defaults. */
:root {
    --bs-primary: #0f7ea3;
    --bs-primary-rgb: 15, 126, 163;
    --bs-link-color: #0f7ea3;
    --bs-link-hover-color: #0a5c78;
    --bs-body-font-family: 'Poppins', 'Segoe UI', sans-serif;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 14px;

    /* Brand-specific extras not covered by Bootstrap vars */
    --brand-primary-dark: #0a5c78;
    --brand-accent: #ff7a3d;
    --brand-bg: #f5f9fb;
    --brand-muted: #64798a;
    --brand-border: #e1e8ed;
    --brand-success: #2e9e5b;
}

body {
    background: var(--brand-bg);
    color: #1e2a32;
}
a { text-decoration: none; }

.btn { font-weight: 700; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: var(--brand-primary-dark); --bs-btn-hover-border-color: var(--brand-primary-dark); }
.btn-accent { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: #e8631f; border-color: #e8631f; color: #fff; }

/* ---------------- Offer strip (flashing) ---------------- */
.offer-flash {
    background: var(--brand-accent); color: #fff !important; padding: 6px 14px; border-radius: 20px;
    font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 5px;
    animation: offerFlash 1.1s infinite;
}
@keyframes offerFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* ---------------- Header / Navbar ---------------- */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); z-index: 1000; }
.navbar-brand { color: var(--brand-primary-dark) !important; }
.cart-badge { position: absolute; top: -4px; right: -10px; font-size: 10px; }

.category-strip { background: var(--brand-primary-dark); padding: 8px 0; }
.category-dropdown { position: relative; }
.cat-link { color: #fff; font-weight: 600; font-size: 14px; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.cat-link-icon {
    width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-flex;
    align-items: center; justify-content: center; background: rgba(255,255,255,0.15); font-size: 11px; flex-shrink: 0;
}
.cat-link-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-flyout-icon {
    width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-flex;
    align-items: center; justify-content: center; margin-right: 8px; vertical-align: middle; flex-shrink: 0;
}
.nav-flyout-icon-emoji { background: var(--brand-bg); font-size: 11px; }
.nav-flyout-icon:not(.nav-flyout-icon-emoji) { object-fit: cover; }
.dropdown-menu-custom {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    border-radius: 10px; min-width: 200px; padding: 8px 0; z-index: 999;
}
.category-dropdown.open > .dropdown-menu-custom { display: block; }
.dropdown-menu-custom a { display: block; padding: 8px 16px; color: #1e2a32; font-size: 14px; }
.dropdown-menu-custom a:hover { background: var(--brand-bg); color: var(--brand-primary-dark); }

.nav-flyout-item { position: relative; }
.nav-flyout-sub {
    display: none; position: absolute; top: 0; left: 100%; margin-left: 2px;
    background: #fff; border-radius: 10px; min-width: 180px; padding: 8px 0; z-index: 1000;
}
.nav-flyout-item.open > .nav-flyout-sub { display: block; }

/* ---------------- Hero Section: text (left) + image/video slider (right) ---------------- */
.hero-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
    padding: 40px 15px; max-width: 1320px; margin: 0 auto;
}
.hero-text h1 { font-size: 30px; font-weight: 800; color: var(--brand-primary-dark); margin-bottom: 10px; line-height: 1.25; }
.hero-text p { font-size: 15px; color: var(--brand-muted); margin-bottom: 18px; }

body { background: linear-gradient(180deg, #eef7fa 0%, var(--brand-bg) 320px); }

.hero-slider {
    position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #eef5f8; aspect-ratio: 16 / 9; max-height: 280px;
}
.hero-slides { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-slide > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-slide .slide-caption {
    position: absolute; left: 0; bottom: 0; padding: 18px 22px; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); width: 100%;
}
.hero-slide .slide-caption h4 { font-size: 16px; margin-bottom: 2px; }
.hero-slide .slide-caption p { font-size: 12px; opacity: 0.9; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85);
    border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 5; color: var(--brand-primary-dark);
}
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-arrow:hover { background: #fff; }

.hero-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 7px; z-index: 5; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.hero-dots span.active { background: #fff; }

@media (max-width: 768px) {
    .hero-slider { aspect-ratio: 16 / 10; max-height: 220px; margin-top: 18px; }
    .hero-split { grid-template-columns: 1fr; padding: 20px 15px; }
}

/* ---------------- Section headers ---------------- */
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 18px; color: var(--brand-primary-dark); position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--brand-accent); }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.section-header a { color: var(--bs-primary); font-weight: 600; font-size: 14px; }

/* ---------------- Trust badges ---------------- */
.trust-badge { background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 18px; text-align: center; height: 100%; }
.trust-badge .icon { font-size: 26px; margin-bottom: 8px; color: var(--bs-primary); }
.trust-badge .title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.trust-badge .desc { font-size: 12px; color: var(--brand-muted); }

/* ---------------- Fade-in animation ---------------- */
.fade-in { animation: fadeInUp .5s ease both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Testimonials: Reviews & Feedback ---------------- */
.testimonial-card { background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 20px; height: 100%; }
.testimonial-card .stars { color: #f5a623; font-size: 15px; margin-bottom: 8px; }
.testimonial-card .t-message { font-size: 14px; margin-bottom: 12px; }
.testimonial-card .t-name { font-weight: 700; font-size: 13px; color: var(--brand-primary-dark); }
.testimonial-cta { text-align: center; margin: 10px 0 44px; }

/* ---------------- Shop by Category: accordion-style boxed groups ---------------- */
.category-group { margin-bottom: 18px; }
.category-group-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer;
    background: #fff; border: 1px solid var(--brand-border); border-radius: 10px;
    transition: border-color .2s;
}
.category-group-header:hover { border-color: var(--bs-primary); }
.category-group.open .category-group-header { border-radius: 10px 10px 0 0; border-color: var(--bs-primary); }
.category-group-header .icon-circle {
    width: 46px; height: 46px; border-radius: 50%; background: var(--brand-bg); display: flex;
    align-items: center; justify-content: center; font-size: 20px; overflow: hidden; flex-shrink: 0;
}
.category-group-header .icon-circle img { width: 100%; height: 100%; object-fit: cover; }
.category-group-header h3 { font-size: 17px; color: var(--brand-primary-dark); margin: 0; }
.category-group-header .sub-count { font-size: 12px; color: var(--brand-muted); font-weight: 500; }
.category-group-header a.view-all { margin-left: auto; font-size: 13px; color: var(--bs-primary); font-weight: 600; z-index: 2; }
.category-group-header .chevron { font-size: 14px; color: var(--brand-muted); transition: transform .25s; margin-left: 6px; }
.category-group.open .category-group-header .chevron { transform: rotate(180deg); }

.subcategory-box {
    max-height: 0; overflow: hidden; background: #fff; border: 1px solid var(--brand-border); border-top: none;
    border-radius: 0 0 10px 10px; transition: max-height .3s ease;
}
.category-group.open .subcategory-box { max-height: 600px; }
.subcategory-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; padding: 18px; }
.subcategory-card {
    background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: 10px;
    padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 600;
    transition: transform .2s, box-shadow .2s, border-color .2s; color: #1e2a32;
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px;
}
.subcategory-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); border-color: var(--bs-primary); color: var(--brand-primary-dark); }
.subcategory-card-img {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--brand-border);
    display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden;
}
.subcategory-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- About / Mission Section ---------------- */
.about-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    background: #fff; border-radius: 14px; padding: 40px; margin-bottom: 44px; border: 1px solid var(--brand-border);
}
@media (max-width: 768px) {
    .about-section { grid-template-columns: 1fr; }
}
.about-section .about-icon {
    width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #eef8fb, #dff1f7);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 60px;
    object-fit: cover;
}
.about-section h2 { color: var(--brand-primary-dark); margin-bottom: 14px; font-size: 26px; }
.about-section p { color: var(--brand-muted); margin-bottom: 10px; }
.mission-points { list-style: none; margin-top: 16px; padding: 0; }
.mission-points li { padding: 6px 0; padding-left: 26px; position: relative; }
.mission-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-success); font-weight: 800; }

/* ---------------- Product cards ---------------- */
.product-card {
    background: #fff; border: 1px solid var(--brand-border); border-radius: 10px;
    overflow: hidden; transition: transform .2s, box-shadow .2s; display: block; height: 100%;
    position: relative;
}
.wishlist-heart-btn {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--brand-muted); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer; transition: transform .15s, color .15s;
}
.wishlist-heart-btn:hover { transform: scale(1.1); }
.wishlist-heart-btn.active { color: var(--danger, #e3342f); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.product-card .img-wrap { overflow: hidden; height: 180px; }
.product-card img { width: 100%; height: 180px; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.08); }
.product-card .info { padding: 14px; }
.product-card .name { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #1e2a32; }
.price-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.price-final { font-weight: 800; color: var(--brand-primary-dark); font-size: 17px; }
.price-original { text-decoration: line-through; color: var(--brand-muted); font-size: 13px; }
.badge-discount { background: var(--brand-accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* ---------------- Product Detail + Zoom ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}
.zoom-wrapper {
    position: relative; overflow: hidden; border-radius: 10px;
    border: 1px solid var(--brand-border); cursor: zoom-in;
    width: 100%; height: 440px; display: flex; align-items: center; justify-content: center;
    background: #fff;
}
.zoom-wrapper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: transform .15s ease-out; }
.zoom-wrapper.zoomed img { cursor: zoom-out; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb-row img {
    width: 70px; height: 70px; object-fit: contain; border-radius: 6px; cursor: pointer;
    border: 2px solid var(--brand-border); background: #fff; padding: 4px;
}
.thumb-row img.active { border-color: var(--bs-primary); }

@media (max-width: 640px) {
    .zoom-wrapper { height: 300px; }
}

/* ---------------- Forms ---------------- */
.form-box {
    max-width: 440px; margin: 50px auto; background: #fff; padding: 34px;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.form-box h2 { margin-bottom: 20px; color: var(--brand-primary-dark); }

/* ---------------- Cart / Checkout ---------------- */
.payment-option { border: 2px solid var(--brand-border); border-radius: 10px; padding: 16px; margin-bottom: 12px; cursor: pointer; display: block; }
.payment-option.selected { border-color: var(--bs-primary); background: #eef8fb; }
.qr-image { max-width: 220px; display: block; margin: 14px auto; }

.order-summary { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid var(--brand-border); }
.order-summary .row-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-summary .total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--brand-border); padding-top: 10px; }

/* ---------------- Order Tracking ---------------- */
.tracker { display: flex; justify-content: space-between; margin: 30px 0; }
.tracker .step { flex: 1; text-align: center; position: relative; }
.tracker .step .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-border); margin: 0 auto 8px; }
.tracker .step.done .dot { background: var(--brand-success); }
.tracker .step .line { position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--brand-border); z-index: -1; }
.tracker .step.done .line { background: var(--brand-success); }
.tracker .step:first-child .line { display: none; }

/* ---------------- Admin Panel ---------------- */
.admin-body { background: #f1f4f7; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; background: #12212e; color: #fff; padding: 18px 0 20px; flex-shrink: 0;
    max-height: 100vh; overflow-y: auto; position: sticky; top: 0;
}
.admin-sidebar h3 { padding: 0 20px 16px; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 8px; }
.sidebar-group { margin-bottom: 2px; }
.sidebar-group-title {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: rgba(255,255,255,0.55); background: none; border: none; cursor: pointer;
}
.sidebar-group-title:hover { color: #fff; }
.sidebar-group-title i { transition: transform .2s; font-size: 12px; }
.sidebar-group-title.expanded i { transform: rotate(180deg); }
.sidebar-group-content { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.sidebar-group-content.open { max-height: 600px; }
.admin-sidebar a { display: block; padding: 10px 20px; color: #cfd8de; font-size: 14px; border-radius: 0 20px 20px 0; margin-right: 10px; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar a.active { background: var(--bs-primary); color: #fff; font-weight: 600; }
.admin-content { flex: 1; padding: 30px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-user-chip { background: #fff; border-radius: 20px; padding: 6px 16px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.status-pill { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-active, .status-paid, .status-delivered { background: #e9f9ef; color: var(--brand-success); }
.status-inactive, .status-failed, .status-cancelled { background: #fdeceb; color: #d9483f; }
.status-pending { background: #fff6e0; color: #b8860b; }
.admin-content .card { border-radius: 12px; }
.dash-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.quick-link-card { transition: transform .15s, box-shadow .15s; }
.quick-link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-primary-dark, #12212e); margin-top: 60px; }
.footer-link { color: #cfd8de; margin-bottom: 6px; }
.footer-link:hover { color: #fff; }
.footer-bottom { background: var(--brand-primary-darker, #0d1a24); color: #8ea0ac; font-size: 13px; }

/* ---------------- Compatibility layer for existing form/table markup ---------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--brand-border); border-radius: 8px; outline: none;
    font-family: inherit; font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
}
.form-group small { display: block; margin-top: 4px; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-error { background: #fdeceb; color: #d9483f; border-color: #f7c9c5; }
.alert-success { background: #e9f9ef; color: var(--brand-success); border-color: #c7ecd4; }

.btn-outline { background: transparent; border: 2px solid var(--bs-primary); color: var(--bs-primary); }
.btn-outline:hover { background: var(--bs-primary); color: #fff; }
.btn-block { display: block; width: 100%; }

.qty-input { width: 60px; padding: 6px; border: 1px solid var(--brand-border); border-radius: 6px; }

.cart-table, table.admin-table {
    width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden;
}
.cart-table th, .cart-table td,
table.admin-table th, table.admin-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--brand-border); text-align: left; font-size: 14px;
}
table.admin-table th { background: #eef2f5; font-size: 12px; text-transform: uppercase; color: var(--brand-muted); }

/* ---------------- Grid containers used across templates ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 44px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 44px; }
.category-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin-bottom: 44px; }

/* ---------------- Homepage Category Selector Box (below header) ---------------- */
.cat-selector-box {
    background: #fff; border: 1px solid var(--brand-border); border-radius: 12px;
    margin: 14px 0; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.cat-selector-tabs {
    display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 0;
}
.cat-tab {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px 14px;
    cursor: pointer; border-radius: 10px 10px 0 0; flex-shrink: 0; min-width: 84px;
    border-bottom: 3px solid transparent; transition: background .2s, border-color .2s;
}
.cat-tab:hover { background: var(--brand-bg); }
.cat-tab.active { background: var(--brand-bg); border-bottom-color: var(--bs-primary); }
.cat-tab-icon {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--brand-border);
    display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden;
}
.cat-tab-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-tab-name { font-size: 12px; font-weight: 700; text-align: center; color: var(--brand-primary-dark); white-space: nowrap; }

.cat-selector-title { padding: 10px 14px 0; font-weight: 700; color: var(--brand-primary-dark); font-size: 13px; }
.cat-selector-panel-wrap { padding: 12px; }
.cat-selector-panel { display: none; flex-wrap: wrap; gap: 10px; }
.cat-selector-panel.active { display: flex; }

/* ---------------- Flipkart-style Category Browse Mode ---------------- */
.fk-breadcrumb { font-size: 13px; color: var(--brand-muted); margin-bottom: 14px; }
.fk-breadcrumb a { color: var(--bs-primary); font-weight: 600; }
.fk-breadcrumb span { margin: 0 6px; }

.fk-browse-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 768px) { .fk-browse-layout { grid-template-columns: 1fr; } }

.fk-sidebar { position: sticky; top: 90px; }
.fk-filter-box { background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.fk-filter-box h4 { font-size: 14px; font-weight: 800; color: var(--brand-primary-dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .3px; }
.fk-filter-link { display: block; padding: 6px 0; font-size: 13px; color: #1e2a32; border-bottom: 1px solid #f0f3f5; }
.fk-filter-link:last-child { border-bottom: none; }
.fk-filter-link:hover { color: var(--bs-primary); }
.fk-checkbox-row { display: block; font-size: 13px; font-weight: 500; padding: 4px 0; cursor: pointer; }

.fk-results-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
}
.fk-empty { background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 40px; text-align: center; color: var(--brand-muted); }

.fk-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fk-product-card {
    background: #fff; border: 1px solid var(--brand-border); border-radius: 10px; padding: 14px;
    display: block; color: #1e2a32; transition: box-shadow .2s, transform .2s; position: relative;
}
.fk-product-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.fk-img-wrap { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.fk-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fk-brand { font-size: 11px; color: var(--brand-muted); text-transform: uppercase; font-weight: 700; letter-spacing: .3px; }
.fk-name { font-size: 13px; font-weight: 600; margin: 4px 0 8px; line-height: 1.4; min-height: 36px; overflow: hidden; }
.fk-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fk-price { font-size: 17px; font-weight: 800; color: #1e2a32; }
.fk-mrp { font-size: 12px; color: var(--brand-muted); text-decoration: line-through; }
.fk-off { font-size: 12px; color: var(--brand-success); font-weight: 700; }
.fk-oos { margin-top: 6px; font-size: 11px; color: var(--danger); font-weight: 700; }

/* ---------------- Digital Marketing: Newsletter band ---------------- */
.newsletter-band { background: linear-gradient(120deg, var(--bs-primary), var(--brand-primary-dark)); padding: 34px 0; margin-top: 50px; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter-inner h3 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.newsletter-inner p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
    padding: 11px 16px; border: none; border-radius: 30px; min-width: 260px; outline: none; font-size: 14px;
}
.newsletter-form button {
    padding: 11px 24px; border: none; border-radius: 30px; background: var(--brand-accent);
    color: #fff; font-weight: 700; cursor: pointer; font-size: 14px;
}
.newsletter-form button:hover { opacity: .9; }
.newsletter-msg { margin-top: 12px; color: #fff; font-size: 14px; font-weight: 600; }
.newsletter-msg.err { color: #ffd7d2; }

/* ---------------- Digital Marketing: Floating WhatsApp button ---------------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 27px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); z-index: 1050; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------------- Digital Marketing: Product share buttons ---------------- */
.share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 600; color: var(--brand-muted); margin-right: 2px; }
.share-btn {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; border: none; cursor: pointer; transition: transform .15s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000; }
.share-btn.tg { background: #229ED9; }
.share-btn.copy { background: var(--brand-muted); }

/* ---------------- Flash Sale / Flash Offer Band ---------------- */
.flash-sale-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #1a0f2e, #3a0d4d, #7a1650);
    padding: 28px 0; color: #fff;
}
.flash-sale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.flash-sale-inner {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.flash-sale-tag {
    display: inline-block; background: var(--brand-accent); color: #fff; font-weight: 800;
    font-size: 12px; padding: 4px 12px; border-radius: 20px; letter-spacing: .5px; margin-bottom: 8px;
}
.flash-sale-text h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.flash-sale-text p { font-size: 13px; opacity: .85; margin: 0 0 8px; }
.flash-sale-discount { font-size: 22px; font-weight: 900; color: #ffd23f; letter-spacing: .5px; }

.flash-sale-countdown { display: flex; gap: 10px; }
.fc-box {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
    padding: 8px 14px; text-align: center; min-width: 58px;
}
.fc-box span { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.fc-box small { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }

.flash-sale-cta {
    background: #fff; color: #7a1650 !important; font-weight: 800; padding: 12px 26px;
    border-radius: 30px; text-decoration: none; font-size: 14px; white-space: nowrap;
}
.flash-sale-cta:hover { opacity: .9; }

@media (max-width: 768px) {
    .flash-sale-inner { flex-direction: column; text-align: center; }
    .flash-sale-countdown { justify-content: center; }
}

/* ---------------- Product Detail Page — enhanced ---------------- */
.zoom-wrapper { position: relative; }
.zoom-hint {
    position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.55); color: #fff;
    font-size: 11px; padding: 4px 10px; border-radius: 20px; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.zoom-wrapper:hover .zoom-hint { opacity: 1; }

.usp-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px;
    background: var(--brand-bg); border-radius: 10px; padding: 12px 6px;
}
.usp-strip div { text-align: center; font-size: 11px; font-weight: 600; color: var(--brand-primary-dark); }
.usp-strip i { display: block; font-size: 18px; margin-bottom: 4px; }

.pd-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brand-muted); }
.pd-title { font-size: 26px; font-weight: 800; margin: 4px 0 0; }
.pd-buy-form { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

.pd-accordion { margin-top: 24px; border-top: 1px solid var(--brand-border); }
.pd-acc-item { border-bottom: 1px solid var(--brand-border); }
.pd-acc-head {
    width: 100%; text-align: left; background: none; border: none; padding: 14px 4px;
    font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.pd-acc-head i { transition: transform .2s; font-size: 14px; color: var(--brand-muted); }
.pd-acc-item.open .pd-acc-head i { transform: rotate(180deg); }
.pd-acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 4px; }
.pd-acc-item.open .pd-acc-body { max-height: 1000px; padding-bottom: 16px; }

.pd-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-spec-table tr:nth-child(odd) { background: var(--brand-bg); }
.pd-spec-table td { padding: 8px 10px; }
.pd-spec-table .pd-spec-key { font-weight: 600; color: var(--brand-primary-dark); width: 40%; }

/* ---------------- Fullscreen zoom lightbox ---------------- */
.pd-lightbox {
    display: none; position: fixed; inset: 0; background: rgba(10,14,18,0.95); z-index: 2000;
    flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox-close {
    position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff;
    font-size: 34px; line-height: 1; cursor: pointer;
}
.pd-lightbox-stage { display: flex; align-items: center; gap: 16px; max-width: 900px; width: 100%; flex: 1; min-height: 0; }
.pd-lightbox-imgwrap {
    flex: 1; height: 100%; max-height: 75vh; overflow: hidden; display: flex; align-items: center; justify-content: center;
    cursor: zoom-in; border-radius: 8px;
}
.pd-lightbox-imgwrap.zoomed { cursor: zoom-out; }
.pd-lightbox-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .15s ease-out; }
.pd-lightbox-arrow {
    background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 32px; width: 46px; height: 46px;
    border-radius: 50%; cursor: pointer; flex-shrink: 0;
}
.pd-lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.pd-lightbox-thumbs { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.pd-lightbox-thumbs img {
    width: 56px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; flex-shrink: 0;
    border: 2px solid transparent;
}
.pd-lightbox-thumbs img.active { opacity: 1; border-color: #fff; }

@media (max-width: 640px) {
    .pd-lightbox-stage { flex-direction: column; }
    .pd-lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
    .pd-lightbox-arrow.prev { left: 8px; } .pd-lightbox-arrow.next { right: 8px; }
    .usp-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Admin Product Form: image gallery + lightbox ---------------- */
.admin-gallery-thumb {
    width: 76px; height: 76px; object-fit: cover; border-radius: 8px; cursor: zoom-in;
    border: 2px solid transparent; transition: transform .15s, border-color .15s;
}
.admin-gallery-thumb:hover { transform: scale(1.05); }
.admin-gallery-thumb.is-primary { border-color: var(--bs-primary); }

.admin-lightbox {
    display: none; position: fixed; inset: 0; background: rgba(10,14,18,0.95); z-index: 2000;
    align-items: center; justify-content: center; padding: 20px;
}
.admin-lightbox.open { display: flex; }
.admin-lightbox-close {
    position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff;
    font-size: 34px; line-height: 1; cursor: pointer; z-index: 2001;
}
.admin-lightbox-stage { display: flex; align-items: center; gap: 16px; max-width: 900px; width: 100%; }
.admin-lightbox-imgwrap {
    flex: 1; max-height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center;
    cursor: zoom-in; border-radius: 8px;
}
.admin-lightbox-imgwrap.zoomed { cursor: zoom-out; }
.admin-lightbox-imgwrap img { max-width: 100%; max-height: 80vh; object-fit: contain; transition: transform .15s ease-out; }
.admin-lightbox-arrow {
    background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 32px; width: 46px; height: 46px;
    border-radius: 50%; cursor: pointer; flex-shrink: 0;
}
.admin-lightbox-arrow:hover { background: rgba(255,255,255,0.2); }

/* ---------------- Bullet list (Description) ---------------- */
.bullet-list { list-style: none; padding: 0; margin: 0; }
.bullet-list li { padding: 6px 0; font-size: 14px; line-height: 1.5; border-bottom: 1px dashed var(--brand-border); }
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li i { color: var(--bs-primary); margin-right: 8px; }

/* ---------------- Product Comparison ---------------- */
.compare-btn {
    position: absolute; top: 10px; left: 10px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--brand-muted); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer; transition: transform .15s, color .15s;
}
.compare-btn:hover { transform: scale(1.1); }
.compare-btn.active { color: var(--bs-primary); background: #fff; }

.compare-float-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--brand-primary-dark); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,0.15);
}
.compare-float-bar a.btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.compare-float-bar a.btn-outline:hover { background: rgba(255,255,255,0.1); }

.compare-table th, .compare-table td { text-align: center; vertical-align: middle; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }

/* ---------------- Quick Add to Cart (product cards) ---------------- */
.quick-add-btn {
    position: absolute; bottom: 10px; right: 10px; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: var(--brand-primary-dark, #0f7ea3); color: #fff; display: flex;
    align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); cursor: pointer; transition: transform .15s, background .15s;
}
.quick-add-btn:hover { transform: scale(1.1); background: var(--brand-primary, #139dcf); }
.quick-add-btn:disabled { opacity: .6; cursor: default; transform: none; }
.quick-add-btn.added { background: var(--brand-success, #2e9e4c); }

.cart-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    background: #1e2a32; color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 2000; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 8px;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast a { color: #8fd4ff; font-weight: 700; text-decoration: underline; }

/* ---------------- Shop by Category tiles ---------------- */
.category-tiles-section { margin: 10px 0 44px; }
.category-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.category-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 18px 10px; background: #fff; border: 1px solid var(--brand-border);
    border-radius: 12px; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.1); }
.category-tile .cat-tile-img-wrap {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: 10px;
    background: var(--brand-bg-soft, #eef6fa); display: flex; align-items: center; justify-content: center;
    font-size: 30px;
}
.category-tile .cat-tile-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-tile .cat-tile-name { font-weight: 700; font-size: 13.5px; color: #1e2a32; }

/* ---------------- Mobile bottom nav bar ---------------- */
.mobile-bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: #fff; border-top: 1px solid var(--brand-border); box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.mobile-bottom-nav .mbn-inner { display: flex; }
.mobile-bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 7px 0 6px; color: var(--brand-muted, #667); text-decoration: none; font-size: 10.5px;
    position: relative; gap: 2px;
}
.mobile-bottom-nav a i { font-size: 19px; }
.mobile-bottom-nav a.active { color: var(--brand-primary-dark, #0f7ea3); }
.mobile-bottom-nav .mbn-badge {
    position: absolute; top: 2px; right: 20%; background: var(--danger, #e3342f); color: #fff;
    font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
@media (max-width: 767px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 58px; }
    .whatsapp-float { bottom: 70px; }
    .compare-float-bar { bottom: 58px; }
}
