/**
 * ChasbShop Pro - WooCommerce Styles
 */

/* Product Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.woocommerce ul.products li.product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product:hover::before {
    border-color: #e94560;
}

.woocommerce ul.products li.product a {
    display: block;
}

.woocommerce ul.products li.product a img {
    border-radius: 16px 16px 0 0;
    margin: 0;
    transition: transform 0.4s ease;
}

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

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Vazirmatn", "Vazir", "Tahoma", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem 0.5rem;
    margin: 0;
    color: #1a1a2e;
    line-height: 1.5;
}

.woocommerce ul.products li.product .price {
    color: #e94560;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0 1.25rem;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    color: #e94560;
    text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin: 1rem 1.25rem;
    width: calc(100% - 2.5rem);
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #ffffff;
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-family: "Vazirmatn", "Vazir", "Tahoma", sans-serif;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    border: none;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.woocommerce ul.products li.product .button.added::after {
    display: none;
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

/* Single Product */
.woocommerce div.product {
    padding: 2rem 0;
}

.woocommerce div.product div.images {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.woocommerce div.product div.images img {
    border-radius: 16px;
}

.woocommerce div.product div.summary {
    padding-left: 2rem;
}

.woocommerce div.product .product_title {
    font-family: "Vazirmatn", "Vazir", "Tahoma", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.woocommerce div.product p.price {
    color: #e94560;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 9999px 9999px 0 0;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #e94560;
    border-bottom-color: #e94560;
}

/* Add to Cart Button */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #ffffff;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-family: "Vazirmatn", "Vazir", "Tahoma", sans-serif;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    text-transform: none;
    font-size: 1rem;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

/* Quantity Input */
.woocommerce div.product .quantity {
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.woocommerce div.product .quantity input {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* Cart Page */
.woocommerce-cart-form .cart_item:hover {
    background-color: #f8f9fa;
}

.woocommerce table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.woocommerce table.shop_table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.25rem;
    border: none;
}

.woocommerce table.shop_table td {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.woocommerce table.shop_table .product-name {
    font-weight: 600;
}

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    font-weight: 700;
    color: #e94560;
}

/* Checkout */
.woocommerce-checkout #payment {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.woocommerce-checkout #payment #place_order {
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #ffffff;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 600;
    width: 100%;
}

/* Product Categories */
.woocommerce .product-category a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce .product-category a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.woocommerce .product-category a img {
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.woocommerce .product-category a:hover img {
    transform: scale(1.05);
}

.woocommerce .product-category h2 {
    font-family: "Vazirmatn", "Vazir", "Tahoma", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a2e;
    margin-top: 1rem;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

/* Star Ratings */
.woocommerce .star-rating {
    color: #f39c12;
}

/* Reviews */
.woocommerce #reviews #comments {
    margin-bottom: 2rem;
}

.woocommerce #reviews .commentlist {
    padding: 0;
}

.woocommerce #reviews .commentlist li {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .woocommerce div.product div.summary {
        padding-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .woocommerce ul.products li.product .button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        padding: 0;
    }
}