/* Emperator Charm — ووکامرس | VOARO */
.emp-shopmain{padding-block:2.4rem 4rem}
.woocommerce-breadcrumb{display:none}
.emp-band .emp-crumbs{display:flex}
.woocommerce ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important}
.woocommerce-result-count{color:var(--emp-muted);margin:0 0 1rem}
.woocommerce-ordering{margin-bottom:1rem}
.woocommerce-ordering select{min-width:200px}

/* کارت محصول */
.emp-card{position:relative;display:flex;flex-direction:column;background:var(--emp-surface);border:1px solid var(--emp-line);border-radius:var(--r);overflow:hidden;transition:border-color .2s}
.emp-card:hover{border-color:var(--emp-brass)}
.emp-card__media{position:relative;display:block;aspect-ratio:4/5;background:#e7e1d8;overflow:hidden}
.emp-card__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s}
.emp-card__img--alt{opacity:0}
.emp-card:hover .emp-card__img--alt{opacity:1}
.emp-badge{position:absolute;top:.7rem;inset-inline-start:.7rem;z-index:2;background:var(--emp-brass);color:#1c0b0d;font:700 .78rem/1 var(--f-body);padding:.4rem .7rem;border-radius:3px}
.emp-badge--out{background:var(--emp-deep);color:#fff}
.emp-card__body{display:flex;flex-direction:column;gap:.25rem;padding:1rem 1.1rem 1.2rem;flex:1}
.emp-card__cat{font-size:.78rem;color:var(--emp-muted)}
.emp-card__title{font:600 1.18rem/1.5 var(--f-head);margin:0}
.emp-card__price{font-weight:700;color:var(--emp-deep);margin-top:auto;padding-top:.4rem}
.emp-card__price del{color:var(--emp-muted);font-weight:400;font-size:.88em;margin-inline-end:.4rem}
.emp-card__price ins{text-decoration:none;color:#8a1c26}
.emp-card .button{margin-top:.7rem;min-height:42px;width:100%;background:transparent;color:var(--emp-deep)!important;font-size:.9rem}
.emp-card .button:hover{background:var(--emp-deep);color:#fff!important}
.emp-card .added_to_cart{display:block;text-align:center;font-size:.85rem;margin-top:.4rem;color:var(--emp-saddle)}

/* صفحه محصول */
.single-product div.product{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:start}
.single-product div.product .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important}
.single-product div.product .woocommerce-product-gallery img{border-radius:var(--r)}
.single-product div.product .summary{width:100%!important;float:none!important;margin:0!important}
.single-product .product_title{font-size:clamp(1.8rem,3.4vw,2.7rem)}
.single-product .summary .price{font-size:1.5rem;font-weight:700;color:var(--emp-deep);display:block;margin:.4rem 0 1rem}
.single-product .summary .price ins{text-decoration:none;color:#8a1c26}
.single-product form.cart{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:1.4rem 0;padding:1.2rem;border:1.5px dashed var(--emp-brass);border-radius:var(--r);background:var(--emp-surface)}
.single-product form.cart .variations{width:100%;margin-bottom:.6rem}.single-product form.cart .variations td,.single-product form.cart .variations th{display:block;padding:.2rem 0;text-align:start}
.single-product form.cart .single_variation_wrap{width:100%}
.quantity .qty{width:76px;text-align:center;min-height:46px}
.single-product .product_meta{font-size:.9rem;color:var(--emp-muted);display:grid;gap:.2rem}
.woocommerce-tabs{grid-column:1/-1;margin-top:2rem}
.woocommerce-tabs ul.tabs{list-style:none;display:flex;gap:1.5rem;padding:0;margin:0 0 1.5rem;border-bottom:1px solid var(--emp-line)}
.woocommerce-tabs ul.tabs li a{display:block;padding:.8rem 0;font-weight:600;color:var(--emp-muted)}
.woocommerce-tabs ul.tabs li.active a{color:var(--emp-deep);box-shadow:inset 0 -3px 0 var(--emp-brass)}
.related.products,.upsells.products{grid-column:1/-1;margin-top:2rem}
.related.products>h2,.upsells.products>h2{margin-bottom:1.4rem}
.star-rating{color:var(--emp-brass)}
.emp-stickybuy{display:none}

/* سبد، تسویه حساب، حساب کاربری */
.woocommerce-cart-form table,.woocommerce table.shop_table{width:100%;border-collapse:collapse;background:var(--emp-surface);border:1px solid var(--emp-line);border-radius:var(--r);overflow:hidden}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:1rem;border-bottom:1px solid var(--emp-line);text-align:start}
.woocommerce table.shop_table img{width:72px;border-radius:4px}
.woocommerce .cart-collaterals{margin-top:2rem;display:flex;justify-content:flex-end}
.woocommerce .cart_totals{width:min(100%,430px);background:var(--emp-surface);border:1px solid var(--emp-line);border-radius:var(--r);padding:1.5rem}
.wc-proceed-to-checkout .button{width:100%;background:var(--emp-brass);border-color:var(--emp-brass);color:#1c0b0d!important}
.woocommerce form.checkout{display:grid;grid-template-columns:1.2fr 1fr;gap:2.2rem;align-items:start}
.woocommerce #customer_details{display:grid;gap:1.4rem}
.woocommerce form .form-row{margin-bottom:1rem;display:grid;gap:.3rem}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container .select2-selection{width:100%;min-height:46px}
.woocommerce-checkout-review-order{background:var(--emp-surface);border:1.5px dashed var(--emp-brass);border-radius:var(--r);padding:1.4rem}
#order_review_heading{grid-column:2;margin:0}
.woocommerce-info,.woocommerce-message,.woocommerce-error{list-style:none;margin:0 0 1.2rem;padding:.9rem 1.2rem;border-radius:var(--r);background:var(--emp-surface);border-inline-start:4px solid var(--emp-brass)}
.woocommerce-error{border-color:#8a1c26}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.woocommerce-MyAccount-navigation a{display:block;padding:.7rem 1rem;background:var(--emp-surface);border:1px solid var(--emp-line);border-radius:var(--r);font-weight:500}
.woocommerce-MyAccount-navigation .is-active a{background:var(--emp-deep);color:#fff;border-color:var(--emp-deep)}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-areas:"notices notices" "nav content";gap:0 2rem;align-items:start}
/* باگ: div خالی «اعلان‌های ووکامرس» خانه‌ی اول گرید را می‌گرفت؛ منو به ستون پهن می‌رفت و محتوا در ستون ۲۶۰ پیکسلی گیر می‌کرد */
.woocommerce-account .woocommerce-notices-wrapper{grid-area:notices}
.woocommerce-account .woocommerce-notices-wrapper:empty{display:none}
.woocommerce-account .woocommerce-notices-wrapper:not(:empty){margin-bottom:1.2rem}
.woocommerce-account .woocommerce-MyAccount-navigation{grid-area:nav;float:none;width:auto}
.woocommerce-account .woocommerce-MyAccount-content{grid-area:content;float:none;width:auto;min-width:0}
.woocommerce-account:not(.logged-in) .woocommerce{display:block;max-width:460px;margin-inline:auto}
.woocommerce form.login,.woocommerce form.register{background:var(--emp-surface);border:1px solid var(--emp-line);border-radius:var(--r);padding:1.6rem}

/* نوار ارسال رایگان و سبد کوچک */
.emp-freeship{margin-bottom:1rem;font-size:.92rem}
.emp-freeship p{margin:0 0 .4rem}
.emp-freeship__bar{height:6px;background:var(--emp-line);border-radius:3px;overflow:hidden}
.emp-freeship__bar i{display:block;height:100%;background:var(--emp-brass)}
.woocommerce-mini-cart{list-style:none;margin:0;padding:0}
.woocommerce-mini-cart-item{display:grid;grid-template-columns:64px 1fr;gap:.2rem .8rem;padding:.8rem 0;border-bottom:1px solid var(--emp-line);position:relative}
.woocommerce-mini-cart-item img{width:64px;grid-row:span 2;border-radius:4px}
.woocommerce-mini-cart-item .remove{position:absolute;inset-inline-end:0;top:.6rem;color:var(--emp-muted)}
.woocommerce-mini-cart__total{display:flex;justify-content:space-between;font-weight:700;padding-block:1rem}
.woocommerce-mini-cart__buttons{display:grid;gap:.5rem}
.woocommerce-mini-cart__buttons .button.checkout{background:var(--emp-brass);border-color:var(--emp-brass);color:#1c0b0d!important}

@media (max-width:1000px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media (max-width:860px){
  .single-product div.product,.woocommerce form.checkout,.woocommerce-account .woocommerce{grid-template-columns:1fr}
  .woocommerce-account .woocommerce{grid-template-areas:"notices" "nav" "content";gap:1.2rem}
  #order_review_heading{grid-column:auto}
}
@media (max-width:640px){
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:.8rem}
  .emp-card__body{padding:.8rem}.emp-card__title{font-size:1.02rem}
  .single-product .emp-stickybuy{display:flex;position:fixed;inset-inline:0;bottom:60px;z-index:55;align-items:center;justify-content:space-between;gap:1rem;background:var(--emp-surface);border-top:1px solid var(--emp-line);padding:.6rem 1rem}
  .woocommerce table.shop_table_responsive tr td::before{color:var(--emp-muted)}
}
.woocommerce-cart .emp-prose,.woocommerce-checkout .emp-prose,.woocommerce-account .emp-prose{max-width:none}
.woocommerce-cart .emp-pagehead,.woocommerce-checkout .emp-pagehead,.woocommerce-account .emp-pagehead{padding-bottom:1rem}
