/* Shop Container */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Section */
.shop-filters {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-filters:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.search-box input:focus {
    border-color: #008339;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(254, 221, 214, 0.1);
    outline: none;
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s;
}

.search-box button:hover {
    color: #008339;
}

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

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.filter-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #008339;
}

.category-select,
.sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 35px;
    transition: all 0.3s ease;
}

.category-select:focus,
.sort-select:focus {
    border-color: #008339;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(254, 221, 214, 0.1);
    outline: none;
}

.apply-filters {
    background-color: #008339;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.apply-filters:before {
    content: '\f0b0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.apply-filters:hover {
    background-color: #00A651;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 221, 214, 0.2);
}

.apply-filters:active {
    transform: translateY(0);
}

/* Products Section */
.products-section {
    min-height: 400px;
}

.filter-summary {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid #feddd6;
}

.filter-summary p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.filter-summary strong {
    color: #333;
    font-weight: 600;
}

.clear-filters {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.clear-filters:before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 12px;
}

.clear-filters:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.2);
}

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s;
}

.product-card:hover .product-name {
    color: #008339;
}

.product-category {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    display: inline-block;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.product-card:hover .product-category {
    background-color: #e6f2ff;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.regular-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.sale-price {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f0f0f0;
    color: #008339;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    padding: 10px 0;
    background-color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.stock-status {
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.in-stock {
    color: #28a745;
}

.in-stock:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.out-of-stock {
    color: #dc3545;
}

.out-of-stock:before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #008339;
    color: #008339;
    z-index: 1;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-link.current {
    background: #008339;
    border-color: #008339;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(254, 221, 214, 0.2);
}

.page-link.prev,
.page-link.next {
    font-weight: 600;
    padding: 0 15px;
}

.page-link.disabled {
    background: transparent;
    border: none;
    color: #999;
    cursor: default;
    pointer-events: none;
}

.page-link.disabled:hover {
    background: transparent;
    border: none;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.no-products p {
    margin: 0 0 15px;
    color: #666;
    font-size: 16px;
}

.no-products a {
    color: #008339;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.no-products a:hover {
    text-decoration: underline;
    color: #00A651;
}

/* Hover Effect for Filter Elements */
.filter-section h3,
.search-box,
.category-select,
.sort-select,
.apply-filters {
    transition: transform 0.3s;
}

.filter-section:hover h3 {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }
    
    .shop-filters {
        position: static;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-container {
        padding-top: 80px;
    }
    
    .shop-filters {
        padding: 20px;
        margin: 0 0 20px;
    }
    
    .filter-form {
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .filter-summary {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .clear-filters {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-controls {
        width: 100%;
    }
    
    .add-to-cart-btn {
        width: 100%;
        padding: 10px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .page-link.prev,
    .page-link.next {
        padding: 0 10px;
    }
    
    .page-link.prev i,
    .page-link.next i {
        display: none;
    }
}

@media (max-width: 375px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
    }
    
    .page-link.prev,
    .page-link.next {
        padding: 0 8px;
        width: auto;
    }
    
    .page-link.disabled {
        display: none;
    }
} 