/*
Theme Name: ViperGadgetV2.5
Theme URI: https://facebook.com/vipergadget
Author: Md Shimul Hasan Boni
Description: Magenta/Pink & Dark Navy modern WooCommerce theme (V2.5) — 100% identical design with full WordPress Customizer & Elementor Page Builder support (Header, Footer, Colors, Hero Banner, Sections, Single Product & All Text/Links customizable).
Version: 2.5.0
Text Domain: vipergadgetv2-5
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
    --primary: #d8006c;
    --primary-hover: #b30059;
    --primary-soft: #fce7f3;
    --primary-border: #f9a8d4;
    --dark-navy: #111827;
    --dark-bar: #0f172a;
    --bg: #f4f5f8;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --gold: #f59e0b;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --whatsapp: #25d366;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Smooth Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: vg2-spin 0.7s linear infinite;
}

@keyframes vg2-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   1. TOP UTILITY BAR (Dark Navy)
   ========================================================= */
.top-utility-bar {
    background: var(--dark-bar);
    color: #e5e7eb;
    font-size: 12.5px;
    padding: 7px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
}

.top-bar-item:hover {
    color: #fff;
}

/* =========================================================
   2. MAIN STICKY HEADER
   ========================================================= */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-trigger,
.mobile-back-trigger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
    white-space: nowrap;
}

.logo-bolt-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(216, 0, 108, 0.28);
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

/* Pill-Shaped Category + Search Bar */
.pill-search-form {
    flex: 1 1 420px;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-pill);
    padding: 3px;
    box-shadow: 0 2px 8px rgba(216, 0, 108, 0.08);
}

.pill-cat-select {
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-right: 1px solid var(--border);
    outline: none;
    cursor: pointer;
    max-width: 155px;
}

.pill-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 13.5px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.pill-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pill-search-btn:hover {
    background: var(--primary-hover);
}

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-search-icon-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px;
    font-size: 11px;
    font-weight: 700;
}

.lang-pill span {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    color: var(--muted);
}

.lang-pill span.active {
    background: var(--primary);
    color: #fff;
}

.account-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.account-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(216, 0, 108, 0.25);
}

.cart-pill-btn:hover {
    background: var(--primary-hover);
}

.cart-count-dot {
    background: var(--dark-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   3. HERO PROMO BANNER (Homepage & Shop Page)
   ========================================================= */
.hero-section {
    margin-top: 18px;
}

.hero-card {
    background: radial-gradient(circle at 80% 50%, #f43f8e 0%, #c80064 52%, #880044 100%);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(200, 0, 100, 0.18);
}

.hero-content h1 {
    font-size: clamp(26px, 4.4vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0.96;
}

.btn-yellow-cta {
    display: inline-block;
    background: #facc15;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-yellow-cta:hover {
    background: #fde047;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-box {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

/* =========================================================
   4. CATEGORY ICON GRID & SECTION HEADERS
   ========================================================= */
.section-block {
    margin-top: 30px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-heading-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.title-icon-pink {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.view-all-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
}

.view-all-link:hover {
    text-decoration: underline;
}

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

.cat-tile-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cat-tile-btn:hover,
.cat-tile-btn.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(216, 0, 108, 0.1);
}

.cat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cat-tile-btn.active .cat-icon-circle,
.cat-tile-btn:hover .cat-icon-circle {
    background: var(--primary);
    color: #fff;
}

.cat-tile-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* =========================================================
   5. FLASH SALE STRIP + COUNTDOWN TIMER
   ========================================================= */
.flash-sale-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 28px;
}

.flash-pill-badge {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.countdown-boxes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.time-box {
    background: var(--dark-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 30px;
    text-align: center;
}

/* =========================================================
   6. 5-COLUMN PRODUCT CARDS & LOAD MORE BUTTON
   ========================================================= */
.product-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.vg-product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vg-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.card-top-media {
    position: relative;
    width: 100%;
    height: 175px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 10px;
}

.card-top-media img {
    max-height: 155px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.vg-product-card:hover .card-top-media img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 2;
}

.wishlist-circle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.wishlist-circle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.card-rating {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.card-rating .star {
    color: var(--gold);
    font-weight: 700;
}

.vg-product-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.vg-product-price {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.vg-product-price del {
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 500;
    margin-left: 5px;
}

.vg-product-price ins {
    text-decoration: none;
}

.dual-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-buy-now:hover {
    background: var(--primary-hover);
}

.btn-add-cart-soft {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 12px;
    background: #f3f4f6;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-add-cart-soft:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
}

/* Load More Button */
.load-more-wrap {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

.btn-load-more {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 32px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(216, 0, 108, 0.24);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   7. SINGLE PRODUCT DETAILS PAGE (EXACT SMARTZONE SCREENSHOT)
   ========================================================= */
.vg2-single-product-wrap {
    margin-top: 16px;
}

.vg2-sp-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
    align-items: start;
}

/* White Rounded Card Box (Matches Screenshot) */
.vg2-sp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
}

/* Custom Interactive Gallery: Left Vertical Thumbnails + Main Stage */
.vg2-gallery-layout {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.vg2-thumbs-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: none;
}

.vg2-thumbs-column::-webkit-scrollbar {
    display: none;
}

.vg2-thumb-item {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #f9fafb;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vg2-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.vg2-thumb-item.active,
.vg2-thumb-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(216, 0, 108, 0.16);
}

.vg2-main-stage {
    position: relative;
    background: #f8f9fb;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.vg2-main-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vg2-sp-discount-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e11d48;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 4;
}

.vg2-sp-top-right-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.vg2-circle-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vg2-circle-icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.vg2-gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vg2-gal-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vg2-gal-arrow.prev {
    left: 10px;
}

.vg2-gal-arrow.next {
    right: 10px;
}

.vg2-gal-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    z-index: 4;
}

/* Right Info Card */
.vg2-sp-cat-badge {
    display: inline-block;
    background: #f3f4f6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

.vg2-sp-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 8px;
}

.vg2-sp-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.vg2-sp-stars {
    color: var(--gold);
    letter-spacing: 1px;
    font-size: 15px;
}

.vg2-sp-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vg2-sp-price-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.vg2-sp-price-main del {
    font-size: 17px;
    font-weight: 500;
    color: #9ca3af;
    margin-left: 8px;
}

.vg2-sp-price-main ins {
    text-decoration: none;
}

.vg2-sp-save-pill {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Variations Swatch Styling (Matches Screenshot Chips with Checkmark Corner) */
.woocommerce div.product form.cart .variations {
    margin-bottom: 14px !important;
    width: 100%;
    border: none;
}

.woocommerce div.product form.cart .variations tr {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.woocommerce div.product form.cart .variations th.label {
    padding: 0 !important;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    min-width: 72px;
}

.woocommerce div.product form.cart .variations td.value {
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vg2-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vg2-swatch-chip {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.vg2-swatch-chip.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f9;
}

.vg2-swatch-chip.selected::after {
    content: "✓";
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    padding: 2px 4px;
    border-top-left-radius: 6px;
    border-bottom-right-radius: 7px;
}

/* Quantity Stepper + Green Stock Box Side-by-Side (Matches Screenshot) */
.vg2-qty-stock-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 16px;
    width: 100%;
}

.vg2-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 6px;
    height: 46px;
}

.vg2-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg2-qty-stepper .quantity {
    margin: 0 !important;
}

.vg2-qty-stepper .quantity input.qty {
    width: 40px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: var(--text) !important;
    -moz-appearance: textfield;
}

.vg2-qty-stepper .quantity input.qty::-webkit-outer-spin-button,
.vg2-qty-stepper .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vg2-stock-pill-box {
    background: var(--green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #15803d;
    min-height: 46px;
}

.vg2-stock-main-line {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vg2-stock-sub-line {
    font-size: 11px;
    font-weight: 500;
    color: #166534;
}

/* Desktop Dual Action Buttons ("এখনই অর্ডার করুন" + "কার্টে যোগ করুন") */
.vg2-sp-desktop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.vg2-sp-order-now-btn {
    height: 46px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(216, 0, 108, 0.25);
}

.vg2-sp-order-now-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.woocommerce div.product form.cart .single_add_to_cart_button.vg2-sp-add-cart-btn {
    height: 46px !important;
    border-radius: var(--radius-pill) !important;
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 18px !important;
    margin: 0 !important;
    cursor: pointer;
}

.woocommerce div.product form.cart .single_add_to_cart_button.vg2-sp-add-cart-btn:hover {
    background: var(--primary-soft) !important;
}

/* Meta Lines (SKU কোড, ক্যাটাগরি, ট্যাগসমূহ) */
.vg2-sp-meta-box {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
}

.vg2-meta-row strong {
    color: var(--text);
    font-weight: 700;
    margin-right: 4px;
}

.vg2-meta-row span,
.vg2-meta-row a {
    color: var(--primary);
    font-weight: 600;
}

/* Pill Tabs Section Below */
.vg2-sp-tabs-section {
    margin-top: 20px;
}

.vg2-tabs-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vg2-tab-pill-btn {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.vg2-tab-pill-btn.active {
    border-color: var(--primary);
    background: #fff5f9;
    color: var(--primary);
}

.vg2-tab-panel {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.vg2-tab-panel.active {
    display: block;
}

/* Mobile Sticky Bottom Action Bar for Single Product (Matches Screenshot Bottom Bar) */
.vg2-sp-mobile-sticky-bar {
    display: none;
}

/* General WooCommerce Page Wrapper (Cart, Checkout, My Account) */
.wc-page-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

/* =========================================================
   8. SLIDE-OUT DRAWERS (LEFT CATEGORIES & RIGHT MINI CART)
   ========================================================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: var(--surface);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.side-drawer.left {
    left: 0;
    transform: translateX(-100%);
}

.side-drawer.right {
    right: 0;
    transform: translateX(100%);
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-head-dark {
    background: var(--dark-navy);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-head-light {
    background: var(--surface);
    color: var(--text);
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.drawer-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.drawer-cat-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.drawer-cat-count {
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    color: var(--muted);
}

.widget_shopping_cart_content .cart_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget_shopping_cart_content .mini_cart_item {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
    font-size: 13px;
}

.widget_shopping_cart_content .mini_cart_item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: var(--bg);
    border-radius: 6px;
    padding: 4px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a {
    width: 100%;
    text-align: center;
    padding: 11px;
    border-radius: var(--radius-pill) !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* =========================================================
   9. DARK NAVY FOOTER & FLOATING WHATSAPP
   ========================================================= */
.site-footer {
    background: var(--dark-navy);
    color: #d1d5db;
    padding: 46px 0 22px;
    margin-top: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #9ca3af;
    margin-bottom: 18px;
}

.social-circles {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.social-circle:hover {
    background: var(--primary);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-list a:hover {
    color: var(--primary-border);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9ca3af;
}

.payment-pills {
    display: flex;
    gap: 6px;
}

.pay-tag {
    background: #1f2937;
    color: #e5e7eb;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 78px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    z-index: 9980;
}

.floating-whatsapp:hover {
    transform: scale(1.06);
}

.mobile-bottom-nav {
    display: none;
}

/* =========================================================
   10. TABLET & MOBILE RESPONSIVE RULES
   ========================================================= */
@media (max-width: 1100px) {
    .category-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
    }

    .top-utility-bar {
        display: none;
    }

    .mobile-menu-trigger {
        display: inline-flex;
    }

    body.single-product .mobile-menu-trigger {
        display: none;
    }

    body.single-product .mobile-back-trigger {
        display: inline-flex;
    }

    .header-main {
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 10px;
    }

    .pill-search-form {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    body.single-product .pill-search-form {
        display: none;
    }

    body.single-product .pill-search-form.is-mobile-open {
        display: flex;
    }

    body.single-product .mobile-search-icon-btn {
        display: inline-flex;
    }

    .pill-cat-select,
    .cart-pill-btn {
        display: none;
    }

    .account-pill-btn span.acc-label {
        display: none;
    }

    .account-pill-btn {
        padding: 6px 9px;
        border: none;
        font-size: 18px;
    }

    .hero-card {
        grid-template-columns: 1fr;
        padding: 26px 20px;
    }

    .hero-visual {
        display: none;
    }

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

    .cat-tile-btn {
        padding: 12px 4px;
    }

    .cat-icon-circle {
        width: 38px;
        height: 38px;
    }

    .cat-tile-name {
        font-size: 11px;
    }

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

    .card-top-media {
        height: 140px;
    }

    .card-top-media img {
        max-height: 125px;
    }

    /* Single Product Mobile Layout (Matches Screenshot 100%) */
    .vg2-sp-top-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vg2-sp-card {
        padding: 14px;
    }

    .vg2-gallery-layout {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
    }

    .vg2-thumb-item {
        width: 52px;
        height: 52px;
    }

    .vg2-sp-desktop-actions {
        display: none;
    }

    .vg2-sp-mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 66px;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 8px 12px;
        display: grid;
        grid-template-columns: 54px 1fr 1fr;
        gap: 8px;
        align-items: center;
        z-index: 9995;
        box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
    }

    .vg2-sticky-shop-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        gap: 2px;
    }

    .vg2-sticky-order-btn {
        height: 44px;
        border-radius: var(--radius-pill);
        background: var(--primary);
        color: #fff;
        font-size: 13.5px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: none;
        cursor: pointer;
    }

    .vg2-sticky-cart-btn {
        height: 44px;
        border-radius: var(--radius-pill);
        background: var(--surface);
        color: var(--primary);
        border: 1.5px solid var(--primary);
        font-size: 13.5px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
    }

    body.single-product .mobile-bottom-nav {
        display: none;
    }

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

    .floating-whatsapp {
        bottom: 78px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--surface);
        border-top: 1px solid var(--border);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        z-index: 9990;
        box-shadow: 0 -4px 14px rgba(17, 24, 39, 0.08);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 600;
        color: var(--muted);
        gap: 3px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: var(--primary);
    }

    .mobile-nav-badge {
        position: absolute;
        top: 4px;
        right: 22%;
        background: var(--primary);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 999px;
    }
}


/* Product Attributes Display (Color, Size, etc. for both Simple & Variable Products) */
.vg2-sp-attributes-box {
    margin: 14px 0 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vg2-attr-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vg2-attr-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    min-width: 72px;
}

.vg2-attr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vg2-attr-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    line-height: 1.3;
}

.vg2-swatch-chip.disabled,
.vg2-swatch-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.woocommerce div.product form.cart .reset_variations {
    font-size: 12px;
    color: var(--muted);
    margin-left: 6px;
    text-decoration: underline;
}


.vg2-attr-pill.is-selectable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.vg2-attr-pill.is-selectable:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vg2-attr-pill.is-selectable.selected {
    border-color: var(--primary);
    background: #fff5f9;
    color: var(--primary);
    font-weight: 700;
}

.vg2-attr-pill.is-selectable.selected::after {
    content: "✓";
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    padding: 2px 4px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 6px;
}

.vg2-attr-required-star {
    color: #e11d48;
    margin-left: 2px;
    font-weight: 700;
}

.vg2-attr-error-msg {
    color: #e11d48;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 4px;
}


/* =========================================================
   ELEMENTOR PAGE BUILDER & FULL-WIDTH TEMPLATE SUPPORT (V2.4)
   ========================================================= */
.elementor-page .site-header,
.elementor-page .site-footer {
    z-index: 999;
}
.vg2-elementor-fullwidth {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}
.elementor-location-header,
.elementor-location-footer {
    width: 100%;
}

/* =========================================================
   CHECKOUT PAGE ENHANCEMENT & FIELD EDITOR COMPATIBILITY (V2.5)
   ========================================================= */
.woocommerce-checkout .wc-page-shell {
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.woocommerce-checkout #customer_details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
}

.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-soft);
}

.woocommerce-checkout .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Order Review Box */
.woocommerce-checkout #order_review_heading {
    display: none;
}

.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
    background: #f8fafc;
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 22px;
    position: sticky;
    top: 90px;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    border: none !important;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 14px;
}

.woocommerce-checkout #payment {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    padding: 16px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border) !important;
    padding: 0 0 12px 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: var(--primary-soft) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--primary-soft) !important;
}

.woocommerce-checkout #place_order {
    width: 100%;
    height: 48px;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-pill) !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 6px 16px rgba(216, 0, 108, 0.25);
}

.woocommerce-checkout #place_order:hover {
    background: var(--primary-hover) !important;
}

@media (max-width: 900px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce-checkout #order_review {
        position: static;
    }
    .woocommerce-checkout .wc-page-shell {
        padding: 16px;
    }
}
