/* ==================== Enhanced Shop Section ==================== */

.shop-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.shop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shop-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 142, 47, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.shop-section .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}


/* Shop Layout */

.shop-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}


/* Shop Sidebar */

.shop-sidebar {
    width: 280px;
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.filter-toggle-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.filters-container {
    display: block;
}


/* Filter Groups */

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-light);
}


/* Category Filters */

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-filter-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-filter-item:hover {
    background: #f8f9fa;
}

.category-filter-item.active {
    background: rgba(184, 142, 47, 0.1);
    color: var(--primary-color);
}

.category-filter-item .count {
    margin-left: auto;
    background: #e9ecef;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
}


/* Sub-category Filters */

.subcategory-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategory-filter-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.subcategory-filter-item:hover {
    background: #f8f9fa;
}

.subcategory-filter-item.active {
    background: rgba(184, 142, 47, 0.1);
    color: var(--primary-color);
}

.subcategory-filter-item input {
    margin-right: 10px;
}


/* Price Filter */

.price-filter {
    padding: 0 10px;
}

.price-slider-container {
    width: 100%;
    margin-bottom: 15px;
}

.price-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-medium);
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* Shop Main Content */

.shop-main-content {
    flex: 1;
}


/* Shop Controls */

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow);
}

.results-info {
    font-weight: 500;
    color: var(--text-dark);
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.sort-selector {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-small);
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    cursor: pointer;
    min-width: 200px;
}

.sort-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 142, 47, 0.1);
    background: white;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    position: absolute;
    top: -8px;
    right: -8px;
}

.cart-count-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.cart-count-display:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.cart-count-display i {
    font-size: 1.2rem;
    position: relative;
}


/* Products Grid */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}


/* Product Card */

.product-card {
    background: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    transform: translateY(0);
    border: 1px solid var(--border-color);
    isolation: isolate;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: var(--transition);
}

.wishlist-icon i {
    color: #ccc;
    font-size: 1.1rem;
}

.wishlist-icon.active i {
    color: var(--primary-color);
}

.wishlist-icon:hover {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
    flex-grow: 1;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.quick-view-btn,
.add-to-cart-btn,
.view-details-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-small);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.quick-view-btn::before,
.add-to-cart-btn::before,
.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.quick-view-btn:hover::before,
.add-to-cart-btn:hover::before,
.view-details-btn:hover::before {
    left: 100%;
}

.quick-view-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.quick-view-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.view-details-btn {
    background-color: #6c757d;
    color: white;
    box-shadow: var(--shadow-light);
}

.view-details-btn:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}


/* Removed premium-filters as it's replaced by the new layout */


/* Removed category-pills as it's replaced by the new category filters */


/* Removed category-btn as it's replaced by the new category filters */


/* Updated filter group styles */

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-small);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #f8f9fa;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 142, 47, 0.1);
    background: white;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 142, 47, 0.1);
    background: white;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}


/* Product card styles are already defined above */


/* Pagination styles are already defined above */


/* Grass Products Specific Styling */

.grass-product .product-category {
    color: #28a745;
}

.grass-product .product-badge {
    background: #28a745;
}


/* Enhanced Quick View for Grass Products */

.qv-grass-badge {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.qv-grass-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-small);
    margin: 20px 0;
}

.qv-grass-details h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.qv-grass-details ul {
    padding-left: 20px;
    margin: 0;
}

.qv-grass-details li {
    margin-bottom: 8px;
    color: var(--text-muted);
}


/* Secondary Button Style */

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-small);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary.btn-block {
    width: 100%;
}


/* Responsive adjustments */

@media (max-width: 1024px) {
    .shop-layout {
        gap: 20px;
    }
    .shop-sidebar {
        width: 250px;
        padding: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .product-image-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 80px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .shop-layout {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    .filter-toggle-btn {
        display: block;
    }
    .filters-container {
        display: none;
        margin-top: 20px;
    }
    .filters-container.active {
        display: block;
    }
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .controls-right {
        width: 100%;
        justify-content: space-between;
    }
    .sort-dropdown {
        flex: 1;
    }
    .sort-selector {
        min-width: auto;
        width: 100%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    .product-image-container {
        height: 200px;
    }
    .product-info {
        padding: 20px;
    }
    .product-name {
        font-size: 1.2rem;
    }
    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .shop-section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .shop-controls {
        padding: 15px;
    }
    .results-info {
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image-container {
        height: 250px;
    }
    .product-actions {
        flex-direction: column;
    }
    .quick-view-btn,
    .add-to-cart-btn,
    .view-details-btn {
        width: 100%;
    }
}