/* ============================================================
   VARIABLES & BASE
   ============================================================ */
:root {
    --clr-primary: #111827;
    --clr-primary-light: #1f2937;
    --clr-accent: #16a34a;
    --clr-accent-hover: #15803d;
    --clr-accent-light: #dcfce7;
    --clr-text: #111827;
    --clr-text-muted: #6b7280;
    --clr-bg: #f8f9fa;
    --clr-white: #ffffff;
    --clr-border: #e5e7eb;
    --clr-danger: #dc2626;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background: var(--clr-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--clr-accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--clr-white);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--clr-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-logo:hover {
    color: var(--clr-accent);
}

.site-logo .logo-accent {
    color: var(--clr-accent);
}

/* Search bar — centered, wider */
.header-search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
}

.header-search .form-control {
    border: 1.5px solid var(--clr-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 18px;
    font-size: 15px;
    background: var(--clr-bg);
    transition: border-color 0.2s, background 0.2s;
}

.header-search .form-control:focus {
    border-color: var(--clr-accent);
    background: var(--clr-white);
    box-shadow: none;
}

.header-search .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 10px 20px;
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.header-search .btn:hover {
    background: var(--clr-primary-light);
    border-color: var(--clr-primary-light);
}

/* ============================================================
   MAIN NAVIGATION — light style
   ============================================================ */
.main-nav {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
}

.main-nav .nav-link {
    color: var(--clr-text-muted);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    position: relative;
}

.main-nav .nav-link:hover {
    color: var(--clr-primary);
}

.main-nav .nav-link.active {
    color: var(--clr-primary);
    font-weight: 600;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 1px;
}

.main-nav .nav-link .bi {
    opacity: 0.7;
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: 4px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--clr-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
    background: var(--clr-bg);
    color: var(--clr-accent);
}

.nav-dropdown-all {
    font-weight: 600;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 2px;
}

/* ============================================================
   BREADCRUMBS — horizontal, modern
   ============================================================ */
.breadcrumbs {
    margin-bottom: 18px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    font-size: 13px;
    color: var(--clr-text-muted);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 6px;
    color: var(--clr-border);
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--clr-text-muted);
    transition: color 0.15s;
}

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

.breadcrumbs span {
    color: var(--clr-text);
    font-weight: 500;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 40px;
}

main.main-homepage {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================================
   CARDS — minimal
   ============================================================ */
.card {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--clr-white);
    transition: box-shadow 0.2s;
}

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

.card-header {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 14px 20px;
}

.card-body {
    padding: 20px;
}

.card-minimal {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    background: var(--clr-white);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

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

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    background: var(--clr-white);
    border-radius: var(--radius);
    padding: 22px;
}

.sidebar h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar h5 .bi {
    color: var(--clr-accent);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: var(--clr-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-menu a:hover {
    background: var(--clr-bg);
    color: var(--clr-accent);
}

.sidebar-menu a.active {
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    font-weight: 600;
}

.sidebar-menu a.active .badge {
    background: var(--clr-accent-hover) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sidebar-menu .badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e3e7ec !important;
    color: #2f3944 !important;
    font-weight: 600;
}

/* Podkategorie v sidebar */
.sidebar-menu-sub {
    list-style: none;
    padding: 0;
    margin: 2px 0 4px 0;
}

.sidebar-menu-sub li {
    margin-bottom: 1px;
}

.sidebar-menu-sub a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px 5px 22px;
    color: var(--clr-text-muted);
    text-decoration: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    border-left: 2px solid var(--clr-border);
    margin-left: 12px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-menu-sub a:hover {
    background: var(--clr-bg);
    color: var(--clr-accent);
    border-left-color: var(--clr-accent);
}

.sidebar-menu-sub a.active {
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    font-weight: 600;
    border-left-color: var(--clr-accent);
}

.sidebar-menu-sub a.active .badge {
    background: var(--clr-accent-hover) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sidebar-menu-sub .badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e3e7ec !important;
    color: #2f3944 !important;
    font-weight: 600;
}

/* Sidebar collapsible toggle */
.sidebar-toggle-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.sidebar-toggle-btn:hover {
    color: var(--clr-accent);
}

.sidebar-toggle-btn.open .bi-chevron-down {
    transform: rotate(180deg);
    display: inline-block;
}

.sidebar-collapsible > .d-flex > a {
    flex: 1;
    min-width: 0;
}

/* Subcategory pills pod nadpisem kategorie */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.cat-pills a {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--clr-text);
    text-decoration: none;
    background: white;
    transition: all 0.15s;
}

.cat-pills a:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.cat-pills a .pill-count {
    font-size: 11px;
    color: var(--clr-text-muted);
    margin-left: 5px;
}

/* Inline filter pills — collapsible details/summary */
.inline-filters {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    background: var(--clr-white);
    overflow: hidden;
}

.inline-filters-skeleton {
    padding: 6px 0;
}

.inline-filter-skeleton-row {
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--clr-border);
}

.inline-filter-skeleton-row:last-child {
    border-bottom: none;
}

.inline-filter-skeleton-title,
.inline-filter-skeleton-pill {
    display: inline-block;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
    background-size: 200% 100%;
    animation: filterSkeletonPulse 1.4s ease-in-out infinite;
}

.inline-filter-skeleton-title {
    width: 120px;
    height: 14px;
    margin-bottom: 12px;
}

.inline-filter-skeleton-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-filter-skeleton-pill {
    width: 96px;
    height: 28px;
}

.inline-filter-skeleton-pill.short {
    width: 72px;
}

@keyframes filterSkeletonPulse {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.inline-filter-details {
    border-bottom: 1px solid var(--clr-border);
}

.inline-filter-details:last-child {
    border-bottom: none;
}

.inline-filter-summary {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-text);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.inline-filter-summary::-webkit-details-marker {
    display: none;
}

.inline-filter-summary:hover {
    background: var(--clr-bg);
}

.inline-filter-chevron {
    margin-left: auto;
    font-size: 11px;
    color: var(--clr-text-muted);
    transition: transform 0.2s;
}

.inline-filter-details[open] .inline-filter-chevron {
    transform: rotate(180deg);
}

.inline-filter-active-badge {
    font-size: 11px;
    font-weight: 500;
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.inline-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 14px 12px;
}

.inline-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--clr-text);
    text-decoration: none;
    background: white;
    transition: all 0.15s;
    cursor: pointer;
    line-height: 1.4;
}

.inline-filter-pill:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.inline-filter-pill.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: white;
}

.inline-filter-pill.active .inline-pill-count {
    background: rgba(255,255,255,0.3);
    color: white;
}

.inline-pill-count {
    font-size: 10px;
    background: var(--clr-bg);
    color: var(--clr-text-muted);
    border-radius: 8px;
    padding: 0 5px;
    margin-left: 4px;
}

.inline-pill-toggle {
    font-size: 12px;
    color: var(--clr-accent);
    border-style: dashed;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--clr-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    display: block;
    max-width: 100%;
    height: 180px;
    margin: auto;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
    flex: 1;
}

.product-title:hover {
    color: var(--clr-accent);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-top: auto;
}

.product-price .price-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-text-muted);
}

/* ============================================================
   PRICE TABLE
   ============================================================ */
.price-table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.price-table .table {
    margin-bottom: 0;
}

.price-table .best-price {
    background: #f0fdf4;
}

.price-table .best-price td {
    font-weight: 500;
}

.price-table .btn-primary {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    padding: 6px 14px;
    font-weight: 600;
}

.price-table .btn-primary:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
}

.price-table-action-col {
    width: 160px;
    min-width: 160px;
}

.price-table-btn {
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 576px) {
    .price-table table { table-layout: auto; }
    .price-table thead { display: none; }
    .price-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }
    .price-table tbody tr td {
        border: none;
        padding: 0.15rem 0;
    }
    .price-table tbody tr td:first-child { flex: 1 1 60%; }
    .price-table tbody tr td:nth-child(2) { flex: 1 1 40%; text-align: right; }
    .price-table tbody tr td:nth-child(3) { flex: 0 0 auto; }
    .price-table tbody tr td:last-child {
        flex: 1 1 100%;
        margin-top: 0.5rem;
    }
    .price-table-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    .price-table-action-col { width: auto; min-width: auto; }
}

/* ============================================================
   HERO SECTION — full-width gradient
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #374151 50%, var(--clr-primary-light) 100%);
    padding: 64px 0;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-section p.lead {
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-hero {
    background: var(--clr-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-section .btn-hero:hover {
    background: var(--clr-accent-hover);
    color: white;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.section-home {
    padding: 56px 0;
}

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

.section-home:nth-child(odd) {
    background: var(--clr-white);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

/* Category grid */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    background: var(--clr-bg);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-tile:hover img {
    transform: scale(1.05);
}

.category-tile .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.category-tile .overlay h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.category-tile .overlay span {
    font-size: 13px;
    opacity: 0.85;
}

/* Comparison cards */
.grid-comparisons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.comparison-card {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    background: var(--clr-white);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.comparison-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.comparison-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comparison-card .card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.comparison-card .card-body h3 a {
    color: var(--clr-primary);
    text-decoration: none;
}

.comparison-card .card-body h3 a:hover {
    color: var(--clr-accent);
}

.comparison-card .card-body p {
    color: var(--clr-text-muted);
    font-size: 14px;
    margin: 0;
    flex: 1;
}

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

/* Thematic blocks */
.block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.block-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.block-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--clr-text);
}

.block-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.block-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    font-size: 13px;
    color: var(--clr-text);
    text-decoration: none;
    background: var(--clr-white);
    transition: all 0.15s;
}

.block-item:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.block-item .item-count {
    font-size: 11px;
    color: var(--clr-text-muted);
    margin-left: 6px;
}

@media (max-width: 991px) {
    .block-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .block-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION HEADERS (for non-homepage pages)
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .btn-sm {
    font-size: 13px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1.5px solid var(--clr-border);
    color: var(--clr-text);
    background: var(--clr-white);
    transition: border-color 0.15s, color 0.15s;
}

.section-header .btn-sm:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

/* ============================================================
   LIST GROUP — article list
   ============================================================ */
.list-group-item-action {
    border-radius: 0;
    padding: 14px 18px;
    transition: background 0.15s;
    border-bottom: 1px solid var(--clr-border);
}

.list-group-item-action:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background: var(--clr-bg);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge.bg-success {
    background: var(--clr-accent-light) !important;
    color: var(--clr-accent-hover);
}

/* ============================================================
   BUTTONS — global overrides
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn-primary:hover {
    background: var(--clr-primary-light);
    border-color: var(--clr-primary-light);
}

.btn-outline-primary {
    border-color: var(--clr-border);
    color: var(--clr-text);
}

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

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-size: 14px;
    padding: 6px 12px;
    margin: 0;
    transition: all 0.15s;
    background: var(--clr-white);
}

.pagination .page-link:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.pagination .page-item.active .page-link {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: white;
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    font-size: 14px;
}

.table thead {
    background: var(--clr-bg);
}

.table thead th {
    font-weight: 600;
    color: var(--clr-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--clr-border);
}

.table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--clr-border);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    font-size: 14px;
}

.alert-light {
    background: var(--clr-bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--clr-primary);
    color: white;
    padding: 56px 0 24px;
    margin-top: auto;
}

.site-footer h6 {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.site-footer p {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.7;
}

.site-footer .list-unstyled li {
    margin-bottom: 8px;
}

.site-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: white;
}

.site-footer hr {
    border-color: rgba(255,255,255,0.1);
}

.site-footer .copyright {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

/* ============================================================
   CATEGORY LAYOUT
   ============================================================ */
.category-layout {
    /* Sidebar left, content right on desktop */
}

/* Products grid — 3 col desktop, 2 col mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Filter bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.filter-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.active-filter-tag:hover {
    background: #bbf7d0;
    color: var(--clr-accent-hover);
}

.active-filter-tag .bi-x {
    font-size: 16px;
}

.active-filter-clear {
    font-size: 13px;
    color: var(--clr-text-muted);
    text-decoration: none;
}

.active-filter-clear:hover {
    color: var(--clr-danger);
}

.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-sort-label {
    font-size: 13px;
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.filter-sort-select {
    width: auto;
    min-width: 160px;
    font-size: 13px;
}

/* Featured row hover */
.featured-row {
    transition: background 0.15s !important;
}

.featured-row:hover {
    background: #eef2ff !important;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-accent {
    color: var(--clr-accent);
}

.bg-accent-light {
    background: var(--clr-accent-light);
}

/* ============================================================
   HAMBURGER & MOBILE MENU
   ============================================================ */
.hamburger-btn {
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 22px;
    color: var(--clr-text);
    cursor: pointer;
    line-height: 1;
}

.hamburger-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--clr-white);
    z-index: 201;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.open {
    right: 0;
}

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

.mobile-menu-title {
    font-weight: 700;
    font-size: 16px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-close:hover {
    color: var(--clr-text);
}

.mobile-menu-search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--clr-border);
}

.mobile-menu-search .form-control {
    font-size: 14px;
}

.mobile-menu-nav {
    padding: 8px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--clr-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.mobile-menu-link:hover {
    background: var(--clr-bg);
    color: var(--clr-accent);
}

.mobile-menu-link .bi {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--clr-text-muted);
}

.mobile-menu-link-wrap {
    display: flex;
    align-items: center;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.mobile-submenu-toggle.open .bi {
    transform: rotate(180deg);
    display: inline-block;
}

.mobile-submenu {
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
}

.mobile-submenu-link {
    display: block;
    padding: 10px 20px 10px 52px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--clr-border);
}

.mobile-submenu-link:last-child {
    border-bottom: none;
}

.mobile-submenu-link:hover {
    background: var(--clr-white);
    color: var(--clr-accent);
}

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

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section p.lead {
        font-size: 16px;
    }

    .section-home {
        padding: 36px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-sort-select {
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .grid-categories,
    .grid-comparisons,
    .grid-products {
        grid-template-columns: 1fr;
    }

    /* Products in category stay at 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .products-grid .product-card {
        padding: 10px;
    }

    .products-grid .product-image {
        height: 120px;
    }

    .products-grid .product-title {
        font-size: 13px;
    }

    .products-grid .product-price {
        font-size: 15px;
    }

    .products-grid .btn-sm {
        display: none;
    }

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

    .product-card {
        padding: 12px;
    }
}
