/* SHOP PAGE ================================================================== */

@font-face {
    font-family: 'Raleway-Regular';
    src: url('../fonts/Raleway-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway-SemiBold';
    src: url('../fonts/Raleway-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway-Medium';
    src: url('../fonts/Raleway-Medium.ttf') format('truetype');
}

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

body {
    font-family: 'Raleway-SemiBold';
    background: #f0f0f0;
    min-height: 100vh;
    padding-top: 100px;
}

.shop-container {
    display: flex;
    padding: 120px 20px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    overflow-y: auto;
}

/* CATEGORY LEFT BAR =========================================================== */

.category-bar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.category-bar h2 {
    text-align: center;
    padding-bottom: 50px;
}

.category-btn {
    font-family: 'Raleway-Medium';
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: none;
    background: #fff1e0;
    color: #333;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;        
}        

.category-btn:hover {
    background: #faa236;
    color: white;
    transform: translateX(5px);
}

.category-btn.active {
    background: #faa236;
    color: white;
}

/* FILTER BAR =========================================================== */


.filter-bar {
    display: flex;
    flex-direction: column;
    padding: 0 30px;
    overflow-y: visible;
}

.filter {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header h2 {
    text-align: left;
    left: 50%;
    color: #333;
    margin: 0 0 5pxx 0;
}

.category-title {
    text-align: left;
    color: #faa236;
    font-size: 18px;
    margin: 0;
}

.filter-controls {
    display: flex;
    flex-shrink: 0;
}

.sort-select {
    font-family: 'Raleway-Regular';
    font-size: 16px;
    padding: 5px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #faa236;
}

.sort-select:focus {
    outline: none;
    border-color: #faa236;
    box-shadow: 0 0 0 2px rgba(250, 162, 54, 0.2);
}

.sort-select option {
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* PRODUCT DISPLAY GRID =========================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    background: #fff1e0;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    padding: 20px;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    border-top: 2px solid #e0e0e0;
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #faa236;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* RESPONSIVE DESIGN =========================================================== */

@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .category-bar {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    
    .category-bar h2 {
        padding: 15px;
    }
    
    .category-btn {
        display: inline-block;
        width: auto;
        margin-right: 8px;
        margin-bottom: 10px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .filter-bar {
        padding: 0;
        overflow-y: visible;
    }
    
    .filter {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 30px 20px;
        gap: 15px;
    }
    
    .filter > div:first-child {
        text-align: center;
    }
    
    .filter h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .category-title {
        text-align: center;
        font-size: 16px;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: center;
    }
    
    .sort-select {
        width: 100%;
        max-width: 300px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 10px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    body {
        padding-top: 60px;
        overflow-y: auto;
    }
}