/**
 * Category Page Styles - Porównywarka Cen MED-LEK
 * Styles specific to product category listing pages
 */

/* ==================================================
   CATEGORY HEADER
   ================================================== */
.category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ab8ad 100%);
    color: white;
    padding: 40px 0;
    border-radius: var(--border-radius-card);
    margin-bottom: 30px;
}

.category-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.category-description {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 25px;
    max-width: 800px;
}

.category-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.category-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-stat svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.category-stat strong {
    font-size: 18px;
    font-weight: 700;
}

/* ==================================================
   MAIN LAYOUT
   ================================================== */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* ==================================================
   SIDEBAR FILTERS
   ================================================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--primary-color);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-option label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
}

.filter-count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--gray-color);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==================================================
   RANGE SLIDER WITH INPUTS - Desktop Filters
   ================================================== */
.range-filter-group {
    margin-top: 12px;
}

.range-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.range-input-wrapper {
    flex: 1;
    position: relative;
}

.range-input-wrapper .range-label {
    position: absolute;
    top: -8px;
    left: 10px;
    font-size: 10px;
    color: var(--text-light);
    background: white;
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-primary);
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    background: #fafafa;
}

.range-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.range-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.range-separator {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

/* Dual Range Slider */
.range-slider-container {
    position: relative;
    height: 32px;
    margin: 8px 0 4px;
}

.range-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    transform: translateY(-50%);
}

.range-slider-fill {
    position: absolute;
    top: 50%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), #0ab8ad);
    border-radius: 3px;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    pointer-events: none;
}

.range-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
}

/* Slider min ma niższy z-index by max był łatwiejszy do złapania na końcu */
.range-slider:first-of-type {
    z-index: 3;
}

.range-slider:last-of-type {
    z-index: 4;
}

.range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: -8px;
    position: relative;
    z-index: 5;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(12, 222, 208, 0.4);
    border-color: #0ab8ad;
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    border-color: #0ab8ad;
    box-shadow: 0 4px 16px rgba(12, 222, 208, 0.5);
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border: none;
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.range-values-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.range-values-display span {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Quick Filter Buttons */
.quick-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.quick-filter-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.quick-filter-btn:hover {
    background: rgba(12, 222, 208, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quick-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Legacy support */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-primary);
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    background: #fafafa;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.price-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.apply-filter-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ab8ad 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    font-family: var(--font-primary);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(12, 222, 208, 0.3);
}

.apply-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 222, 208, 0.4);
}

/* Unit label next to inputs */
.range-inputs-row > span:last-child {
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

/* Filter section spacing improvements */
.filter-section .range-filter-group + .quick-filter-buttons {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

/* Slider container improvements for mobile drawer */
.filters-drawer-content .range-filter-group {
    margin-top: 10px;
}

.filters-drawer-content .range-inputs-row {
    margin-bottom: 8px;
}

.filters-drawer-content .range-input {
    padding: 10px 8px;
    font-size: 14px;
}

.filters-drawer-content .range-input-wrapper .range-label {
    font-size: 9px;
    top: -7px;
    left: 8px;
}

.filters-drawer-content .quick-filter-buttons {
    margin-top: 8px;
}

.filters-drawer-content .quick-filter-btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* Improved filter section headers in sidebar */
.sidebar .filter-section {
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar .filter-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

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

/* Better spacing for filter options */
.sidebar .filter-option {
    padding: 6px 0;
}

.sidebar .filter-option input[type="checkbox"],
.sidebar .filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
}

.sidebar .filter-option label {
    font-size: 13px;
}

.sidebar .filter-count {
    font-size: 11px;
    padding: 1px 6px;
}

.clear-filters {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters:hover {
    color: var(--primary-color);
}

/* ==================================================
   PRODUCTS SECTION
   ================================================== */
.products-section {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 25px;
    box-shadow: var(--shadow);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-color);
}

.products-count {
    font-size: 16px;
    color: var(--text-light);
}

.products-count strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.products-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-primary);
    cursor: pointer;
    background: white;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

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

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--gray-color);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-light);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

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

/* ==================================================
   PRODUCTS GRID
   ================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ==================================================
   PRODUCTS LIST VIEW - Kompaktowy profesjonalny styl
   ================================================== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 12px;
    position: relative;
    min-height: auto;
    border-radius: 10px;
}

.products-list .product-card:hover {
    background: linear-gradient(135deg, rgba(12, 222, 208, 0.03) 0%, rgba(12, 222, 208, 0.01) 100%);
}

.products-list .product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 9px;
    padding: 2px 6px;
}

.products-list .ingredient-badge {
    position: static !important;
    order: -1;
    font-size: 10px !important;
    padding: 3px 8px !important;
    white-space: nowrap;
}

/* Miniaturka - kompaktowa */
.products-list .product-image-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    min-height: auto;
    margin-bottom: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #f8f9fa;
}

.products-list .product-image-wrapper img.product-image {
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

/* Info - główna część w jednej linii */
.products-list .product-info-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0;
    min-width: 0;
}

.products-list .product-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    min-height: auto;
    margin-bottom: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    line-height: 1.3;
}

.products-list .product-name a {
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-list .product-name a:hover {
    color: var(--primary-color);
}

.products-list .product-meta {
    display: none;
}

.products-list .product-rating {
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 12px;
}

.products-list .product-rating .stars {
    font-size: 11px;
}

.products-list .product-rating .rating-count {
    font-size: 11px;
}

.products-list .product-price {
    flex-shrink: 0;
    margin: 0;
    text-align: right;
    min-width: 85px;
}

.products-list .product-price .price-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.products-list .product-price .price-range {
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}

.products-list .product-shops {
    display: none;
}

/* Akcje - kompaktowe po prawej */
.products-list .product-actions-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    min-width: auto;
}

.products-list .product-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.products-list .quick-view-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
    border-radius: 6px;
}

.products-list .quick-view-btn svg {
    width: 14px;
    height: 14px;
}

.products-list .quick-view-btn span,
.products-list .quick-view-btn:not(:has(svg)) {
    display: none;
}

.products-list .view-details-btn {
    padding: 6px 12px;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

/* Widok grid - wrappery są transparentne */
.products-grid .product-info-section,
.products-grid .product-actions-section {
    display: contents;
}

/* ===== RESPONSYWNOŚĆ DLA WIDOKU LISTY ===== */

/* Tablet */
@media (max-width: 900px) {
    .products-list .product-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .products-list .product-image-wrapper img.product-image {
        max-height: 48px;
    }

    .products-list .product-name {
        font-size: 13px;
    }

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

    .products-list .product-rating {
        display: none;
    }
}

/* Mobile - zachowaj układ poziomy ale jeszcze bardziej kompaktowy */
@media (max-width: 640px) {
    .products-list {
        gap: 6px;
    }

    .products-list .product-card {
        padding: 8px 10px;
        gap: 10px;
        border-radius: 8px;
    }

    .products-list .product-image-wrapper {
        width: 55px;
        height: 55px;
        padding: 4px;
        border-radius: 6px;
    }

    .products-list .product-image-wrapper img.product-image {
        max-height: 47px;
    }

    .products-list .product-info-section {
        gap: 8px;
    }

    .products-list .product-name {
        font-size: 12px;
    }

    .products-list .product-price {
        min-width: 70px;
    }

    .products-list .product-price .price-main {
        font-size: 14px;
    }

    .products-list .product-price .price-range {
        font-size: 9px;
    }

    .products-list .product-actions-section {
        display: none;
    }

    /* Cała karta klikalna */
    .products-list .product-card {
        cursor: pointer;
    }
}

/* Ultra small mobile */
@media (max-width: 380px) {
    .products-list .product-card {
        padding: 6px 8px;
        gap: 8px;
    }

    .products-list .product-image-wrapper {
        width: 48px;
        height: 48px;
    }

    .products-list .product-image-wrapper img.product-image {
        max-height: 40px;
    }

    .products-list .product-name {
        font-size: 11px;
    }

    .products-list .product-price {
        min-width: 60px;
    }

    .products-list .product-price .price-main {
        font-size: 13px;
    }
}

.product-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.product-image-wrapper {
    background: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-decoration: none;
}

.product-image-wrapper img.product-image {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-image-wrapper:hover img.product-image {
    transform: scale(1.05);
}

.product-placeholder {
    color: #ccc;
    font-size: 14px;
    text-align: center;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

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

.product-price {
    margin-bottom: 12px;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.product-shops {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.quick-view-btn {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quick-view-btn svg {
    width: 16px;
    height: 16px;
}

.view-details-btn {
    padding: 10px 16px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.view-details-btn:hover {
    background: #000;
}

/* ==================================================
   PAGINATION
   ================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
}

.page-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    color: var(--text-color);
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================================================
   QUICK VIEW MODAL
   ================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-view-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--border-radius-card);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.quick-view-modal.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-color);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.modal-image {
    background: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.modal-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-price-section {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.modal-price-item h4 {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-price-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-price-range {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.modal-stat {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.modal-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.modal-stat-label {
    font-size: 11px;
    color: var(--text-light);
}

.best-offer-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ab8ad 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.best-offer-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.best-offer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-offer-shop {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 5px;
}

.best-offer-price {
    font-size: 22px;
    font-weight: 700;
}

.best-offer-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 13px;
    transition: var(--transition);
}

.best-offer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.modal-btn-primary:hover {
    background: #000;
}

.modal-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

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

/* Quick View Modal - Nowy styl */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 5px;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-loading,
.modal-error {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.modal-image-container {
    background: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.modal-product-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.modal-image-placeholder {
    color: #ccc;
    font-size: 14px;
}

.modal-product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-product-brand {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-product-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.modal-product-meta span {
    margin-right: 5px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.modal-stars {
    display: flex;
    gap: 2px;
}

.modal-rating-count {
    font-size: 13px;
    color: var(--text-light);
}

.modal-price-section {
    margin-bottom: 15px;
}

.modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.modal-shops {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 3px;
}

.modal-description {
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.modal-btn-primary:hover {
    background: #0ab8ad;
}

.modal-btn-wishlist {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-btn-wishlist:hover {
    background: #ffe6e6;
    border-color: #ff4444;
}

.modal-btn-wishlist:hover svg {
    stroke: #ff4444;
}

.modal-btn-wishlist svg {
    width: 20px;
    height: 20px;
}

/* ==================================================
   MOBILE FILTERS
   ================================================== */
.mobile-filters-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    font-family: var(--font-primary);
    align-items: center;
    gap: 8px;
}

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

.mobile-filters-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.filters-drawer {
    display: none;
}

.filters-drawer.mobile-active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.filters-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.filters-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: white;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease;
    padding: 20px;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.filters-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-color);
}

.filters-drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.filters-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.filters-drawer-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 2px solid var(--gray-color);
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.apply-filters-btn {
    flex: 1;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
}

.reset-filters-btn {
    flex: 1;
    padding: 12px;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* ==================================================
   RESPONSIVE - TABLET
   ================================================== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 968px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .mobile-filters-btn {
        display: flex;
    }

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

    .product-card {
        padding: 15px;
    }

    .product-image-wrapper {
        min-height: 140px;
        padding: 15px;
    }

    .product-name {
        font-size: 14px;
        min-height: 40px;
    }

    .price-main {
        font-size: 20px;
    }

    .category-title {
        font-size: 32px;
    }

    .category-header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .modal-content-grid {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 180px;
    }
}

/* ==================================================
   RESPONSIVE - MOBILE
   ================================================== */
@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    /* ULTRA KOMPAKTOWY - 2 kolumny */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        padding: 10px;
        border-radius: 10px;
    }

    .product-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
        border-radius: 8px;
    }

    .product-image-wrapper {
        min-height: 120px;
        margin-bottom: 8px;
        padding: 10px;
    }

    .product-placeholder {
        font-size: 11px;
    }

    .product-name {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .product-meta {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 6px;
    }

    .product-meta-item svg {
        width: 12px;
        height: 12px;
    }

    .product-rating {
        margin-bottom: 6px;
    }

    .stars {
        gap: 1px;
    }

    .star {
        font-size: 11px;
    }

    .rating-count {
        font-size: 10px;
    }

    .price-main {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .price-range {
        font-size: 10px;
    }

    .product-shops {
        font-size: 11px;
        margin-bottom: 8px;
    }

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

    .product-actions {
        gap: 6px;
        flex-direction: column;
    }

    .quick-view-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .quick-view-btn svg {
        width: 12px;
        height: 12px;
    }

    .view-details-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .products-count {
        font-size: 13px;
    }

    .products-controls {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .sort-select {
        flex: 1;
        padding: 8px 30px 8px 10px;
        font-size: 12px;
    }

    .view-toggle {
        display: flex;
        padding: 2px;
        border-radius: 6px;
    }

    .view-btn {
        padding: 6px 10px;
    }

    .view-btn svg {
        width: 16px;
        height: 16px;
    }

    .category-header {
        padding: 15px 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .category-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .category-description {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .category-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-stat {
        font-size: 12px;
    }

    .category-stat svg {
        width: 16px;
        height: 16px;
    }

    .category-stat strong {
        font-size: 14px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 15px 0;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 36px;
    }

    .quick-view-modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

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

    .modal-close {
        font-size: 28px;
    }

    .modal-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .modal-image {
        min-height: 160px;
    }

    .modal-info h3 {
        font-size: 16px;
    }

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .modal-price-section {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .modal-price-value {
        font-size: 22px;
    }

    .modal-price-range {
        font-size: 13px;
    }

    .modal-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }

    .modal-stat {
        padding: 10px 8px;
    }

    .modal-stat-value {
        font-size: 16px;
    }

    .modal-stat-label {
        font-size: 10px;
    }

    .best-offer-banner {
        padding: 15px;
        margin-bottom: 15px;
    }

    .best-offer-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .best-offer-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .best-offer-shop {
        font-size: 11px;
    }

    .best-offer-price {
        font-size: 18px;
    }

    .best-offer-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 12px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        padding: 12px;
        font-size: 13px;
    }

    .mobile-filters-btn {
        padding: 12px 24px;
        font-size: 14px;
        bottom: 15px;
    }
}

@media (max-width: 380px) {
    .category-title {
        font-size: 22px;
    }

    .category-description {
        font-size: 13px;
    }

    .product-name {
        font-size: 14px;
    }

    .price-main {
        font-size: 20px;
    }

    .products-grid {
        gap: 10px;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   RANKING SECTION (Carousel)
   ================================================== */
.ranking-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #2d2d4a 100%);
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.ranking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0ab8ad, var(--primary-color));
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ranking-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ranking-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.ranking-name {
    color: var(--primary-color);
}

.ranking-year {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 16px;
    margin-left: 4px;
}

.ranking-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 0;
}

.ranking-nav {
    display: flex;
    gap: 10px;
}

.ranking-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.ranking-nav-btn svg {
    width: 18px;
    height: 18px;
}

.ranking-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.ranking-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}

.ranking-carousel::-webkit-scrollbar {
    display: none;
}

/* Ranking Card */
.ranking-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.ranking-card-image {
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ranking-card-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.ranking-card-placeholder {
    color: #ccc;
    font-size: 13px;
}

.ranking-card-content {
    padding: 16px;
}

.ranking-card-brand {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ranking-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ranking-stars {
    display: flex;
    gap: 2px;
}

.ranking-rating-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
}

.ranking-reviews-count {
    font-size: 12px;
    color: var(--text-light);
}

/* Confidence Indicator */
.ranking-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 11px;
}

.confidence-icon {
    width: 14px;
    height: 14px;
    color: #15803d;
}

.confidence-label {
    color: #15803d;
    font-weight: 600;
}

.confidence-bar {
    flex: 1;
    height: 4px;
    background: #d1fae5;
    border-radius: 2px;
    overflow: hidden;
}

.confidence-bar-fill {
    height: 100%;
    background: #15803d;
    border-radius: 2px;
}

.ranking-card-specs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ranking-spec {
    background: #f0f9ff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.ranking-spec.highlight {
    background: linear-gradient(135deg, rgba(12, 222, 208, 0.15), rgba(12, 222, 208, 0.05));
    color: #0d9488;
}

.ranking-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.ranking-price {
    display: flex;
    flex-direction: column;
}

.ranking-price-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
}

.ranking-price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.ranking-card-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--font-primary);
}

.ranking-card-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.ranking-card-btn svg {
    width: 14px;
    height: 14px;
}

.ranking-footer {
    text-align: center;
    margin-top: 20px;
}

.ranking-algorithm-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.ranking-algorithm-note svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Ranking Section Responsive */
@media (max-width: 768px) {
    .ranking-section {
        padding: 30px 0 40px;
        margin-bottom: 20px;
    }

    .ranking-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .ranking-title {
        font-size: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ranking-year {
        font-size: 13px;
        padding: 2px 8px;
    }

    .ranking-card {
        flex: 0 0 260px;
    }

    .ranking-carousel-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .ranking-algorithm-note {
        font-size: 11px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .ranking-title {
        font-size: 16px;
    }

    .ranking-card {
        flex: 0 0 240px;
    }

    .ranking-carousel-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }
}

/* ==================================================
   CATEGORY SEO DESCRIPTION SECTION
   ================================================== */
.category-seo-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.seo-content-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.seo-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d4a 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.seo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.seo-icon svg {
    width: 32px;
    height: 32px;
}

.seo-header-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px 0;
    font-family: var(--font-secondary);
}

.seo-header-content p {
    opacity: 0.8;
    font-size: 14px;
    margin: 0;
}

.seo-body {
    padding: 40px;
}

.seo-intro {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.seo-intro strong {
    color: var(--primary-color);
}

.seo-extended {
    margin-bottom: 30px;
}

.seo-extended p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 16px;
}

.seo-extended p:last-child {
    margin-bottom: 0;
}

/* Key Facts Grid */
.seo-key-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.key-fact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.key-fact-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.key-fact-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.key-fact-label {
    font-size: 12px;
    color: var(--text-light);
}

.key-fact.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ab8ad 100%);
    border: none;
}

.key-fact.highlight .key-fact-icon,
.key-fact.highlight .key-fact-value,
.key-fact.highlight .key-fact-label {
    color: white;
}

/* Content Sections */
.seo-content-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.seo-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 24px;
}

.seo-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-section h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.seo-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-section li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.seo-section li:last-child {
    border-bottom: none;
}

.seo-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Dosage Guide */
.seo-dosage-guide {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid #d1fae5;
}

.seo-dosage-guide h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-dosage-guide h3 svg {
    width: 20px;
    height: 20px;
    color: #15803d;
}

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

.dosage-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.dosage-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.dosage-value {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}

.dosage-note {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* FAQ Section */
.seo-faq {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.seo-faq h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-faq h3 svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    background: #fafafa;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    font-size: 15px;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 18px 24px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Sources */
.seo-sources {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.seo-sources svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    flex-shrink: 0;
}

.seo-sources strong {
    color: var(--secondary-color);
}

/* SEO Section Responsive */
@media (max-width: 1024px) {
    .seo-content-sections {
        grid-template-columns: 1fr;
    }

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

    .dosage-table {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seo-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .seo-body {
        padding: 24px 20px;
    }

    .seo-intro {
        font-size: 15px;
        line-height: 1.7;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .seo-extended p {
        font-size: 14px;
        line-height: 1.7;
    }

    .seo-key-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .key-fact {
        padding: 16px 12px;
    }

    .key-fact-value {
        font-size: 16px;
    }

    .key-fact-label {
        font-size: 11px;
    }

    .seo-section {
        padding: 20px 16px;
    }

    .seo-section h3 {
        font-size: 15px;
    }

    .seo-section li {
        font-size: 13px;
        padding-left: 20px;
    }

    .seo-dosage-guide {
        padding: 20px 16px;
    }

    .dosage-item {
        padding: 14px 12px;
    }

    .dosage-value {
        font-size: 16px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }

    .faq-item.open .faq-answer {
        padding: 16px 20px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .seo-sources {
        padding: 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .seo-header {
        padding: 20px 16px;
    }

    .seo-header-content h2 {
        font-size: 20px;
    }

    .seo-body {
        padding: 20px 16px;
    }

    .seo-intro {
        font-size: 14px;
    }

    .seo-key-facts {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .key-fact {
        padding: 14px 10px;
    }

    .key-fact-icon {
        width: 28px;
        height: 28px;
    }

    .key-fact-value {
        font-size: 15px;
    }

    .seo-content-sections {
        gap: 16px;
    }

    .seo-section {
        padding: 16px 14px;
    }

    .seo-faq h3 {
        font-size: 16px;
    }
}
