/* ==========================
   Shop Page Container
========================== */
.shop-container {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
    background: #f9f9f9;
}

/* ==========================
   Shop Header
========================== */
.shop-header {
    text-align: center;
    padding: 2rem 0 1rem;
}

.shop-header h1 {
    color: #111;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.shop-header p {
    color: #666;
    font-size: 1.1rem;
}

/* ==========================
   Shop Search
========================== */
.shop-search {
    max-width: 800px;
    margin: 2rem auto;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
}

.search-form button {
    background: #0d6efd;
    color: #fff;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #0b5ed7;
}

/* ==========================
   Layout
========================== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ==========================
   Filters Card
========================== */
.filter-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filter-card h3 {
    color: #0d6efd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
    font-size: 1.2rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ==========================
   Category Quick Links
========================== */
.category-quick-links {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-quick-links h3 {
    margin-bottom: 1rem;
    color: #111;
}

.category-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-quick-links li {
    margin-bottom: 0.75rem;
}

.category-quick-links a {
    display: block;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: #555;
    transition: all 0.3s;
}

.category-quick-links a:hover {
    color: #0d6efd;
    background: #f0f8ff;
}

/* ==========================
   Products Grid
========================== */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.shop-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================
   Product Image
========================== */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.shop-product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

/* Product Badge */
.product-badge-shop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #198754;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================
   Product Details
========================== */
.product-details-shop {
    padding: 1.5rem;
}

.product-details-shop h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #0d6efd;
}

.product-artisan-name {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.product-category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.8rem;
}

.product-details-shop .meta {
    font-size: 0.85rem;
    color: #555;
}

/* Product Footer */
.product-footer-shop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price-shop {
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-footer-shop .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ==========================
   No Products State
========================== */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: #f0f8ff;
    border-radius: 12px;
}

.no-products-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.no-products p {
    color: #555;
    margin-bottom: 2rem;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .shop-header h1 {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
    
    .price-range-inputs {
        flex-direction: column;
    }
    
    .price-range-inputs span {
        display: none;
    }
}
