/* Main layout for shop page */
.wcf-filter-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.wcf-filter-container .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.wcf-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    width: 100%;
}

.wcf-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.wcf-filter-container .btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
}

.wcf-filter-container .btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
}

.wcf-filter-container .btn-primary:hover {
    background: linear-gradient(45deg, #0a58ca, #084298);
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 18px;
}

/* 4-column product layout */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.woocommerce ul.products li.product {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
    float: none;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Product image */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Sale badge */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3333;
    color: #fff;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 15px 10px;
    color: #333;
    line-height: 1.3;
}

/* Price */
.woocommerce ul.products li.product .price {
    margin: 0 15px 15px;
    display: block;
    color: #222;
    font-weight: 700;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.woocommerce ul.products li.product .price ins {
    background: transparent;
    color: #4CAF50;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    display: block;
    margin: 0 15px 15px;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Position styles */
.wcf-position-left {
    float: left;
    width: 300px;
    margin-right: 30px;
}

.wcf-position-right {
    float: right;
    width: 300px;
    margin-left: 30px;
}

.wcf-position-top {
    width: 100%;
    float: none;
}

/* Style variations */
.wcf-style-compact .wcf-select {
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.wcf-style-compact .form-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.wcf-style-expanded {
    padding: 25px;
}

.wcf-style-expanded .form-label {
    font-size: 16px;
}

/* Clearfix */
.wcf-filter-container:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .wcf-position-left,
    .wcf-position-right {
        width: 250px;
    }
    
    .woocommerce ul.products li.product {
        width: calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .wcf-filter-container {
        padding: 15px;
    }
    
    .wcf-position-left,
    .wcf-position-right {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .woocommerce ul.products li.product {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products li.product {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Loading animation */
.wcf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}