/*
Theme Name: Pelikan DTM
Theme URI: https://pelikan-dtm.bg
Author: Pelikan DTM
Author URI: https://pelikan-dtm.bg
Description: Custom e-commerce theme for Pelikan DTM - Official CITIZEN SYSTEMS JAPAN representative in Bulgaria.
Version: 3.5.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pelikan-theme
WooCommerce: 9.0
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images

Pelikan DTM - Office Equipment & CITIZEN Calculator Store
okoffice.bg-inspired layout with blue color scheme
*/

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    --primary: #0170B9;
    --primary-hover: #015a94;
    --primary-light: #e8f4fc;
    --primary-dark: #01507e;
    --primary-gradient: linear-gradient(135deg, #0170B9 0%, #0190e0 100%);
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #8a8a9a;
    --border: #e2e5e8;
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --bg-dark: #1a1d2e;
    --success: #10b981;
    --success-hover: #059669;
    --sale: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --radius: 4px;
    --radius-sm: 3px;
    --radius-lg: 6px;
    --transition: 0.2s ease;
    --max-width: 1280px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-alt);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ROW 1: TOP BAR
   ======================================== */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__links {
    display: flex;
    gap: 18px;
}

.top-bar__links a {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    transition: color var(--transition);
}

.top-bar__links a:hover {
    color: #fff;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar__lang {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   ROW 2: MAIN HEADER (Logo + Search + Phone)
   ======================================== */
.main-header {
    background: var(--bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.site-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-logo .logo-text span {
    color: var(--text);
    font-weight: 400;
}

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

.header-search form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search form:focus-within {
    border-color: var(--primary);
}

.header-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font);
    outline: none;
    background: var(--bg);
    color: var(--text);
    min-width: 0;
}

.header-search input[type="search"]::placeholder {
    color: var(--text-muted);
}

.header-search button {
    background: var(--primary);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}

.header-search button:hover {
    background: var(--primary-hover);
}

.header-search button svg {
    width: 16px;
    height: 16px;
}

/* Header Phone (right side, large) */
.header-phone {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone > svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.header-phone__label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.header-phone__number {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.header-phone__number:hover {
    color: var(--primary);
}

/* ========================================
   ROW 3: NAVIGATION BAR
   ======================================== */
.nav-bar {
    background: var(--primary);
    position: relative;
    z-index: 99;
}

.nav-bar .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.nav-bar__menu {
    display: flex;
    align-items: stretch;
}

.nav-bar__menu > li {
    position: relative;
}

.nav-bar__menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition);
}

.nav-bar__menu > li > a:hover,
.nav-bar__menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-bar__menu > li > a svg {
    width: 15px;
    height: 15px;
}

/* Nav Right Icons (cart, account) */
.nav-bar__icons {
    display: flex;
    align-items: stretch;
}

.nav-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: rgba(255,255,255,0.9);
    position: relative;
    transition: background var(--transition);
}

.nav-bar__icon:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-bar__icon svg {
    width: 20px;
    height: 20px;
}

.nav-bar__icon .cart-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--sale);
    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;
}

/* Categories Dropdown */
.categories-dropdown > a {
    background: rgba(0,0,0,0.15) !important;
    padding: 12px 20px !important;
    gap: 8px !important;
}

.categories-dropdown .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 200;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

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

.mega-menu__list {
    padding: 4px 0;
}

.mega-menu__list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--text);
    font-size: 13px;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.mega-menu__list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mega-menu__list li a .count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 11px;
}

.mega-menu__list .sub-menu {
    padding-left: 12px;
}

.mega-menu__list .sub-menu li a {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* Promo link highlight */
.nav-promo > a {
    color: var(--warning) !important;
    font-weight: 600 !important;
}

/* Nav dropdowns (top-level group menus) */
.nav-bar__menu > li.nav-has-dropdown {
    position: relative;
}

.nav-bar__menu > li.nav-has-dropdown > a .nav-chevron {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    flex-shrink: 0;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 200;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.nav-bar__menu > li.nav-has-dropdown:hover .nav-dropdown,
.nav-bar__menu > li.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__list {
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.nav-dropdown__list > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-dropdown__list > li > a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-dropdown__list .count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.nav-dropdown__sub {
    padding: 0 0 6px 18px;
    list-style: none;
    margin: 0;
    border-left: 1px dashed var(--border);
    margin-left: 18px;
}

.nav-dropdown__sub li a {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 400;
    transition: color var(--transition);
    text-decoration: none;
}

.nav-dropdown__sub li a:hover {
    color: var(--primary);
}
/* 4th-level flyout submenu (e.g. calculator subcategories) */
.nav-dropdown__sub > li.nav-sub-has-children {
    position: relative;
}

.nav-dropdown__sub > li.nav-sub-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-dropdown__sub > li.nav-sub-has-children > a .nav-sub-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    margin-left: 6px;
    opacity: 0.5;
}

.nav-dropdown__subsub {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 240px;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(4px);
    transition: all var(--transition);
    z-index: 210;
}

.nav-dropdown__sub > li.nav-sub-has-children:hover > .nav-dropdown__subsub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-dropdown__subsub li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-dropdown__subsub li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-dropdown__subsub li a .count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 11px;
}


/* ========================================
   STICKY HEADER
   ======================================== */
.sticky-header {
    position: fixed;
    top: -70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: top 0.3s ease;
    padding: 8px 0;
}

.sticky-header.visible {
    top: 0;
}

.sticky-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-header .site-logo img {
    max-height: 32px;
}

.sticky-header .header-search {
    flex: 1;
}

.sticky-header .header-search input[type="search"] {
    padding: 8px 12px;
    font-size: 12px;
}

.sticky-header .header-search button {
    padding: 8px 14px;
}

.sticky-header .header-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text);
    padding: 6px;
}

.sticky-header .header-cart svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.sticky-header .cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--sale);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   HOMEPAGE HERO (Full-width Slider)
   ======================================== */
.homepage-hero {
    background: var(--bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

/* ── Category Sidebar ── */
.cat-sidebar {
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg);
    overflow: hidden;
}

.cat-sidebar__header {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-sidebar__header svg {
    width: 18px;
    height: 18px;
}

.cat-sidebar__list {
    max-height: 310px;
    overflow-y: auto;
}

.cat-sidebar__list li {
    border-bottom: 1px solid var(--border);
}

.cat-sidebar__list li:last-child {
    border-bottom: none;
}

.cat-sidebar__list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    color: var(--text);
    font-size: 13px;
    transition: all var(--transition);
}

.cat-sidebar__list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 20px;
}

.cat-sidebar__count {
    color: var(--text-muted);
    font-size: 12px;
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: var(--radius);
}

.hero-slider__track {
    position: relative;
    aspect-ratio: 3 / 1;
}

@media (max-width: 768px) {
    .hero-slider__track {
        aspect-ratio: 16 / 9;
    }
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    background: var(--primary);
    text-decoration: none;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .hero-slider__slide img {
        object-fit: contain;
        object-position: center;
        background: var(--primary);
    }
}

.hero-slider__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slider Arrows */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-slider__arrow:hover {
    background: rgba(255,255,255,0.4);
}

.hero-slider__arrow svg {
    width: 18px;
    height: 18px;
}

.hero-slider__arrow--prev {
    left: 12px;
}

.hero-slider__arrow--next {
    right: 12px;
}

/* Slider Dots */
.hero-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 6px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-slider__dot.active {
    background: #fff;
    border-color: #fff;
}

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

.trust-badges__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-badges__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.trust-badges__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.trust-badges__icon svg {
    width: 18px;
    height: 18px;
}

.trust-badges__text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.trust-badges__text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   PRODUCT SECTIONS (Homepage)
   ======================================== */
.product-section {
    padding: 36px 0;
    background: var(--bg-alt);
}

.product-section:nth-child(even) {
    background: var(--bg);
}

.product-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.product-section__header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.product-section__viewall {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-section__viewall svg {
    width: 14px;
    height: 14px;
}

/* Products Grid (homepage) */
.products-grid--home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.badge-sale {
    background: var(--sale);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.product-card__image {
    position: relative;
    padding: 16px;
    background: var(--bg);
}

.product-card__image img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__info {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__brand {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
    display: block;
}

.product-card__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card__title a {
    color: var(--text);
}

.product-card__title a:hover {
    color: var(--primary);
}

/* Price display */
.product-card__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Product Card Actions (always visible) */
.product-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--border);
}

.product-card__qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-card__qty button {
    background: var(--bg-alt);
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition);
    line-height: 1;
}

.product-card__qty button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.product-card__qty input {
    width: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    -moz-appearance: textfield;
    padding: 4px 0;
}

.product-card__qty input::-webkit-outer-spin-button,
.product-card__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.product-card__buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background var(--transition);
    text-decoration: none;
}

.product-card__buy:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* ========================================
   BRAND LOGOS
   ======================================== */
.brands-section {
    padding: 32px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brands-section .section-title {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-logo {
    opacity: 0.4;
    transition: all var(--transition);
}

.brand-logo:hover {
    opacity: 1;
}

.brand-logo img {
    max-height: 36px;
    width: auto;
}

/* ========================================
   SHOP / ARCHIVE PAGE
   ======================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px 0;
}

.shop-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-widget__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.category-list li {
    border-bottom: 1px solid var(--border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text);
    font-size: 13px;
    transition: all var(--transition);
}

.category-list li a:hover,
.category-list li.active > a {
    color: var(--primary);
}

.category-list li a .count {
    color: var(--text-muted);
    font-size: 11px;
}

.category-list .children {
    padding-left: 14px;
}

.category-list .children li a {
    font-size: 12px;
    color: var(--text-light);
}

/* Shop Content */
.shop-content {
    min-width: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.shop-header__info {
    font-size: 13px;
    color: var(--text-light);
}

.shop-header__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle {
    display: flex;
    gap: 2px;
}

.view-toggle button {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.view-toggle button.active,
.view-toggle button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.view-toggle button svg {
    width: 14px;
    height: 14px;
}

.shop-sort select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
}

.shop-sort select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Product Grid in Shop — 4 columns */
.products-grid--shop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.products-grid--4col {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* List View */
.products-grid--list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.products-grid--list .product-card {
    flex-direction: row;
}

.products-grid--list .product-card__image {
    width: 180px;
    flex-shrink: 0;
}

.products-grid--list .product-card__image img {
    height: 120px;
}

.products-grid--list .product-card__info {
    flex: 1;
}

.products-grid--list .product-card__actions {
    border-top: none;
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    justify-content: center;
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.shop-pagination a,
.shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.shop-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.shop-pagination span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========================================
   SINGLE PRODUCT
   ======================================== */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 0;
}

.product-gallery {
    align-self: start;
}

.product-gallery__main {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 10px;
    position: relative;
}

.product-gallery__main img {
    width: 100%;
    height: 380px;
    object-fit: contain;
}

.product-gallery__thumbs {
    display: flex;
    gap: 8px;
}

.product-gallery__thumb {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: var(--primary);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info__brand {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-info__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-info__meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-info__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.in-stock {
    color: var(--success) !important;
    font-weight: 600;
}

.out-of-stock {
    color: var(--sale) !important;
    font-weight: 600;
}

.product-info__price-box {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.product-info__price-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.product-info__price-old {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-info__price-vat {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.product-info__price-bgn {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Add to Cart */
.product-info__cart {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.quantity-input:focus-within {
    border-color: var(--primary);
}

.quantity-input button {
    background: var(--bg-alt);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
}

.quantity-input button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.quantity-input input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition);
    letter-spacing: 0.5px;
}

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

.btn-add-cart svg {
    width: 18px;
    height: 18px;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
    grid-column: 1 / -1;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.product-tabs__nav button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.product-tabs__nav button.active,
.product-tabs__nav button:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.product-tabs__content {
    padding: 20px 0;
}

.product-tabs__panel {
    display: none;
}

.product-tabs__panel.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: var(--bg-alt);
}

.specs-table th,
.specs-table td {
    text-align: left;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 180px;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    margin: 0 6px;
    color: var(--border);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-col p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    display: block;
    padding: 4px 0;
    transition: all var(--transition);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 0;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    padding: 0;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.8);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.footer-contact li svg {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Footer Payments */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-payments__icons {
    display: flex;
    gap: 10px;
}

.payment-icon {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ========================================
   SEO TEXT BLOCK
   ======================================== */
.seo-section {
    padding: 36px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.seo-section .container {
    max-width: 800px;
}

.seo-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 700;
}

.seo-section p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

/* Remove excessive gap between page content and footer */
.site-main {
    min-height: calc(100vh - 400px);
}

.page-content h1,
.page-content h2 {
    color: var(--text);
    margin-bottom: 16px;
}

.page-content p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-content ul, .page-content ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.page-content ul li {
    list-style: disc;
    margin-bottom: 4px;
    line-height: 1.6;
}

.page-content ol li {
    list-style: decimal;
    margin-bottom: 4px;
    line-height: 1.6;
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 12px 20px;
    font-size: 13px;
}

.woocommerce-message {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
    color: #065f46;
}

.woocommerce-info {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.woocommerce-error {
    background: #fef2f2;
    border-left: 4px solid var(--sale);
    color: #991b1b;
}

.woocommerce-error li {
    list-style: none;
}

/* WooCommerce Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: var(--font) !important;
    cursor: pointer !important;
    transition: background var(--transition) !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background: var(--primary-hover) !important;
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background: var(--success) !important;
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--success-hover) !important;
}

/* ── WooCommerce Cart/Checkout — full-width override ── */
.woocommerce-cart .page-content,
.woocommerce-checkout .page-content {
    max-width: none !important;
    padding: 28px 32px;
}

/* Hide "added to cart" notice (redundant since we redirect) */
.woocommerce-cart .woocommerce-message {
    display: none;
}

/* ── Cart Page Grid: table left, totals right on wide screens ── */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1100px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: 1fr minmax(0, 380px);
        gap: 28px;
        align-items: start;
    }

    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }
}

/* ── Cart Table ── */
.woocommerce-cart table.cart {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-cart table.cart th {
    background: var(--bg-alt);
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart th.product-thumbnail {
    width: 0;
    padding: 0;
    font-size: 0;
}

.woocommerce-cart table.cart td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
}

/* Thumbnail — bigger product image */
.woocommerce-cart table.cart td.product-thumbnail {
    width: 110px;
    padding: 14px 12px 14px 0;
}

.woocommerce-cart table.cart td.product-thumbnail a {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.woocommerce-cart table.cart img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Remove button — trash icon */
.woocommerce-cart table.cart td.product-remove {
    width: 40px;
    padding: 14px 0 14px 14px;
    text-align: center;
    vertical-align: middle;
}

.woocommerce-cart table.cart td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0 !important;
    color: transparent !important;
    text-decoration: none;
    transition: opacity var(--transition);
    opacity: 0.5;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
    opacity: 1;
}

.woocommerce-cart table.cart td.product-remove a.remove::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}

/* Product name */
.woocommerce-cart table.cart td.product-name a {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.woocommerce-cart table.cart td.product-name a:hover {
    color: var(--primary);
}

/* Quantity input — compact, modern */
.woocommerce-cart .quantity input.qty {
    width: 64px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.woocommerce-cart .quantity input.qty:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 112, 185, 0.15);
}

/* Subtotal */
.woocommerce-cart table.cart td.product-subtotal {
    font-weight: 600;
    white-space: nowrap;
}

/* Actions row (coupon + update cart) */
.woocommerce-cart table.cart td.actions {
    padding: 16px 14px !important;
    border-bottom: none;
}

.woocommerce-cart table.cart .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.woocommerce-cart table.cart .coupon input.input-text {
    width: 200px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font);
}

.woocommerce-cart table.cart .coupon input.input-text:focus {
    border-color: var(--primary);
    outline: none;
}

.woocommerce-cart table.cart td.actions > .button[name="update_cart"] {
    float: right;
}

/* ── Cart Totals — card ── */
.woocommerce-cart .cart-collaterals {
    min-width: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-width: 0;
    width: 100% !important;
    float: none !important;
}

@media (min-width: 1100px) {
    .woocommerce-cart .cart-collaterals .cart_totals {
        position: sticky;
        top: 80px;
    }
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.woocommerce-cart .cart-collaterals .cart_totals table th {
    font-weight: 600;
    color: var(--text);
    padding-right: 16px;
    width: 45%;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping td {
    font-size: 14px;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping td ul {
    margin: 0;
    padding: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping td li {
    list-style: none;
    margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping td p {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping td a {
    font-size: 13px;
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total th,
.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
    padding-top: 18px;
    color: var(--text);
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    margin-top: 24px;
}

.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 22px !important;
    font-size: 16px !important;
    letter-spacing: 0.3px;
    border-radius: var(--radius) !important;
}

/* When stacked (narrow screens), limit totals width and align right */
@media (max-width: 1099px) {
    .woocommerce-cart .cart-collaterals .cart_totals {
        max-width: 440px;
        margin-left: auto;
    }
}

/* WooCommerce placeholder image */
.woocommerce-cart table.cart .woocommerce-placeholder,
.woocommerce-cart table.cart .wp-post-image[src*="woocommerce-placeholder"] {
    opacity: 0.4;
}

/* WooCommerce Checkout */
.woocommerce-checkout .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font);
    width: 100%;
    transition: border-color var(--transition);
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.woocommerce-checkout #order_review {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    display: block;
    left: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
    background: var(--bg-alt);
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.mobile-menu__close svg {
    width: 18px;
    height: 18px;
}

.mobile-menu__nav {
    padding: 8px 0;
}

.mobile-menu__nav > a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.mobile-menu__nav > a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Mobile accordion category tree */
.mobile-menu__cats,
.mobile-menu__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__cats {
    border-bottom: 1px solid var(--border);
}

.mobile-menu__cats > li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu__cats > li:last-child {
    border-bottom: none;
}

.mobile-menu__item {
    display: flex;
    align-items: center;
}

.mobile-menu__item a {
    flex: 1;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.mobile-menu__item a:active {
    color: var(--primary);
}

.mobile-menu__count {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.mobile-menu__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}

.mobile-menu__expand svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.mobile-menu__expand.open svg {
    transform: rotate(90deg);
}

.mobile-menu__expand.open {
    color: var(--primary);
    background: var(--primary-light);
}

/* Sub-levels */
.mobile-menu__sub {
    background: #f8f9fa;
    overflow: hidden;
}

.mobile-menu__sub li {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu__sub .mobile-menu__item a {
    padding-left: 36px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

.mobile-menu__sub .mobile-menu__sub {
    background: #f0f1f3;
}

.mobile-menu__sub .mobile-menu__sub .mobile-menu__item a {
    padding-left: 52px;
    font-size: 12px;
}

.mobile-menu__sub .mobile-menu__sub .mobile-menu__sub .mobile-menu__item a {
    padding-left: 68px;
    font-size: 12px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.mobile-overlay.open {
    display: block;
}

/* Mobile Filter Toggle */
.filter-toggle {
    display: none;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.filter-toggle svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .products-grid--home,
    .products-grid--4col {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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

    .homepage-hero__layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar__right {
        display: none;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .header-phone {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-bar {
        display: none;
    }

    /* Homepage hero: stack sidebar + slider */
    .homepage-hero__layout {
        grid-template-columns: 1fr;
    }

    .cat-sidebar {
        border-right: 1px solid var(--border);
        display: none;
    }

    /* hero-slider responsive handled above */

    /* Trust badges: 2 columns */
    .trust-badges__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product grids: 2 columns */
    .products-grid--home,
    .products-grid--shop,
    .products-grid--4col {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: none;
    }

    .shop-sidebar.open {
        display: block;
    }

    .filter-toggle {
        display: flex;
    }

    .single-product-layout {
        grid-template-columns: 1fr;
    }

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

    .products-grid--list .product-card {
        flex-direction: column;
    }

    .products-grid--list .product-card__image {
        width: auto;
    }

    .products-grid--list .product-card__actions {
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
    }

    .footer-payments {
        flex-wrap: wrap;
    }

    /* Cart: stack to single column */
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .woocommerce-cart .page-content {
        padding: 20px 16px !important;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        position: static;
    }

    /* Cart table: responsive */
    .woocommerce-cart table.cart th.product-price,
    .woocommerce-cart table.cart td.product-price {
        display: none;
    }

    .woocommerce-cart table.cart td {
        padding: 10px 8px;
    }

    .woocommerce-cart table.cart td.product-thumbnail a {
        width: 56px;
        height: 56px;
    }

    .woocommerce-cart table.cart .coupon {
        display: flex;
        width: 100%;
    }

    .woocommerce-cart table.cart .coupon input.input-text {
        flex: 1;
        width: auto;
    }

    .woocommerce-cart table.cart td.actions > .button[name="update_cart"] {
        float: none;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    /* Page content mobile */
    .page-content {
        padding: 20px 16px;
        margin: 12px 0;
    }
}

@media (max-width: 480px) {
    /* Cart: hide table header, card layout */
    .woocommerce-cart table.cart thead {
        display: none;
    }

    .woocommerce-cart table.cart tbody tr.cart_item {
        display: grid;
        grid-template-columns: 32px 56px 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 8px;
        padding: 14px 0;
        align-items: center;
    }

    .woocommerce-cart table.cart td {
        padding: 0;
        border-bottom: none;
    }

    .woocommerce-cart table.cart td.product-remove { grid-area: 1 / 1; }
    .woocommerce-cart table.cart td.product-thumbnail { grid-area: 1 / 2; padding: 0; }
    .woocommerce-cart table.cart td.product-name { grid-area: 1 / 3; font-size: 13px; }
    .woocommerce-cart table.cart td.product-subtotal { grid-area: 1 / 4; font-size: 14px; text-align: right; }
    .woocommerce-cart table.cart td.product-quantity { grid-area: 2 / 3; }

    .woocommerce-cart table.cart td.product-thumbnail a {
        width: 48px;
        height: 48px;
    }

    .products-grid--home,
    .products-grid--shop,
    .products-grid--4col {
        grid-template-columns: 1fr !important;
    }

    .trust-badges__grid {
        grid-template-columns: 1fr;
    }

    .hero-slider__track {
        min-height: 180px;
    }

    .product-info__price-main {
        font-size: 24px;
    }

    .product-info__cart {
        flex-direction: column;
    }

    .btn-add-cart {
        width: 100%;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__buy {
        width: 100%;
    }

    .product-card__qty {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PROMOTIONAL BANNERS (3-column brand promos)
   ======================================== */
.promo-banners {
    padding: 12px 0 24px;
}

.promo-banners__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promo-banners__item {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.promo-banners__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.promo-banners__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 7;
}

@media (max-width: 1024px) {
    .promo-banners__grid {
        grid-template-columns: 1fr 1fr;
    }

    .promo-banners__item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .promo-banners__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-banners__item:last-child {
        grid-column: auto;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

/* Section Header (used by brand-logos, old templates) */
.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Generic products-grid (used by single product related, bestsellers fallback) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ========================================
   WOOCOMMERCE FILTER WIDGETS
   ======================================== */
.sidebar-widget .wp-block-woocommerce-price-filter,
.sidebar-widget .wp-block-woocommerce-attribute-filter {
    font-size: 13px;
    color: var(--text);
}

.sidebar-widget .wc-block-price-filter__range-input-wrapper {
    margin: 12px 0;
}

.sidebar-widget .wc-block-price-filter__range-input-wrapper .wc-block-price-filter__range-input-progress {
    background: var(--primary);
}

.sidebar-widget .wc-block-price-filter__controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sidebar-widget .wc-block-price-filter__amount {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 4px);
    padding: 4px 8px;
    font-size: 12px;
    width: 80px;
    text-align: center;
}

.sidebar-widget .wc-block-components-filter-submit-button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 4px);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-widget .wc-block-components-filter-submit-button:hover {
    background: var(--primary-dark, #1a4a7a);
}

.sidebar-widget select.wc-block-attribute-filter-dropdown {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 4px);
    padding: 6px 10px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
}
