/*
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: 1.0.0
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
*/

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    --primary: #0170B9;
    --primary-hover: #015a94;
    --primary-light: #e8f4fc;
    --primary-dark: #01507e;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-dark: #1a1a2e;
    --success: #28a745;
    --success-hover: #218838;
    --sale: #dc3545;
    --warning: #ffc107;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --max-width: 1280px;
    --header-height: 140px;
    --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: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

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

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

.top-bar__contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar__contact a {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

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

.top-bar__contact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

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

.top-bar__links a {
    color: #ccc;
    font-size: 13px;
}

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

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background: var(--bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

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

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

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

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

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

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

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

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

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

.header-search button {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    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: 18px;
    height: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.header-cart:hover {
    background: var(--bg-alt);
    color: var(--text);
}

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

.cart-count {
    position: absolute;
    top: 2px;
    left: 28px;
    background: var(--sale);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

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

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

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

.nav-bar__menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    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.15);
    color: #fff;
}

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

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-dropdown > a {
    background: var(--primary-dark) !important;
    padding: 12px 24px !important;
    gap: 10px !important;
}

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

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

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

.mega-menu__list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

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

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

/* Submenu */
.mega-menu__list .sub-menu {
    padding-left: 20px;
}

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

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

/* ========================================
   STICKY HEADER
   ======================================== */
.sticky-header {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    background: var(--bg);
    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: 20px;
}

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

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

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

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

/* ========================================
   HERO BANNER
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
}

.hero-btn:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    flex-shrink: 0;
    max-width: 400px;
}

.hero-image img {
    max-height: 300px;
    object-fit: contain;
}

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

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

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

.brand-logo {
    opacity: 0.5;
    transition: opacity var(--transition);
    filter: grayscale(100%);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

/* ========================================
   CATEGORY TILES
   ======================================== */
.categories-section {
    padding: 60px 0;
    background: var(--bg-alt);
}

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

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

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-tile {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-tile__image {
    padding: 24px 24px 16px;
    background: var(--bg-alt);
}

.category-tile__image img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.category-tile__info {
    padding: 16px;
}

.category-tile__info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.category-tile__info .count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   BESTSELLERS / PRODUCT SECTIONS
   ======================================== */
.bestsellers-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.badge-new {
    background: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.product-card__image {
    position: relative;
    padding: 20px;
    background: var(--bg-alt);
    overflow: hidden;
}

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

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

.product-card__quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--success);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transform: translateY(100%);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-card:hover .product-card__quick-add {
    transform: translateY(0);
}

.product-card__quick-add:hover {
    background: var(--success-hover);
}

.product-card__info {
    padding: 16px;
}

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

.product-card__title {
    font-size: 14px;
    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;
}

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

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

.product-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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

.price-dual {
    font-size: 12px;
    color: var(--text-light);
}

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

/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

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

.sidebar-widget__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    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: 14px;
    transition: all var(--transition);
}

.category-list li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.category-list li a .count {
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

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

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

.filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sale);
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    cursor: pointer;
}

.filter-clear:hover {
    text-decoration: underline;
}

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

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

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

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

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

.view-toggle button {
    background: var(--bg-alt);
    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: 16px;
    height: 16px;
}

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

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

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

.products-grid--list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
}

.products-grid--list .product-card__image {
    height: 100%;
}

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

.products-grid--list .product-card__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid--list .product-card__quick-add {
    position: static;
    transform: none;
    border-radius: var(--radius-sm);
    margin: 16px;
    align-self: center;
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    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: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    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: 40px;
    padding: 30px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.product-gallery__main {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 12px;
    cursor: zoom-in;
}

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

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

.product-gallery__thumb {
    width: 70px;
    height: 70px;
    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: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

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

.product-info__meta {
    display: flex;
    gap: 20px;
    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: 500;
}

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

.product-info__price-box {
    margin-bottom: 24px;
}

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

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

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

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

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

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

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

.quantity-input button:hover {
    background: var(--border);
}

.quantity-input input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    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(--success);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-add-cart:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

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

.product-tabs__nav button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-light);
    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: 24px 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: 14px;
    border-bottom: 1px solid var(--border);
}

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

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

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

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

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

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-col a {
    color: #ccc;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: color var(--transition);
}

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

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

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

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

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

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

.seo-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text);
}

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

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

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

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

.woocommerce-error {
    background: #f8d7da;
    border-left: 4px solid var(--sale);
    color: #721c24;
}

.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 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: var(--font) !important;
    cursor: pointer !important;
    transition: all 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 */
.woocommerce-cart table.cart {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-cart table.cart th {
    background: var(--bg-alt);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

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

.woocommerce-cart table.cart img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* WooCommerce Checkout */
.woocommerce-checkout .form-row label {
    font-size: 14px;
    font-weight: 500;
    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: 14px;
    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;
    box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.1);
}

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

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

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

.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 {
    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: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text);
}

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

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

.mobile-menu__nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

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

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

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

    .hero-image {
        max-width: 300px;
    }
}

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

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

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

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

    .nav-bar {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        margin: 0 auto 24px;
    }

    .hero-image {
        max-width: 250px;
    }

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

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

    .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;
    }

    .product-gallery {
        position: static;
    }

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

    .products-grid--list .product-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .products-grid--shop {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 24px;
    }

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

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

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

/* ========================================
   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;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
