/* Product add to cart area */
.single-product .summary form.cart:not(.variations_form),
.single-product .summary .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Quantity box */
.single-product .summary form.cart .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    min-width: 120px;
    background: #ffffff;
    border: 1px solid #d9e3df;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Quantity input */
.single-product .summary form.cart .quantity .qty {
    width: 72px;
    height: 54px;
    border: none !important;
    outline: none !important;
    background: transparent;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    padding: 0;
}

/* Remove default browser arrows */
.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .summary form.cart .quantity input.qty {
    -moz-appearance: textfield;
}

/* Add to cart button */
.single-product .summary form.cart .single_add_to_cart_button {
    height: 54px;
    min-width: 230px;
    padding: 0 34px !important;
    border-radius: 14px !important;
    border: none !important;
    background: #CD1640 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 54px !important;
    box-shadow: 0 10px 24px rgba(31, 79, 70, 0.22);
    transition: all 0.25s ease;
}

/* Button hover */
.single-product .summary form.cart .single_add_to_cart_button:hover {
    background: #163c35 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 79, 70, 0.3);
}

/* Mobile */
@media (max-width: 767px) {
    .single-product .summary form.cart:not(.variations_form),
    .single-product .summary .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

.single-product .summary form.cart .quantity,
    .single-product .summary form.cart .single_add_to_cart_button {
        width: 100%;
    }

.single-product .summary form.cart .single_add_to_cart_button {
        min-width: 100%;
    }
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
    color:#CD1640 !important;
}

/* پیام افزودن به سبد خرید */
.woocommerce-message{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 22px !important;
    margin:20px 0;
    border:none !important;
    border-radius:18px;
    background:#FFF7F8;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    color:#333;
    font-size:15px;
    font-weight:500;
}

/* نوار بالای پیام حذف شود */
.woocommerce-message::before{
    color:#CD1640;
    font-size:22px;
    top:50%;
    transform:translateY(-50%);
    left:auto;
    right:18px;
}

.woocommerce-message{
    padding-right:60px !important;
}

/* نام محصول */
.woocommerce-message a:not(.button){
    color:#CD1640;
    font-weight:700;
    text-decoration:none;
}

.woocommerce-message a:not(.button):hover{
    text-decoration:underline;
}

/* دکمه مشاهده سبد خرید */
.woocommerce-message .button{
    order:2;
    margin:0 !important;
    background:#CD1640 !important;
    color:#fff !important;
    border:none !important;
    border-radius:12px;
    padding:12px 24px !important;
    font-size:14px;
    font-weight:700;
    transition:.3s;
    box-shadow:0 8px 20px rgba(205,22,64,.25);
}

.woocommerce-message .button:hover{
    background:#b71238 !important;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(205,22,64,.35);
}

.woocommerce-message{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
        padding:18px !important;
        padding-right:55px !important;
    }

.woocommerce-message .button{
        width:100%;
        text-align:center;
    }
    
    /* Add to cart button */
.single-product .summary form.cart .single_add_to_cart_button {
    height: 54px;
    min-width: 230px;
    padding: 0 34px !important;
    border-radius: 14px !important;
    border: none !important;
    background: #CD1640 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 54px !important;
    box-shadow: 0 10px 24px rgba(31, 79, 70, 0.22);
    transition: all 0.25s ease;
}

/* Button hover */
.single-product .summary form.cart .single_add_to_cart_button:hover {
    background: #163c35 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 79, 70, 0.3);
}

/* Mobile */
@media (max-width: 767px) {
    .single-product .summary form.cart:not(.variations_form),
    .single-product .summary .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .summary form.cart .quantity,
    .single-product .summary form.cart .single_add_to_cart_button {
        width: 100%;
    }

    .single-product .summary form.cart .single_add_to_cart_button {
        min-width: 100%;
    }
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
    color:#CD1640 !important;
}


/* پیام افزودن به سبد خرید */
.woocommerce-message{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 22px !important;
    margin:20px 0;
    border:none !important;
    border-radius:18px;
    background:#FFF7F8;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    color:#333;
    font-size:15px;
    font-weight:500;
}

/* نوار بالای پیام حذف شود */
.woocommerce-message::before{
    color:#CD1640;
    font-size:22px;
    top:50%;
    transform:translateY(-50%);
    left:auto;
    right:18px;
}

.woocommerce-message{
    padding-right:60px !important;
}

/* نام محصول */
.woocommerce-message a:not(.button){
    color:#CD1640;
    font-weight:700;
    text-decoration:none;
}

.woocommerce-message a:not(.button):hover{
    text-decoration:underline;
}

/* دکمه مشاهده سبد خرید */
.woocommerce-message .button{
    order:2;
    margin:0 !important;
    background:#CD1640 !important;
    color:#fff !important;
    border:none !important;
    border-radius:12px;
    padding:12px 24px !important;
    font-size:14px;
    font-weight:700;
    transition:.3s;
    box-shadow:0 8px 20px rgba(205,22,64,.25);
}

.woocommerce-message .button:hover{
    background:#b71238 !important;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(205,22,64,.35);
}

/* موبایل */
@media(max-width:768px){

    .woocommerce-message{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
        padding:18px !important;
        padding-right:55px !important;
    }

    .woocommerce-message .button{
        width:100%;
        text-align:center;
    }

}

.wc-block-components-quantity-selector__button{
    background:#f7f7f7;
    transition:.3s;
}

.wc-block-components-quantity-selector__button:hover{
    background:#CD1640;
    color:#fff;
}

.wc-block-components-quantity-selector__input{
    border:none !important;
    font-weight:bold;
}

/* حذف */
.wc-block-cart-item__remove-link{
    color:#CD1640;
}

.wc-block-cart-item__remove-link:hover{
    color:#b21239;
}

/* باکس جمع سفارش */
.wc-block-cart__sidebar{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    position:sticky;
    top:30px;
}

/* عنوان */
.wc-block-cart__totals-title{
    font-size:24px;
    font-weight:700;
}

/* دکمه پرداخت */
.wc-block-cart__submit-button{
    background:#CD1640 !important;
    color:#fff !important;
    border-radius:14px !important;
    height:58px;
    font-size:17px;
    font-weight:700;
    transition:.3s;
}

.wc-block-cart__submit-button:hover{
    background:#b21239 !important;
    transform:translateY(-2px);
}

/* باکس کوپن */
.wc-block-components-panel{
    border-radius:14px;
    border:1px solid #eee;
}

/* موبایل */
@media(max-width:768px){

    .wc-block-cart__sidebar{
        margin-top:30px;
        position:static;
        padding:20px;
    }

    .wc-block-cart-items td{
        padding:15px !important;
    }

}


/* =====================================
   Single Product - Additional Information Table
===================================== */

.single-product .woocommerce-Tabs-panel--additional_information{
    background:#fff;
    border:1px solid #eeeeee;
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.single-product .woocommerce-Tabs-panel--additional_information h2{
    margin:0 0 22px;
    font-size:22px;
    font-weight:700;
    color:#222;
    line-height:1.6;
}

.single-product table.woocommerce-product-attributes{
    width:100%;
    border-collapse:separate !important;
    border-spacing:0 10px !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
}

.single-product table.woocommerce-product-attributes tr{
    background:#fafafa;
    border-radius:14px;
    overflow:hidden;
    transition:.25s ease;
}

.single-product table.woocommerce-product-attributes tr:hover{
    background:#fff4f7;
}

.single-product table.woocommerce-product-attributes th,
.single-product table.woocommerce-product-attributes td{
    border:0 !important;
    padding:15px 18px !important;
    vertical-align:middle;
    line-height:1.8;
}

.single-product table.woocommerce-product-attributes th{
    width:32%;
    background:#f5f5f5 !important;
    color:#333;
    font-size:14px;
    font-weight:700;
    text-align:right;
    border-radius:0 14px 14px 0;
    white-space:nowrap;
}

.single-product table.woocommerce-product-attributes td{
    background:#fafafa !important;
    color:#555;
    font-size:14px;
    font-weight:500;
    text-align:right;
    border-radius:14px 0 0 14px;
}

.single-product table.woocommerce-product-attributes tr:hover th{
    background:#fde8ee !important;
    color:#CD1640;
}

.single-product table.woocommerce-product-attributes tr:hover td{
    background:#fff4f7 !important;
    color:#333;
}

.single-product table.woocommerce-product-attributes td p{
    margin:0 !important;
    padding:0 !important;
}

.single-product table.woocommerce-product-attributes a{
    color:#CD1640;
    text-decoration:none !important;
    font-weight:600;
}

.single-product table.woocommerce-product-attributes a:hover{
    color:#b31239;
}

@media (max-width:767px){

    .single-product .woocommerce-Tabs-panel--additional_information{
        padding:18px;
        border-radius:16px;
    }

    .single-product .woocommerce-Tabs-panel--additional_information h2{
        font-size:18px;
        margin-bottom:16px;
    }

    .single-product table.woocommerce-product-attributes,
    .single-product table.woocommerce-product-attributes tbody,
    .single-product table.woocommerce-product-attributes tr,
    .single-product table.woocommerce-product-attributes th,
    .single-product table.woocommerce-product-attributes td{
        display:block;
        width:100% !important;
    }

    .single-product table.woocommerce-product-attributes tr{
        margin-bottom:12px;
        border-radius:14px;
        background:#fafafa;
        overflow:hidden;
    }

    .single-product table.woocommerce-product-attributes th{
        border-radius:14px 14px 0 0;
        padding:12px 14px !important;
        background:#f3f3f3 !important;
        font-size:13px;
    }

    .single-product table.woocommerce-product-attributes td{
        border-radius:0 0 14px 14px;
        padding:12px 14px !important;
        font-size:13px;
    }
}
