/* Shop Toolbar */
.shop-toolbar {
    background: #fff;
    padding: 25px 30px;
    border-radius: 25px;
    box-shadow: 0 3px 30px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.shop-toolbar select,
.shop-toolbar .orderby {
    border-radius: 20px !important;
    padding: 8px 40px 8px 20px !important;
    border: 1px solid #ccdbdc !important;
    font-size: 0.9rem !important;
    color: #565b61 !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
}

.woocommerce-result-count {
    color: #565b61;
    font-size: 0.95rem;
    margin: 0;
}

/* View Toggle */
.view-toggle {
    display: inline-flex;
    gap: 10px;
}

.view-toggle button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #ccdbdc;
    background: #fff;
    color: #565b61;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: #71b280;
    color: #fff;
    border-color: #71b280;
}

/* Products Grid */
.products-wrapper {
    position: relative;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 3px 3px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease-in-out;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 40px rgba(113,178,128,0.2);
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: #f8fbf9;
}

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

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

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #71b280;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.product-badge.sale,
.onsale {
    background: #ff6b6b !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 5px 15px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions button,
.product-actions a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #71b280;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-actions button:hover,
.product-actions a:hover {
    background: #71b280;
    color: #fff;
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: #71b280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    height: 50px;
    overflow: hidden;
}

.product-title a {
    color: #253031;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #71b280;
}

/* Product Rating */
.product-rating {
    margin-bottom: 12px;
}

.star-rating {
    color: #ffc107;
    font-size: 0.85rem;
}

.product-rating span {
    color: #565b61;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Product Price */
.product-price,
.price {
    font-size: 1.5rem;
    font-weight: 600 !important;
    color: #71b280 !important;
    margin-bottom: 15px;
}

.price del {
    font-size: 1rem;
    color: #999;
    margin-right: 10px;
}

/* Add to Cart Button */
.product-info .button,
.product-info .added_to_cart,
.add_to_cart_button {
    width: 100%;
    padding: 12px !important;
    background: #71b280 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: auto;
    min-height: auto !important;
}

.product-info .button:hover,
.add_to_cart_button:hover {
    background: #5a9668 !important;
    box-shadow: 0 10px 20px rgba(113,178,128,0.3);
    color: #fff !important;
}

/* Sidebar Widgets */
.woocommerce-widget-layered-nav ul,
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-widget-layered-nav ul li,
.product-categories li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 0;
}

.woocommerce-widget-layered-nav ul li a,
.product-categories li a {
    color: #565b61;
    font-size: 0.95rem;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.woocommerce-widget-layered-nav ul li a:hover,
.product-categories li a:hover,
.woocommerce-widget-layered-nav ul li.chosen a {
    color: #71b280;
    padding-left: 10px;
}

.woocommerce-widget-layered-nav ul li .count,
.product-categories li .count {
    float: right;
    color: #999;
    font-size: 0.85rem;
}

/* Price Filter */
.price_slider_wrapper {
    padding: 20px 0;
}

.price_slider {
    margin-bottom: 20px;
}

.price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.price_slider_amount .button {
    background: #71b280 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    border: none !important;
    min-height: auto !important;
}

.price_label {
    color: #71b280;
    font-weight: 500;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 25px;
    font-size: 16px;
    text-align: center;
    line-height: 28px;
    background: #71b280;
    color: #fff;
    border: 1px solid #71b280;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    box-shadow: 10px 10px 16px rgba(113,178,128,0.4);
}

/* Single Product */
.woocommerce div.product {
    margin-top: 40px;
}

.woocommerce div.product .product-meta-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8fbf9;
    border-radius: 15px;
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: 60px;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f1f8f4;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    padding: 15px 30px;
    background: transparent;
    color: #565b61;
    text-decoration: none;
    border-radius: 10px 10px 0 0;
    display: block;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    background: #71b280;
    color: #fff;
}

/* Reviews */
.woocommerce-Reviews {
    margin-top: 40px;
}

.comment-form-rating {
    margin-bottom: 20px;
}

/* Cart Page */
.woocommerce-cart table.cart {
    border-radius: 15px;
    overflow: hidden;
}

.woocommerce-cart table.cart td {
    padding: 20px !important;
    border-color: #f1f8f4 !important;
}

/* Checkout */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    border-radius: 20px !important;
    padding: 12px 20px !important;
}

/* Responsive */
@media (max-width: 767px) {
    .shop-toolbar {
        padding: 20px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
}