/*
Theme Name: Bitsness Wholesale
Theme URI: https://bitsness.com/themes/wholesale
Author: Bitsness
Author URI: https://bitsness.com
Description: B2B/Wholesale WooCommerce theme with corporate design. Features mega menus, product carousels, bulk pricing display, and utility-first layout. Perfect for restaurant supplies, industrial equipment, wholesale distributors, and B2B ecommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitsness-wholesale
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready

Bitsness Wholesale - B2B WooCommerce Theme
*/

/* ==========================================================================
   CSS Variables - Corporate/Wholesale Design Tokens
   ========================================================================== */
:root {
    /* Primary Colors - Navy Blue */
    --ws-primary: #1a3a5c;
    --ws-primary-dark: #0f2840;
    --ws-primary-light: #2d5a8a;

    /* Accent Colors - Orange/Red for CTAs and Prices */
    --ws-accent: #e85d04;
    --ws-accent-dark: #c44d00;
    --ws-accent-light: #ff6b1a;

    /* Secondary - Green for success/savings */
    --ws-success: #2e7d32;
    --ws-success-light: #4caf50;

    /* Neutrals */
    --ws-white: #ffffff;
    --ws-gray-50: #f8f9fa;
    --ws-gray-100: #f1f3f5;
    --ws-gray-200: #e9ecef;
    --ws-gray-300: #dee2e6;
    --ws-gray-400: #adb5bd;
    --ws-gray-500: #6c757d;
    --ws-gray-600: #495057;
    --ws-gray-700: #343a40;
    --ws-gray-800: #212529;
    --ws-gray-900: #0d1117;

    /* Typography */
    --ws-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ws-font-heading: var(--ws-font-primary);

    /* Font Sizes */
    --ws-text-xs: 0.6875rem;
    --ws-text-sm: 0.8125rem;
    --ws-text-base: 0.9375rem;
    --ws-text-lg: 1.0625rem;
    --ws-text-xl: 1.25rem;
    --ws-text-2xl: 1.5rem;
    --ws-text-3xl: 1.875rem;
    --ws-text-4xl: 2.25rem;

    /* Spacing */
    --ws-space-xs: 0.25rem;
    --ws-space-sm: 0.5rem;
    --ws-space-md: 1rem;
    --ws-space-lg: 1.5rem;
    --ws-space-xl: 2rem;
    --ws-space-2xl: 3rem;

    /* Border Radius - Minimal for corporate look */
    --ws-radius-sm: 3px;
    --ws-radius-md: 4px;
    --ws-radius-lg: 6px;

    /* Shadows - Subtle */
    --ws-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ws-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --ws-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --ws-transition-fast: 150ms ease;
    --ws-transition-base: 200ms ease;

    /* Container */
    --ws-container-width: 1400px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ws-font-primary);
    font-size: var(--ws-text-base);
    line-height: 1.5;
    color: var(--ws-gray-800);
    background-color: var(--ws-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ws-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ws-gray-900);
}

a {
    color: var(--ws-primary);
    text-decoration: none;
}

a:hover {
    color: var(--ws-primary-dark);
    text-decoration: underline;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */
.ws-container {
    width: 100%;
    max-width: var(--ws-container-width);
    margin: 0 auto;
    padding: 0 var(--ws-space-md);
}

.ws-section {
    padding: var(--ws-space-xl) 0;
}

.ws-section--gray {
    background: var(--ws-gray-50);
}

/* ==========================================================================
   Header - Top Bar
   ========================================================================== */
.ws-topbar {
    background: var(--ws-primary);
    color: var(--ws-white);
    font-size: var(--ws-text-xs);
}

.ws-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    padding: var(--ws-space-xs) 0;
    flex-wrap: wrap;
    gap: var(--ws-space-xs);
}

.ws-topbar__left,
.ws-topbar__right {
    display: flex;
    align-items: center;
    gap: var(--ws-space-md);
    flex-wrap: wrap;
}

.ws-topbar__link {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--ws-text-xs);
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
}

.ws-topbar__link:hover {
    color: var(--ws-white);
    text-decoration: none;
}

.ws-topbar__link svg {
    width: 14px;
    height: 14px;
}

.ws-topbar__promo {
    color: #ffd700;
    font-weight: 600;
}

.ws-topbar__phone {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--ws-text-xs);
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
    margin-left: var(--ws-space-md);
}

.ws-topbar__phone:hover {
    color: var(--ws-white);
    text-decoration: none;
}

.ws-topbar__phone svg {
    width: 14px;
    height: 14px;
}

/* Language Switcher */
.ws-lang-switcher {
    position: relative;
    margin-left: var(--ws-space-md);
}

.ws-lang-switcher__toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--ws-text-xs);
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.ws-lang-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ws-white);
}

.ws-lang-switcher__toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.ws-lang-switcher[aria-expanded="true"] .ws-lang-switcher__toggle svg {
    transform: rotate(180deg);
}

.ws-lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--ws-white);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    margin-top: 6px;
    padding: 4px 0;
    list-style: none;
    z-index: 1000;
}

.ws-lang-switcher.ws-lang-switcher--open .ws-lang-switcher__dropdown {
    display: block;
}

.ws-lang-switcher__option {
    display: block;
    padding: 8px 14px;
    color: var(--ws-gray-700);
    font-size: var(--ws-text-sm);
    text-decoration: none;
    transition: background 0.15s;
}

.ws-lang-switcher__option:hover {
    background: var(--ws-gray-100);
    text-decoration: none;
}

.ws-lang-switcher__option--active {
    font-weight: 600;
    color: var(--ws-primary);
}

/* ==========================================================================
   Header - Main Bar
   ========================================================================== */
.ws-header-main {
    background: var(--ws-white);
    border-bottom: 1px solid var(--ws-gray-200);
    padding: var(--ws-space-md) 0;
}

.ws-header-main__inner {
    display: flex;
    align-items: center;
    gap: var(--ws-space-lg);
}

.ws-logo {
    flex-shrink: 0;
}

.ws-logo__link {
    display: flex;
    align-items: center;
    gap: var(--ws-space-sm);
    color: var(--ws-primary);
    font-weight: 700;
    font-size: var(--ws-text-xl);
}

.ws-logo__link:hover {
    text-decoration: none;
}

/* Custom Logo (uploaded image) */
.ws-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.ws-logo .custom-logo {
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.ws-logo__tagline {
    display: none;
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-500);
    font-weight: 400;
}

@media (min-width: 1024px) {
    .ws-logo__tagline {
        display: block;
    }
}

/* Search Bar */
.ws-search {
    flex: 1;
    max-width: 600px;
}

.ws-search__form {
    display: flex;
    border: 2px solid var(--ws-gray-300);
    border-radius: var(--ws-radius-md);
    overflow: hidden;
    transition: border-color var(--ws-transition-fast);
}

.ws-search__form:focus-within {
    border-color: var(--ws-primary);
}

.ws-search__input {
    flex: 1;
    padding: var(--ws-space-sm) var(--ws-space-md);
    font-size: var(--ws-text-base);
    border: none;
    outline: none;
    min-width: 0;
}

.ws-search__input::placeholder {
    color: var(--ws-gray-400);
}

.ws-search__btn {
    padding: var(--ws-space-sm) var(--ws-space-lg);
    background: var(--ws-primary);
    color: var(--ws-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
    font-weight: 600;
    font-size: var(--ws-text-sm);
    transition: background var(--ws-transition-fast);
}

.ws-search__btn:hover {
    background: var(--ws-primary-dark);
}

.ws-search__btn svg {
    width: 18px;
    height: 18px;
}

/* Header Actions */
.ws-header-actions {
    display: flex;
    align-items: center;
    gap: var(--ws-space-md);
}

.ws-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ws-gray-700);
    font-size: var(--ws-text-xs);
    padding: var(--ws-space-xs);
    min-width: 60px;
    text-align: center;
}

.ws-header-action:hover {
    color: var(--ws-primary);
    text-decoration: none;
}

.ws-header-action__icon {
    position: relative;
}

.ws-header-action__icon svg {
    width: 24px;
    height: 24px;
}

.ws-header-action__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--ws-accent);
    color: var(--ws-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Header - Navigation / Mega Menu
   ========================================================================== */
.ws-nav {
    background: var(--ws-primary-dark);
    position: relative;
    z-index: 100;
}

.ws-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-nav__item {
    position: relative;
}

.ws-nav__link {
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
    padding: var(--ws-space-sm) var(--ws-space-md);
    color: var(--ws-white);
    font-size: var(--ws-text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--ws-transition-fast);
}

.ws-nav__link:hover,
.ws-nav__item:hover .ws-nav__link {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.ws-nav__link svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* Mega Menu Dropdown */
.ws-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 800px;
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-200);
    box-shadow: var(--ws-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--ws-transition-base);
    z-index: 1000;
}

.ws-nav__item:hover .ws-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ws-mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ws-space-lg);
    padding: var(--ws-space-lg);
}

.ws-mega-menu__column {
    min-width: 0;
}

.ws-mega-menu__title {
    font-size: var(--ws-text-sm);
    font-weight: 700;
    color: var(--ws-primary);
    margin-bottom: var(--ws-space-sm);
    padding-bottom: var(--ws-space-xs);
    border-bottom: 2px solid var(--ws-accent);
}

.ws-mega-menu__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-mega-menu__link {
    display: block;
    padding: var(--ws-space-xs) 0;
    font-size: var(--ws-text-sm);
    color: var(--ws-gray-700);
}

.ws-mega-menu__link:hover {
    color: var(--ws-accent);
}

/* Mobile Menu Toggle */
.ws-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--ws-space-sm);
    padding: var(--ws-space-sm) var(--ws-space-md);
    background: var(--ws-primary);
    color: var(--ws-white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--ws-text-sm);
}

@media (min-width: 1024px) {
    .ws-menu-toggle {
        display: none;
    }
}

.ws-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.ws-hero {
    background: var(--ws-gray-100);
}

.ws-hero__carousel {
    position: relative;
    overflow: hidden;
}

.ws-hero__slides {
    display: flex;
    transition: transform 0.5s ease;
}

.ws-hero__slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 30px 5%;
    min-height: 200px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .ws-hero__slide {
        padding: 60px 5%;
        min-height: 300px;
    }
}

.ws-hero__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.ws-hero__slide-content {
    color: #fff;
    max-width: 500px;
    position: relative;
    z-index: 2;
    transform: translateY(-50%);
    max-width: 400px;
}

.ws-hero__slide-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: var(--ws-space-sm);
}

@media (min-width: 768px) {
    .ws-hero__slide-title {
        font-size: 2.5rem;
    }
}

.ws-hero__slide-text {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .ws-hero__slide-text {
        font-size: 1.25rem;
    }
}

.ws-hero__slide-title--placeholder {
    /* kept for backwards compat */
}

.ws-hero__slide-code {
    display: inline-block;
    padding: var(--ws-space-xs) var(--ws-space-sm);
    background: var(--ws-accent);
    color: var(--ws-white);
    font-weight: 700;
    font-size: var(--ws-text-sm);
    border-radius: var(--ws-radius-sm);
    margin-bottom: var(--ws-space-md);
}

.ws-hero__nav {
    position: absolute;
    bottom: var(--ws-space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--ws-space-sm);
}

.ws-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ws-gray-400);
    border: none;
    cursor: pointer;
    transition: background var(--ws-transition-fast);
}

.ws-hero__dot.active,
.ws-hero__dot:hover {
    background: var(--ws-primary);
}

.ws-hero__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ws-hero__slide {
    position: relative;
}

.ws-hero__slide-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Promo Blocks
   ========================================================================== */
.ws-promos {
    padding: var(--ws-space-lg) 0;
}

.ws-promos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-sm);
}

@media (min-width: 768px) {
    .ws-promos__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--ws-space-md);
    }
}

.ws-promo-block {
    position: relative;
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    padding: var(--ws-space-sm);
    text-align: center;
    transition: box-shadow var(--ws-transition-fast);
}

@media (min-width: 768px) {
    .ws-promo-block {
        padding: var(--ws-space-md);
    }
}

.ws-promo-block:hover {
    box-shadow: var(--ws-shadow-md);
}

.ws-promo-block__discount {
    font-size: var(--ws-text-lg);
    font-weight: 700;
    color: var(--ws-accent);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .ws-promo-block__discount {
        font-size: var(--ws-text-3xl);
    }
}

.ws-promo-block__text {
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-600);
    margin: var(--ws-space-xs) 0;
}

@media (min-width: 768px) {
    .ws-promo-block__text {
        font-size: var(--ws-text-sm);
    }
}

.ws-promo-block__code {
    display: inline-block;
    padding: 2px var(--ws-space-xs);
    background: var(--ws-primary);
    color: var(--ws-white);
    font-weight: 700;
    font-size: 10px;
    border-radius: var(--ws-radius-sm);
    margin-top: var(--ws-space-xs);
}

@media (min-width: 768px) {
    .ws-promo-block__code {
        padding: var(--ws-space-xs) var(--ws-space-sm);
        font-size: var(--ws-text-xs);
        margin-top: var(--ws-space-sm);
    }
}

/* ==========================================================================
   Category Grid
   ========================================================================== */
.ws-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ws-space-md);
}

@media (min-width: 768px) {
    .ws-categories__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .ws-categories__grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.ws-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--ws-space-md);
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    text-align: center;
    transition: all var(--ws-transition-fast);
}

.ws-category-card:hover {
    border-color: var(--ws-primary);
    box-shadow: var(--ws-shadow-md);
    text-decoration: none;
}

.ws-category-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--ws-space-sm);
    color: var(--ws-primary);
}

.ws-category-card__icon svg {
    width: 100%;
    height: 100%;
}

.ws-category-card__title {
    font-size: var(--ws-text-xs);
    font-weight: 600;
    color: var(--ws-gray-800);
    line-height: 1.3;
}

/* ==========================================================================
   Featured Categories (with images)
   ========================================================================== */
.ws-featured-categories {
    background: var(--ws-gray-50);
}

.ws-featured-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-md);
}

@media (min-width: 576px) {
    .ws-featured-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .ws-featured-categories__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .ws-featured-categories__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ws-featured-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--ws-space-lg) var(--ws-space-md);
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-lg);
    text-align: center;
    transition: all var(--ws-transition-fast);
}

.ws-featured-category:hover {
    border-color: var(--ws-primary);
    box-shadow: var(--ws-shadow-lg);
    text-decoration: none;
    transform: translateY(-2px);
}

.ws-featured-category__image {
    width: 80px;
    height: 80px;
    margin-bottom: var(--ws-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--ws-radius-md);
}

.ws-featured-category__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-featured-category__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ws-gray-100);
    border-radius: var(--ws-radius-md);
    color: var(--ws-primary);
}

.ws-featured-category__title {
    font-size: var(--ws-text-sm);
    font-weight: 600;
    color: var(--ws-gray-800);
    line-height: 1.3;
    margin-bottom: var(--ws-space-xs);
}

.ws-featured-category__count {
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-500);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.ws-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ws-space-lg);
    padding-bottom: var(--ws-space-sm);
    border-bottom: 2px solid var(--ws-gray-200);
}

.ws-section-header__title {
    font-size: var(--ws-text-xl);
    font-weight: 700;
    color: var(--ws-primary);
}

.ws-section-header__link {
    font-size: var(--ws-text-sm);
    font-weight: 600;
    color: var(--ws-accent);
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
}

.ws-section-header__link:hover {
    color: var(--ws-accent-dark);
}

.ws-section-header__link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Product Carousel
   ========================================================================== */
.ws-product-carousel {
    position: relative;
}

.ws-product-carousel__track {
    display: flex;
    gap: var(--ws-space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--ws-space-sm);
}

.ws-product-carousel__track::-webkit-scrollbar {
    display: none;
}

.ws-product-carousel__item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .ws-product-carousel__item {
        flex: 0 0 220px;
    }
}

.ws-product-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--ws-transition-fast);
    box-shadow: var(--ws-shadow-md);
}

.ws-product-carousel__btn:hover {
    background: var(--ws-primary);
    color: var(--ws-white);
    border-color: var(--ws-primary);
}

.ws-product-carousel__btn--prev {
    left: -20px;
}

.ws-product-carousel__btn--next {
    right: -20px;
}

.ws-product-carousel__btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Product Card - Wholesale Style
   ========================================================================== */
.ws-product-card {
    background: var(--ws-white);
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius-md);
    padding: var(--ws-space-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--ws-transition-fast);
}

.ws-product-card:hover {
    box-shadow: var(--ws-shadow-md);
}

.ws-product-card__image {
    position: relative;
    aspect-ratio: 1;
    margin-bottom: var(--ws-space-sm);
    background: var(--ws-gray-50);
    border-radius: var(--ws-radius-sm);
    overflow: hidden;
}

.ws-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--ws-space-sm);
}

.ws-product-card__badges {
    position: absolute;
    top: var(--ws-space-xs);
    left: var(--ws-space-xs);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-product-card__badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
}

.ws-product-card__badge--sale {
    background: var(--ws-accent);
    color: var(--ws-white);
}

.ws-product-card__badge--new {
    background: var(--ws-success);
    color: var(--ws-white);
}

.ws-product-card__badge--bulk {
    background: var(--ws-primary);
    color: var(--ws-white);
}

.ws-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ws-product-card__title {
    font-size: var(--ws-text-sm);
    font-weight: 400;
    color: var(--ws-gray-800);
    line-height: 1.4;
    margin-bottom: var(--ws-space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ws-product-card__title a {
    color: inherit;
}

.ws-product-card__title a:hover {
    color: var(--ws-primary);
    text-decoration: underline;
}

/* Rating */
.ws-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--ws-space-xs);
    margin-bottom: var(--ws-space-xs);
}

.ws-product-card__stars {
    display: flex;
    gap: 1px;
    color: #ffc107;
}

.ws-product-card__stars svg {
    width: 12px;
    height: 12px;
}

.ws-product-card__stars--empty svg {
    color: var(--ws-gray-300);
}

.ws-product-card__rating-count {
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-500);
}

/* Pricing */
.ws-product-card__pricing {
    margin-top: auto;
    padding-top: var(--ws-space-sm);
}

.ws-product-card__price {
    font-size: var(--ws-text-lg);
    font-weight: 700;
    color: var(--ws-gray-900);
}

.ws-product-card__price-old {
    font-size: var(--ws-text-sm);
    color: var(--ws-gray-400);
    text-decoration: line-through;
    margin-left: var(--ws-space-xs);
    font-weight: 400;
}

.ws-product-card__unit {
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-500);
    font-weight: 400;
}

.ws-product-card__bulk-price {
    font-size: var(--ws-text-xs);
    color: var(--ws-success);
    margin-top: 2px;
}

/* Add to Cart */
.ws-product-card__actions {
    margin-top: var(--ws-space-sm);
}

.ws-product-card__add-btn {
    width: 100%;
    padding: var(--ws-space-sm);
    background: var(--ws-accent);
    color: var(--ws-white);
    border: none;
    border-radius: var(--ws-radius-sm);
    font-weight: 600;
    font-size: var(--ws-text-sm);
    cursor: pointer;
    transition: background var(--ws-transition-fast);
}

.ws-product-card__add-btn:hover {
    background: var(--ws-accent-dark);
}

/* ==========================================================================
   Products Grid (Shop Page)
   ========================================================================== */
.ws-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-md);
}

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

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

@media (min-width: 1200px) {
    .ws-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ws-space-xs);
    padding: var(--ws-space-sm) var(--ws-space-lg);
    font-family: var(--ws-font-primary);
    font-size: var(--ws-text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--ws-radius-md);
    cursor: pointer;
    transition: all var(--ws-transition-fast);
    text-decoration: none;
}

.ws-btn--primary {
    background: var(--ws-primary);
    color: var(--ws-white);
}

.ws-btn--primary:hover {
    background: var(--ws-primary-dark);
    text-decoration: none;
}

.ws-btn--accent {
    background: var(--ws-accent);
    color: var(--ws-white);
}

.ws-btn--accent:hover {
    background: var(--ws-accent-dark);
    text-decoration: none;
}

.ws-btn--outline {
    background: transparent;
    border: 2px solid var(--ws-primary);
    color: var(--ws-primary);
}

.ws-btn--outline:hover {
    background: var(--ws-primary);
    color: var(--ws-white);
    text-decoration: none;
}

.ws-btn--sm {
    padding: var(--ws-space-xs) var(--ws-space-sm);
    font-size: var(--ws-text-xs);
}

.ws-btn--lg {
    padding: var(--ws-space-md) var(--ws-space-xl);
    font-size: var(--ws-text-base);
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */
.ws-trust-badges {
    background: var(--ws-gray-50);
    border-top: 1px solid var(--ws-gray-200);
    border-bottom: 1px solid var(--ws-gray-200);
}

.ws-trust-badges__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .ws-trust-badges__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ws-trust-badge {
    padding: var(--ws-space-lg);
}

.ws-trust-badge__icon {
    color: var(--ws-primary);
    margin-bottom: var(--ws-space-sm);
}

.ws-trust-badge__title {
    font-size: var(--ws-text-base);
    font-weight: 600;
    color: var(--ws-gray-900);
    margin-bottom: var(--ws-space-xs);
}

.ws-trust-badge__text {
    font-size: var(--ws-text-sm);
    color: var(--ws-gray-500);
    margin: 0;
}

/* ==========================================================================
   Location / Map
   ========================================================================== */
.ws-location__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--ws-space-xl);
    align-items: start;
}

.ws-location__info {
    padding: var(--ws-space-lg) 0;
}

.ws-location__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ws-gray-800);
    margin-bottom: var(--ws-space-lg);
}

.ws-location__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--ws-space-sm);
    margin-bottom: var(--ws-space-md);
    color: var(--ws-gray-600);
}

.ws-location__detail svg {
    flex-shrink: 0;
    color: var(--ws-primary);
    margin-top: 2px;
}

.ws-location__detail p {
    margin: 0;
    line-height: 1.5;
}

.ws-location__detail a {
    color: var(--ws-primary);
}

.ws-location__detail a:hover {
    color: var(--ws-primary-dark);
}

.ws-location__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ws-location__map iframe {
    display: block;
}

@media (max-width: 768px) {
    .ws-location__grid {
        grid-template-columns: 1fr;
    }

    .ws-location__map iframe {
        height: 300px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ws-footer {
    background: var(--ws-gray-800);
    color: var(--ws-gray-300);
}

.ws-footer__main {
    padding: var(--ws-space-2xl) 0;
}

.ws-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ws-space-xl);
}

@media (min-width: 768px) {
    .ws-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .ws-footer__grid {
        grid-template-columns: 2fr repeat(4, 1fr);
    }
}

.ws-footer__brand {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .ws-footer__brand {
        grid-column: 1;
    }
}

.ws-footer__logo {
    font-size: var(--ws-text-xl);
    font-weight: 700;
    color: var(--ws-white);
    margin-bottom: var(--ws-space-sm);
}

.ws-footer__desc {
    font-size: var(--ws-text-sm);
    line-height: 1.6;
    margin-bottom: var(--ws-space-md);
}

.ws-footer__contact {
    font-size: var(--ws-text-sm);
    margin-bottom: var(--ws-space-md);
}

.ws-footer__contact a {
    color: var(--ws-gray-400);
}

.ws-footer__contact a:hover {
    color: var(--ws-white);
    text-decoration: none;
}

.ws-footer__social {
    display: flex;
    gap: var(--ws-space-sm);
}

.ws-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ws-radius-md);
    color: var(--ws-gray-400);
    transition: all var(--ws-transition-fast);
}

.ws-footer__social-link:hover {
    background: var(--ws-accent);
    color: var(--ws-white);
    text-decoration: none;
}

.ws-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.ws-footer__title {
    font-size: var(--ws-text-sm);
    font-weight: 700;
    color: var(--ws-white);
    margin-bottom: var(--ws-space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-footer__link {
    margin-bottom: var(--ws-space-xs);
}

.ws-footer__link a {
    color: var(--ws-gray-400);
    font-size: var(--ws-text-sm);
}

.ws-footer__link a:hover {
    color: var(--ws-white);
    text-decoration: none;
}

/* Footer Bottom */
.ws-footer__bottom {
    padding: var(--ws-space-md) 0;
    border-top: 1px solid var(--ws-gray-700);
}

.ws-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ws-space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .ws-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.ws-footer__copyright {
    font-size: var(--ws-text-xs);
    color: var(--ws-gray-500);
}

.ws-footer__payments {
    display: flex;
    gap: var(--ws-space-sm);
}

.ws-footer__payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-footer__payment-icon svg {
    width: 40px;
    height: 25px;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce-message,
.woocommerce-info {
    background: var(--ws-primary);
    color: var(--ws-white);
    border: none;
    border-radius: var(--ws-radius-md);
    padding: var(--ws-space-md) var(--ws-space-lg);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--ws-white);
}

.woocommerce-error {
    background: #fee;
    border-left: 4px solid var(--ws-accent);
    border-radius: var(--ws-radius-md);
    padding: var(--ws-space-md) var(--ws-space-lg);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
    background: var(--ws-accent);
    color: var(--ws-white);
    border: none;
    border-radius: var(--ws-radius-md);
    padding: var(--ws-space-sm) var(--ws-space-lg);
    font-weight: 600;
    transition: background var(--ws-transition-fast);
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--ws-accent-dark);
    color: var(--ws-white);
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: var(--ws-primary);
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--ws-primary-dark);
}

/* Price styling */
.woocommerce .price {
    color: var(--ws-gray-900);
    font-weight: 700;
}

.woocommerce .price del {
    color: var(--ws-gray-400);
    font-weight: 400;
}

.woocommerce .price ins {
    text-decoration: none;
}

/* Sale badge */
.woocommerce .onsale {
    background: var(--ws-accent);
    color: var(--ws-white);
    border-radius: var(--ws-radius-sm);
    padding: 4px 8px;
    font-size: var(--ws-text-xs);
    font-weight: 700;
}

/* Star rating */
.woocommerce .star-rating {
    color: #ffc107;
}

/* ==========================================================================
   Mobile Navigation Slider
   ========================================================================== */
.ws-nav-slider {
    display: none;
}

.ws-nav-slider__track {
    display: flex;
    gap: var(--ws-space-xs);
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--ws-space-xs) 0;
}

.ws-nav-slider__track::-webkit-scrollbar {
    display: none;
}

.ws-nav-slider__item {
    flex-shrink: 0;
    padding: var(--ws-space-xs) var(--ws-space-md);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ws-radius-full);
    font-size: var(--ws-text-sm);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--ws-transition-fast);
}

.ws-nav-slider__item:hover,
.ws-nav-slider__item:focus {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ws-white);
    border-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.ws-nav-slider__item--all {
    background: var(--ws-accent);
    color: var(--ws-white);
    border-color: var(--ws-accent);
}

/* ==========================================================================
   Responsive Navigation
   ========================================================================== */
@media (max-width: 1023px) {
    /* Default: Dropdown mode */
    .ws-nav__list {
        display: none;
    }

    .ws-nav.mobile-open .ws-nav__list {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ws-white);
        border: 1px solid var(--ws-gray-200);
        box-shadow: var(--ws-shadow-lg);
    }

    .ws-nav.mobile-open .ws-nav__link {
        color: var(--ws-gray-800);
        border-bottom: 1px solid var(--ws-gray-100);
    }

    .ws-mega-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--ws-gray-100);
    }

    .ws-mega-menu__inner {
        grid-template-columns: 1fr;
    }

    /* Slider mode on mobile */
    .ws-nav--mobile-slider .ws-menu-toggle {
        display: none;
    }

    .ws-nav--mobile-slider .ws-nav__list {
        display: none !important;
    }

    .ws-nav--mobile-slider .ws-nav-slider {
        display: block;
        width: 100%;
    }

    .ws-nav--mobile-slider .ws-container {
        padding: 0 var(--ws-space-sm);
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.ws-text-center { text-align: center; }
.ws-text-accent { color: var(--ws-accent); }
.ws-text-success { color: var(--ws-success); }
.ws-mt-md { margin-top: var(--ws-space-md); }
.ws-mt-lg { margin-top: var(--ws-space-lg); }
.ws-mb-md { margin-bottom: var(--ws-space-md); }
.ws-mb-lg { margin-bottom: var(--ws-space-lg); }
.ws-hidden { display: none !important; }

@media (max-width: 767px) {
    .ws-hidden-mobile { display: none !important; }

    /* Mobile Header Responsive */
    .ws-header-main__inner {
        flex-wrap: wrap;
        gap: var(--ws-space-sm);
    }

    .ws-logo {
        order: 1;
    }

    .ws-header-actions {
        order: 2;
        margin-left: auto;
    }

    .ws-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ws-search__btn span {
        display: none;
    }

    .ws-search__btn {
        padding: var(--ws-space-sm) var(--ws-space-md);
    }

    .ws-logo__link {
        font-size: var(--ws-text-lg);
    }

    /* Mobile Top Bar */
    .ws-topbar__inner {
        justify-content: center;
    }

    .ws-topbar__left {
        display: none;
    }

    .ws-topbar__right {
        gap: var(--ws-space-sm);
    }

    .ws-topbar__link span,
    .ws-topbar__link svg + br {
        /* keep icons + text visible */
    }

    .ws-topbar__right .ws-lang-switcher {
        margin-left: 0;
    }

    /* Mobile Categories */
    .ws-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ws-space-sm);
    }

    /* Mobile Hero */
    .ws-hero__content {
        padding: var(--ws-space-lg);
    }

    .ws-hero__title {
        font-size: var(--ws-text-2xl);
    }

    /* Mobile Footer */
    .ws-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ws-footer__social {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .ws-hidden-desktop { display: none !important; }
}
