.grid-container {
    max-width: 1400px !important;
}

/* Custom Archive Product Styling */
.custom-product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 15px 0;
    padding: 0;
}

/* Category labels styling */
.variation-loop-top-text,
.variation-loop-bottom-text {
    font-size: 11px;
    padding: 0;
    margin: 0 0 8px 0;
    border-radius: 0;
    text-align: center;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    background: none;
    border: none;
}

.variation-loop-top-text {
    background: none;
    color: #999999;
}

.variation-loop-bottom-text {
    background: none;
    color: #999999;
}

.price-label {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 4px;
}

.custom-price {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.custom-price .amount {
    font-weight: 400;
}

.custom-price del {
    color: #999;
    font-size: 14px;
    margin-right: 6px;
}

.custom-price ins {
    text-decoration: none;
    color: #000;
}

/* Custom Product Actions */
.custom-product-actions {
    margin-top: 0;
    display: flex;
    justify-content: center;
}

.custom-add-to-cart-btn,
.custom-view-product-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #d4a574;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-add-to-cart-btn:hover,
.custom-view-product-btn:hover {
    background-color: #c19660;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.custom-view-product-btn {
    background-color: #d4a574;
}

.custom-view-product-btn:hover {
    background-color: #c19660;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Product grid layout improvements */
.woocommerce ul.products li.product {
    text-align: center;
    padding: 15px 10px 20px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: none;
}

.woocommerce ul.products li.product:hover {
    box-shadow: none;
    transform: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    min-height: auto;
    display: block;
}

.custom-price-container { margin:0 !important;}

.woocommerce ul.products li.product img {
    border-radius: 0;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.woocommerce ul.products li.product:hover img {
    transform: none;
}

/* Image hover transition effects */
.woocommerce ul.products li.product img.image-transitioning {
    transition: opacity 0.15s ease-in-out;
}

/* Remove variation-specific styling */
.variation-add-to-cart {
    background-color: #d4a574 !important;
}

.variation-add-to-cart:hover {
    background-color: #c19660 !important;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3) !important;
}

/* Stock status styling */
.custom-view-product-btn.out-of-stock {
    background-color: #d4a574;
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-view-product-btn.out-of-stock:hover {
    background-color: #d4a574;
    transform: none;
    box-shadow: none;
}

/* Product image container */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
}

/* Remove variation border styling */
.woocommerce ul.products li.product[data-product-type="variation"],
.woocommerce ul.products li.product[data-product-type="simple"] {
    border-left: none;
}

/* Hide any remaining default WooCommerce add to cart buttons */
.woocommerce ul.products li.product .button.add_to_cart_button:not(.custom-add-to-cart-btn),
.woocommerce ul.products li.product .button.product_type_simple:not(.custom-add-to-cart-btn),
.woocommerce ul.products li.product a.button.add_to_cart_button:not(.custom-add-to-cart-btn) {
    display: none !important;
}



/* Responsive Design */
@media (max-width: 768px) {
    .custom-product-price-wrapper {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .custom-add-to-cart-btn,
    .custom-view-product-btn {
        padding: 10px 24px;
        font-size: 12px;
        min-width: 150px;
        border-radius: 20px;
    }
    
    .woocommerce ul.products li.product {
        padding: 15px 10px 20px 10px;
        margin-bottom: 20px;
    }
    
    .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
        width: 250px;
        height: 250px;
        margin-bottom: 12px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px;
        margin: 15px 0 6px 0;
    }
    
    .custom-price {
        font-size: 14px;
    }
}

@media (max-width: 768px) { 
    .custom-add-to-cart-btn {
        padding: 0.6em
    }
}

.custom-add-to-cart-btn { width: 100%; }

.woocommerce-loop-product__title { text-align: left; }

.one-container .site-content { padding: 40px 10px !important;}

.custom-price { margin-bottom: 0.5em; }

.woocommerce ul.products li.product .woocommerce-loop-product__title { padding-bottom: 0.2em;}

