/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.shivana-center li > a{
justify-content: center;
}

/* Variable + Simple */
.wd-all-open-title {
margin-bottom: 16px !important;
}
.woocommerce-variation-add-to-cart,
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce-variation-add-to-cart .quantity,
.single-product form.cart .quantity {
    margin-bottom: 0;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product form.cart .single_add_to_cart_button {
    margin-bottom: 0;
}

.woocommerce-variation-add-to-cart .wd-wishlist-btn,
.single-product form.cart .wd-wishlist-btn {
    margin: 0;
    flex: 0 0 auto;
}

.woocommerce-variation-add-to-cart .wd-action-btn.wd-style-icon,
.single-product form.cart .wd-action-btn.wd-style-icon {
    --wd-action-icon-size: 20px;
    --wd-action-w: 44px;
    --wd-action-h: 44px;

    background: #F8F6F2;
    border-radius: 8px;
}

.woocommerce-variation-add-to-cart .wd-wishlist-btn .wd-action-icon,
.single-product form.cart .wd-wishlist-btn .wd-action-icon {
    color: #6C3819;
}

.woocommerce-variation-add-to-cart .wd-wishlist-btn:hover .wd-action-btn.wd-style-icon,
.single-product form.cart .wd-wishlist-btn:hover .wd-action-btn.wd-style-icon {
    background: #C9A67A;
}

.woocommerce-variation-add-to-cart .wd-wishlist-btn:hover .wd-action-icon,
.single-product form.cart .wd-wishlist-btn:hover .wd-action-icon {
    color: #6C3819;
}


/* ===========================
   Product Attributes - Woodmart
   =========================== */

/* ---------- تنظیمات ---------- */
:root{
    --attr-gap:12px;

    --attr-radius:12px;
    --attr-border:1px solid #e6e1db;

    --label-width:140px;

    --label-bg:#f7f4f1;
    --value-bg:#fff;

    --label-color:#222;
    --value-color:#666;

    --label-padding:12px 18px;
    --value-padding:8px 18px;
}

/* ---------- دسکتاپ ---------- */

.wd-single-attrs .woocommerce-product-attributes{
    width:100%;
    border-collapse:separate;
    border-spacing:0 var(--attr-gap);
}

.wd-single-attrs .woocommerce-product-attributes tbody{
    display:flex;
    flex-direction:column;
    gap:var(--attr-gap);
	margin-bottom: 0px !important;
}

.wd-single-attrs .woocommerce-product-attributes tr{
    display:grid;
    grid-template-columns:var(--label-width) 1fr;
    gap:var(--attr-gap);
	border: none !important;
	margin: 0px !important;
	padding: 0px !important;
}

.wd-single-attrs .woocommerce-product-attributes th,
.wd-single-attrs .woocommerce-product-attributes td{
    display:flex;
    align-items:center;
    border:var(--attr-border);
    border-radius:var(--attr-radius);
    margin:0;
}

.wd-single-attrs .woocommerce-product-attributes th{
    padding:var(--label-padding);
    background:var(--label-bg);
    color:var(--label-color);
    font-weight: bold;
    justify-content:center;
    text-align:center;
}

.wd-single-attrs .woocommerce-product-attributes td{
    padding:var(--value-padding);
    background:var(--value-bg);
    color:var(--value-color);
    line-height:1.9;
    text-align:right;
}

.wd-single-attrs .woocommerce-product-attributes td p:last-child{
    margin-bottom:0;
}
.wd-single-attrs .woocommerce-product-attributes .wd-term{
    padding-left: 4px;
}
/*
.wd-single-attrs .woocommerce-product-attributes .wd-term-sep:last-child{
    display:none;
}
*/
/* ---------- موبایل ---------- */

@media (max-width:767px){

    :root{
        --attr-gap:10px;

        --attr-radius:12px;

        --label-padding:14px 18px;
        --value-padding:16px 18px;
    }

    .wd-single-attrs .woocommerce-product-attributes tr{
        display:flex;
        flex-direction:column;
    }

    .wd-single-attrs .woocommerce-product-attributes th,
    .wd-single-attrs .woocommerce-product-attributes td{
        width:100%;
        box-sizing:border-box;
    }

    .wd-single-attrs .woocommerce-product-attributes th{
        justify-content:flex-start;
        text-align:right;
    }

}


.sticky-box{
	position: sticky;
	top: 100px;
	height: auto;
}
@media (max-width:767px){
    .sticky-box{
        position: static !important;
        top: auto !important;
        height: auto !important;
    }
}

.gradi .wd-product-img-link {
    position: relative;
    display: block;
}

.gradi .wd-product-img-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    pointer-events: none;
	background: linear-gradient(
    to top,
    #fff 0%,
    rgba(255,255,255,.995) 4%,
    rgba(255,255,255,.975) 10%,
    rgba(255,255,255,.93) 18%,
    rgba(255,255,255,.82) 30%,
    rgba(255,255,255,.63) 46%,
    rgba(255,255,255,.38) 64%,
    rgba(255,255,255,.16) 82%,
    rgba(255,255,255,0) 100%
);
}

/* HTML: <div class="inverted-radius"></div> */
.box-corner-radius {
  --r: 20px; /* the radius */
  --s: 30px; /* size of inner curve */
  --x: 20px; /* horizontal offset (no percentage) */
  --y: 10px; /* vertical offset (no percentage) */
  
  border-radius: var(--r);
  --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%);
  --_g:conic-gradient(at calc(100% - var(--r)) var(--r),#0000 25%,#000 0);
  --_d:(var(--s) + var(--r));
  mask:
    calc(100% - var(--_d) - var(--x)) 0 var(--_m),
    100% calc(var(--_d) + var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 0,#0000 99%,#000 calc(100% + 1px)) 
     calc(-1*var(--r) - var(--x)) calc(var(--r) + var(--y)),
    var(--_g) calc(-1*var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(var(--_d) + var(--y));
  mask-repeat: no-repeat;
}

.wd-prefooter {
	padding-bottom: 0px !important;
}
div.quantity input[type=number] {
width: 40px !important;
border-radius: 8px !important;
border-inline: none !important;
border: 1px solid #D8CFC6 !important;
background-color: #f8f6f2;

}
div.quantity .btn {
font-size: 18px;
--btn-color: #6C3819 !important;
--btn-color-hover: #6C3819 !important;
--btn-bgcolor: transparent !important;
--btn-bgcolor-hover: transparent !important;
--btn-padding: 0 5px;
--btn-box-shadow: none;
min-width: 30px !important;
border: 0px !important; 
}