:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E4BC;
    --dark-gold: #B8941F;
    --accent-red: #8B0000;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e1e5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--black);
    line-height: 1.6;
}

/* Breadcrumb Styles */
.breadcrumb-section {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--black);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-gold);
    font-weight: bold;
    margin: 0 8px;
}

/* Header Styles */
.header-section {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    padding: 20px 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Back Button in Header */
.back-button-header {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.back-button-header:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button-header:active {
    transform: translateY(-50%) scale(0.95);
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="20" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.header-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-style: italic;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Layout Styles */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 0 30px;
}

/* Sidebar Filter Styles */
.sidebar-filter {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-filter h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

/* Filter Styles */
.filter-section {
    display: none;
}

.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 40px 8px 12px;
    font-size: 13px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.filter-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.filter-toggle:hover {
    border-color: var(--primary-gold);
    background: var(--secondary-gold);
}

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

.filter-toggle i {
    transition: transform 0.3s ease;
}

.filter-toggle.active i {
    transform: rotate(180deg);
}

.filter-group {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 15px;
    display: none;
    animation: slideDown 0.3s ease;
}

.filter-group.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    font-size: 13px;
}

.filter-select, .filter-input {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Input Group Styles */
.input-group {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-group-text {
    background: var(--light-gray);
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.input-group .filter-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.input-group .filter-input:focus {
    border: none;
    box-shadow: none;
}

.input-separator {
    background: var(--border-color);
    width: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #666;
    font-weight: 500;
}

/* Currency Input Styles */
.currency-input {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.currency-input::placeholder {
    color: #999;
    font-weight: normal;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-filter {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-reset {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    width: 100%;
}

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

/* Order By Styles */
.order-section {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    font-size: 13px;
}

/* Content Styles */
.content-section {
    padding: 20px 0;
    width: 100%;
}

/* Products Container */
.products-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.products-section {
    flex: 1;
    width: 100%;
}

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

.products-count {
    color: #666;
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Protection Styles */
.product-card img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Watermark Overlay - Commented out, can be restored if needed
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(212, 175, 55, 0.05) 50%, 
        rgba(212, 175, 55, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.watermark-text {
    color: rgba(212, 175, 55, 0.3);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transform: rotate(-15deg);
    letter-spacing: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
*/

.product-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    width: 100%;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.new-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.product-info {
    padding: 15px;
}

.product-code {
    color: var(--primary-gold);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.product-type {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: white;
    padding: 0px 4px!important;
    border-radius: 5px;
    font-size:9px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-detail-item {
    background: var(--light-gray);
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-load-more .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-load-more.loading .spinner {
    display: block;
}

/* ===== KATALOG STATISTICS CARDS ===== */
.katalog-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STATS & ACTIONS ===== */
@media (max-width: 1200px) {
    .katalog-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .katalog-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 15px 10px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .action-btn i {
        font-size: 1.2rem;
    }
    
    .action-btn span {
        font-size: 0.85rem;
    }
}

@media (max-width: 1400px) and (min-width: 769px) {
    .main-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .sidebar-filter {
        padding: 20px;
    }
    
    .products-container {
        padding: 20px;
    }

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

@media (max-width: 1200px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    margin-bottom: 15px;
}

.btn-toggle-filter {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.btn-toggle-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-toggle-filter i:first-child {
    margin-right: 10px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

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

    .sidebar-filter {
        position: static;
        margin-bottom: 20px;
        display: none;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 20px;
        border: 1px solid #e0e0e0;
    }

    .sidebar-filter.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    .product-image {
        min-height: 270px;
    }

    .product-info {
        padding: 12px;
    }

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

    .product-price {
        font-size: 14px;
        padding-top: 6px;
    }

    .product-type {
        font-size: 9px;
        padding: 1px 5px;
    }

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

    .back-button-header {
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .header-content {
        gap: 15px;
        padding: 0 15px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-brand {
        font-size: 1.4rem;
    }

    .header-tagline {
        font-size: 0.75rem;
    }

    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-filter {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn-reset {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 10px;
    }

    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .filter-item {
        width: 100%;
    }

    .filter-label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
    }

    .filter-select {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        background: white;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }

    .search-input {
        padding: 12px 50px 12px 15px;
        font-size: 14px;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
    }

    .search-btn {
        width: 40px;
        height: 40px;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 8px;
    }

    .content-section {
        padding: 15px 0;
    }
    
    .products-container {
        padding: 15px;
    }

    .products-header {
        margin-bottom: 15px;
    }

    .load-more-container {
        margin: 20px 0;
    }
}

/* iPhone and small smartphones */
@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }

    .btn-toggle-filter {
        padding: 12px 15px;
        font-size: 14px;
    }

    .sidebar-filter {
        padding: 15px;
        margin: 0 -5px 15px;
    }

    .filter-select {
        padding: 10px 12px;
        font-size: 13px;
        padding-right: 35px;
    }

    .search-input {
        padding: 10px 45px 10px 12px;
        font-size: 13px;
    }

    .search-btn {
        width: 35px;
        height: 35px;
        right: 3px;
    }

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

    .product-image {
        min-height: 270px;
    }

    .product-info {
        padding: 10px;
    }

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

    .product-price {
        font-size: 12px;
        padding-top: 4px;
    }

    .product-code {
        font-size: 10px;
    }

    .product-type {
        font-size: 8px;
        padding: 1px 3px;
    }

    .product-detail-item {
        font-size: 10px;
        padding: 2px 5px;
    }

    .header-section {
        padding: 12px 0;
    }

    .back-button-header {
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .header-content {
        gap: 12px;
        padding: 0 12px;
    }

    .header-logo {
        width: 45px;
        height: 45px;
    }

    .header-brand {
        font-size: 1.2rem;
    }

    .header-tagline {
        font-size: 0.7rem;
    }

    .order-section {
        padding: 12px;
    }

    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 12px;
    }

    .search-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .filter-group {
        padding: 15px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        grid-template-columns: 300px 1fr;
        gap: 25px;
        padding: 0 20px;
    }

    .sidebar-filter {
        position: sticky;
        top: 20px;
        height: fit-content;
    }

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

    .product-image {
        height: 280px;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-item {
        width: 100%;
    }
}

/* Large tablets and small desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
    .main-container {
        grid-template-columns: 320px 1fr;
        gap: 30px;
        padding: 0 25px;
    }

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

    .product-image {
        height: 300px;
    }
}