/*
Theme Name: RedShop Theme
Theme URI: https://example.com/
Author: Amin Furniture
Author URI: https://example.com/
Description: قالب اختصاصی فروشگاه مبل امین
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redshop
*/


*{
margin:0;
padding:0;
box-sizing:border-box
}

html{
scroll-behavior:smooth
}

body{
font-family:tahoma;
direction:rtl;
background:#f5f5f5;
color:#222;
line-height:1.8;
overflow-x:hidden
}

img{
max-width:100%;
display:block
}

a{
text-decoration:none;
transition:.25s
}

ul{
list-style:none
}

.container{
width:90%;
max-width:1400px;
margin:auto
}

/* HEADER */

.site-header{
height:78px;
background:#fff;
position:sticky;
top:0;
z-index:999;
border-bottom:1px solid #eee;
box-shadow:0 4px 18px rgba(0,0,0,.04)
}

.header-wrapper{
height:78px;
display:flex;
align-items:center;
justify-content:center;
position:relative
}

.logo{
position:absolute;
right:0;
top:50%;
transform:translateY(-50%)
}

.logo img{
height:42px
}

/* MENU */

.main-menu .menu{
display:flex;
align-items:center;
gap:14px
}

.main-menu .menu li a{
color:#222;
font-size:15px;
font-weight:600;
padding:10px 18px;
border-radius:10px
}

.main-menu .menu li a:hover{
background:#fff1f1;
color:#d40000
}

.main-menu .current-menu-item a{
background:#d40000;
color:#fff
}

/* MOBILE BUTTON */

.mobile-menu-btn{
display:none;
position:absolute;
left:0;
top:50%;
transform:translateY(-50%);
width:42px;
height:42px;
border:none;
background:none;
cursor:pointer;
flex-direction:column;
justify-content:center;
gap:6px
}

.mobile-menu-btn span{
height:3px;
background:#222;
border-radius:20px
}

/* HERO */

.hero-slider{
position:relative;
height:790px;
overflow:hidden
}

.hero-slide{
position:absolute;
inset:0;
opacity:0;
visibility:hidden;
transition:.6s
}

.hero-slide.active{
opacity:1;
visibility:visible
}

.hero-slide img{
width:100%;
height:100%;
object-fit:cover
}

.slide-content{
position:absolute;
top:50%;
right:10%;
transform:translateY(-50%);
color:#fff;
max-width:550px;
z-index:5
}

.slide-content h2{
font-size:52px;
margin-bottom:15px;
text-shadow:0 3px 15px rgba(0,0,0,.3)
}

.slide-content p{
font-size:20px;
margin-bottom:25px
}

.hero-btn,
.product-btn,
.contact-btn{
display:inline-block;
background:#d40000;
color:#fff;
padding:12px 26px;
border-radius:10px;
font-weight:700
}

.hero-btn:hover,
.product-btn:hover{
background:#a80000
}

/* SECTIONS */

section{
padding:80px 0
}

.section-title{
text-align:center;
margin-bottom:45px
}

.section-title h2{
font-size:38px;
position:relative;
display:inline-block
}

.section-title h2:after{
content:'';
width:70px;
height:4px;
background:#d40000;
position:absolute;
bottom:-12px;
right:50%;
transform:translateX(50%);
border-radius:20px
}

/* GRID */

.features-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px
}

.products-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px
}

.blog-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px
}

/* CARDS */

.feature-box,
.product-card,
.blog-card{
background:#fff;
border-radius:18px;
overflow:hidden;
transition:.35s;
box-shadow:0 6px 25px rgba(0,0,0,.05)
}

.feature-box:hover,
.product-card:hover,
.blog-card:hover{
transform:translateY(-8px);
box-shadow:0 16px 45px rgba(0,0,0,.1)
}

/* PRODUCT CARD */

.product-card{
display:flex;
flex-direction:column;
height:100%;
padding:16px;
text-align:center;
position:relative
}

.product-card img{
width:100%;
height:230px;
object-fit:contain;
margin-bottom:15px;
transition:.4s
}

.product-card:hover img{
transform:scale(1.05)
}

.product-content{
display:flex;
flex-direction:column;
flex:1
}

.product-content h3{
font-size:15px;
line-height:1.9;
height:55px;
overflow:hidden;
margin-bottom:10px;
font-weight:700
}

/* PRICE STYLE */

.price,
.woocommerce ul.products li.product .price{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
min-height:72px;
margin:10px 0 16px;
gap:4px;
text-align:center
}

/* OLD PRICE */

.price del{
font-size:13px;
color:#999;
height:18px;
line-height:18px;
order:-1
}

/* NEW PRICE */

.price ins{
text-decoration:none;
background:#fff3f3;
padding:4px 12px;
border-radius:10px
}

.price ins,
.price bdi{
font-size:24px;
font-weight:900;
color:#d40000;
line-height:1.2;
letter-spacing:.5px;
font-variant-numeric:tabular-nums
}

/* CURRENCY */

.woocommerce-Price-currencySymbol{
display:block;
font-size:12px;
margin-top:3px;
color:#777
}

/* BUTTON */

.product-btn{
margin-top:auto;
display:block;
width:100%;
text-align:center;
background:#d40000;
color:#fff;
padding:12px;
border-radius:12px;
font-size:14px;
font-weight:700;
transition:.3s
}

.product-btn:hover{
background:#b10000
}

/* SHOP PAGE */

.shop-layout{
display:grid;
grid-template-columns:260px 1fr;
gap:30px;
padding:40px 0
}

/* SIDEBAR */

.shop-sidebar{
background:#fff;
padding:24px;
border-radius:20px;
height:max-content;
box-shadow:0 10px 35px rgba(0,0,0,.05);
border:1px solid #f1f1f1;
position:sticky;
top:95px
}

.shop-widget{
margin-bottom:30px
}

.shop-widget:last-child{
margin-bottom:0
}

.shop-widget h3{
font-size:16px;
font-weight:800;
margin-bottom:18px;
padding-bottom:10px;
border-bottom:1px solid #eee;
position:relative
}

.shop-widget h3:after{
content:'';
position:absolute;
right:0;
bottom:-1px;
width:55px;
height:3px;
background:#d40000;
border-radius:20px
}

.shop-widget ul{
display:flex;
flex-direction:column;
gap:10px
}

.shop-widget ul li a{
display:flex;
justify-content:space-between;
align-items:center;
background:#f7f7f7;
padding:12px 14px;
border-radius:12px;
font-size:14px;
font-weight:600;
color:#333;
transition:.3s
}

.shop-widget ul li a:hover{
background:#fff1f1;
color:#d40000;
transform:translateX(-3px)
}

/* SHOP TOPBAR */

.shop-topbar{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
background:#fff;
padding:18px 22px;
border-radius:18px;
margin-bottom:25px;
box-shadow:0 8px 30px rgba(0,0,0,.06);
flex-wrap:wrap
}

/* SEARCH */

.shop-search{
position:relative;
width:320px;
max-width:100%
}

.shop-search input{
width:100%;
height:48px;
border:none;
background:#f3f4f6;
border-radius:14px;
padding:0 18px 0 50px;
font-size:14px;
color:#222;
transition:.3s
}

.shop-search input:focus{
outline:none;
background:#fff;
box-shadow:
0 0 0 2px #ffe3e3,
0 10px 25px rgba(212,0,0,.08)
}

.shop-search button{
position:absolute;
left:12px;
top:50%;
transform:translateY(-50%);
width:34px;
height:34px;
border:none;
border-radius:10px;
background:#d40000;
color:#fff;
cursor:pointer;
transition:.3s
}

.shop-search button:hover{
background:#b10000
}

/* RESULT COUNT */

.woocommerce-result-count{
font-size:14px;
color:#666
}

/* SORTING */

.woocommerce-ordering select{
border:none;
padding:11px 14px;
border-radius:12px;
font-size:14px;
cursor:pointer;
transition:.3s
}

.woocommerce-ordering select:hover{
background:#ffecec
}

.woocommerce-ordering select:focus{
outline:none
}

/* PAGINATION */

.shop-pagination{
margin-top:40px;
text-align:center
}

.shop-pagination .page-numbers{
display:inline-flex;
align-items:center;
justify-content:center;
width:42px;
height:42px;
margin:4px;
background:#fff;
border-radius:12px;
font-size:14px;
font-weight:700;
color:#222;
box-shadow:0 4px 12px rgba(0,0,0,.05)
}

.shop-pagination .current{
background:#d40000;
color:#fff
}

/* CONTACT */

.contact-section{
background:#d40000;
color:#fff;
text-align:center
}

.contact-box h2{
font-size:42px;
margin-bottom:15px
}

/* FOOTER */

.site-footer{
background:#222;
color:#ccc;
text-align:center;
padding:25px 0
}

/* SCROLLBAR */

::-webkit-scrollbar{
width:10px
}

::-webkit-scrollbar-thumb{
background:#d40000;
border-radius:20px
}

/* RESPONSIVE */

@media(max-width:1200px){

.products-grid{
grid-template-columns:repeat(3,1fr)
}

}

@media(max-width:992px){

.products-grid{
grid-template-columns:repeat(2,1fr)
}

.features-grid{
grid-template-columns:repeat(2,1fr)
}

.blog-grid{
grid-template-columns:1fr
}

.shop-layout{
grid-template-columns:1fr
}

.slide-content h2{
font-size:40px
}

}

@media(max-width:768px){

.mobile-menu-btn{
display:flex
}

.main-menu{
position:fixed;
top:78px;
right:-100%;
width:280px;
height:100vh;
background:#fff;
padding:30px;
transition:.4s;
z-index:999
}

.main-menu.active{
right:0
}

.main-menu .menu{
flex-direction:column;
align-items:flex-start
}

.main-menu .menu li{
width:100%
}

.main-menu .menu li a{
display:block;
background:#f7f7f7
}

.hero-slider{
height:350px
}

.slide-content{
right:5%;
left:5%;
text-align:center
}

.slide-content h2{
font-size:28px
}

.slide-content p{
font-size:16px
}

.products-grid,
.features-grid{
grid-template-columns:1fr
}

.shop-topbar{
flex-direction:column;
align-items:stretch
}

.shop-search{
width:100%
}

.contact-box h2{
font-size:30px
}

}
```/* ===== WOOCOMMERCE PRODUCT CARD FIX ===== */

.woocommerce ul.products{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.woocommerce ul.products li.product{
background:#fff;
border-radius:18px;
padding:16px;
display:flex;
flex-direction:column;
text-align:center;
box-shadow:0 6px 25px rgba(0,0,0,.05);
transition:.35s;
}

.woocommerce ul.products li.product:hover{
transform:translateY(-8px);
box-shadow:0 16px 45px rgba(0,0,0,.1);
}

.woocommerce ul.products li.product img{
width:100%;
height:230px;
object-fit:contain;
margin-bottom:15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
font-size:15px;
line-height:1.9;
height:55px;
overflow:hidden;
margin-bottom:10px;
font-weight:700;
}

.woocommerce ul.products li.product .price{
min-height:72px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}

.woocommerce ul.products li.product .button{
margin-top:auto;
width:100%;
text-align:center;
background:#d40000;
color:#fff;
padding:12px;
border-radius:12px;
font-size:14px;
font-weight:700;
}

.woocommerce ul.products li.product .button:hover{
background:#b10000;
}
/* ===== WOOCOMMERCE SIDEBAR FILTER STYLE ===== */

.shop-sidebar .widget{
background:#fff;
padding:22px;
border-radius:18px;
margin-bottom:22px;
box-shadow:0 6px 25px rgba(0,0,0,.05);
border:1px solid #f1f1f1;
}

.shop-sidebar .widget-title{
font-size:16px;
font-weight:800;
margin-bottom:16px;
padding-bottom:10px;
border-bottom:1px solid #eee;
position:relative;
}

.shop-sidebar .widget-title:after{
content:'';
position:absolute;
right:0;
bottom:-1px;
width:55px;
height:3px;
background:#d40000;
border-radius:20px;
}

/* CATEGORY FILTER */

.shop-sidebar .product-categories li{
margin-bottom:8px;
}

.shop-sidebar .product-categories li a{
display:flex;
justify-content:space-between;
align-items:center;
background:#f7f7f7;
padding:12px 14px;
border-radius:12px;
font-size:14px;
font-weight:600;
color:#333;
transition:.3s;
}

.shop-sidebar .product-categories li a:hover{
background:#fff1f1;
color:#d40000;
transform:translateX(-3px);
}

/* PRICE FILTER */

.price_slider_wrapper{
padding-top:10px;
}

.ui-slider{
height:6px;
background:#eee;
border-radius:20px;
border:none;
margin-bottom:18px;
}

.ui-slider-range{
background:#d40000;
}

.ui-slider-handle{
width:18px !important;
height:18px !important;
background:#fff !important;
border:3px solid #d40000 !important;
border-radius:50%;
top:-6px !important;
cursor:pointer;
}

.price_slider_amount{
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
flex-wrap:wrap;
}

.price_slider_amount .button{
background:#d40000 !important;
color:#fff !important;
border:none !important;
padding:10px 16px !important;
border-radius:10px !important;
font-size:13px !important;
font-weight:700 !important;
}

.price_label{
font-size:13px;
font-weight:700;
color:#444;
}
/* ===== FIX PRICE FILTER SLIDER ===== */

.woocommerce .widget_price_filter .ui-slider {
position: relative;
height: 6px;
background: #eee;
border-radius: 20px;
margin-bottom: 20px;
}

.woocommerce .widget_price_filter .ui-slider-range {
position: absolute;
height: 100%;
background: #d40000;
border-radius: 20px;
}

.woocommerce .widget_price_filter .ui-slider-handle {
position: absolute;
width: 18px;
height: 18px;
background: #fff;
border: 3px solid #d40000;
border-radius: 50%;
top: -6px;
cursor: pointer;
outline: none;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
background: #eee;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
background:#d40000;
color:#fff;
border:none;
padding:10px 16px;
border-radius:10px;
font-size:13px;
font-weight:700;
}
/* ===== SHOP SEARCH BOX ===== */

.shop-search,
.woocommerce-product-search{
position:relative;
margin-bottom:25px;
}

.woocommerce-product-search{
display:flex;
align-items:center;
background:#fff;
border-radius:18px;
padding:8px;
box-shadow:0 6px 25px rgba(0,0,0,.05);
border:1px solid #f1f1f1;
overflow:hidden;
}

.woocommerce-product-search input[type="search"]{
flex:1;
border:none;
background:transparent;
height:52px;
padding:0 18px;
font-size:14px;
font-weight:600;
color:#333;
outline:none;
}

.woocommerce-product-search input[type="search"]::placeholder{
color:#999;
font-weight:500;
}

.woocommerce-product-search button{
border:none;
background:#d40000;
color:#fff;
height:52px;
padding:0 24px;
border-radius:14px;
font-size:14px;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.woocommerce-product-search button:hover{
background:#b10000;
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(212,0,0,.25);
}

/* SEARCH ICON */

.woocommerce-product-search:before{
content:"🔍";
position:absolute;
right:18px;
top:50%;
transform:translateY(-50%);
font-size:16px;
opacity:.5;
pointer-events:none;
}

.woocommerce-product-search input[type="search"]{
padding-right:45px;
}
/* ===== SAME BUTTON POSITION ===== */

.woocommerce ul.products li.product{
display:flex;
flex-direction:column;
min-height:480px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
min-height:55px;
}

.woocommerce ul.products li.product .price{
min-height:78px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
margin-bottom:15px;
}

.woocommerce ul.products li.product .button{
margin-top:auto !important;
width:100%;
border-radius:12px;
padding:12px;
font-size:14px;
font-weight:700;
}

/* SALE PRICE */

.woocommerce ul.products li.product del{
opacity:.5;
font-size:13px;
margin-bottom:4px;
}

.woocommerce ul.products li.product ins{
text-decoration:none;
font-size:20px;
font-weight:800;
color:#d40000;
}
/* ===== FIX ADD TO CART POSITION ===== */

.woocommerce ul.products li.product{
display:flex !important;
flex-direction:column !important;
height:100% !important;
min-height:480px !important;
}

.woocommerce ul.products li.product .price{
min-height:80px !important;
display:flex !important;
flex-direction:column !important;
justify-content:center !important;
align-items:center !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button{
margin-top:auto !important;
width:100% !important;
text-align:center !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
min-height:55px !important;
}


/* =========================
   SINGLE PRODUCT MODERN
========================= */

.single-product .product{
display:grid;
grid-template-columns:420px 1fr;
gap:35px;
align-items:start;
margin-top:40px;
}

/* IMAGE */

.single-product .woocommerce-product-gallery{
background:#fff;
padding:20px;
border-radius:20px;
box-shadow:0 5px 30px rgba(0,0,0,.05);
position:relative;
top:auto;
}

.single-product .woocommerce-product-gallery img{
width:100%;
max-height:500px;
object-fit:contain;
border-radius:14px;
}

/* SUMMARY */

.single-product .summary{
background:#fff;
padding:28px;
border-radius:20px;
box-shadow:0 5px 30px rgba(0,0,0,.05);
}

/* TITLE */

.single-product .product_title{
font-size:28px;
line-height:1.9;
font-weight:800;
margin-bottom:18px;
color:#111;
}

/* PRICE */

.single-product .summary .price{
display:flex;
align-items:center;
gap:14px;
flex-wrap:wrap;
margin-bottom:22px !important;
}

.single-product .summary .price ins{
text-decoration:none;
font-size:30px;
font-weight:900;
color:#d40000;
}

.single-product .summary .price del{
font-size:18px;
opacity:.45;
}

/* SHORT DESCRIPTION */

.single-product .woocommerce-product-details__short-description{
font-size:15px;
line-height:2.4;
color:#555;
background:#fafafa;
padding:18px;
border-radius:14px;
margin-bottom:25px;
}

/* QUANTITY */

.single-product .quantity input{
height:46px;
width:75px;
border:1px solid #ddd;
border-radius:12px;
font-size:15px;
    text-align: center;
    margin-bottom: 10px;
}

/* BUTTON */

.single-product button.single_add_to_cart_button{
height:48px;
padding:0 28px !important;
border:none !important;
border-radius:12px !important;
background:#d40000 !important;
font-size:15px !important;
font-weight:700 !important;
transition:.3s;
}

.single-product button.single_add_to_cart_button:hover{
background:#b10000 !important;
transform:translateY(-2px);
}

/* META */

.single-product .product_meta{
margin-top:25px;
padding-top:20px;
border-top:1px solid #eee;
font-size:14px;
line-height:2.2;
color:#666;
}

/* =========================
   TABS FULL WIDTH
========================= */

.single-product .woocommerce-tabs{
margin-top:45px;
width:100%;
grid-column:1/-1;
background:#fff;
padding:30px;
border-radius:20px;
box-shadow:0 5px 30px rgba(0,0,0,.05);
}

/* TAB MENU */

.single-product .woocommerce-tabs ul.tabs{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:25px !important;
border:none !important;
}

.single-product .woocommerce-tabs ul.tabs li{
border:none !important;
background:#f5f5f5 !important;
border-radius:12px !important;
padding:8px 18px !important;
}

.single-product .woocommerce-tabs ul.tabs li.active{
background:#d40000 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a{
color:#fff !important;
}

/* DESCRIPTION TEXT */

.single-product .woocommerce-Tabs-panel{
font-size:16px;
line-height:2.5;
color:#444;
}

.single-product .woocommerce-Tabs-panel p{
margin-bottom:18px;
}

.single-product .woocommerce-Tabs-panel h2{
font-size:24px;
margin-bottom:20px;
font-weight:800;
}

/* =========================
   REVIEWS
========================= */

#reviews{
margin-top:10px;
}

#review_form_wrapper{
margin-top:30px;
padding-top:25px;
border-top:1px solid #eee;
}

.comment-form textarea{
width:100%;
min-height:180px;
padding:15px;
border:1px solid #ddd;
border-radius:14px;
resize:vertical;
font-family:tahoma;
font-size:14px;
}

.comment-form input{
height:48px;
padding:0 14px;
border:1px solid #ddd;
border-radius:12px;
width:100%;
margin-bottom:15px;
}

.comment-form .submit{
background:#d40000 !important;
color:#fff !important;
border:none !important;
padding:12px 24px !important;
border-radius:12px !important;
font-weight:700;
}

/* RELATED */

.related.products{
margin-top:60px;
grid-column:1/-1;
}

/* MOBILE */

@media(max-width:992px){

.single-product .product{
grid-template-columns:1fr;
}

}

@media(max-width:768px){

.single-product .summary{
padding:22px;
}

.single-product .product_title{
font-size:22px;
}

.single-product .woocommerce-tabs{
padding:20px;
}

.single-product .woocommerce-Tabs-panel{
font-size:15px;
line-height:2.3;
}

}
/* =========================================
   PROFESSIONAL REVIEWS STYLE
========================================= */

/* REVIEW SECTION */

#reviews{
margin-top:20px;
}

/* REVIEW TITLE */

#reviews h2{
font-size:24px;
font-weight:800;
margin-bottom:30px;
color:#111;
}

/* REVIEW LIST */

.woocommerce-Reviews ol.commentlist{
padding:0 !important;
margin:0 !important;
display:flex;
flex-direction:column;
gap:20px;
}

/* REVIEW CARD */

.woocommerce-Reviews ol.commentlist li.review{
list-style:none;
background:#fff;
border:1px solid #eee;
border-radius:18px;
padding:24px;
box-shadow:0 5px 20px rgba(0,0,0,.04);
transition:.3s;
}

.woocommerce-Reviews ol.commentlist li.review:hover{
transform:translateY(-3px);
box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* AVATAR */

.woocommerce-Reviews .avatar{
width:55px !important;
height:55px !important;
border-radius:50% !important;
border:3px solid #f3f3f3;
}

/* REVIEW HEADER */

.woocommerce-Reviews .comment-text{
margin:0 !important;
border:none !important;
padding:0 !important;
}

.woocommerce-Reviews .meta{
display:flex;
align-items:center;
gap:10px;
margin-bottom:12px !important;
flex-wrap:wrap;
}

/* AUTHOR */

.woocommerce-Reviews .meta strong{
font-size:15px;
font-weight:800;
color:#111;
}

/* DATE */

.woocommerce-Reviews .woocommerce-review__published-date{
font-size:13px;
color:#888;
}

/* STAR RATING */

.woocommerce-review__dash{
display:none;
}

.star-rating{
font-size:16px !important;
color:#ffb400 !important;
margin-bottom:10px !important;
}

/* REVIEW TEXT */

.woocommerce-review__description{
font-size:15px;
line-height:2.3;
color:#444;
margin-top:12px;
}

/* REVIEW FORM */

#review_form_wrapper{
margin-top:40px;
background:#fff;
padding:30px;
border-radius:20px;
border:1px solid #eee;
box-shadow:0 5px 25px rgba(0,0,0,.04);
}

/* FORM TITLE */

#reply-title{
font-size:22px;
font-weight:800;
margin-bottom:25px;
display:block;
color:#111;
}

/* LABELS */

.comment-form label{
display:block;
margin-bottom:8px;
font-size:14px;
font-weight:700;
color:#333;
}

/* INPUTS */

.comment-form input{
width:100%;
height:48px;
border:1px solid #ddd;
border-radius:12px;
padding:0 15px;
font-size:14px;
transition:.2s;
background:#fafafa;
}

.comment-form input:focus{
border-color:#d40000;
background:#fff;
outline:none;
}

/* TEXTAREA */

.comment-form textarea{
width:100%;
min-height:180px;
border:1px solid #ddd;
border-radius:14px;
padding:15px;
font-size:14px;
line-height:2;
resize:vertical;
background:#fafafa;
transition:.2s;
}

.comment-form textarea:focus{
border-color:#d40000;
background:#fff;
outline:none;
}

/* ===== STAR ICON RATING ===== */

.comment-form-rating{
margin-bottom:20px;
}

.comment-form-rating label{
margin-bottom:12px;
}

.comment-form .stars{
display:flex;
flex-direction:row-reverse;
justify-content:flex-end;
gap:6px;
}

.comment-form .stars a{
font-size:0 !important;
width:28px;
height:28px;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none !important;
color:#d5d5d5 !important;
transition:.2s;
}

.comment-form .stars a::before{
content:"★";
font-size:26px;
color:inherit;
}

.comment-form .stars a:hover,
.comment-form .stars a.active{
color:#ffb400 !important;
transform:scale(1.08);
}

/* ===== SMALL SUBMIT BUTTON ===== */

#review_form .form-submit{
margin-top:15px;
}

#review_form .submit{
display:inline-flex !important;
align-items:center;
justify-content:center;
width:auto !important;
min-width:120px;
height:40px !important;
padding:0 18px !important;
background:#d40000 !important;
color:#fff !important;
border:none !important;
border-radius:10px !important;
font-size:13px !important;
font-weight:700 !important;
cursor:pointer;
transition:.25s;
box-shadow:none !important;
}

#review_form .submit:hover{
background:#b80000 !important;
transform:translateY(-1px);
}

/* REQUIRED TEXT */

.comment-notes,
.logged-in-as{
font-size:13px;
color:#777;
margin-bottom:20px !important;
}

/* EMPTY REVIEW */

.woocommerce-noreviews{
background:#fafafa;
padding:20px;
border-radius:14px;
font-size:14px;
color:#666;
}

/* MOBILE */

@media(max-width:768px){

.woocommerce-Reviews ol.commentlist li.review{
padding:18px;
}

#review_form_wrapper{
padding:22px;
}

#reply-title{
font-size:20px;
}

.comment-form .stars a::before{
font-size:22px;
}

}
/* FIX RATING STARS HORIZONTAL */

.comment-form-rating .stars{
display:flex !important;
flex-direction:row !important;
align-items:center;
gap:6px;
}

.comment-form-rating .stars a{
display:inline-flex !important;
width:28px;
height:28px;
align-items:center;
justify-content:center;
font-size:0 !important;
color:#d5d5d5;
text-decoration:none !important;
}

.comment-form-rating .stars a::before{
content:"★";
font-size:26px;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active{
color:#ffb400 !important;
}
/* MOVE REVIEW RATING UNDER PRICE */

.single-product div.product .woocommerce-review-link{
display:block;
margin-top:10px;
font-size:14px;
font-weight:600;
color:#666 !important;
}

.single-product .woocommerce-product-rating{
margin-top:8px !important;
margin-bottom:15px !important;
}
/* FIX RATING POSITION RTL */

.comment-form-rating{
text-align:right !important;
float:right !important;
width:100%;
}

.comment-form-rating .stars{
display:flex !important;
flex-direction:row !important;
justify-content:flex-start;
direction:ltr; /* برای درست شدن ترتیب ستاره‌ها */
margin-top:8px;
}

.comment-form-rating label{
display:block;
width:100%;
text-align:right;
margin-bottom:10px;
font-weight:700;
}
/* FORCE REVIEW STARS TO RIGHT SIDE */

.comment-form-rating{
width:100%;
text-align:right !important;
flex-direction:column;
align-items:flex-end !important;
}

.comment-form-rating label{
width:100%;
text-align:right !important;
margin-bottom:10px;
font-weight:700;
}

.comment-form-rating .stars{
flex-direction:row-reverse !important;
justify-content:flex-end !important;
align-items:center;
gap:6px;
width:auto !important;
float:none !important;
margin:0 !important;
direction:rtl;
}

.comment-form-rating .stars a{
float:none !important;
display:inline-flex !important;
align-items:center;
justify-content:center;
width:28px;
height:28px;
font-size:0 !important;
text-decoration:none !important;
color:#d5d5d5 !important;
}

.comment-form-rating .stars a::before{
content:"★";
font-size:26px;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active{
color:#ffb400 !important;
transform:scale(1.08);
}
footer{
display:block !important;
visibility:visible !important;
opacity:1 !important;
background:#111 !important;
color:#fff !important;
padding:40px 20px !important;
margin-top:40px !important;
}
/* MODERN FOOTER */

.site-footer{
background:linear-gradient(135deg,#2c2c2c,#3b3b3b);
color:#eee;
padding:60px 20px 25px;
margin-top:70px;
}

.footer-container{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
gap:40px;
flex-wrap:wrap;
}

.footer-col{
flex:1;
min-width:250px;
}

.footer-col h3{
font-size:20px;
margin-bottom:20px;
color:#ffffff;
}

.footer-col p{
color:#d1d1d1;
line-height:1.9;
font-size:15px;
}

.footer-col ul{
list-style:none;
padding:0;
margin:0;
}

.footer-col li{
margin-bottom:10px;
}

.footer-col a{
text-decoration:none;
color:#d1d1d1;
transition:0.3s;
}

.footer-col a:hover{
color:#ffffff;
padding-right:5px;
}

.footer-bottom{
border-top:1px solid rgba(255,255,255,0.15);
margin-top:40px;
padding-top:20px;
text-align:center;
color:#cfcfcf;
font-size:14px;
}
/* ===== WOOCOMMERCE RESPONSIVE FIX ===== */

/* DESKTOP */

@media(min-width:992px){

.woocommerce ul.products{
display:grid !important;
grid-template-columns:repeat(4,1fr) !important;
gap:20px !important;
}

}

/* TABLET */

@media(max-width:991px){

.woocommerce ul.products{
display:grid !important;
grid-template-columns:repeat(2,1fr) !important;
gap:20px !important;
}

}

/* MOBILE */

@media(max-width:768px){

.woocommerce ul.products{
display:grid !important;
grid-template-columns:1fr !important;
gap:18px !important;
}

}
.woocommerce .widget_price_filter .price_slider {
    margin-bottom: 20px;
}

.woocommerce .widget_price_filter .ui-slider {
    height:6px;
    background:#ddd;
    border-radius:20px;
    position:relative;
}

.woocommerce .widget_price_filter .ui-slider-range {
    background:#ff3b3b;
    position:absolute;
    height:100%;
    border-radius:20px;
}
.woocommerce-notices-wrapper{
	    background: #ffffff;
    border-radius: 20px;
}
.woocommerce .widget_price_filter .ui-slider-handle {
    width:18px;
    height:18px;
    background:#fff;
    border:2px solid #ff3b3b;
    border-radius:50%;
    position:absolute;
    top:-6px;
    cursor:pointer;
}
/* SHOP PRODUCTS GRID FIX */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* TABLET */

@media (max-width: 992px) {

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* MOBILE */

@media (max-width: 576px) {

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

}
/* FIX WOOCOMMERCE PRICE SLIDER STYLE */
.price_slider_wrapper,
.price_slider_amount {
    width: 100% !important;
}

.ui-slider {
    position: relative !important;
    height: 6px !important;
    background: #e5e5e5 !important;
    border-radius: 4px !important;
    margin: 20px 0 !important;
}

.ui-slider-range {
    background: #ff3c3c !important;
    height: 6px !important;
    top: 0 !important;
}

.ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background: #ff3c3c !important;
    border-radius: 50% !important;
    top: -6px !important;
    border: none !important;
    cursor: pointer !important;
    position: absolute !important;
}

.ui-slider-handle:focus,
.ui-slider-handle:hover {
    outline: none !important;
}
/* FIX PRICE FILTER LABEL */
.price_slider_amount .price_label {
    display: block !important;
    margin-top: 10px;
    font-size: 14px;
    color: #333 !important;
}

.price_slider_amount .price_label .from,
.price_slider_amount .price_label .to {
    font-weight: bold;
    color: #000 !important;
}
/* FIX PRODUCT SHORT DESCRIPTION TEXT WRAP */

.single-product .summary,
.single-product .summary * {
    white-space: normal !important;
}

.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 2;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* ================================
GLOBAL CONTENT TYPOGRAPHY
================================ */

body,
p,
li,
td,
th,
.woocommerce-product-details__short-description,
.woocommerce-tabs .panel,
.entry-content {

    font-family: Vazirmatn, IRANSans, YekanBakh, sans-serif;
    font-size: 16px;
    line-height: 2.1;
    color: #333;
}

/* product short description */
.woocommerce-product-details__short-description p{
    font-size: 16px;
    line-height: 2.1;
    margin-bottom: 12px;
}

/* product full description */
.woocommerce-tabs .panel p{
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 14px;
}

/* lists */
.woocommerce-tabs .panel ul,
.woocommerce-tabs .panel ol{
    padding-right: 18px;
    line-height: 2.2;
}

/* headings inside description */
.woocommerce-tabs .panel h2,
.woocommerce-tabs .panel h3,
.woocommerce-tabs .panel h4{
    font-weight: 700;
    margin: 25px 0 10px;
    line-height: 1.8;
}

/* links */
.entry-content a,
.woocommerce-tabs .panel a{
    color: #e63946;
    text-decoration: none;
}

.entry-content a:hover,
.woocommerce-tabs .panel a:hover{
    text-decoration: underline;
}
/* =================================
WOOCOMMERCE PRODUCT GALLERY FIX
================================= */

.single-product div.product {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* gallery area */
.single-product div.product .woocommerce-product-gallery {
    width: 48%;
    max-width: 48%;
    position: relative;
}

/* product summary */
.single-product div.product .summary {
    width: 48%;
    max-width: 48%;
}

/* main image */
.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* thumbnails */
.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.flex-control-thumbs li {
    width: 80px;
    cursor: pointer;
}

.flex-control-thumbs img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.flex-control-thumbs img:hover {
    border-color: #e63946;
}

/* sale badge */
.onsale {
    z-index: 9;
}

/* mobile */
@media(max-width:768px){

    .single-product div.product {
        flex-direction: column;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        width: 100%;
        max-width: 100%;
    }

}/* =========================================
REDSHOP PROFESSIONAL CART PAGE
========================================= */

.woocommerce-cart {

    background: #f5f7fa;
    padding: 40px 0;
}

/* main wrapper */
.woocommerce-cart .woocommerce {

    width: 92%;
    max-width: 1400px;
    margin: auto;
}

/* notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {

    border-radius: 14px;
    padding: 18px 22px;
    border: none;
    margin-bottom: 25px;
    font-size: 15px;
}

/* cart table */
.woocommerce-cart table.shop_table {

    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    border: none;
}

/* table head */
.woocommerce-cart table.shop_table thead {

    background: #111827;
}

.woocommerce-cart table.shop_table thead th {

    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 22px 15px;
    border: none;
}

/* table cells */
.woocommerce-cart table.shop_table td {

    padding: 24px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
    text-align: center;
    font-size: 15px;
}

/* product image */
.woocommerce-cart table.shop_table img {

    width: 90px;
    border-radius: 14px;
    transition: .3s;
}

.woocommerce-cart table.shop_table img:hover {

    transform: scale(1.05);
}

/* product title */
.woocommerce-cart .product-name a {

    color: #111827;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.9;
}

.woocommerce-cart .product-name a:hover {

    color: #e63946;
}

/* quantity */
.woocommerce-cart .quantity input.qty {

    width: 75px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
    font-size: 15px;
    text-align: center;
}

/* remove button */
.woocommerce a.remove {

    width: 34px;
    height: 34px;
    line-height: 30px;
    border-radius: 50%;
    background: #fff0f0;
    color: #e63946 !important;
    transition: .3s;
    margin: auto;
}

.woocommerce a.remove:hover {

    background: #e63946;
    color: #fff !important;
}

/* coupon */
.woocommerce-cart .coupon {

    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.woocommerce-cart .coupon input.input-text {

    width: 220px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 15px;
    background: #fff;
}

/* buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {

    background: linear-gradient(135deg,#e63946,#c1121f);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {

    transform: translateY(-2px);
    background: linear-gradient(135deg,#c1121f,#9d0208);
    color: #fff;
}

/* totals box */
.cart-collaterals {

    margin-top: 35px;
}

.cart-collaterals .cart_totals {

    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

/* totals title */
.cart_totals h2 {

    font-size: 24px;
    margin-bottom: 25px;
    color: #111827;
}

/* totals table */
.cart_totals table {

    border: none;
}

.cart_totals table td,
.cart_totals table th {

    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

/* checkout button */
.wc-proceed-to-checkout {

    margin-top: 25px;
}

.wc-proceed-to-checkout .checkout-button {

    width: 100%;
    height: 58px;
    line-height: 58px;
    text-align: center;
    font-size: 17px;
    border-radius: 14px;
}

/* empty cart */
.cart-empty {

    background: #fff;
    padding: 60px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

/* mobile */
@media(max-width:768px){

    .woocommerce-cart {

        padding: 20px 0;
    }

    .woocommerce-cart .woocommerce {

        width: 95%;
    }

    .woocommerce-cart table.shop_table {

        display: block;
        overflow-x: auto;
    }

    .woocommerce-cart table.shop_table img {

        width: 70px;
    }

    .woocommerce-cart .coupon {

        flex-direction: column;
    }

    .woocommerce-cart .coupon input.input-text {

        width: 100%;
    }

    .cart-collaterals .cart_totals {

        padding: 22px;
    }
}
/* =========================
   WOOCOMMERCE CART FIX
========================= */

.woocommerce-cart .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.woocommerce-cart .woocommerce-cart-form {
    float: right !important;
    width: 68% !important;
    max-width: 68% !important;
    box-sizing: border-box !important;
}

.woocommerce-cart .cart-collaterals {
    float: left !important;
    width: 30% !important;
    max-width: 30% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

.woocommerce-cart table.shop_table {
    width: 100% !important;
    table-layout: auto !important;
}

.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
    vertical-align: middle !important;
}

.woocommerce-cart .product-thumbnail img {
    max-width: 70px !important;
    height: auto !important;
}

.woocommerce-cart .actions {
    clear: both !important;
}

.woocommerce-cart::after,
.woocommerce-cart .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 992px) {
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* =========================
   CART & CHECKOUT LAYOUT
========================= */

/* کانتینر اصلی cart/checkout */
.woocommerce-cart .cart-checkout-wrapper,
.woocommerce-checkout .cart-checkout-wrapper{
    width: 92%;
    max-width: 1400px;
    margin: 40px auto;
}

/* خود محتوا */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce{
    width: 100%;
    margin: 0;
}

/* دو ستونه کردن فقط cart */
@media (min-width: 993px){

    .woocommerce-cart .woocommerce{
        display: grid !important;
        grid-template-columns: 1fr 360px !important; /* محصولات | مجموع */
        gap: 30px !important;
        align-items: flex-start !important;
    }

    .woocommerce-cart .woocommerce-cart-form{
        grid-column: 1 !important;
        width: auto !important;
        max-width: none !important;
        float: none !important;
    }

    .woocommerce-cart .cart-collaterals{
        grid-column: 2 !important;
        width: auto !important;
        max-width: none !important;
        float: none !important;
        margin-top: 0 !important;
    }

    .woocommerce-cart .cart_totals{
        width: 100% !important;
    }
}

/* موبایل و تبلت: یک ستون */
@media (max-width: 992px){

    .woocommerce-cart .woocommerce{
        display: block !important;
    }

    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals{
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
}
/* =========================
   WOOCOMMERCE CHECKOUT LAYOUT
   ========================= */

/* محدود کردن عرض صفحه تسویه حساب */
.woocommerce-checkout .section {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

/* خود wrapper */
.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
}

/* ----- دسکتاپ: دو ستونه ----- */
@media (min-width: 992px) {

    .woocommerce-checkout .col2-set,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        /* جلوگیری از floatهای قدیمی */
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-checkout .woocommerce {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) !important;
        column-gap: 40px !important;
        align-items: flex-start !important;
    }

    /* فرم صورت‌حساب + ارسال (ستون راست معمولاً) */
    .woocommerce-checkout .col2-set {
        grid-column: 1 !important;
        margin: 0 !important;
    }

    /* خلاصه سفارش (سفارش نهایی) */
    .woocommerce-checkout .woocommerce-checkout-review-order {
        grid-column: 2 !important;
        margin: 0 !important;
    }
}

/* ----- موبایل و تبلت: تک ستونه ----- */
@media (max-width: 991.98px) {

    .woocommerce-checkout .woocommerce {
        display: block !important;
    }

    .woocommerce-checkout .col2-set,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 25px 0 !important;
    }
}

/* جلوگیری از clear/float اضافی قالب */
.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-checkout-review-order {
    clear: none !important;
}
/* فرم اطلاعات کاربر */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
}

/* عنوان‌های بخش‌ها */
.woocommerce-checkout h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* لیبل‌ها */
.woocommerce-checkout label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* فیلدهای ورودی */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 0.9rem;
}

/* فوکوس روی فیلد */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #7c3aed; /* رنگ اصلی دلخواهت */
    box-shadow: 0 0 0 1px rgba(124,58,237,0.2);
    outline: none;
}

/* خلاصه سفارش (Order Review) */
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

/* جدول سفارش */
.woocommerce-checkout table.shop_table {
    border: none;
    margin: 0;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 10px 0;
}

/* ردیف مجموع کل */
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
    font-weight: 700;
}

/* دکمه ثبت سفارش */
.woocommerce-checkout #place_order {
    width: 100%;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: #7c3aed; /* رنگ اصلی */
    color: #fff;
    border: none;
}

.woocommerce-checkout #place_order:hover {
    background: #5b21b6; /* رنگ تیره‌تر */
}
/* =====================================================
   PREMIUM WOOCOMMERCE UI
   Cart + Checkout + Forms
   ===================================================== */

/* فونت کلی */
.woocommerce,
.woocommerce-page {
    font-family: IRANYekanX, IRANYekan, sans-serif;
    color: #222;
}

/* تیترها */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111827;
}

/* متن‌ها */
.woocommerce p,
.woocommerce label,
.woocommerce td,
.woocommerce th,
.woocommerce span,
.woocommerce div {
    font-size: 14px;
    line-height: 1.9;
}

/* =====================================================
   BOX STYLE
   ===================================================== */

.woocommerce-cart .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce form.login,
.woocommerce form.checkout_coupon {

    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #eef0f4;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.04),
        0 2px 8px rgba(0,0,0,0.03);

    transition: all 0.25s ease;
}

/* هاور نرم */
.woocommerce-cart .cart_totals:hover,
.woocommerce-checkout .woocommerce-checkout-review-order:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 35px rgba(0,0,0,0.06),
        0 4px 12px rgba(0,0,0,0.04);
}

/* =====================================================
   TABLE STYLE
   ===================================================== */

.woocommerce table.shop_table {
    border: none !important;
    border-collapse: separate;
    border-spacing
}
```css
/* ==============================
   GENERAL TYPOGRAPHY
   ============================== */

body.woocommerce-checkout,
.woocommerce-checkout .woocommerce {
    font-family: IRANYekanX, IRANYekan, sans-serif;
    color: #222;
}

/* تیتر اصلی "پرداخت" */
.woocommerce-checkout h1.entry-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: right;
}

/* تیترهای بخش‌ها مثل "اطلاعات تماس" ، "آدرس حمل و نقل" */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

/* لیبل‌ها */
.woocommerce-checkout form .form-row label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4b5563;
}

/* توضیح زیر فیلدها */
.woocommerce-checkout .woocommerce-input-wrapper span.description {
    font-size: 11px;
    color: #9ca3af;
}

/* ==============================
   FORM FIELDS
   ============================== */

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    height: 46px;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    background-color: #fff;
    padding: 0 12px !important;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* textarea */
.woocommerce-checkout textarea {
    min-height: 110px;
    padding-top: 10px !important;
}

/* focus */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
    outline: none;
}

/* ردیف‌های فرم فاصله عمودی کمتر و مرتب */
.woocommerce-checkout .col2-set .form-row {
    margin-bottom: 14px;
}

/* ==============================
   LEFT COLUMN – ORDER SUMMARY
   ============================== */

/* باکس کلی خلاصه سفارش */
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 16px 40px rgba(15,23,42,0.06),
        0 4px 10px rgba(15,23,42,0.04);
}

/* عنوان "خلاصۀ سفارش" */
.woocommerce-checkout .woocommerce-checkout-review-order h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

/* جدول داخل خلاصه سفارش */
.woocommerce-checkout table.shop_table {
    border: none;
    margin: 0;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 8px 0;
    font-size: 13px;
}

/* ردیف مجموع نهایی پررنگ */
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
    font-weight: 800;
    font-size: 15px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

/* خط جداکننده بین محصولات و جمع‌ها */
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .shipping {
    border-bottom: 1px dashed #e5e7eb;
}

/* قیمت‌ها قرمز ملایم‌تر */
.woocommerce-checkout .amount {
    color: #dc2626;
    font-weight: 700;
}

/* کوپن تخفیف داخل همین استایل کارت */
.woocommerce-checkout #order_review .woocommerce-form-coupon {
    margin-top: 16px;
}

/* input کوپن */
.woocommerce-checkout #order_review .woocommerce-form-coupon input.input-text {
    height: 42px;
    border-radius: 999px !important;
}

/* ==============================
   BUTTONS
   ============================== */

.woocommerce-checkout #place_order,
.woocommerce .button,
.woocommerce a.button,
.woocommerce input.button {
    height: 48px;
    border-radius: 999px !important;
    color: #fff !important;
    border: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 22px !important;
    box-shadow: 0 10px 24px rgba(124,58,237,0.35);
    transition: all 0.2s ease;
}

/* دکمه نهایی سفارش تمام عرض باکس */
.woocommerce-checkout #place_order {
    width: 100%;
    margin-top: 18px;
}

/* hover */
.woocommerce-checkout #place_order:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(124,58,237,0.45);
    background: linear-gradient(135deg,#6d28d9,#5b21b6) !important;
}

/* دکمه‌های خاکستری (مثلاً اعمال کوپن غیرفعال) */
.woocommerce .button.disabled,
.woocommerce .button:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none;
}

/* ==============================
   PAYMENT METHODS BOX
   ============================== */

.woocommerce-checkout #payment {
    background: #f9fafb !important;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
}

/* عنوان روش‌های پرداخت */
.woocommerce-checkout #payment .wc_payment_methods {
    margin-bottom: 10px;
}

/* رادیوها و لیبل‌ها */
.woocommerce-checkout #payment .wc_payment_method label {
    font-size: 13px;
    font-weight: 600;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 991.98px) {
    .woocommerce-checkout .woocommerce-checkout-review-order {
        margin-bottom: 20px;
    }

    .woocommerce-checkout .col2-set .form-row-first,
    .woocommerce-checkout .col2-set .form-row-last {
        width: 100%;
    }
}

/* =========================================================
   MOBILE SHOP SIDEBAR TOGGLE - RED THEME
========================================================= */

@media (max-width: 991.98px) {

    /* دکمه فیلتر بالا */
    .shop-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 46px;
        margin-bottom: 16px;
        border: none;
        border-radius: 14px;
        background: #d40000 !important;
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(212, 0, 0, .18);
    }

    .shop-sidebar-toggle:hover {
        background: #b10000 !important;
    }

    /* بک‌دراپ */
    .shop-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }

    .shop-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* سایدبار */
    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 86%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px 16px 80px;
        transition: right .3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    }

    .shop-sidebar.active {
        right: 0;
    }

    /* دکمه بستن */
    .shop-sidebar-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 12px;
        background: #f3f4f6;
        color: #111;
        font-size: 22px;
        line-height: 1;
        margin-bottom: 18px;
        cursor: pointer;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    /* اگر لازم بود فیلترهای داخل سایدبار درست دیده شوند */
    .shop-sidebar .widget,
    .shop-sidebar .shop-widget {
        margin-bottom: 18px;
        background: #fff;
        border-radius: 16px;
    }
}

/* فقط در موبایل دکمه نمایش داده شود */
@media (min-width: 992px) {
    .shop-sidebar-toggle,
    .shop-sidebar-overlay,
    .shop-sidebar-close {
        display: none !important;
    }
}
/* MOBILE SLIDER FIX */

@media (max-width: 768px) {

    .swiper,
    .swiper-slide,
    .hero-slider {
        height: auto !important;
    }

    .swiper-slide img,
    .hero-slider img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

}
@media (max-width: 768px) {

    .slide-content {
        display: none !important;
    }

}
/* =========================================
   FEATURES SECTION
========================================= */

.features-section {
    padding: 70px 0;
    background: #f8f8f8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-box {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.feature-box::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 140px;
    height: 140px;
    background: rgba(212,0,0,.05);
    border-radius: 50%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(212,0,0,.12);
    border-color: #d40000;
}

.feature-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #d40000, #ff2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(212,0,0,.25);
}

.feature-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin: 0;
}

/* MOBILE */

@media (max-width: 991px) {

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .features-section {
        padding: 45px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-box {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .feature-box h3 {
        font-size: 19px;
    }

}
/* =========================================
   BANNER SECTION
========================================= */

.banner-section {
    padding: 30px 0 70px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 45px;
    isolation: isolate;
}

.banner-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s ease;
}

.banner-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.banner-item.red::after {
    background: linear-gradient(
        135deg,
        rgba(212,0,0,.88),
        rgba(0,0,0,.35)
    );
}

.banner-item.dark::after {
    background: linear-gradient(
        135deg,
        rgba(15,15,15,.88),
        rgba(0,0,0,.35)
    );
}

.banner-item:hover img {
    transform: scale(1.08);
}

.banner-content {
    max-width: 340px;
    color: #fff;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.banner-item h2 {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 900;
}

.banner-item p {
    font-size: 16px;
    line-height: 2;
    color: rgba(255,255,255,.88);
    margin-bottom: 28px;
}

.banner-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border-radius: 16px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    transition: .3s ease;
}

.banner-item a:hover {
    transform: translateY(-4px);
    background: #f5f5f5;
}

/* MOBILE */

@media (max-width: 991px) {

    .banner-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .banner-item {
        min-height: 280px;
        padding: 30px 24px;
        border-radius: 24px;
    }

    .banner-item h2 {
        font-size: 28px;
    }

    .banner-item p {
        font-size: 14px;
        line-height: 1.9;
    }

    .banner-item a {
        height: 46px;
        padding: 0 22px;
        font-size: 14px;
    }

}
/* ====================================
   CONTACT SECTION - MODERN GOLD STYLE
==================================== */

.contact-section {
    padding: 70px 0;
}

.contact-box {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 70px 50px;
    text-align: center;

    background: linear-gradient(
        135deg,
        #111111,
        #1e1e1e,
        #2a2a2a
    );

    border: 1px solid rgba(255,215,0,.12);

    box-shadow:
        0 20px 60px rgba(0,0,0,.25),
        0 0 0 1px rgba(255,215,0,.05);
}

/* Decorative Glow */

.contact-pattern {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;

    background: radial-gradient(
        rgba(255,215,0,.18),
        transparent 70%
    );
}

.contact-box::after {
    content: "";
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;

    background: radial-gradient(
        rgba(255,215,0,.12),
        transparent 70%
    );
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: auto;
}

/* Badge */

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 20px;

    border-radius: 50px;

    background: rgba(255,215,0,.08);

    border: 1px solid rgba(255,215,0,.18);

    color: #ffd54f;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 24px;

    backdrop-filter: blur(8px);
}

/* Title */

.contact-box h2 {
    color: #fff;
    font-size: 50px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 900;
}

/* Text */

.contact-box p {
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 2.1;
    margin-bottom: 38px;
}

/* Buttons */

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-btn {
    height: 56px;
    padding: 0 32px;

    border-radius: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-weight: 800;

    transition: .3s ease;
}

/* Gold Button */

.primary-btn {
    background: linear-gradient(
        135deg,
        #ffd54f,
        #ffb300
    );

    color: #111;

    box-shadow: 0 10px 25px rgba(255,193,7,.25);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(255,193,7,.35);
}

/* Glass Button */

.secondary-btn {
    border: 1px solid rgba(255,255,255,.12);

    background: rgba(255,255,255,.05);

    color: #fff;

    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-4px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .contact-section {
        padding: 50px 0;
    }

    .contact-box {
        padding: 45px 24px;
        border-radius: 24px;
    }

    .contact-box h2 {
        font-size: 34px;
    }

    .contact-box p {
        font-size: 15px;
        line-height: 2;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

}
.site-logo img{
    max-height: 60px;
    width: auto;
    display: block;
}
/* LOGO FIX */
.site-header .site-logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.site-header .site-logo {
    display: flex;
    align-items: center;
}

/* فاصله مناسب لوگو از منو */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* جلوگیری از بزرگ شدن لوگو در موبایل */
@media (max-width: 768px) {
    .site-header .site-logo img {
        max-height: 45px;
    }
}
/* ساختار سه‌ستونه هدر */
.header-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* لوگو سمت راست */
.site-logo {
    justify-self: start;
}

/* منو وسط */
.main-menu {
    justify-self: center;
}

/* دکمه موبایل سمت چپ */
.mobile-menu-btn {
    justify-self: end;
}

/* اندازه لوگو */
.site-header .site-logo img {
    max-height: 55px;
    width: auto;
}
.woocommerce ul.products::before {
    content: none !important;
    display: none !important;
}
/* =========================================
   Product Card – Luxury Furniture Style
========================================= */

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(23, 23, 23, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
    z-index: 2;
    border-color: rgba(132, 22, 22, 0.22);
    box-shadow: 0 16px 38px rgba(23, 23, 23, 0.13);
    transform: translateY(-7px);
}

/* بخش تصویر */
.product-card > a:first-child {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f4f1ed;
}

.product-card > a:first-child::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.product-card > a:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover > a:first-child img {
    transform: scale(1.07);
}

/* محتوا */
.product-card .product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 17px;
    text-align: right;
}

/* نام محصول */
.product-card .product-content h3 {
    overflow: hidden;
    margin: 0 0 11px;
    color: #222;
    font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* قیمت */
.product-card .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 29px;
    margin: 0 0 16px;
    color: #a30d0d;
    direction: rtl;
    font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* جلوگیری از فاصله‌های بد بین رقم‌ها و واحد پول */
.product-card .price .woocommerce-Price-amount {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    gap: 3px;
    letter-spacing: 0;
    white-space: nowrap;
}

.product-card .price bdi {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    gap: 3px;
    font-variant-numeric: tabular-nums;
}

.product-card .price .woocommerce-Price-currencySymbol {
    display: inline-block;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

/* خط جداکننده بین بازه قیمت */
.product-card .price > span[aria-hidden="true"]:not(.woocommerce-Price-amount) {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
}

/* دکمه */
.product-card .product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 14px;
    border: 1px solid #970d0d;
    border-radius: 9px;
    background: #970d0d;
    color: #fff;
    font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.25s ease;
}

.product-card .product-btn:hover {
    border-color: #191919;
    background: #191919;
    color: #fff;
}

/* نسخه موبایل */
@media (max-width: 575px) {
    .product-card {
        border-radius: 13px;
    }

    .product-card .product-content {
        padding: 13px;
    }

    .product-card .product-content h3 {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .product-card .price {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .product-card .product-btn {
        min-height: 39px;
        font-size: 12px;
    }
}
body,
button,
input,
select,
textarea,
.product-card,
.product-card .product-content h3,
.product-card .price,
.product-card .product-btn {
    font-family: "Vazirmatn", "IRANSans", "IRANSansX", Tahoma, sans-serif;
}
/* =========================================
   Single Product Summary - Persian Luxury UI
========================================= */

.single-product .summary,
.single-product .summary *,
.single-product .product .summary,
.single-product .product .summary * {
    font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, sans-serif;
    box-sizing: border-box;
}

/* باکس کلی اطلاعات محصول */
.single-product .summary.entry-summary {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(15, 15, 15, 0.06);
}

/* عنوان محصول */
.single-product .summary .product_title {
    margin: 0 0 14px;
    color: #1e1e1e;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: -0.3px;
}

/* قیمت */
.single-product .summary .price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    color: #b30808;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
}

.single-product .summary .price .woocommerce-Price-amount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.single-product .summary .price .woocommerce-Price-currencySymbol {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

/* اگر خواستی قیمت قبلی/تخفیف */
.single-product .summary .price del {
    order: 2;
    margin-right: 10px;
    color: #999;
    font-size: 18px;
    font-weight: 500;
}

.single-product .summary .price ins {
    text-decoration: none;
}

/* توضیحات کوتاه */
.single-product .woocommerce-product-details__short-description {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 16px;
    color: #444;
    font-size: 15px;
    line-height: 2.2;
}

.single-product .woocommerce-product-details__short-description p {
    margin: 0 0 10px;
}

.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

.single-product .woocommerce-product-details__short-description ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.single-product .woocommerce-product-details__short-description ul li {
    position: relative;
    padding-right: 22px;
    margin-bottom: 10px;
    line-height: 2;
}

.single-product .woocommerce-product-details__short-description ul li::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b30808;
}

/* فرم خرید */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding-top: 8px;
}

/* باکس تعداد */
.single-product form.cart .quantity {
    display: flex;
    align-items: center;
}

.single-product form.cart .quantity .qty {
    width: 78px;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
    box-shadow: none;
}

.single-product form.cart .quantity .qty:focus {
    border-color: #b30808;
}

/* دکمه افزودن به سبد */
.single-product form.cart .single_add_to_cart_button {
    height: 48px;
    padding: 0 26px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c90d0d, #980909);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 48px;
    box-shadow: 0 10px 24px rgba(179, 8, 8, 0.18);
    transition: all 0.25s ease;
}

.single-product form.cart .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #111111, #2c2c2c);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

/* متای محصول */
.single-product .product_meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #efefef;
    color: #666;
    font-size: 14px;
    line-height: 2;
}

.single-product .product_meta a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: #b30808;
}

/* موبایل */
@media (max-width: 767px) {
    .single-product .summary.entry-summary {
        padding: 18px;
        border-radius: 16px;
    }

    .single-product .summary .product_title {
        font-size: 22px;
        line-height: 1.9;
    }

    .single-product .summary .price {
        font-size: 24px;
    }

    .single-product .woocommerce-product-details__short-description {
        padding: 15px;
        font-size: 14px;
        line-height: 2.1;
    }

    .single-product form.cart {
        align-items: stretch;
        flex-direction: column;
    }

    .single-product form.cart .quantity,
    .single-product form.cart .single_add_to_cart_button {
        width: 100%;
    }

    .single-product form.cart .quantity .qty,
    .single-product form.cart .single_add_to_cart_button {
        width: 100%;
    }
}
/* =====================================================
   اصلاح نهایی سبد خرید
===================================================== */

body.woocommerce-cart {
    background: #f5f6f8;
}

/* فرم سبد خرید وسط صفحه با عرض کنترل‌شده */
body.woocommerce-cart .mxcart-wrapper {
    width: calc(100% - 120px) !important;
    max-width: 1250px !important;
    margin: 55px auto 75px !important;
    padding: 42px 44px !important;
    font-size: 16px;
}

/* عنوان */
body.woocommerce-cart .mxcart-title {
    margin-bottom: 32px;
    font-size: 30px !important;
    font-weight: 800;
    text-align: center;
}

body.woocommerce-cart .mxcart-title::after {
    right: 50%;
    width: 70px;
    transform: translateX(50%);
}

/* جدول */
body.woocommerce-cart .mxcart-table {
    border-radius: 16px;
}

/* ردیف‌ها */
body.woocommerce-cart .mxcart-row {
    grid-template-columns:
        minmax(320px, 2.5fr)
        minmax(150px, 1fr)
        minmax(170px, 1fr)
        minmax(160px, 1fr)
        70px;

    min-height: 125px;
    padding: 22px 28px;
    gap: 24px;
}

/* عنوان ستون‌ها */
body.woocommerce-cart .mxcart-row.mxcart-head {
    min-height: 58px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 16px !important;
    font-weight: 800;
}

/* اطلاعات محصول */
body.woocommerce-cart .mxcart-product {
    gap: 20px;
}

body.woocommerce-cart .mxcart-product img {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
    border-radius: 13px;
}

body.woocommerce-cart .mxcart-product span {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.9;
}

/* قیمت و جمع */
body.woocommerce-cart .mxcart-price,
body.woocommerce-cart .mxcart-total {
    font-size: 17px !important;
    font-weight: 800;
}

body.woocommerce-cart .mxcart-price .woocommerce-Price-currencySymbol,
body.woocommerce-cart .mxcart-total .woocommerce-Price-currencySymbol {
    font-size: 13px;
}

body.woocommerce-cart .mxcart-price bdi,
body.woocommerce-cart .mxcart-total bdi,
body.woocommerce-cart .mxcart-grandtotal bdi {
    gap: 7px;
}

/* کنترل تعداد */
body.woocommerce-cart .mxcart-qty {
    border-radius: 10px;
}

body.woocommerce-cart .mxcart-qty button {
    width: 42px;
    height: 44px;
    font-size: 22px;
}

body.woocommerce-cart .mxcart-qty .qty-input {
    width: 52px;
    height: 44px;
    font-size: 17px;
}

/* دکمه حذف */
body.woocommerce-cart .mxcart-remove-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

/* بخش جمع کل */
body.woocommerce-cart .mxcart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 25px 28px;
}

/* جمع کل با فونت بزرگ‌تر */
body.woocommerce-cart .mxcart-sumrow {
    flex: 0 0 auto;
    gap: 18px;
    font-size: 19px !important;
    font-weight: 800;
}

body.woocommerce-cart .mxcart-grandtotal {
    font-size: 25px !important;
}

/* دکمه خرید: دیگر تمام عرض نیست */
body.woocommerce-cart .mxcart-checkout {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 235px !important;
    min-height: 54px;
    padding: 14px 30px;
    border-radius: 11px;
    font-size: 17px !important;
    white-space: nowrap;
}

/* =====================================================
   تبلت
===================================================== */

@media (max-width: 991px) {
    body.woocommerce-cart .mxcart-wrapper {
        width: calc(100% - 50px) !important;
        padding: 30px !important;
    }

    body.woocommerce-cart .mxcart-row {
        grid-template-columns:
            minmax(240px, 2fr)
            1fr
            150px
            1fr
            55px;

        gap: 14px;
        padding: 18px;
    }

    body.woocommerce-cart .mxcart-product img {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    body.woocommerce-cart .mxcart-product span {
        font-size: 16px !important;
    }
}

/* =====================================================
   موبایل
===================================================== */

@media (max-width: 640px) {
    body.woocommerce-cart .mxcart-wrapper {
        width: calc(100% - 24px) !important;
        margin: 25px auto 45px !important;
        padding: 20px 14px !important;
    }

    body.woocommerce-cart .mxcart-title {
        margin-bottom: 24px;
        font-size: 24px !important;
    }

    body.woocommerce-cart .mxcart-row.mxcart-head {
        display: none;
    }

    body.woocommerce-cart .mxcart-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
        min-height: auto;
        margin-bottom: 16px;
        padding: 18px;
        border: 1px solid #e8e8e8;
        border-radius: 15px;
    }

    body.woocommerce-cart .mxcart-product {
        grid-column: 1 / -1;
        padding-left: 35px;
    }

    body.woocommerce-cart .mxcart-product img {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    body.woocommerce-cart .mxcart-product span {
        font-size: 16px !important;
        white-space: normal;
    }

    body.woocommerce-cart .mxcart-price,
    body.woocommerce-cart .mxcart-total {
        font-size: 16px !important;
    }

    body.woocommerce-cart .mxcart-qty {
        grid-column: 1 / -1;
    }

    body.woocommerce-cart .mxcart-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    body.woocommerce-cart .mxcart-sumrow {
        justify-content: space-between;
        font-size: 17px !important;
    }

    body.woocommerce-cart .mxcart-grandtotal {
        font-size: 22px !important;
    }

    /* در موبایل دکمه می‌تواند تمام عرض کارت باشد */
    body.woocommerce-cart .mxcart-checkout {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }
}
/* =========================================================
   MX CHECKOUT PAGE - Luxury Persian UI
========================================================= */

body.woocommerce-checkout {
    background: #f5f6fa;
    overflow-x: hidden;
}

body.woocommerce-checkout .site,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main,
body.woocommerce-checkout .container,
body.woocommerce-checkout .container-fluid,
body.woocommerce-checkout .page-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout form.checkout {
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-checkout .content-area,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
    margin: 0 !important;
    padding: 0 !important;
}

/* فونت کلی */
body.woocommerce-checkout,
body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout button {
    font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, sans-serif;
}

/* عنوان اصلی صفحه */
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .woocommerce-checkout h1,
body.woocommerce-checkout .woocommerce-checkout-title {
    margin: 40px 0 28px;
    color: #1f2430;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
}

/* گرید اصلی */
.mxcheckout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
    gap: 34px;
    width: min(1450px, calc(100% - 70px));
    margin: 35px auto 75px;
    align-items: start;
    direction: rtl;
}

/* ستون‌ها */
.mxcheckout-form,
.mxcheckout-summary {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 26px;
    box-shadow: 0 14px 45px rgba(16, 24, 40, 0.06);
}

/* ستون فرم */
.mxcheckout-form {
    padding: 34px 34px 26px;
}

/* ستون خلاصه */
.mxcheckout-summary {
    position: sticky;
    top: 30px;
    padding: 30px 28px 28px;
}

/* عنوان‌های باکس‌ها */
.mxcheckout-form > h3,
.mxcheckout-summary > h3,
.mxcheckout-form .woocommerce-billing-fields > h3,
.mxcheckout-form .woocommerce-shipping-fields > h3,
.mxcheckout-form .woocommerce-additional-fields + h3 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #1e2430;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.6;
}

.mxcheckout-form > h3::after,
.mxcheckout-summary > h3::after,
.mxcheckout-form .woocommerce-billing-fields > h3::after,
.mxcheckout-form .woocommerce-shipping-fields > h3::after,
.mxcheckout-form .woocommerce-additional-fields + h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d90429, #8d021d);
}

/* فاصله بین سکشن‌ها */
.mxcheckout-form .woocommerce-billing-fields,
.mxcheckout-form .woocommerce-shipping-fields,
.mxcheckout-form .woocommerce-additional-fields {
    margin-bottom: 30px;
    padding: 28px;
    border: 1px solid #efefef;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(217, 4, 41, 0.04), transparent 28%),
        #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* wrapper fields */
.mxcheckout-form .woocommerce-billing-fields__field-wrapper,
.mxcheckout-form .woocommerce-shipping-fields__field-wrapper,
.mxcheckout-form .woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 18px;
}

/* فیلدها */
.mxcheckout-form .form-row {
    margin: 0 !important;
    width: 100%;
}

.mxcheckout-form .form-row-first,
.mxcheckout-form .form-row-last {
    width: calc(50% - 9px);
}

.mxcheckout-form .form-row-wide {
    width: 100%;
}

/* لیبل */
.mxcheckout-form label {
    display: block;
    margin: 0 0 9px;
    color: #2a2f3a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.mxcheckout-form label .required {
    color: #d90429;
    font-size: 14px;
}

.mxcheckout-form label .optional {
    color: #8b8f97;
    font-size: 12px;
    font-weight: 500;
}

/* ورودی‌ها */
.mxcheckout-form input.input-text,
.mxcheckout-form textarea,
.mxcheckout-form select,
.mxcheckout-form .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 56px;
    border: 1px solid #e3e6eb;
    border-radius: 16px !important;
    background: #fbfcfe;
    color: #1f2430;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    transition: all 0.25s ease;
    box-shadow: none;
}

/* input/textarea paddings */
.mxcheckout-form input.input-text,
.mxcheckout-form select {
    padding: 0 18px;
}

.mxcheckout-form textarea {
    min-height: 150px;
    padding: 16px 18px;
    resize: vertical;
}

/* select2 */
.mxcheckout-form .select2-container {
    width: 100% !important;
}

.mxcheckout-form .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.mxcheckout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 !important;
    color: #1f2430;
    font-size: 15px;
    font-weight: 600;
    line-height: 54px;
    text-align: right;
}

.mxcheckout-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 14px;
    right: auto;
    height: 100%;
}

/* فوکوس */
.mxcheckout-form input.input-text:focus,
.mxcheckout-form textarea:focus,
.mxcheckout-form select:focus,
.mxcheckout-form .select2-container--default.select2-container--focus .select2-selection--single,
.mxcheckout-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #d90429 !important;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.08);
}

/* placeholder */
.mxcheckout-form input::placeholder,
.mxcheckout-form textarea::placeholder {
    color: #a0a6b0;
    font-size: 14px;
    font-weight: 500;
}

/* خطا */
.mxcheckout-form .woocommerce-invalid input.input-text,
.mxcheckout-form .woocommerce-invalid select,
.mxcheckout-form .woocommerce-invalid .select2-selection,
.mxcheckout-form .woocommerce-invalid textarea {
    border-color: #d90429 !important;
    background: #fffafa;
}

/* چک‌باکس حمل به آدرس دیگر */
#ship-to-different-address {
    margin: 0 !important;
    padding: 0 !important;
}

#ship-to-different-address label.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fcfcfd;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ship-to-different-address label.checkbox:hover {
    border-color: #d90429;
    background: #fff;
}

#ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d90429;
}

/* باکس آدرس ارسال */
.mxcheckout-form .shipping_address {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e9e9e9;
}

/* توضیحات سفارش */
#order_comments_field textarea {
    min-height: 130px;
}

/* خلاصه سفارش */
.mxcheckout-products {
    margin-bottom: 22px;
    border: 1px solid #efefef;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.mxcheckout-item {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 80px minmax(110px, auto);
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-bottom: 1px solid #f1f1f1;
}

.mxcheckout-item:last-child {
    border-bottom: 0;
}

.mxcheckout-name {
    color: #1f2430;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
}

.mxcheckout-qty {
    color: #7d8592;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.mxcheckout-price {
    color: #d90429;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
}

.mxcheckout-price .woocommerce-Price-amount,
.mxcheckout-total strong .woocommerce-Price-amount {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.mxcheckout-price bdi,
.mxcheckout-total strong bdi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    unicode-bidi: isolate;
}

.mxcheckout-price .woocommerce-Price-currencySymbol,
.mxcheckout-total .woocommerce-Price-currencySymbol {
    color: #6f7783;
    font-size: 12px;
    font-weight: 500;
}

/* جمع کل */
.mxcheckout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7f8, #ffffff);
    border: 1px solid #f4d9de;
}

.mxcheckout-total span {
    color: #202530;
    font-size: 18px;
    font-weight: 800;
}

.mxcheckout-total strong {
    color: #d90429;
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
}

/* باکس پرداخت */
.mxcheckout-payment {
    padding: 22px;
    border: 1px solid #efefef;
    border-radius: 20px;
    background: #fcfcfd;
}

/* پیام ووکامرس */
.mxcheckout-payment .woocommerce-info {
    margin: 0 0 18px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-right: 4px solid #d90429 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #444;
    font-size: 14px;
    line-height: 2;
}

/* متن حریم خصوصی */
.mxcheckout-payment .woocommerce-privacy-policy-text {
    margin-top: 16px;
    color: #6f7783;
    font-size: 13px;
    line-height: 2.1;
}

.mxcheckout-payment .woocommerce-privacy-policy-text a {
    color: #b80022;
    font-weight: 700;
    text-decoration: none;
}

/* دکمه ثبت سفارش */
.mxcheckout-payment #place_order,
.mxcheckout-payment .button.alt,
body.woocommerce-checkout #place_order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 58px;
    margin-top: 20px;
    padding: 14px 24px;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #d90429, #86031a) !important;
    color: #fff !important;
    box-shadow: 0 16px 30px rgba(217, 4, 41, 0.18);
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mxcheckout-payment #place_order:hover,
.mxcheckout-payment .button.alt:hover,
body.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #1d2433, #0f141d) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(10, 15, 25, 0.18);
}

/* حذف لیست پیش‌فرض متد پرداخت */
.mxcheckout-payment ul.payment_methods {
    margin: 0 0 10px !important;
    padding: 0 !important;
    list-style: none !important;
}

.mxcheckout-payment ul.payment_methods li {
    margin: 0 !important;
    padding: 0 !important;
}

/* ناحیه Apple/Google Pay */
#ppc-button-ppcp-applepay,
#ppc-button-ppcp-googlepay {
    margin-top: 12px;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .mxcheckout-grid {
        grid-template-columns: 1fr;
        width: min(1100px, calc(100% - 40px));
        gap: 24px;
    }

    .mxcheckout-summary {
        position: relative;
        top: auto;
    }
}

@media (max-width: 767px) {
    body.woocommerce-checkout .entry-title,
    body.woocommerce-checkout .woocommerce-checkout h1,
    body.woocommerce-checkout .woocommerce-checkout-title {
        margin-top: 24px;
        font-size: 29px;
    }

    .mxcheckout-grid {
        width: calc(100% - 24px);
        margin: 20px auto 45px;
        gap: 18px;
    }

    .mxcheckout-form,
    .mxcheckout-summary {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .mxcheckout-form > h3,
    .mxcheckout-summary > h3,
    .mxcheckout-form .woocommerce-billing-fields > h3,
    .mxcheckout-form .woocommerce-shipping-fields > h3,
    .mxcheckout-form .woocommerce-additional-fields + h3 {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .mxcheckout-form .woocommerce-billing-fields,
    .mxcheckout-form .woocommerce-shipping-fields,
    .mxcheckout-form .woocommerce-additional-fields {
        margin-bottom: 18px;
        padding: 18px;
        border-radius: 16px;
    }

    .mxcheckout-form .woocommerce-billing-fields__field-wrapper,
    .mxcheckout-form .woocommerce-shipping-fields__field-wrapper,
    .mxcheckout-form .woocommerce-additional-fields__field-wrapper {
        gap: 14px;
    }

    .mxcheckout-form .form-row-first,
    .mxcheckout-form .form-row-last {
        width: 100%;
    }

    .mxcheckout-form input.input-text,
    .mxcheckout-form textarea,
    .mxcheckout-form select,
    .mxcheckout-form .select2-container--default .select2-selection--single {
        min-height: 52px;
        font-size: 14px;
        border-radius: 14px !important;
    }

    .mxcheckout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px;
        line-height: 50px;
    }

    .mxcheckout-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
        text-align: right;
    }

    .mxcheckout-qty,
    .mxcheckout-price {
        text-align: right;
    }

    .mxcheckout-total {
        padding: 16px 18px;
    }

    .mxcheckout-total span {
        font-size: 16px;
    }

    .mxcheckout-total strong {
        font-size: 22px;
    }

    .mxcheckout-payment {
        padding: 18px;
        border-radius: 16px;
    }

    .mxcheckout-payment #place_order,
    .mxcheckout-payment .button.alt,
    body.woocommerce-checkout #place_order {
        min-height: 54px;
        font-size: 16px !important;
        border-radius: 14px !important;
    }
}
/* تنظیمات کلی بلاگ گرید */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* ظاهر هر کارت */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* تنظیمات تصویر کارت */
.blog-card img {
    width: 100% !important;
    height: 220px !important; /* ارتفاع ثابت برای یکدست شدن */
    object-fit: cover; /* تصویر را بدون به هم ریختن نسبت ابعاد، فیت می‌کند */
    display: block;
}

/* تنظیمات محتوای کارت */
.blog-content {
    padding: 20px;
    text-align: center; /* وسط‌چین کردن متن */
}

.blog-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
/* ریست کامل استایل‌های پیش‌فرض ووکامرس برای صفحه‌بندی */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
    margin: 40px auto 20px auto !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* رفع کادر پیوسته دور کل لیست */
.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    flex-direction: row-reverse !important; /* راست‌چین دقیق اعداد */
    gap: 8px !important; /* فاصله بین دکمه‌ها */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: nowrap !important;
}

.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
}

/* استایل تک‌تک دکمه‌ها و شماره‌ها */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

/* حالت هاور (ماوس روی دکمه‌ها) */
.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination a.page-numbers:hover {
    background: #fff1f2 !important;
    border-color: #fca5a5 !important;
    color: #c51b24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 27, 36, 0.15) !important;
}

/* صفحه فعال فعلی (شماره ۱ و...) */
.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination .page-numbers.current {
    background: #c51b24 !important;
    color: #ffffff !important;
    border-color: #c51b24 !important;
    box-shadow: 0 4px 12px rgba(197, 27, 36, 0.35) !important;
}

/* سه نقطه مابین صفحات */
.woocommerce nav.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    min-width: 24px !important;
}

/* دکمه فلش بعدی/قبلی */
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev,
nav.woocommerce-pagination .page-numbers.next {
    font-size: 18px !important;
}
/* استایل حرفه‌ای و مدرن صفحه سبد خرید ووکامرس (بلوک جدید) */
.wc-block-components-sidebar-layout.wc-block-cart {
    gap: 30px !important;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* جدول محصولات سبد خرید */
.wc-block-cart .wc-block-cart-items {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}

.wc-block-cart .wc-block-cart-items__header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.wc-block-cart .wc-block-cart-items__header th {
    font-weight: 700 !important;
    color: #1e293b !important;
    padding: 16px 20px !important;
}

/* ردیف محصولات */
.wc-block-cart .wc-block-cart-items__row {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 20px !important;
}

.wc-block-cart .wc-block-cart-item__image img {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
}

.wc-block-cart .wc-block-components-product-name {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.wc-block-cart .wc-block-components-product-name:hover {
    color: #c51b24 !important;
}

/* قیمت‌ها در سبد خرید */
.wc-block-cart .wc-block-components-product-price__value,
.wc-block-cart .wc-block-components-totals-footer-item-tax-value {
    color: #c51b24 !important;
    font-weight: 800 !important;
}

/* سایدبار جمع کل سفارش */
.wc-block-components-sidebar.wc-block-cart__sidebar {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

.wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

/* دکمه رفتن به صفحه پرداخت */
.wc-block-cart .wc-block-cart__submit-button.contained {
    background: #c51b24 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 14px 24px !important;
    box-shadow: 0 4px 12px rgba(197, 27, 36, 0.25) !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.wc-block-cart .wc-block-cart__submit-button.contained:hover {
    background: #a3141c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 27, 36, 0.35) !important;
}

/* فیلد تعداد محصول و دکمه حذف */
.wc-block-components-quantity-selector {
    border-radius: 8px !important;
    border-color: #cbd5e1 !important;
}

.wc-block-cart-item__remove-link {
    color: #94a3b8 !important;
    transition: color 0.2s;
}

.wc-block-cart-item__remove-link:hover {
    color: #c51b24 !important;
}
/* استایل حرفه‌ای و مدرن صفحه تسویه حساب ووکامرس (Checkout) */
.wp-block-woocommerce-checkout.wc-block-checkout {
    gap: 30px !important;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* کادربندی فرم اطلاعات و فیلدها */
.wc-block-checkout__main .wc-block-components-checkout-step,
.wc-block-checkout__sidebar {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 24px !important;
}

/* تیتر مراحل تسویه حساب */
.wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout-order-summary-block h2,
.wc-block-components-checkout-order-summary__title-text {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

/* استایل اینپوت‌ها و فیلدهای متنی فرم */
.wc-block-components-text-input input,
.wc-blocks-components-select__select {
    border-radius: 10px !important;
    border-color: #cbd5e1 !important;
    padding: 12px 16px !important;
    font-family: inherit !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
    border-color: #c51b24 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(197, 27, 36, 0.1) !important;
}

/* دکمه اصلی ثبت سفارش */
.wc-block-components-checkout-place-order-button.contained {
    background: #c51b24 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    box-shadow: 0 4px 14px rgba(197, 27, 36, 0.3) !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.wc-block-components-checkout-place-order-button.contained:hover {
    background: #a3141c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 27, 36, 0.4) !important;
}

/* قیمت‌ها در خلاصه سفارش */
.wp-block-woocommerce-checkout-order-summary-block .wc-block-formatted-money-amount {
    color: #c51b24 !important;
    font-weight: 800 !important;
}

/* هشدار روش پرداخت (برای زمانی که روش پرداخت ست نشده است) */
.wc-block-components-notice-banner.is-error {
    border-radius: 12px !important;
    background-color: #fff1f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}
/* رفع مشکل بیرون زدن قیمت از کادر در خلاصه سفارش تسویه حساب */
.wc-block-components-sidebar.wc-block-checkout__sidebar {
    overflow: hidden !important;
}

.wc-block-components-order-summary-item__total-price,
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item {
    flex-wrap: wrap !important;
    position: relative !important;
}

/* تنظیم چینش قیمت‌ها و متن‌ها در حالت فارسی */
.wp-block-woocommerce-checkout-order-summary-block .wc-block-formatted-money-amount {
    direction: ltr !important;
    display: inline-block !important;
    text-align: right !important;
}

/* محدود کردن عرض کادر خلاصه سفارش و ایجاد پدینگ داخلی مناسب */
.wp-block-woocommerce-checkout-order-summary-block {
    padding: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* --- اصلاح کامل و استاندارد فرم تسویه حساب (قرارگیری همیشه بالای فیلد) --- */

/* حذف پوزیشن مطلق لیبل‌ها و چسباندن آن‌ها به بالای کادر اینپوت */
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-blocks-components-select {
    display: flex !important;
    flex-direction: column-reverse !important; /* قرارگیری اینپوت پایین و لیبل بالا */
    align-items: stretch !important;
    position: relative !important;
    margin-bottom: 16px !important;
}

/* استایل دهی به لیبل‌ها در بالای اینپوت */
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select__label,
.wp-block-woocommerce-checkout label.wc-blocks-components-select__label {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 0 4px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-align: right !important;
    width: 100% !important;
    display: block !important;
}

/* تنظیم ظاهر باکس‌های اینپوت و سلکتور */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select {
    padding: 12px 14px !important;
    text-align: right !important;
    background-color: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* رنگ بوردر هنگام فوکوس روی فیلد */
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus {
    border-color: #c51b24 !important;
    box-shadow: 0 0 0 2px rgba(197, 27, 36, 0.15) !important;
    outline: none !important;
}

/* جهت متن برای ایمیل */
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="email"] {
    direction: ltr !important;
    text-align: right !important;
}

/* اصلاح فلش منوی کشویی کشور و استان */
.wp-block-woocommerce-checkout .wc-blocks-components-select__expand {
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
