/*
Theme Name: JustBuying Theme
Theme URI: https://justbuying.in
Description: Premium multi-category e-commerce marketplace theme for JustBuying - built on Astra
Author: JustBuying
Author URI: https://justbuying.in
Template: astra
Version: 1.0.0
Text Domain: justbuying-theme
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --jb-primary: #0B2D6B;
    --jb-primary-dark: #081F4A;
    --jb-primary-light: #1A4A9E;
    --jb-secondary: #FF6B00;
    --jb-secondary-dark: #E55F00;
    --jb-secondary-light: #FF8534;
    --jb-bg: #F8FAFC;
    --jb-card-bg: #FFFFFF;
    --jb-text-primary: #1E293B;
    --jb-text-secondary: #64748B;
    --jb-text-light: #94A3B8;
    --jb-border: #E2E8F0;
    --jb-success: #10B981;
    --jb-danger: #EF4444;
    --jb-warning: #F59E0B;
    --jb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --jb-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --jb-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --jb-shadow-hover: 0 12px 32px rgba(0,0,0,0.15);
    --jb-radius-sm: 8px;
    --jb-radius-md: 12px;
    --jb-radius-lg: 16px;
    --jb-radius-xl: 24px;
    --jb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jb-max-width: 1280px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    overflow-x: clip !important;
    overflow-y: auto !important;
}

body.jb-site {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--jb-bg);
    color: var(--jb-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* Hide Astra default header/footer on ALL pages (we use custom header.php/footer.php) */
body.jb-site .ast-above-header-wrap,
body.jb-site .ast-below-header-wrap,
body.jb-site #ast-desktop-header,
body.jb-site #ast-mobile-header,
body.jb-site .site-header,
body.jb-site .main-header-bar-wrap,
body.jb-site .main-header-bar,
body.jb-site .ast-header-break-point .main-header-bar,
body.jb-site .ast-footer-overlay,
body.jb-site .site-footer,
body.jb-site #colophon,
body.jb-site .ast-small-footer,
body.jb-site .ast-small-footer-wrap,
body.jb-site .site-below-footer-wrap,
body.jb-site .ast-above-footer-wrap,
body.jb-site .ast-footer-copyright,
body.jb-site .hfe-header,
body.jb-site .ehf-header,
body.jb-site .ehf-footer,
body.jb-site .hfe-footer,
body.jb-site .ast-header-stacked,
body.jb-site .ast-primary-header-bar,
body.jb-site .ast-builder-layout-element,
body.jb-site header.site-header,
body.jb-site footer.site-footer {
    display: none !important;
}

/* === Homepage-specific: full-width container overrides === */
body.jb-homepage .site-content,
body.jb-homepage .ast-container,
body.jb-homepage .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}

body.jb-homepage #primary,
body.jb-homepage .ast-primary-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
}

body.jb-homepage .entry-content,
body.jb-homepage .page-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.jb-homepage .ast-article-single,
body.jb-homepage article.page,
body.jb-homepage article.post {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove Astra sidebar on homepage */
body.jb-homepage #secondary,
body.jb-homepage .ast-sidebar,
body.jb-homepage .widget-area {
    display: none !important;
}

/* Fix Astra's flex layout that constrains width */
body.jb-homepage .ast-container {
    display: block !important;
    flex-wrap: nowrap !important;
}

body.jb-homepage .ast-separate-container .ast-article-post,
body.jb-homepage .ast-separate-container .ast-article-single,
body.jb-homepage .ast-separate-container .ast-article-page {
    background: transparent !important;
    padding: 0 !important;
}

/* Override Astra's page-level max-width */
body.jb-homepage .site-main,
body.jb-homepage .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove Elementor wrapper constraints if Elementor wraps content */
body.jb-homepage .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}
body.jb-homepage .elementor-widget-wrap {
    padding: 0 !important;
}

/* Ensure our homepage wrapper is full width */
.jb-homepage-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--jb-transition); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.jb-container {
    max-width: var(--jb-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.jb-section {
    padding: 48px 0;
}

.jb-section--alt {
    background: var(--jb-card-bg);
}

.jb-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.jb-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--jb-text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.jb-section-title span {
    color: var(--jb-secondary);
}

.jb-section-subtitle {
    font-size: 15px;
    color: var(--jb-text-secondary);
    margin: 0;
}

.jb-section-footer {
    text-align: center;
    margin-top: 32px;
}

.jb-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jb-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--jb-transition);
}
.jb-view-all:hover {
    gap: 12px;
    color: var(--jb-secondary-dark);
}

/* Buttons */
.jb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--jb-transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.jb-btn--primary {
    background: var(--jb-secondary);
    color: #fff;
    padding: 14px 32px;
}
.jb-btn--primary:hover {
    background: var(--jb-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.35);
    color: #fff;
}

.jb-btn--outline {
    border: 2px solid var(--jb-primary);
    color: var(--jb-primary);
    padding: 12px 32px;
    background: transparent;
}
.jb-btn--outline:hover {
    background: var(--jb-primary);
    color: #fff;
}

.jb-btn--secondary-hero {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 12px 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.jb-btn--secondary-hero:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.jb-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.jb-header--sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: jb-slideDown 0.3s ease;
}
.jb-header--sticky .jb-header__top { display: none; }
.jb-header--sticky .jb-header__main { box-shadow: var(--jb-shadow-md); }

@keyframes jb-slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Top Bar */
.jb-header__top {
    background: var(--jb-primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}

.jb-header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jb-header__top-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.jb-header__top-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jb-header__top-right {
    display: flex;
    gap: 20px;
}

.jb-header__top-right a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}
.jb-header__top-right a:hover {
    color: var(--jb-secondary);
}

/* Main Header */
.jb-header__main {
    background: var(--jb-primary);
    padding: 12px 0;
    transition: var(--jb-transition);
}

.jb-header__main-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.jb-header__logo {
    flex-shrink: 0;
}
.jb-header__logo img {
    max-height: 40px;
    width: auto;
}
.jb-header__logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.jb-header__logo-text span {
    color: var(--jb-secondary);
}

/* Header Search */
.jb-header__search {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--jb-radius-sm);
    overflow: hidden;
    max-width: 640px;
}

.jb-header__search-cat {
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: var(--jb-text-secondary);
    background: #f8f9fb;
    border-right: 1px solid var(--jb-border);
    cursor: pointer;
    outline: none;
    min-width: 140px;
    font-family: inherit;
}

.jb-header__search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    font-family: inherit;
}
.jb-header__search-input::placeholder {
    color: var(--jb-text-light);
}

.jb-header__search-btn {
    background: var(--jb-secondary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--jb-transition);
}
.jb-header__search-btn:hover {
    background: var(--jb-secondary-dark);
}

/* Header Actions */
.jb-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.jb-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    gap: 2px;
    transition: var(--jb-transition);
}
.jb-header__action:hover {
    color: var(--jb-secondary);
}

.jb-header__cart {
    position: relative;
}
.jb-header__cart-count {
    position: absolute;
    top: -6px;
    right: 4px;
    background: var(--jb-secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jb-header__wishlist {
    position: relative;
}
.jb-header__wishlist-count {
    position: absolute;
    top: -6px;
    right: 4px;
    background: var(--jb-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Toggle */
.jb-header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.jb-header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--jb-transition);
}
.jb-header__menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.jb-header__menu-toggle.active span:nth-child(2) { opacity: 0; }
.jb-header__menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Category Nav */
.jb-header__nav {
    background: var(--jb-primary-light);
}

.jb-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.jb-header__nav-list::-webkit-scrollbar { display: none; }

.jb-header__nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    white-space: nowrap;
    transition: var(--jb-transition);
}
.jb-header__nav-list li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.jb-header__nav-highlight a {
    color: var(--jb-secondary) !important;
    font-weight: 600 !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.jb-hero {
    background: linear-gradient(135deg, #0B2D6B 0%, #1A4A9E 40%, #0f3a82 70%, #0B2D6B 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 48px 0;
}

.jb-hero__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.jb-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}
.jb-hero__shape--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
    animation: jb-float 8s ease-in-out infinite;
}
.jb-hero__shape--2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 10%;
    animation: jb-float 10s ease-in-out infinite reverse;
}
.jb-hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 60%;
    animation: jb-float 6s ease-in-out infinite;
}

@keyframes jb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.jb-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.jb-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.jb-hero__title span {
    color: var(--jb-secondary);
}

.jb-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.jb-hero__search {
    display: flex;
    width: 100%;
    max-width: 580px;
    margin: 0 auto 28px;
    background: #fff;
    border-radius: 56px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.jb-hero__search input {
    flex: 1;
    width: 100%;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    outline: none;
    min-width: 0;
    font-family: inherit;
    transition: opacity 0.2s;
}
.jb-hero__search input.jb-fade-out {
    opacity: 0.3;
}
.jb-hero__search input::placeholder {
    color: var(--jb-text-light);
}

.jb-hero__search button {
    background: var(--jb-secondary);
    color: #fff;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 56px 56px 0;
    transition: var(--jb-transition);
    font-family: inherit;
    white-space: nowrap;
}
.jb-hero__search button:hover {
    background: var(--jb-secondary-dark);
}

/* Hero CTA */
.jb-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Hero Category Pills */
.jb-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.jb-hero__pill {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: var(--jb-transition);
    border: 1px solid rgba(255,255,255,0.15);
}
.jb-hero__pill:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   TRUST BADGES
   ============================================ */
.jb-trust {
    background: var(--jb-card-bg);
    border-bottom: 1px solid var(--jb-border);
    padding: 16px 0;
}

.jb-trust__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.jb-trust__grid::-webkit-scrollbar { display: none; }

.jb-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 8px 0;
}

.jb-trust__icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--jb-secondary), var(--jb-secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.jb-trust__item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jb-text-primary);
    white-space: nowrap;
}

.jb-trust__item span {
    font-size: 12px;
    color: var(--jb-text-secondary);
    white-space: nowrap;
}

/* ============================================
   SHOP BY CATEGORY
   ============================================ */
.jb-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.jb-category-card {
    display: flex;
    flex-direction: column;
    background: var(--jb-card-bg);
    border-radius: var(--jb-radius-md);
    transition: var(--jb-transition);
    border: 1px solid var(--jb-border, transparent);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}
.jb-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jb-shadow-hover);
    border-color: var(--jb-secondary);
}

.jb-category-card__image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    transition: transform 0.3s ease;
}

.jb-category-card:hover .jb-category-card__image {
    transform: scale(1.05);
}

.jb-category-card__content {
    padding: 16px;
    text-align: center;
    background: var(--jb-card-bg);
    position: relative;
    z-index: 2;
}

.jb-category-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--jb-text-primary);
    margin: 0 0 4px;
}

.jb-category-card__count {
    font-size: 13px;
    color: var(--jb-text-secondary);
}

/* ============================================
   FLASH DEALS
   ============================================ */
.jb-flash-deals {
    background: linear-gradient(180deg, var(--jb-bg) 0%, #EFF6FF 100%);
}

.jb-flash-deals__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.jb-flash-deals__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.jb-flash-deals__header-left .jb-section-title {
    margin: 0;
    text-align: left;
}

.jb-flash-deals__header-badge {
    background: var(--jb-danger);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    animation: jb-pulse 2s ease-in-out infinite;
}

@keyframes jb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Countdown */
.jb-countdown {
    display: flex;
    gap: 8px;
}

.jb-countdown__item {
    background: var(--jb-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--jb-radius-sm);
    text-align: center;
    min-width: 54px;
}

.jb-countdown__value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--jb-transition);
}
.jb-countdown__value.jb-flip {
    animation: jb-flipDigit 0.3s ease;
}

@keyframes jb-flipDigit {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.jb-countdown__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Flash Deals Wrapper */
.jb-flash-deals__wrapper {
    position: relative;
    padding: 0 28px;
    overflow: visible;
}

.jb-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jb-card-bg);
    border: 1px solid var(--jb-border);
    box-shadow: var(--jb-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--jb-transition);
    color: var(--jb-text-primary);
    padding: 0;
    line-height: 1;
}
.jb-scroll-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
}
.jb-scroll-btn:hover {
    background: var(--jb-primary);
    color: #fff;
    border-color: var(--jb-primary);
    box-shadow: var(--jb-shadow-lg);
    transform: translateY(-50%) scale(1.1);
}
.jb-scroll-left { left: -22px; }
.jb-scroll-right { right: -22px; }

.jb-flash-deals__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 4px;
    cursor: grab;
}
.jb-flash-deals__scroll::-webkit-scrollbar { display: none; }
.jb-flash-deals__scroll > * {
    
    flex-shrink: 0;
    width: 260px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.jb-product-card {
    background: var(--jb-card-bg);
    border-radius: var(--jb-radius-md);
    overflow: hidden;
    box-shadow: var(--jb-shadow-sm);
    transition: var(--jb-transition);
    border: 1px solid var(--jb-border);
}
.jb-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jb-shadow-hover);
    border-color: transparent;
}

.jb-product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fb;
}
.jb-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.jb-product-card:hover .jb-product-card__image img {
    transform: scale(1.08);
}

.jb-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.jb-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--jb-danger);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
}
.jb-product-card__badge--new {
    background: var(--jb-success);
}
.jb-product-card__badge--featured {
    background: var(--jb-primary);
}

.jb-product-card__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--jb-transition);
    color: var(--jb-text-secondary);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}
.jb-product-card__wishlist svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    display: block;
    flex-shrink: 0;
}
.jb-product-card:hover .jb-product-card__wishlist {
    opacity: 1;
    transform: translateY(0);
}
.jb-product-card__wishlist:hover {
    color: var(--jb-danger);
    background: #fff;
}
.jb-product-card__wishlist:hover svg {
    fill: var(--jb-danger);
}

/* YITH Wishlist integration inside product cards */
.jb-product-card__wishlist .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    position: static !important;
}
.jb-product-card__wishlist .yith-wcwl-add-button a,
.jb-product-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
.jb-product-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--jb-text-secondary) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    border-radius: 50%;
    transition: var(--jb-transition);
}
.jb-product-card__wishlist .yith-wcwl-add-button a::before,
.jb-product-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.jb-product-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.jb-product-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
.jb-product-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
    color: var(--jb-danger) !important;
}
.jb-product-card__wishlist .yith-wcwl-add-button a:hover {
    color: var(--jb-danger) !important;
}
.jb-product-card__wishlist .yith-wcwl-add-to-wishlist .feedback,
.jb-product-card__wishlist .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse span,
.jb-product-card__wishlist .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse span {
    display: none !important;
}

.jb-product-card__body {
    padding: 14px 16px 8px;
}

.jb-product-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--jb-text-primary);
}
.jb-product-card__title a {
    color: inherit;
}
.jb-product-card__title a:hover {
    color: var(--jb-secondary);
}

.jb-product-card__rating-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.jb-product-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.jb-product-card__review-count {
    font-size: 12px;
    color: var(--jb-text-light);
}

.jb-product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.jb-product-card__price ins {
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--jb-primary);
}
.jb-product-card__price del {
    font-size: 13px;
    color: var(--jb-text-light);
}
.jb-product-card__price .woocommerce-Price-amount {
    font-weight: 700;
    color: var(--jb-primary);
}
.jb-product-card__price .woocommerce-Price-amount bdi {
    font-weight: 700;
}
.jb-product-card__price del .woocommerce-Price-amount {
    font-weight: 400;
    color: var(--jb-text-light);
    font-size: 13px;
}

.jb-price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--jb-primary);
}
.jb-price-original {
    font-size: 13px;
    color: var(--jb-text-light);
    text-decoration: line-through;
}

.jb-product-card__actions {
    padding: 8px 16px 14px;
}

.jb-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--jb-primary);
    color: #fff;
    border: none;
    border-radius: var(--jb-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jb-transition);
    font-family: inherit;
    text-decoration: none;
}
.jb-btn-cart:hover {
    background: var(--jb-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.jb-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ============================================
   TOP BRANDS
   ============================================ */
.jb-brands {
    background: var(--jb-card-bg);
    overflow: hidden;
}

.jb-brands__track {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.jb-brands__track::before,
.jb-brands__track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.jb-brands__track::before {
    left: 0;
    background: linear-gradient(to right, var(--jb-card-bg), transparent);
}
.jb-brands__track::after {
    right: 0;
    background: linear-gradient(to left, var(--jb-card-bg), transparent);
}

.jb-brands__list {
    display: flex;
    gap: 32px;
    animation: jb-marquee 40s linear infinite;
    width: max-content;
}

@keyframes jb-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.jb-brands__item {
    flex-shrink: 0;
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jb-bg);
    border-radius: var(--jb-radius-sm);
    transition: var(--jb-transition);
    border: 1px solid var(--jb-border);
}
.jb-brands__item:hover {
    border-color: var(--jb-secondary);
    box-shadow: var(--jb-shadow-sm);
}

.jb-brands__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--jb-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.jb-brands__item:hover .jb-brands__name {
    color: var(--jb-primary);
}

/* ============================================
   VENDOR CTA
   ============================================ */
.jb-vendor {
    background: linear-gradient(135deg, var(--jb-primary) 0%, var(--jb-primary-light) 50%, var(--jb-primary) 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.jb-vendor__bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.jb-vendor__content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.jb-vendor__title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
}
.jb-vendor__title span {
    color: var(--jb-secondary);
}

.jb-vendor__desc {
    font-size: 16px;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto 32px;
}

.jb-vendor__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    margin-bottom: 36px;
}

.jb-vendor__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}
.jb-vendor__feature svg {
    color: var(--jb-secondary);
    flex-shrink: 0;
}

.jb-vendor__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jb-secondary);
    color: #fff;
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    transition: var(--jb-transition);
    text-decoration: none;
}
.jb-vendor__btn:hover {
    background: var(--jb-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255,107,0,0.4);
    color: #fff;
}

/* ============================================
   CUSTOMER REVIEWS
   ============================================ */
.jb-reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.jb-review-card {
    padding: 28px;
    border-radius: var(--jb-radius-md);
    border: 1px solid var(--jb-border);
    background: var(--jb-card-bg);
    transition: var(--jb-transition);
}
.jb-review-card:hover {
    box-shadow: var(--jb-shadow-md);
    border-color: transparent;
    transform: translateY(-4px);
}

.jb-review-card__stars {
    margin-bottom: 14px;
}

.jb-review-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--jb-text-secondary);
    font-style: italic;
    margin: 0 0 18px;
}

.jb-review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jb-review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jb-primary), var(--jb-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.jb-review-card__author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jb-text-primary);
}

.jb-review-card__author span {
    font-size: 12px;
    color: var(--jb-text-secondary);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.jb-newsletter {
    background: linear-gradient(135deg, var(--jb-secondary) 0%, var(--jb-secondary-light) 50%, var(--jb-secondary) 100%);
    padding: 56px 0;
    text-align: center;
}

.jb-newsletter__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.jb-newsletter__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 28px;
}

.jb-newsletter__form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    position: relative;
}

.jb-newsletter__form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
    outline: none;
    min-width: 0;
    font-family: inherit;
}

.jb-newsletter__form button {
    background: var(--jb-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 0 50px 50px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jb-transition);
    font-family: inherit;
    white-space: nowrap;
}
.jb-newsletter__form button:hover {
    background: var(--jb-primary-dark);
}
.jb-newsletter__form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.jb-newsletter__error {
    color: #fff;
    font-size: 13px;
    margin: 8px 0 0;
    text-align: left;
    position: absolute;
    bottom: -24px;
    left: 20px;
}

.jb-newsletter__success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-top: 12px;
}
.jb-newsletter__success.show {
    display: flex;
}

/* ============================================
   FOOTER
   ============================================ */
.jb-footer {
    background: var(--jb-primary-dark);
    color: #fff;
}

.jb-footer__main {
    padding: 56px 0 40px;
}

.jb-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.jb-footer__logo {
    display: inline-block;
    margin-bottom: 14px;
}

.jb-footer__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0;
}

.jb-footer__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}
.jb-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--jb-secondary);
}

.jb-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jb-footer__links li {
    margin-bottom: 10px;
}
.jb-footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: var(--jb-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.jb-footer__links a:hover {
    color: #fff;
    padding-left: 4px;
}

.jb-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jb-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}
.jb-footer__contact svg {
    flex-shrink: 0;
    color: var(--jb-secondary);
}

.jb-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.jb-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: var(--jb-transition);
}
.jb-footer__social a:hover {
    background: var(--jb-secondary);
    color: #fff;
    transform: translateY(-3px);
}

.jb-footer__payments {
    margin-top: 20px;
}
.jb-footer__payments > span {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 8px;
}

.jb-footer__payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.jb-payment-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Footer Bottom */
.jb-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.jb-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.jb-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.jb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jb-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--jb-transition);
    box-shadow: var(--jb-shadow-md);
    z-index: 999;
}
.jb-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.jb-back-to-top:hover {
    background: var(--jb-secondary);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.jb-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.jb-animate.jb-visible {
    opacity: 1;
    transform: translateY(0);
}

.jb-animate-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.jb-animate-child.jb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .jb-section { padding: 64px 0; }
    .jb-section-title { font-size: 30px; }
    .jb-section-header { margin-bottom: 48px; }

    .jb-hero { min-height: 480px; padding: 56px 0; }
    .jb-hero__title { font-size: 42px; }
    .jb-hero__subtitle { font-size: 17px; }

    .jb-categories__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .jb-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .jb-reviews__grid { grid-template-columns: repeat(2, 1fr); }

    .jb-footer__grid { grid-template-columns: repeat(2, 1fr); }

    .jb-vendor__title { font-size: 34px; }

    /* Header search visible on tablet+ */
    .jb-header__search {
        display: flex !important;
    }

    .jb-header__action span {
        display: block;
    }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .jb-container {
        padding: 0 32px;
    }

    .jb-section { padding: 80px 0; }
    .jb-section-title { font-size: 34px; }

    .jb-hero { min-height: 520px; padding: 72px 0; }
    .jb-hero__title { font-size: 48px; }
    .jb-hero__subtitle { font-size: 18px; }
    .jb-hero__search {
        max-width: 640px;
    }

    .jb-categories__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .jb-products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .jb-reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

    .jb-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }

    .jb-vendor__title { font-size: 38px; }
    .jb-newsletter__title { font-size: 32px; }

    /* Header full layout on desktop */
    .jb-header__main-inner {
        gap: 32px;
    }

    .jb-header__search {
        max-width: 560px;
    }

    .jb-header__actions {
        gap: 20px;
    }

    /* Product card sizing in grid */
    .jb-product-card__body { padding: 16px 18px 10px; }
    .jb-product-card__title { font-size: 15px; }
    .jb-product-card__price ins,
    .jb-price-current { font-size: 18px; }

    /* Flash deals scroll arrows */
    .jb-scroll-btn {
        width: 44px;
        height: 44px;
    }
    .jb-scroll-left { left: -16px; }
    .jb-scroll-right { right: -16px; }

    /* Category card sizing */
    .jb-category-card { padding: 0; }
    .jb-category-card__image { height: 180px; }
    .jb-category-card__content { padding: 20px; }
    .jb-category-card__name { font-size: 17px; }

    /* Trust badges full display */
    .jb-trust { padding: 20px 0; }
    .jb-trust__item strong { font-size: 14px; }
    .jb-trust__item span { display: block; font-size: 12px; }
    .jb-trust__icon { width: 44px; height: 44px; }

    /* Review cards */
    .jb-review-card { padding: 32px; }
    .jb-review-card__text { font-size: 15px; }
}

/* ============================================
   RESPONSIVE — MOBILE (<768px)
   ============================================ */
@media (max-width: 767px) {
    /* Header top bar — hide on mobile */
    .jb-header__top { display: none; }

    /* Search bar — show below logo as a full-width row */
    .jb-header__search {
        display: flex;
        order: 10;
        flex: 0 0 100%;
        margin-top: 10px;
        border-radius: var(--jb-radius-sm);
    }
    .jb-header__search-cat { display: none; }
    .jb-header__search-input {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: var(--jb-radius-sm) 0 0 var(--jb-radius-sm);
    }
    .jb-header__search-btn {
        padding: 10px 16px;
        border-radius: 0 var(--jb-radius-sm) var(--jb-radius-sm) 0;
    }

    /* Header main inner: wrap so search goes to next line */
    .jb-header__main-inner {
        flex-wrap: wrap;
    }
    .jb-header__logo {
        flex: 1;
        min-width: 0;
    }

    /* Actions: hide text labels, compact spacing */
    .jb-header__action span:not(.jb-header__cart-count) { display: none; }
    .jb-header__actions { gap: 8px; }
    .jb-header__menu-toggle { display: flex; }
    .jb-header__cart-count { top: -4px; right: -2px; }

    /* Mobile overlay backdrop */
    .jb-mobile-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .jb-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide-out category nav */
    .jb-header__nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }
    .jb-header__nav.active { left: 0; }

    /* Close button inside nav */
    .jb-header__nav::before {
        content: '✕';
        display: block;
        color: var(--jb-text-dark);
        font-size: 20px;
        padding: 18px 24px;
        text-align: right;
        cursor: pointer;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    /* Nav logo inside sidebar */
    .jb-nav-brand {
        display: block;
        padding: 0 24px 16px;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .jb-nav-brand span { color: var(--jb-secondary); }

    .jb-header__nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
    }
    .jb-header__nav-list li a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .jb-header__nav-list li a:hover {
        background: rgba(0,0,0,0.03);
    }
    .jb-header__nav-list li:last-child a {
        border-bottom: none;
    }

    /* Hero */
    .jb-hero { padding: 40px 0; min-height: auto; }
    .jb-hero__title { font-size: 28px; }
    .jb-hero__subtitle { font-size: 14px; margin-bottom: 24px; }
    .jb-hero__search { border-radius: var(--jb-radius-sm); }
    .jb-hero__search button {
        padding: 14px 18px;
        border-radius: 0 var(--jb-radius-sm) var(--jb-radius-sm) 0;
    }
    .jb-hero__search button span { display: none; }
    .jb-hero__actions { gap: 10px; }
    .jb-hero__actions .jb-btn { padding: 12px 20px; font-size: 14px; }
    .jb-hero__pill { padding: 6px 14px; font-size: 12px; }

    /* Trust */
    .jb-trust__item strong { font-size: 12px; }
    .jb-trust__item span { display: none; }
    .jb-trust__icon { width: 36px; height: 36px; }

    /* Cards */
    .jb-product-card__title { font-size: 13px; }
    .jb-product-card__price ins { font-size: 15px; }
    .jb-price-current { font-size: 15px; }

    /* Flash deals */
    .jb-flash-deals__header { flex-direction: column; align-items: flex-start; }
    .jb-countdown__item { min-width: 48px; padding: 6px 10px; }
    .jb-countdown__value { font-size: 18px; }
    .jb-scroll-btn { display: none; }

    /* Newsletter */
    .jb-newsletter { padding: 40px 0; }
    .jb-newsletter__title { font-size: 22px; }
    .jb-newsletter__form { flex-direction: column; gap: 10px; }
    .jb-newsletter__form input[type="email"] { border-radius: 50px; }
    .jb-newsletter__form button { border-radius: 50px; }

    /* Vendor */
    .jb-vendor { padding: 48px 0; }
    .jb-vendor__title { font-size: 24px; }
    .jb-vendor__desc { font-size: 14px; }
    .jb-vendor__features { gap: 12px 20px; }
    .jb-vendor__feature { font-size: 13px; }
    .jb-vendor__btn { padding: 14px 32px; font-size: 15px; }

    /* Reviews */
    .jb-review-card { padding: 22px; }

    /* Footer */
    .jb-footer__main { padding: 40px 0 24px; }
    .jb-footer__bottom-inner { justify-content: center; text-align: center; }
}

/* ============================================
   LARGE SCREENS (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    .jb-container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .jb-hero__title { font-size: 54px; }
    .jb-hero { min-height: 560px; }

    .jb-categories__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
    .jb-products-grid { gap: 28px; }

    .jb-section { padding: 96px 0; }
    .jb-section-title { font-size: 38px; }

    .jb-header__search {
        max-width: 640px;
    }

    .jb-flash-deals__scroll > * {
        width: 280px;
    }
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.jb-product-card .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--jb-text-primary);
}

.jb-product-card .price {
    font-size: 14px;
}

.jb-product-card .star-rating {
    font-size: 12px;
}

/* Screen reader text */
.jb-product-card .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Fix WooCommerce button styles inside our cards */
.jb-product-card .ajax_add_to_cart.added::after {
    display: none;
}

.jb-product-card .added_to_cart {
    display: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .jb-header, .jb-footer, .jb-back-to-top, .jb-newsletter { display: none; }
    .jb-hero { background: #f0f0f0 !important; color: #000 !important; }
    .jb-hero__title { color: #000 !important; }
}

/* ============================================
   PAGE CONTENT (for inner pages & Elementor)
   ============================================ */
.jb-page-content {
    min-height: 60vh;
    padding: 40px 0;
}
.jb-page-header {
    margin-bottom: 32px;
}
.jb-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--jb-text-primary);
}
.jb-page-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--jb-text-primary);
}
.jb-page-body h2,
.jb-page-body h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}
/* Elementor full-width override */
.elementor-page .jb-page-content .jb-container {
    max-width: 100%;
    padding: 0;
}
.elementor-page .jb-page-content {
    padding: 0;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.jb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--jb-primary, #0B2D6B);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}
.jb-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   WISHLISTED STATE
   ============================================ */
.jb-wishlist-btn.jb-wishlisted {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.jb-wishlist-btn.jb-wishlisted svg {
    fill: var(--jb-danger) !important;
    stroke: var(--jb-danger) !important;
}

/* ============================================
   WISHLIST PAGE
   ============================================ */
.jb-wishlist-empty {
    text-align: center;
    padding: 80px 20px;
}
.jb-wishlist-empty svg {
    margin-bottom: 20px;
}
.jb-wishlist-empty h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--jb-text-primary);
    margin-bottom: 8px;
}
.jb-wishlist-empty p {
    color: var(--jb-text-secondary);
    font-size: 16px;
}

.jb-wishlist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.jb-wishlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--jb-card-bg, #fff);
    border: 1px solid var(--jb-border, #E2E8F0);
    border-radius: var(--jb-radius-md, 12px);
    padding: 16px;
    transition: var(--jb-transition);
}
.jb-wishlist-item:hover {
    box-shadow: var(--jb-shadow-md);
    border-color: transparent;
}

.jb-wishlist-item__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--jb-radius-sm, 8px);
    overflow: hidden;
    background: #f8f8f8;
}
.jb-wishlist-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jb-wishlist-item__info {
    flex: 1;
    min-width: 0;
}
.jb-wishlist-item__info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.4;
}
.jb-wishlist-item__info h4 a {
    color: var(--jb-text-primary);
    text-decoration: none;
}
.jb-wishlist-item__info h4 a:hover {
    color: var(--jb-secondary);
}
.jb-wishlist-item__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--jb-primary);
}

.jb-wishlist-item__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.jb-btn--sm {
    padding: 8px 20px !important;
    font-size: 13px !important;
    border-radius: 50px;
}

.jb-wishlist-remove {
    width: 36px;
    height: 36px;
    border: 1px solid var(--jb-border);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--jb-text-secondary);
    transition: var(--jb-transition);
    padding: 0;
}
.jb-wishlist-remove:hover {
    background: var(--jb-danger);
    color: #fff;
    border-color: var(--jb-danger);
}

.jb-wishlist-count-text {
    text-align: center;
    color: var(--jb-text-secondary);
    font-size: 14px;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .jb-wishlist-item {
        flex-wrap: wrap;
    }
    .jb-wishlist-item__actions {
        width: 100%;
        justify-content: flex-end;
    }
    .jb-toast {
        font-size: 13px;
        padding: 12px 20px;
        max-width: 90%;
        white-space: normal;
        text-align: center;
    }
}

/* Fix Elementor Boxed Container for My Account Banner */
.page-id-41 .elementor-element-7896f7c {
    max-width: 100% !important;
    width: 100% !important;
}



/* ============================================
   MOBILE BOTTOM NAVIGATION & GLASSMORPHISM
   ============================================ */
.jb-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

.jb-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: var(--jb-text);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    text-decoration: none;
    background: none;
    border: none;
}

.jb-mobile-nav-item svg {
    color: var(--jb-text-light);
    transition: color 0.2s;
}

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

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

@media (max-width: 767px) {
    .jb-mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 60px; /* Space for bottom nav */
    }
    
    /* Glassmorphism for mobile header */
    .jb-header__main {
        background: rgba(11, 45, 107, 0.85) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Category Images Optimization */
.jb-category-card__image {
    position: relative;
    overflow: hidden;
}
.jb-category-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.jb-category-card:hover .jb-category-card__image img {
    transform: scale(1.05);
}


@media (max-width: 767px) {
    .jb-back-to-top {
        bottom: 84px !important;
    }
}


.jb-back-to-top {
    bottom: 90px !important;
}


.jb-back-to-top {
    right: auto !important;
    left: 24px !important;
    bottom: 24px !important;
    z-index: 9999 !important;
}

@media (max-width: 767px) {
    .jb-back-to-top {
        bottom: 84px !important;
    }
}


.jb-back-to-top {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}
.jb-back-to-top svg {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
}


.jb-flash-deals__scroll, .jb-hero__categories, .jb-brands__scroll {
    
}


.jb-dragging * {
    pointer-events: none !important;
    user-select: none !important;
}


.jb-flash-deals__scroll, .jb-hero__categories, .jb-brands__scroll {
    overflow-y: hidden !important;
}


@media (max-width: 767px) {
    .jb-header__nav-list li a {
        color: var(--jb-text-dark) !important;
    }
    .jb-header__nav::before {
        color: var(--jb-text-dark) !important;
    }
}

/* Hide duplicate scroll to top icon from HFE */
.hfe-scroll-to-top-wrap { display: none !important; }

