/* Universal CSS Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --accent-color: #00c851;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f3f4;
    --border-color: #e1e5e9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Navigation */
.nav {
    background: var(--text-primary);
    color: white;
    position: relative;
    z-index: 1000; /* Ensure nav stays above content */
}

/* Desktop navigation - show on larger screens */
.nav .desktop-nav {
    display: flex;
    list-style: none;
    align-items: center;
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

.nav ul li {
    flex-shrink: 0;
}

.nav ul a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav ul a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation - New Flexbox Technique */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
    }
}

.mobile-nav {
    max-height: 0;
    overflow: hidden;
    background: var(--text-primary);
    transition: max-height 0.3s ease;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    max-height: 1000px;
    opacity: 1;
}

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

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    width: 100%;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: var(--text-secondary);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 20px 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 400px;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

/* Products Grid */
.products-section {
    margin: 40px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-left: 10px;
}

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

.stars {
    color: #ffb400;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

.btn-primary:hover {
    background: #0059b3;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Features Section */
.features {
    background: var(--bg-white);
    padding: 60px 0;
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Detail Specific Styles */
.product-detail {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
    overflow: hidden;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    background: var(--bg-gray);
    margin-bottom: 20px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--secondary-color);
    color: white;
}

.badge-new {
    background: var(--accent-color);
    color: white;
}

.product-price-section {
    margin-bottom: 30px;
}

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

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-left: 15px;
    font-size: 20px;
}

.savings {
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent-color);
}

.availability-icon {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-button {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.option-button:hover,
.option-button.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-controls {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-gray);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.btn-wishlist:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-wishlist.active {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Sidebar Styles */
.sidebar {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
}

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

.filter-section {
    margin-bottom: 30px;
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.filter-items {
    list-style: none;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.filter-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-range {
    margin-bottom: 20px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-gray);
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.page-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-areas: "sidebar products";
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

/* Desktop layout - explicit grid area assignment */
.page-content > .sidebar {
    grid-area: sidebar;
    display: block;
}

.page-content > .products-area {
    grid-area: products;
    display: block;
}

.products-area {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.view-toggle {
    display: flex;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Product Tabs */
.product-tabs {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 40px 0;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tab-button.active {
    color: var(--primary-color);
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.tab-content li:last-child {
    border-bottom: none;
}

.clear-filters {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 20px;
}

.clear-filters:hover {
    background: #ff5722;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

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

/* Category listing in sidebar */
.category-list {
    margin-bottom: 25px;
}

.category-group {
    margin-bottom: 15px;
}

.category-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-group-title:hover {
    color: var(--secondary-color);
}

.category-items {
    list-style: none;
    padding-left: 15px;
}

.category-items li {
    margin-bottom: 5px;
}

.category-items a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

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

.category-toggle {
    transition: var(--transition);
}

.category-items.hidden {
    display: none;
}

/* Magazine Styles */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.magazine-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.magazine-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.magazine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.magazine-card:hover .magazine-image img {
    transform: scale(1.05);
}

.magazine-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.magazine-content {
    padding: 25px;
}

.magazine-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.magazine-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.magazine-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.magazine-read-more {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.magazine-read-more:hover {
    background: #0059b3;
}

/* Article Page Styles */
.article-header {
    background: var(--bg-white);
    padding: 50px 0;
    margin-bottom: 30px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.related-articles {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 30px;
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #cccccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Remove sticky header on mobile */
    .header {
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-bar {
        width: 100%;
    }
    
    /* Container width management */
    .container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    /* Ensure nav container doesn't clip mobile menu */
    .nav .container {
        overflow: visible;
    }
    
    /* Desktop navigation hide on mobile */
    .nav .desktop-nav {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .nav {
        position: static;
    }
    
    .nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-content {
        display: flex !important;
        grid-template-areas: none; /* Reset grid template areas */
        flex-direction: column;
        gap: 0;
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .products-area {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        order: 1;
        grid-area: auto; /* Reset grid area */
        display: block;
    }
    
    .sidebar {
        position: static;
        order: 2;
        padding: 15px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 2 !important;
        grid-area: auto; /* Reset grid area */
        display: block;
    }
    
    .sidebar h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .sidebar .filter-section {
        margin-bottom: 20px;
    }
    
    .filter-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .filter-items {
        max-height: 120px;
        overflow-y: auto;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-input {
        width: 100%;
        min-width: 120px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }
    
    .results-header h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .view-toggle {
        align-self: center;
    }
    
    .filter-items {
        max-height: 120px;
        overflow-y: auto;
    }
    
    .products-area {
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Ensure products area correctly fits mobile constraints */
    .page-content .products-area {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .feature-icon {
        font-size: 18px;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .feature-content h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .feature-content p {
        color: var(--text-secondary);
        font-size: 14px;
        line-height: 1.5;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-header {
        padding: 30px 0;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .products-area {
        padding: 10px;
        margin: 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Container overflow prevention */
    .page-content {
        overflow-x: hidden;
    }
    
    .sidebar {
        overflow-x: hidden;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        text-align: center;
    }
    
    .option-buttons {
        flex-direction: column;
    }
    
    .option-button {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .magazine-content {
        padding: 20px;
    }
    
    .magazine-title {
        font-size: 18px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
}

/* Special footer content for no linter issues prevention */
.product-brands-used-by-stores {
    content: "brand_titles_in_text_parser_made_by_algorithm_checks";
}
