/* Product Category Page Styles */
.category-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 10px 0 30px;
    text-transform: uppercase;
}

.flex_filter_sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Filter Categories Bar */
.product-categories-filter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-categories-filter a {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 10px 0px;
    position: relative;
    margin-right:20px;
    text-transform: uppercase;
}

.product-categories-filter a:hover {
    color: #000;
}

.product-categories-filter a.active {
    color: #000;
    font-weight: 700;
}

.product-categories-filter a.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

/* Ordering/Sorting Dropdown */
.woocommerce-ordering-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 25px;
    padding-right: 20px;
}

.woocommerce-ordering-label {
    margin-right: 10px;
    font-weight: 500;
    color: #333;
}

.woocommerce-ordering select {
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background-color: transparent;
    cursor: pointer;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #999;
}

/* Product Grid */
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-3px);
}

.badge {
    z-index: 2;
}

.product-card .product-img {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio for image container */
    background-color: #fff;
}

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

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

.color-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-info {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-title {
    font-size: 14px;
    color: #000;
    text-align: left;
    width: 100%;
    padding-left: 12px;
    font-weight: 400;
}

a {
    color: #000;
    text-decoration: none;
}

.price {
    display: flex;
    margin-bottom: 0 !important;
}

.price del {
    color: #B4B4B5;
    font-size: 14px;
    margin-right: 8px;
    text-decoration: line-through;
}

.price ins {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
	padding-left: 10px;
}

.product-card .price {
    color: #46C18F;
    padding: 12px;
}

.add-to-cart-btn {
    display: block;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

/* Product Count and Load More */
.product-count {
    text-align: center;
    font-size: 14px;
    color: #000;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 15px 0 50px;
}

.load-more-button {
    color: #00D6C7;
    border: 2px solid #00D6C7;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
}

.load-more-button:visited, .load-more-button:active, .load-more-button:focus {
    color: #00D6C7;
}

.load-more-button:hover {
    color: #0ba399;
    border: 2px solid #0ba399;
}

/* Responsive */
@media (max-width: 1280px) {
    .container {
        width: 95%;
        max-width: 1200px;
    }
}

@media (max-width: 991px) {
    .custom-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-categories-filter {
        flex-wrap: wrap;
    }
    
    .product-categories-filter a {
        font-size: 14px;
    }
    
    .woocommerce-ordering-wrapper {
        justify-content: center;
        margin-top: 15px;
        padding-right: 0;
    }
}

@media (max-width: 479px) {
    .custom-product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 20px;
    }
} 