/* ============================================
   BulgarAuto.com - Main Stylesheet
   Modern auto parts e-commerce design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #e53e3e;
    --primary-dark: #c53030;
    --primary-light: #feb2b2;
    --secondary: #1a202c;
    --secondary-light: #2d3748;
    --accent: #ed8936;
    --accent-dark: #dd6b20;
    --text: #1a202c;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg: #ffffff;
    --bg-gray: #f7fafc;
    --bg-dark: #1a202c;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.2s ease;
    --max-width: 1280px;
    --header-height: 70px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    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: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
}

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

.btn-outline {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.btn-outline:hover {
    background: #fff;
    color: var(--secondary);
}

.btn-outline-dark {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}
.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.813rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

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

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-right {
    display: flex;
    gap: 1.25rem;
}

.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.85);
}
.top-bar-right a:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .top-bar-left span:not(:first-child) { display: none; }
    .top-bar-right a:last-child { display: none; }
}

/* ---------- Header ---------- */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--secondary);
}
.logo-name strong {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Form */
.search-form {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: none;
}

.search-form input {
    width: 100%;
    padding: 0.625rem 3rem 0.625rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color var(--transition);
    background: var(--bg-gray);
}
.search-form input:focus {
    border-color: var(--primary);
    background: #fff;
}
.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.search-form button:hover {
    background: var(--primary-dark);
}

@media (min-width: 768px) {
    .search-form { display: flex; }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.7rem;
    transition: all var(--transition);
}
.header-action i {
    font-size: 1.15rem;
}
.header-action:hover {
    color: var(--primary);
    background: rgba(229, 62, 62, 0.05);
}

.mobile-search-toggle,
.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-search-toggle { display: none; }
    .mobile-menu-toggle { display: none; }
}

/* ---------- Main Navigation ---------- */
.main-nav {
    background: var(--secondary);
    display: none;
}

@media (min-width: 768px) {
    .main-nav { display: block; }
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-categories-toggle {
    background: var(--primary);
    color: #fff !important;
    padding: 0.75rem 1.25rem;
}
.nav-categories-toggle:hover {
    background: var(--primary-dark) !important;
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.5rem;
    min-width: 700px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-item.has-dropdown:hover .mega-dropdown,
.nav-item.has-dropdown.open .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mega-category-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-light);
}
.mega-category-title:hover {
    color: var(--primary);
}
.mega-category-title .count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mega-subcategories li {
    margin-bottom: 0.15rem;
}
.mega-subcategories a {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.825rem;
    color: var(--text-light);
}
.mega-subcategories a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}
.mega-subcategories .see-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---------- Mobile Search ---------- */
.mobile-search {
    display: none;
    background: var(--bg-gray);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.mobile-search.active {
    display: block;
}

.mobile-search form {
    display: flex;
    gap: 0.5rem;
}
.mobile-search input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
}
.mobile-search input:focus {
    border-color: var(--primary);
}
.mobile-search button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all var(--transition);
}
.mobile-menu-close:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.mobile-menu-body {
    padding: 0.5rem 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}
.mobile-menu-link:hover {
    background: var(--bg-gray);
    color: var(--primary);
}
.mobile-menu-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: var(--text-light);
}
.mobile-menu-link .badge {
    background: var(--bg-gray);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-weight: 500;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.mobile-menu-label {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d3748 60%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229,62,62,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237,137,54,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}
.hero-feature i {
    color: var(--accent);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero { padding: 4.5rem 0; }
}

/* ---------- Sections ---------- */
.section {
    padding: 3rem 0;
}
.section-gray {
    background: var(--bg-gray);
}
.section-dark {
    background: var(--secondary);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.section-dark .section-title {
    color: #fff;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}
.section-dark .section-subtitle {
    color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
    .section { padding: 4rem 0; }
}

/* ---------- Categories Grid ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.category-card {
    background: #fff;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229,62,62,0.08), rgba(237,137,54,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    transition: all var(--transition);
}
.category-card:hover .category-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.category-card-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

.category-card-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* ---------- Product Card ---------- */
.product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}
.badge-sale {
    background: var(--primary);
    color: #fff;
}
.badge-new {
    background: #38a169;
    color: #fff;
}

.product-card-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-card-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title:hover {
    color: var(--primary);
}

.product-card-sku {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.product-card-price {
    margin-top: auto;
    padding-top: 0.35rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 0.35rem;
}

.price-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.price-eur {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.product-card-actions {
    padding: 0 0.75rem 0.75rem;
}
.product-card-actions .btn {
    width: 100%;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1.25rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(229, 62, 62, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-light);
}
.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item:last-child {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* ---------- Category Page ---------- */
.category-header {
    margin-bottom: 1.5rem;
}

.category-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.category-header .product-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.subcategory-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text);
    transition: all var(--transition);
}
.subcategory-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(229, 62, 62, 0.03);
}
.subcategory-tag .count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Sort/Filter Bar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-info {
    font-size: 0.85rem;
    color: var(--text-light);
}
.toolbar-info strong {
    color: var(--text);
}

.sort-select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E") right 0.6rem center no-repeat;
    appearance: none;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}
.sort-select:focus {
    border-color: var(--primary);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(229, 62, 62, 0.03);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ---------- Product Detail Page ---------- */
.product-detail {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Gallery */
.product-gallery {
    position: relative;
}

.gallery-main {
    aspect-ratio: 1;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    margin-bottom: 0.75rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
    background: #fff;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

/* Product Info */
.product-info h1 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}
.stock-status.in-stock {
    color: #38a169;
}
.stock-status.out-of-stock {
    color: var(--primary);
}

.product-price-section {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-price-main .price-current {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
}

.product-price-main .price-old {
    font-size: 1.1rem;
}

.product-price-main .price-eur {
    font-size: 1rem;
}

.product-price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-features-list {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
}

.product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}
.product-features-list li i {
    color: #38a169;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Tabs */
.product-tabs {
    margin-top: 2.5rem;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 0;
    overflow-x: auto;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    white-space: nowrap;
}
.tab-button:hover {
    color: var(--text);
}
.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 1.5rem 0;
}
.tab-content.active {
    display: block;
}

.tab-content h2,
.tab-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tab-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

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

.specs-table td {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 40%;
}
.specs-table td:last-child {
    color: var(--text-light);
}

/* Related Products */
.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.related-products h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

/* ---------- Search Page ---------- */
.search-page-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-page-form input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-page-form input:focus {
    border-color: var(--primary);
}

.search-page-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.search-page-form button:hover {
    background: var(--primary-dark);
}

.search-results-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}
.search-results-info strong {
    color: var(--text);
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}
.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.no-results h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.no-results p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ---------- Info Pages (About, Contact, Delivery) ---------- */
.info-page {
    padding: 2rem 0 3rem;
}

.info-page h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.info-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 2rem 0 0.75rem;
}

.info-page p {
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.info-page ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.info-page ul li {
    list-style: disc;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow var(--transition);
}
.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229,62,62,0.1), rgba(237,137,54,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.contact-card p,
.contact-card a {
    font-size: 0.9rem;
    color: var(--text-light);
}
.contact-card a:hover {
    color: var(--primary);
}

/* Delivery table */
.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.delivery-table th,
.delivery-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.delivery-table th {
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
}

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

/* ---------- Footer ---------- */
.footer {
    margin-top: auto;
}

.footer-main {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}

.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 0.35rem;
}
.footer-col ul a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    transition: all var(--transition);
}
.footer-col ul a:hover {
    color: #fff;
    padding-left: 0.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}
.footer-logo .logo-name {
    color: #fff;
    font-size: 1.15rem;
}

.footer-about {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
    font-size: 0.9rem;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    align-items: flex-start;
}
.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 0.3rem;
    width: 16px;
    text-align: center;
}
.footer-contact-item strong {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.footer-contact-item a,
.footer-contact-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.footer-contact-item a:hover {
    color: #fff;
}

.footer-bottom {
    background: #111827;
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.5);
}
.footer-payments i {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- Schema.org hidden ---------- */
[itemscope] meta[itemprop] {
    display: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ---------- Print ---------- */
@media print {
    .top-bar, .header, .main-nav, .footer, .mobile-menu,
    .mobile-menu-overlay, .mobile-search, .product-card-actions,
    .hero-actions { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .product-card { break-inside: avoid; }
}
