/*
 * WooCommerce Styles for My Custom Theme
 */

/* Result Count Hover Effect */
.woocommerce-result-count {
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.woocommerce-result-count:hover {
    background-color: #f5f5f5;
    color: #00a09d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Tabs */


.product-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #F2F8F7;
    color: #666666;
}

.product-tab::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tab-new {
    background-color: #00a09d;
    color: white;
    border: 1px solid #00827f;
}

.tab-new::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5l-8-3zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41-5.64 5.66z'/%3E%3C/svg%3E");
}

.tab-sale {
    background-color: #ff4d4d;
    color: white;
    border: 1px solid #e60000;
}

.tab-sale::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E");
}

.tab-featured {
    background-color: #ffc107;
    color: #1a1a1a;
    border: 1px solid #e6ac00;
}

.tab-featured::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a1a'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.product-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Hide WooCommerce Product Gallery */

/* Product Page Layout */
.woocommerce div.product {
    margin-top: 2rem;
}

/* Product Title */
.product_title.entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3338;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Rating and Review Section */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.woocommerce-product-rating .star-rating {
    float: none;
    margin: 0 10px 0 0;
    color: #ffb900;
}

.woocommerce-review-link {
    color: #6d6d6d;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-review-link:hover {
    color: #2271b1;
}

/* Price Styling */
.woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3338;
    display: block;
    margin: 1.5rem 0;
}

del .woocommerce-Price-amount {
    color: #a7aaad;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    text-decoration: line-through;
    display: inline-block;
}

/* Product Description */
.woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #50575e;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e4e7;
}

/* Tabs Styling */
.woocommerce-tabs {
    margin-top: 3rem;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
}

.wc-tabs {
    display: flex;
    list-style: none;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e2e4e7;
}

.wc-tabs li {
    margin: 0;
}

.wc-tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #50575e;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.wc-tabs li.active a,
.wc-tabs li a:hover {
    color: #2271b1;
    background: #fff;
    border-bottom-color: #2271b1;
}

.woocommerce-Tabs-panel {
    padding: 2rem;
    background: #fff;
}

/* Review Form */
.woocommerce-Reviews-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3338;
}

.woocommerce-noreviews {
    margin-bottom: 2rem;
    color: #50575e;
}

.comment-form-rating {
    margin-bottom: 1.5rem;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3338;
}

.stars {
    margin-bottom: 1.5rem;
}

.stars a {
    color: #ffb900;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product_title.entry-title {
        font-size: 1.8rem;
    }
    
    .woocommerce-Price-amount {
        font-size: 1.3rem;
    }
    
    .wc-tabs {
        flex-direction: column;
    }
    
    .wc-tabs li a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #e2e4e7;
    }
    
    .woocommerce-Tabs-panel {
        padding: 1.5rem;
    }
}

/* Product Gallery */
.woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.woocommerce-product-gallery__wrapper {
    border-radius: 8px;
    overflow: hidden;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    background-color: #2271b1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.single_add_to_cart_button:hover {
    background-color: #135e96;
}

/* Quantity Input */
.quantity input.qty {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin-right: 10px;
}

/* Meta Information */
.product_meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e4e7;
    font-size: 0.9rem;
    color: #6d6d6d;
}

.product_meta a {
    color: #2271b1;
    text-decoration: none;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* Related Products */
.related.products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e4e7;
}

.related.products > h2 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    font-size: 1.8rem;
    color: #2c3338;
}

/* Star Rating in Review Section */
.star-rating {
    color: #ffb900;
    font-family: star;
    font-size: 1em;
    height: 1em;
    line-height: 1;
    position: relative;
    width: 5.4em;
}

.star-rating::before {
    content: "\73\73\73\73\73";
    color: #d3ced2;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
}

/* Review Form */
#review_form #respond {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

#review_form #respond .comment-reply-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

#review_form #comment {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

#review_form .form-submit {
    margin-top: 1.5rem;
}

/* Product Categories */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 0 2.5em;
    padding: 0;
    position: relative;
    width: 100%;
    margin-bottom: 2em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1em;
    margin: 0.5em 0 0.5em;
    padding: 0;
    line-height: 1.2;
}

.woocommerce ul.products li.product .price {
    color: #2c3338;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.woocommerce ul.products li.product .button {
    margin-top: 1em;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: #ff3b30;
    color: #fff;
    border-radius: 50%;
    min-width: 3.236em;
    min-height: 3.236em;
    line-height: 3.236em;
    padding: 0;
    position: absolute;
    right: -0.5em;
    text-align: center;
    top: -0.5em;
    z-index: 9;
    font-size: 0.857em;
    font-weight: 700;
}

/* Star Rating in Loop */
.woocommerce .star-rating {
    margin: 0.5em 0;
    float: none;
}

/* Clearfix */
.woocommerce::before,
.woocommerce::after {
    content: " ";
    display: table;
}

.woocommerce::after {
    clear: both;
}
