/*
Theme Name: alarabi
Author: Yaser Behbehani
Version: 1.0
*/

/* PRODUCT PAGE LAYOUT (clean modern design) */
.single-product .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Left side – Gallery */
.single-product div.product div.images {
    width: 50%;
    position: relative;
}

/* Make gallery images cleaner */
.single-product div.product div.images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Right side – product summary */
.single-product div.product div.summary {
    width: 45%;
    padding-top: 10px;
}

/* Product title */
.single-product div.product .product_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    direction: rtl;
}

/* Price design */
.single-product div.product p.price, 
.single-product div.product span.price {
    font-size: 22px;
    font-weight: bold;
    color: #007a3d;
    margin-bottom: 20px;
}

/* Add to cart button */
.single-product button.single_add_to_cart_button {
    background: #007a3d;
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.single-product button.single_add_to_cart_button:hover {
    background: #005c2e;
}

/* Quantity input style */
.single-product .quantity input {
    border-radius: 6px;
    padding: 8px 10px;
}

/* Product tabs (description, reviews) */
.woocommerce-tabs {
    width: 100%;
    margin-top: 50px;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #f1f1f1;
    padding: 0;
}

.woocommerce-tabs ul.tabs li {
    display: inline-block;
    margin-right: 20px;
}

.woocommerce-tabs ul.tabs li a {
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
}

/* RTL Support */
body.rtl .single-product .site-main {
    flex-direction: row-reverse;
}

body.rtl .woocommerce-tabs ul.tabs li {
    margin-right: 0;
    margin-left: 20px;
}
button.single_add_to_cart_button.button.alt,button.single_add_to_cart_button.button.disabled {
    background: #1A1A1A !important;
	padding:14px 30px !important;
	
}
button.single_add_to_cart_button.button.alt:hover{
	background-color:#006E39;
}
.variations select {
    width: 100%;
    padding: 10px;
}
.variations .label {
width:15%;
}
table.variations tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th {
     background-color:unset;
}
.woocommerce table.shop_attributes td p {
    margin: 0;
    padding: 8px 12px;
}
/* ✅ Mobile responsive improvements */
@media (max-width: 768px) {

    /* Make layout full width on mobile */
    .single-product .site-main,
    .single-product #primary {
        padding: 10px;
        display: block;
    }

    /* Product Gallery (Full Width) */
    .single-product div.product div.images,
    .single-product div.product div.summary {
        width: 100% !important;
        margin: 0;
    }

    .single-product div.product div.images img {
        width: 100%;
        border-radius: 10px;
    }

    /* Product title */
    .single-product div.product .product_title {
        font-size: 20px;
        text-align: center;
        margin-top: 15px;
        line-height: 1.4;
    }

    /* Price style */
    .single-product div.product p.price,
    .single-product div.product span.price {
        font-size: 18px;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }

    /* Quantity + Add to Cart – stack */
    .single-product form.cart {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .single-product .quantity {
        width: 100%;
        max-width: 150px;
        text-align: center; 
        margin-bottom: 18px !important;
    }

    .single-product button.single_add_to_cart_button {
        width: 100%;
        max-width: 260px;
        font-size: 16px;
        padding: 14px;
        border-radius: 8px;
        text-align: center;
    }

    /* Tabs (Description, Reviews) */
    .woocommerce-tabs {
        margin-top: 25px;
    }

    .woocommerce-tabs ul.tabs {
        text-align: center;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .woocommerce-tabs ul.tabs li {
        display: inline-block;
        margin: 0 5px;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .woocommerce-Tabs-panel {
        font-size: 14px;
        padding: 15px 5px;
        text-align: justify;
    }

    /* Related Products */
    .related.products h2 {
        font-size: 18px;
        text-align: center;
    }

    .related ul.products li.product {
        width: 48%;
        margin: 1%;
    }
}

/* ✅ Extra small screens */
@media (max-width: 480px) {
	.wp-block-post{
		padding: 12px;
	}
    .related ul.products li.product {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .single-product .product_title {
        font-size: 18px;
    }

    .single-product button.single_add_to_cart_button {
        font-size: 15px;
    }
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { 
    z-index: 1 !important;
}