/* =========================================================
   TikTiko - استایل اختصاصی فرایند خرید ووکامرس
   سبد خرید، پرداخت، صفحه تشکر، حساب کاربری، پیام‌ها و فرم‌ها
   (استایل پیش‌فرض ووکامرس غیرفعال است؛ همه چیز از اینجا می‌آید)
   ========================================================= */

/* (پایه، پیام‌ها، کارت محصول، ستاره‌ها و نوار پایین PWA به main.css منتقل شدند چون در همه صفحات لازم‌اند) */

/* ---------- ۲. فرم‌ها (پرداخت، حساب کاربری، آدرس) ---------- */
.sooghat-woo-content .form-row{ margin:0 0 14px; padding:0; }
.sooghat-woo-content .form-row label,
.sooghat-woo-content fieldset legend{ display:block; font-size:13.5px; font-weight:600; margin-bottom:6px; color: var(--color-text); }
.sooghat-woo-content .required{ color: var(--color-alert); text-decoration:none; border:0; font-weight:700; }
.sooghat-woo-content .optional{ color: var(--color-text-muted); font-weight:400; font-size:12px; }
.sooghat-woo-content input.input-text,
.sooghat-woo-content input[type="text"],
.sooghat-woo-content input[type="email"],
.sooghat-woo-content input[type="tel"],
.sooghat-woo-content input[type="password"],
.sooghat-woo-content input[type="number"],
.sooghat-woo-content textarea,
.sooghat-woo-content select{
	width:100%; padding:11px 14px; border:1px solid var(--color-border); border-radius: var(--radius-sm);
	font-family: var(--font-main); font-size:14px; line-height:1.6; background:#fff; color: var(--color-text);
	outline:none; transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance:none; appearance:none;
}
.sooghat-woo-content select{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237A736A' d='M12 15.6 5.6 9.2l1.4-1.4 5 5 5-5 1.4 1.4z'/%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position: left 12px center; padding-left:34px;
}
.sooghat-woo-content textarea{ min-height:96px; resize:vertical; }
.sooghat-woo-content input:focus, .sooghat-woo-content textarea:focus, .sooghat-woo-content select:focus{
	border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(21,94,77,.12);
}
.sooghat-woo-content .woocommerce-invalid input.input-text,
.sooghat-woo-content .woocommerce-invalid select,
.sooghat-woo-content .woocommerce-invalid .select2-selection{ border-color: var(--color-alert) !important; }
.sooghat-woo-content .woocommerce-validated input.input-text{ border-color:#BFE3D1; }
.sooghat-woo-content .woocommerce-input-wrapper{ display:block; }
.sooghat-woo-content .checkout-inline-error-message,
.sooghat-woo-content .woocommerce-input-wrapper .description{ display:block; font-size:12px; color: var(--color-alert); margin-top:4px; }

/* چک‌باکس‌ها و رادیوها */
.sooghat-woo-content input[type="checkbox"], .sooghat-woo-content input[type="radio"]{ accent-color: var(--color-primary); width:17px; height:17px; margin:0; flex-shrink:0; cursor:pointer; }
.sooghat-woo-content .woocommerce-form__label-for-checkbox,
.sooghat-woo-content label.checkbox{ display:flex !important; align-items:center; gap:8px; cursor:pointer; font-weight:600; }

/* رمز عبور + دکمه نمایش */
.sooghat-woo-content .password-input{ position:relative; display:block; }
.sooghat-woo-content .show-password-input{
	position:absolute; left:10px; top:50%; transform:translateY(-50%);
	background:none; border:0; cursor:pointer; color: var(--color-text-muted); padding:4px; font-size:0;
}
.sooghat-woo-content .show-password-input::before{
	content:""; display:block; width:18px; height:18px; background: var(--color-text-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c5.4 0 9.9 3.9 10.8 9-1 5.1-5.4 9-10.8 9S2.1 17.1 1.2 12C2.1 6.9 6.6 3 12 3Zm0 16a9 9 0 0 0 8.8-7 9 9 0 0 0-17.6 0A9 9 0 0 0 12 19Zm0-2.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm0-2a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c5.4 0 9.9 3.9 10.8 9-1 5.1-5.4 9-10.8 9S2.1 17.1 1.2 12C2.1 6.9 6.6 3 12 3Zm0 16a9 9 0 0 0 8.8-7 9 9 0 0 0-17.6 0A9 9 0 0 0 12 19Zm0-2.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm0-2a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sooghat-woo-content .show-password-input.display-password::before{
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.9 19.3A11 11 0 0 1 12 21c-5.4 0-9.9-3.9-10.8-9a11 11 0 0 1 3.4-6.2L1.4 2.5l1.4-1.4 19.8 19.8-1.4 1.4-3.3-3.3ZM6 7.2A9 9 0 0 0 3.2 12a9 9 0 0 0 13.2 5.8l-2-2A4.5 4.5 0 0 1 8.2 9.6L6 7.2Zm6.9 6.9-3.2-3.2a2.5 2.5 0 0 0 3.2 3.2Zm7.9 2.3-1.4-1.4A9 9 0 0 0 20.8 12 9 9 0 0 0 9.8 5.3L8.2 3.7A11 11 0 0 1 12 3c5.4 0 9.9 3.9 10.8 9a11 11 0 0 1-2 4.4Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.9 19.3A11 11 0 0 1 12 21c-5.4 0-9.9-3.9-10.8-9a11 11 0 0 1 3.4-6.2L1.4 2.5l1.4-1.4 19.8 19.8-1.4 1.4-3.3-3.3ZM6 7.2A9 9 0 0 0 3.2 12a9 9 0 0 0 13.2 5.8l-2-2A4.5 4.5 0 0 1 8.2 9.6L6 7.2Zm6.9 6.9-3.2-3.2a2.5 2.5 0 0 0 3.2 3.2Zm7.9 2.3-1.4-1.4A9 9 0 0 0 20.8 12 9 9 0 0 0 9.8 5.3L8.2 3.7A11 11 0 0 1 12 3c5.4 0 9.9 3.9 10.8 9a11 11 0 0 1-2 4.4Z'/%3E%3C/svg%3E");
}
.sooghat-woo-content .password-input input{ padding-left:40px; }
.sooghat-woo-content .woocommerce-password-strength{ font-size:12px; margin-top:6px; padding:4px 10px; border-radius:6px; }
.sooghat-woo-content .woocommerce-password-strength.strong{ background:#E4F3EC; color:#0E4438; }
.sooghat-woo-content .woocommerce-password-strength.good{ background:#FBF3E2; color:#7A5A16; }
.sooghat-woo-content .woocommerce-password-strength.short,
.sooghat-woo-content .woocommerce-password-strength.bad{ background:#FBEAE7; color:#7A2E22; }
.sooghat-woo-content .woocommerce-password-hint{ display:block; font-size:12px; color: var(--color-text-muted); margin-top:4px; }

/* select2 (انتخاب استان/کشور) */
.select2-container{ width:100% !important; direction:rtl; }
.select2-container .select2-selection--single{ height:46px; border:1px solid var(--color-border) !important; border-radius: var(--radius-sm) !important; background:#fff; }
.select2-container .select2-selection--single .select2-selection__rendered{ line-height:44px !important; padding:0 14px 0 34px !important; color: var(--color-text); font-size:14px; }
.select2-container .select2-selection--single .select2-selection__arrow{ height:44px !important; left:8px !important; right:auto !important; }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single{ border-color: var(--color-primary) !important; }
.select2-dropdown{ border:1px solid var(--color-border) !important; border-radius: var(--radius-sm) !important; overflow:hidden; box-shadow: var(--shadow-md); font-family: var(--font-main); }
.select2-search--dropdown .select2-search__field{ border:1px solid var(--color-border) !important; border-radius:6px; padding:8px !important; font-family: var(--font-main); }
.select2-results__option{ padding:8px 12px !important; font-size:14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected]{ background: var(--color-primary) !important; }

/* دکمه‌های عمومی ووکامرس */
.sooghat-woo-content .button,
.sooghat-woo-content button.button,
.sooghat-woo-content input.button{
	display:inline-flex; align-items:center; justify-content:center; gap:6px;
	background: var(--color-primary); color:#fff; border:0; border-radius: var(--radius-sm);
	padding:11px 22px; font-family: var(--font-main); font-size:14px; font-weight:600; cursor:pointer;
	text-decoration:none; transition: background .2s ease, opacity .2s ease;
}
.sooghat-woo-content .button:hover{ background: var(--color-primary-dark); color:#fff; }
.sooghat-woo-content .button:disabled, .sooghat-woo-content .button.disabled{ opacity:.5; cursor:not-allowed; }
.sooghat-woo-content .button.alt{ background: var(--color-copper); }
.sooghat-woo-content .button.alt:hover{ background: var(--color-copper-dark); }

/* ---------- ۳. سبد خرید ---------- */
.sooghat-cart-page{ padding: 6px 0 60px; }
.sooghat-cart-layout{ display:grid; grid-template-columns: minmax(0,1fr) 360px; gap:26px; align-items:start; }

.sooghat-cart-table{ width:100%; border-collapse:separate; border-spacing:0; background: var(--color-card-bg); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); }
.sooghat-cart-table thead th{ background: var(--color-bg); font-size:13px; font-weight:700; padding:14px; text-align:center; color: var(--color-text-muted); white-space:nowrap; }
.sooghat-cart-table thead th.product-name{ text-align:right; }
.sooghat-cart-table tbody td{ padding:16px 14px; text-align:center; border-bottom:1px solid var(--color-border); vertical-align:middle; }
.sooghat-cart-table tbody tr:last-child td{ border-bottom:none; }
.sooghat-cart-table td.product-name{ text-align:right; font-weight:600; font-size:14px; }
.sooghat-cart-table td.product-name a{ color: var(--color-text); }
.sooghat-cart-table td.product-name a:hover{ color: var(--color-primary); }
.sooghat-cart-table td.product-name dl.variation{ margin:6px 0 0; font-size:12.5px; color: var(--color-text-muted); font-weight:400; display:flex; flex-wrap:wrap; gap:2px 6px; }
.sooghat-cart-table td.product-name dl.variation dt, .sooghat-cart-table td.product-name dl.variation dd{ margin:0; }
.sooghat-cart-table td.product-name dl.variation dd p{ margin:0; }
.sooghat-cart-table td.product-name .backorder_notification{ font-size:12px; color: var(--color-copper); }
.sooghat-cart-table .product-thumbnail{ width:88px; }
.sooghat-cart-table .product-thumbnail img{ width:64px; height:64px; object-fit:cover; border-radius: var(--radius-sm); margin:0 auto; }
.sooghat-cart-table .product-remove{ width:44px; }
.sooghat-cart-table td.product-price, .sooghat-cart-table td.product-subtotal{ font-weight:700; color: var(--color-price); white-space:nowrap; }
.sooghat-cart-table td.product-price{ color: var(--color-text); font-weight:600; }
.sooghat-cart-remove{
	width:32px; height:32px; border-radius:50%; font-size:18px; color: var(--color-text-muted) !important;
	display:inline-flex; align-items:center; justify-content:center; background: var(--color-bg); transition: all .15s ease;
}
.sooghat-cart-remove:hover{ background:#FBEAE7; color: var(--color-alert) !important; }

/* باکس تعداد */
.sooghat-woo-content .quantity .qty,
.sooghat-cart-table .quantity .qty{
	width:72px; text-align:center; padding:9px 4px; border:1px solid var(--color-border); border-radius: var(--radius-sm);
	font-family: var(--font-main); font-size:14px; font-weight:600; background:#fff; -moz-appearance:textfield;
}

.sooghat-cart-table td.actions{ background: var(--color-bg); padding:16px 14px; text-align:right; }
.sooghat-cart-table td.actions::after{ content:""; display:table; clear:both; }
.sooghat-cart-table .coupon{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; float:right; }
.sooghat-cart-table .coupon label{ display:none; }
.sooghat-cart-table .coupon .input-text{ width:auto; min-width:190px; padding:10px 14px; border:1px solid var(--color-border); border-radius: var(--radius-sm); background:#fff; }
.sooghat-cart-table .coupon .sooghat-btn--ghost{ background:#fff; color: var(--color-text); }
.sooghat-cart-table [name="update_cart"]{ float:left; }
.sooghat-cart-table [name="update_cart"]:disabled{ opacity:.45; cursor:not-allowed; }

.cart-collaterals{ position:sticky; top:96px; }
.cart_totals{ background: var(--color-card-bg); border-radius: var(--radius-lg); padding:22px; box-shadow: var(--shadow-sm); }
.cart_totals h2{ font-size:18px; font-weight:700; margin-bottom:12px; }
.cart_totals table{ width:100%; border-collapse:collapse; }
.cart_totals table th, .cart_totals table td{ padding:12px 0; font-size:14px; border-bottom:1px dashed var(--color-border); vertical-align:top; }
.cart_totals table th{ text-align:right; color: var(--color-text-muted); font-weight:500; white-space:nowrap; padding-left:12px; }
.cart_totals table td{ text-align:left; font-weight:600; }
.cart_totals .order-total th, .cart_totals .order-total td{ border-bottom:none; font-size:17px; font-weight:800; color: var(--color-price); padding-top:14px; }
.cart_totals .cart-discount td{ color: var(--color-alert); }
.cart_totals .woocommerce-remove-coupon{ font-size:12px; color: var(--color-alert); margin-inline-start:4px; }
.cart_totals .includes_tax, .cart_totals small{ display:block; font-size:12px; color: var(--color-text-muted); font-weight:400; }

/* روش‌های ارسال (سبد و پرداخت) */
ul.woocommerce-shipping-methods{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; text-align:right; }
ul.woocommerce-shipping-methods li{ display:flex; align-items:center; gap:8px; font-weight:500; font-size:13.5px; }
ul.woocommerce-shipping-methods li input{ accent-color: var(--color-primary); margin:0; flex-shrink:0; }
ul.woocommerce-shipping-methods li label{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px; flex:1; margin:0; cursor:pointer; font-weight:500; }
.woocommerce-shipping-destination{ font-size:12.5px; color: var(--color-text-muted); font-weight:400; margin-top:8px; text-align:right; }
.woocommerce-shipping-calculator{ text-align:right; margin-top:6px; }
.woocommerce-shipping-calculator .shipping-calculator-button{ font-size:12.5px; color: var(--color-copper); font-weight:600; }
.woocommerce-shipping-calculator .shipping-calculator-form{ margin-top:10px; }
.woocommerce-shipping-calculator .form-row{ margin-bottom:8px; }
.woocommerce-shipping-calculator .input-text, .woocommerce-shipping-calculator select{ width:100%; padding:9px 12px; border:1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-main); }
.woocommerce-shipping-calculator .button{ width:100%; margin-top:4px; }

.wc-proceed-to-checkout{ margin-top:16px; }
.wc-proceed-to-checkout a.checkout-button{
	display:flex; align-items:center; justify-content:center; gap:6px; background: var(--color-copper); color:#fff !important;
	padding:14px; border-radius: var(--radius-sm); font-weight:700; font-size:15px; text-decoration:none !important; transition: background .2s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover{ background: var(--color-copper-dark); }

/* سبد خالی */
.wc-empty-cart-message .sooghat-notice, .sooghat-woo-content .cart-empty{
	flex-direction:column; align-items:center; text-align:center; gap:12px;
	background: var(--color-card-bg); border:0; color: var(--color-text); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	padding:50px 20px 16px; margin:10px 0 0; font-size:16px; font-weight:700; box-shadow:none;
}
.wc-empty-cart-message .sooghat-notice__icon{ font-size:0; margin:0; }
.wc-empty-cart-message .sooghat-notice__icon::before{
	content:""; display:block; width:64px; height:64px; background: var(--color-border);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 2h11l4.5 6v13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8l4.5-6ZM20 10H4v10h16V10Zm-.5-2L17 4.7H7L4.5 8h15ZM9 12v2a3 3 0 0 0 6 0v-2h2v2a5 5 0 0 1-10 0v-2h2Z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 2h11l4.5 6v13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8l4.5-6ZM20 10H4v10h16V10Zm-.5-2L17 4.7H7L4.5 8h15ZM9 12v2a3 3 0 0 0 6 0v-2h2v2a5 5 0 0 1-10 0v-2h2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wc-empty-cart-message .sooghat-notice__icon i{ display:none; }
.sooghat-woo-content .return-to-shop{
	text-align:center; background: var(--color-card-bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	padding:4px 20px 44px; margin:0 0 20px; box-shadow: var(--shadow-sm);
}
.sooghat-woo-content .return-to-shop .button{ background: var(--color-copper); padding:12px 28px; }
.sooghat-woo-content .return-to-shop .button:hover{ background: var(--color-copper-dark); }

/* محصولات پیشنهادی زیر سبد (cross-sells) */
.cross-sells{ margin-top:26px; }
.cross-sells > h2{ font-size:18px; font-weight:700; margin-bottom:14px; }
.cross-sells ul.products{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }

/* ---------- ۴. صفحه پرداخت ---------- */
.sooghat-checkout-page{ padding: 6px 0 60px; }
.sooghat-checkout-layout{ display:grid; grid-template-columns: minmax(0,1fr) 400px; gap:26px; align-items:start; }

/* صورتحساب و ارسال زیر هم (نه کنار هم و فشرده) */
.sooghat-checkout-layout__fields .col2-set{ display:block; }
.sooghat-checkout-layout__fields .col2-set > div{ width:100%; float:none; }
.sooghat-checkout-layout__fields h3{ font-size:17px; font-weight:700; margin: 0 0 16px; display:flex; align-items:center; gap:8px; }

.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-account-fields{
	background: var(--color-card-bg); border-radius: var(--radius-lg); padding:22px; box-shadow: var(--shadow-sm); margin-bottom:20px;
}
.woocommerce-shipping-fields:empty, .woocommerce-additional-fields:empty{ display:none; }
.woocommerce-shipping-fields #ship-to-different-address{ margin:0; font-size:15px; }
.woocommerce-shipping-fields .shipping_address{ margin-top:16px; }

/* چیدمان دوستونه فیلدها (نام/نام خانوادگی و ...) */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm{ display:grid; grid-template-columns: 1fr 1fr; gap:0 16px; }
.woocommerce-billing-fields__field-wrapper > *,
.woocommerce-shipping-fields__field-wrapper > *,
.woocommerce-address-fields__field-wrapper > *,
.woocommerce-EditAccountForm > *{ grid-column: 1 / -1; min-width:0; }
.woocommerce-billing-fields__field-wrapper > .form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row-first,
.woocommerce-address-fields__field-wrapper > .form-row-first,
.woocommerce-EditAccountForm > .form-row-first{ grid-column: 1; }
.woocommerce-billing-fields__field-wrapper > .form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row-last,
.woocommerce-address-fields__field-wrapper > .form-row-last,
.woocommerce-EditAccountForm > .form-row-last{ grid-column: 2; }

/* فرم کد تخفیف و ورود در بالای صفحه پرداخت */
.woocommerce-form-coupon-toggle .sooghat-notice, .woocommerce-form-login-toggle .sooghat-notice{ margin-bottom:12px; }
.woocommerce-form-coupon-toggle .showcoupon, .woocommerce-form-login-toggle .showlogin{ color: var(--color-copper); }
form.checkout_coupon, .sooghat-checkout-page ~ form.woocommerce-form-login, form.woocommerce-form-login.login{
	background: var(--color-card-bg); border-radius: var(--radius-lg); padding:18px 20px; margin:0 0 20px;
	box-shadow: var(--shadow-sm); border:1px dashed var(--color-border);
}
form.checkout_coupon{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
form.checkout_coupon > p:not(.form-row){ width:100%; font-size:13.5px; color: var(--color-text-muted); }
form.checkout_coupon .form-row{ margin:0; }
form.checkout_coupon .form-row-first{ flex:1; min-width:180px; }
form.checkout_coupon .input-text{ width:100%; padding:11px 14px; border:1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-main); }
form.checkout_coupon .button{
	background: var(--color-primary); color:#fff; border:0; border-radius: var(--radius-sm);
	padding:11px 22px; font-family: var(--font-main); font-weight:600; cursor:pointer;
}
form.checkout_coupon .clear{ display:none; }

/* باکس سفارش شما */
.sooghat-checkout-order-box{
	background: var(--color-card-bg); border-radius: var(--radius-lg); padding:22px;
	box-shadow: var(--shadow-sm); position:sticky; top:96px;
}
#order_review_heading{ font-size:18px; font-weight:700; margin: 0 0 12px; }
table.woocommerce-checkout-review-order-table{ width:100%; border-collapse:collapse; margin-bottom:16px; table-layout:auto; }
table.woocommerce-checkout-review-order-table th, table.woocommerce-checkout-review-order-table td{
	padding:11px 0; font-size:14px; border-bottom:1px dashed var(--color-border); vertical-align:top;
}
table.woocommerce-checkout-review-order-table thead th{ font-size:12.5px; color: var(--color-text-muted); font-weight:600; padding-top:0; }
table.woocommerce-checkout-review-order-table .product-name{ text-align:right; padding-left:12px; }
table.woocommerce-checkout-review-order-table td.product-name{ font-weight:500; line-height:1.8; }
table.woocommerce-checkout-review-order-table .product-quantity{ color: var(--color-text-muted); font-weight:700; font-size:12.5px; white-space:nowrap; }
table.woocommerce-checkout-review-order-table .product-total{ text-align:left; font-weight:600; white-space:nowrap; }
table.woocommerce-checkout-review-order-table dl.variation{ font-size:12px; color: var(--color-text-muted); margin:4px 0 0; display:flex; flex-wrap:wrap; gap:2px 6px; }
table.woocommerce-checkout-review-order-table dl.variation dt, table.woocommerce-checkout-review-order-table dl.variation dd, table.woocommerce-checkout-review-order-table dl.variation p{ margin:0; }
table.woocommerce-checkout-review-order-table tfoot th{ text-align:right; color: var(--color-text-muted); font-weight:500; white-space:nowrap; padding-left:12px; }
table.woocommerce-checkout-review-order-table tfoot td{ text-align:left; font-weight:600; }
table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td{ text-align:right; }
table.woocommerce-checkout-review-order-table .cart-discount td{ color: var(--color-alert); }
table.woocommerce-checkout-review-order-table .order-total th, table.woocommerce-checkout-review-order-table .order-total td{
	border-bottom:none; font-size:17px; font-weight:800; color: var(--color-price); padding-top:14px;
}
table.woocommerce-checkout-review-order-table .order-total small{ display:block; font-size:11.5px; color: var(--color-text-muted); font-weight:400; }

/* روش‌های پرداخت */
#payment{ background: var(--color-bg); border-radius: var(--radius-md); padding:14px; margin-top:6px; }
#payment ul.payment_methods{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
#payment ul.payment_methods > li{
	background:#fff; border:1.5px solid var(--color-border); border-radius: var(--radius-sm);
	padding:12px 14px; font-size:14px; transition: border-color .15s ease;
}
#payment ul.payment_methods > li:has(> input:checked){ border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(21,94,77,.08); }
#payment ul.payment_methods > li > input{ accent-color: var(--color-primary); vertical-align:middle; margin:0; width:17px; height:17px; }
#payment ul.payment_methods > li > label{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; font-weight:600; margin:0 8px 0 0; cursor:pointer; vertical-align:middle; }
#payment ul.payment_methods > li > label img{ max-height:26px; width:auto; display:inline-block; }
#payment ul.payment_methods > li.woocommerce-notice{ background:#FBF3E2; border-color:#EFD9A0; color:#7A5A16; }
#payment .payment_box{
	position:relative; background: var(--color-bg); border-radius: var(--radius-sm);
	padding:12px 14px; margin-top:12px; font-size:13px; line-height:2; color: var(--color-text-muted);
}
#payment .payment_box p:last-child{ margin-bottom:0; }
#payment .payment_box::before{
	content:""; position:absolute; top:-7px; right:18px; width:14px; height:14px;
	background: var(--color-bg); transform: rotate(45deg); border-radius:2px;
}
#payment .payment_box fieldset{ border:0; padding:0; margin:0; }
#payment .form-row.place-order{ margin:14px 0 0; padding:0; }
#payment #place_order{
	width:100%; margin-top:14px; background: var(--color-copper); color:#fff;
	border:none; padding:15px; border-radius: var(--radius-sm); font-family: var(--font-main); font-weight:700; font-size:16px; cursor:pointer;
	transition: background .2s ease;
}
#payment #place_order:hover{ background: var(--color-copper-dark); }
.woocommerce-terms-and-conditions-wrapper{ font-size:12.5px; color: var(--color-text-muted); line-height:2; }
.woocommerce-terms-and-conditions-wrapper a{ color: var(--color-primary); text-decoration:underline; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox{ font-weight:500; color: var(--color-text); margin-top:10px; }
.woocommerce-terms-and-conditions{ max-height:200px; overflow:auto; background:#fff; border-radius: var(--radius-sm); padding:12px; margin-bottom:10px; }

/* ---------- ۵. صفحه تشکر از خرید ---------- */
.sooghat-order-received{ max-width:860px; margin:0 auto; padding: 10px 0 60px; }

.sooghat-order-received__status{
	display:flex; flex-direction:column; align-items:center; text-align:center;
	gap:10px; padding:34px 22px; border-radius: var(--radius-lg); margin-bottom:20px;
}
.sooghat-order-received__icon{
	width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center;
	font-size:36px; background:#fff; box-shadow: var(--shadow-sm);
}
.sooghat-order-received__status--success{ background:#E4F3EC; border:1px solid #BFE3D1; }
.sooghat-order-received__status--success .sooghat-order-received__icon{ color: var(--color-primary); }
.sooghat-order-received__status--failed{ background:#FBEAE7; border:1px solid #F0C6BC; }
.sooghat-order-received__status--failed .sooghat-order-received__icon{ color: var(--color-alert); }
.sooghat-order-received__status p{ font-size:16px; font-weight:700; margin:0; color: var(--color-text); }
.sooghat-order-received__status .sooghat-order-received__sub{ font-size:13.5px; font-weight:400; color: var(--color-text-muted); }
.sooghat-order-received__actions{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-bottom:24px; }

/* خلاصه سفارش: یک کارت با خانه‌های منعطف (ردیف آخر کامل پر می‌شود و چیزی بیرون نمی‌زند) */
.sooghat-order-received .sooghat-order-overview{
	display:flex; flex-wrap:wrap; gap:12px;
	list-style:none; margin:0 0 24px; padding:0;
}
.sooghat-order-received .sooghat-order-overview > li{
	list-style:none; flex: 1 1 160px; min-width:0; margin:0;
	display:flex; flex-direction:column; gap:6px;
	background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius-md);
	padding:14px 16px; box-shadow: var(--shadow-sm);
}
.sooghat-order-received .sooghat-order-overview > li::marker{ content:none; }
.sooghat-order-received .sooghat-order-overview > li.email{ flex-basis:240px; }
.sooghat-order-overview__label{ display:flex; align-items:center; gap:6px; font-size:12.5px; color: var(--color-text-muted); line-height:1.6; }
.sooghat-order-overview__label i{ font-size:15px; color: var(--color-copper); }
.sooghat-order-overview__value{
	display:block; font-size:15px; font-weight:700; color: var(--color-text); line-height:1.7;
	overflow-wrap:anywhere; word-break:break-word; min-width:0;
}
.sooghat-order-overview__value.sooghat-ltr{ text-align:right; font-size:14px; }
.sooghat-order-received .sooghat-order-overview > li.total .sooghat-order-overview__value{ color: var(--color-price); }

/* خروجی درگاه‌ها و افزونه‌ها (مثل پیام «کارت به کارت») تمام‌عرض و هم‌استایل */
.sooghat-order-received__details{ display:flex; flex-direction:column; gap:20px; }
.sooghat-order-received__details > *{
	width:100% !important; max-width:100% !important; margin-left:0 !important; margin-right:0 !important;
	box-sizing:border-box; float:none !important;
}
.sooghat-order-received__details > :not(section):not(.woocommerce-order-details):not(.woocommerce-customer-details):not(.sooghat-notice):not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error):not(script):not(style){
	background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius-lg);
	padding:18px 20px; box-shadow: var(--shadow-sm); overflow-wrap:anywhere;
}
.sooghat-order-received__details > * > *{ max-width:100%; }
.sooghat-order-received__details > p:empty, .sooghat-order-received__details > div:empty{ display:none; }
.sooghat-order-received__details h2{ font-size:17px; font-weight:700; margin:0 0 12px; }
.sooghat-order-received__details ul{ list-style:none; margin:0; padding:0; }
.sooghat-order-received__details ul li{ padding:6px 0; }
.sooghat-order-received__details ul.wc-bacs-bank-details li strong,
.sooghat-order-received__details ul.order_details li strong{ display:block; font-size:14.5px; color: var(--color-text); }

.sooghat-order-received__footer{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:28px; }

/* ---------- ۶. جزئیات سفارش (تشکر + نمایش سفارش در حساب) ---------- */
.woocommerce-order-details, .woocommerce-customer-details{
	background: var(--color-card-bg); border-radius: var(--radius-lg); padding:22px; margin:0 0 20px;
	box-shadow: var(--shadow-sm); border:1px solid var(--color-border);
}
.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details h2{ font-size:17px; font-weight:700; margin:0 0 14px; }
.woocommerce-order-details table.shop_table{ width:100%; border-collapse:collapse; }
.woocommerce-order-details table.shop_table th, .woocommerce-order-details table.shop_table td{
	padding:12px 0; border-bottom:1px dashed var(--color-border); font-size:14px; vertical-align:top; text-align:right;
}
.woocommerce-order-details table.shop_table thead th{ font-size:12.5px; color: var(--color-text-muted); font-weight:600; padding-top:0; }
.woocommerce-order-details table.shop_table .product-total,
.woocommerce-order-details table.shop_table tfoot td{ text-align:left; font-weight:600; white-space:nowrap; }
.woocommerce-order-details table.shop_table td.product-name{ padding-left:12px; line-height:1.8; }
.woocommerce-order-details table.shop_table td.product-name a{ color: var(--color-text); font-weight:600; }
.woocommerce-order-details table.shop_table .product-quantity{ color: var(--color-text-muted); font-weight:700; font-size:12.5px; }
.woocommerce-order-details table.shop_table .wc-item-meta{ list-style:none; margin:4px 0 0; padding:0; font-size:12px; color: var(--color-text-muted); }
.woocommerce-order-details table.shop_table .wc-item-meta li, .woocommerce-order-details table.shop_table .wc-item-meta p{ display:inline; margin:0; }
.woocommerce-order-details table.shop_table tfoot th{ color: var(--color-text-muted); font-weight:500; }
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-details table.shop_table tfoot tr:last-child td{ border-bottom:0; }
.woocommerce-order-details table.shop_table tfoot tr:nth-last-child(2) th,
.woocommerce-order-details table.shop_table tfoot tr:nth-last-child(2) td,
.woocommerce-order-details table.shop_table tfoot .order-total th,
.woocommerce-order-details table.shop_table tfoot .order-total td{ font-size:16px; font-weight:800; color: var(--color-price); }
.woocommerce-order-details .order-again{ margin-top:16px; }
.woocommerce-order-details .order-again .button{
	display:inline-flex; background: var(--color-primary); color:#fff; padding:10px 20px; border-radius: var(--radius-sm); font-weight:600;
}

.woocommerce-columns--addresses{ display:grid; grid-template-columns:1fr 1fr; gap:16px; list-style:none; padding:0; }
.woocommerce-columns--addresses .woocommerce-column{ min-width:0; }
.woocommerce-customer-details address,
.woocommerce-Addresses address{
	background: var(--color-bg); border-radius: var(--radius-md); padding:14px 16px; font-style:normal;
	font-size:13.5px; line-height:2.1; color: var(--color-text); overflow-wrap:anywhere; border:0;
}
.woocommerce-customer-details address p{ margin:6px 0 0; display:flex; align-items:center; gap:6px; }
.woocommerce-customer-details--email{ direction:ltr; justify-content:flex-end; }

/* ---------- ۷. حساب کاربری ---------- */
body.sooghat-fullscreen-login .sooghat-page{ padding:0; max-width:none; width:100%; }
body.sooghat-fullscreen-login .sooghat-page > .sooghat-breadcrumb,
body.sooghat-fullscreen-login .sooghat-page > .sooghat-page-title{ display:none; }
body.sooghat-fullscreen-login .sooghat-woo-content{ display:flex; min-height:100vh; }

.woocommerce-account .sooghat-account-layout{ padding:0 0 40px; }
.sooghat-account-layout__content{ min-width:0; }
.sooghat-account-nav ul{ list-style:none; margin:0; padding:0; box-shadow: var(--shadow-sm); }
.sooghat-account-nav li a{ transition: background .15s ease, color .15s ease; }
.sooghat-account-nav li:not(.is-active) a:hover{ background: var(--color-bg); color: var(--color-primary); }
.sooghat-account-nav li a i{ font-size:18px; }

.woocommerce-MyAccount-content > p:first-child{ margin-bottom:16px; }
.woocommerce-MyAccount-content form:not(.sooghat-account-cards){
	background: var(--color-card-bg); border-radius: var(--radius-lg); padding:22px; box-shadow: var(--shadow-sm);
}
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3{ font-size:17px; font-weight:700; margin:0 0 14px; }
.woocommerce-MyAccount-content fieldset{ grid-column:1 / -1; border:1px dashed var(--color-border); border-radius: var(--radius-md); padding:16px; margin:10px 0 16px; }
.woocommerce-MyAccount-content fieldset legend{ padding:0 8px; }
.woocommerce-MyAccount-content .woocommerce-address-fields > p:last-child,
.woocommerce-EditAccountForm > p:last-of-type{ margin:6px 0 0; }
.woocommerce-MyAccount-content mark{ background:#FBF3E2; color:#7A5A16; padding:1px 6px; border-radius:4px; }

.woocommerce-Addresses{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.woocommerce-Addresses .woocommerce-Address{ background: var(--color-card-bg); border-radius: var(--radius-lg); padding:18px; box-shadow: var(--shadow-sm); min-width:0; }
.woocommerce-Address-title{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3{ margin:0; font-size:15px; }
.woocommerce-Address-title .edit{ font-size:13px; color: var(--color-copper); font-weight:600; }

/* جدول سفارش‌ها */
table.woocommerce-orders-table{ width:100%; border-collapse:collapse; background: var(--color-card-bg); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); }
table.woocommerce-orders-table thead th{ background: var(--color-bg); padding:12px 14px; font-size:13px; color: var(--color-text-muted); font-weight:600; white-space:nowrap; text-align:center; }
table.woocommerce-orders-table tbody td, table.woocommerce-orders-table tbody th{ padding:14px; font-size:13.5px; border-bottom:1px solid var(--color-border); text-align:center; font-weight:500; }
table.woocommerce-orders-table tbody tr:last-child td, table.woocommerce-orders-table tbody tr:last-child th{ border-bottom:0; }
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a{ color: var(--color-primary); font-weight:700; }
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a{
	display:inline-block; background: var(--color-primary); color:#fff !important; text-decoration:none !important;
	padding:6px 14px; border-radius: var(--radius-sm); font-size:12.5px; margin:2px; font-weight:600;
}
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.cancel{ background:#FBEAE7; color: var(--color-alert) !important; }
.woocommerce-pagination--without-numbers, .woocommerce-MyAccount-content .woocommerce-pagination{ display:flex; justify-content:space-between; gap:10px; margin-top:16px; }

mark.order-status{ display:inline-block; background: var(--color-bg); padding:3px 12px; border-radius:999px; font-size:12px; font-weight:700; color: var(--color-text); }
mark.order-status.status-completed{ background:#E4F3EC; color: var(--color-primary); }
mark.order-status.status-processing, mark.order-status.status-on-hold{ background:#FBF3E2; color:#7A5A16; }
mark.order-status.status-cancelled, mark.order-status.status-failed, mark.order-status.status-refunded{ background:#FBEAE7; color: var(--color-alert); }
.woocommerce-OrderUpdates{ list-style:none; padding:0; }
.woocommerce-OrderUpdate{ background: var(--color-bg); border-radius: var(--radius-sm); padding:10px 14px; margin-bottom:8px; font-size:13.5px; }
.woocommerce-OrderUpdate-meta{ font-size:12px; color: var(--color-text-muted); margin:0; }

/* ---------- ۸. آرشیو فروشگاه (مرتب‌سازی، تعداد نتایج، صفحه‌بندی) ---------- */
.sooghat-shop-results .woocommerce-result-count{ float:right; margin:8px 0 0; font-size:13px; color: var(--color-text-muted); }
.sooghat-shop-results .woocommerce-ordering{ float:left; margin:0; }
.sooghat-shop-results .woocommerce-ordering select{
	padding:9px 14px 9px 34px; border:1px solid var(--color-border); border-radius: var(--radius-sm); background-color:#fff;
	font-family: var(--font-main); font-size:13.5px; color: var(--color-text); cursor:pointer; -webkit-appearance:none; appearance:none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237A736A' d='M12 15.6 5.6 9.2l1.4-1.4 5 5 5-5 1.4 1.4z'/%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position: left 12px center;
}
.sooghat-shop-results .sooghat-product-grid{ clear:both; }
.woocommerce-pagination{ margin:30px 0; }
.woocommerce-pagination ul.page-numbers{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span{
	display:flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 8px;
	border-radius: var(--radius-sm); background:#fff; font-weight:600; font-size:14px; box-shadow: var(--shadow-sm); transition: all .15s ease;
}
.woocommerce-pagination .page-numbers a:hover{ color: var(--color-primary); }
.woocommerce-pagination .page-numbers span.current{ background: var(--color-primary); color:#fff; }
.woocommerce-no-products-found .sooghat-notice{ margin-top:10px; }

/* ---------- ۹. صفحه محصول (افزودن به سبد) ---------- */
.sooghat-product-purchase__form .quantity .qty{ border:0; width:56px; }
.sooghat-product-purchase__form .single_variation_wrap{ width:100%; }
.sooghat-product-purchase__form .woocommerce-variation-price .price{ display:block; }
.sooghat-product-purchase__form .woocommerce-variation-description{ font-size:13px; color: var(--color-text-muted); margin-bottom:10px; }
.sooghat-product-purchase__form .added_to_cart{ display:inline-flex; align-items:center; margin-top:10px; color: var(--color-copper); font-weight:600; font-size:13.5px; }
.sooghat-product-purchase__form .group_table{ width:100%; margin-bottom:14px; border-collapse:collapse; }
.sooghat-product-purchase__form .group_table td{ padding:8px 4px; border-bottom:1px dashed var(--color-border); font-size:14px; }
.sooghat-swatches__btn:disabled, .sooghat-swatches__btn.is-disabled{ opacity:.35; text-decoration:line-through; cursor:not-allowed; }

/* ---------- ۱۰. ریسپانسیو ---------- */
@media (max-width:1024px){
	.sooghat-checkout-layout{ grid-template-columns: minmax(0,1fr) 340px; }
	.sooghat-cart-layout{ grid-template-columns: minmax(0,1fr) 300px; }
}

@media (max-width:900px){
	.sooghat-checkout-layout, .sooghat-cart-layout{ grid-template-columns:1fr; }
	.sooghat-checkout-order-box, .cart-collaterals{ position:static; }
}

@media (max-width:768px){
	/* سبد خرید به شکل کارت */
	.sooghat-cart-table, .sooghat-cart-table tbody{ display:block; }
	.sooghat-cart-table thead{ display:none; }
	.sooghat-cart-table tbody tr.cart_item{
		display:grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "thumb name remove" "thumb price price" "qty qty qty" "subtotal subtotal subtotal";
		gap:4px 12px; padding:14px; border-bottom:1px solid var(--color-border); position:relative;
	}
	.sooghat-cart-table tbody tr.cart_item td{ display:flex; align-items:center; justify-content:space-between; padding:0; border:0; text-align:right; }
	.sooghat-cart-table tbody tr.cart_item td.product-thumbnail{ grid-area:thumb; width:auto; align-items:flex-start; }
	.sooghat-cart-table tbody tr.cart_item td.product-name{ grid-area:name; display:block; }
	.sooghat-cart-table tbody tr.cart_item td.product-remove{ grid-area:remove; width:auto; align-items:flex-start; }
	.sooghat-cart-table tbody tr.cart_item td.product-price{ grid-area:price; justify-content:flex-start; font-size:13px; color: var(--color-text-muted); }
	.sooghat-cart-table tbody tr.cart_item td.product-quantity{ grid-area:qty; padding-top:10px; margin-top:6px; border-top:1px dashed var(--color-border); }
	.sooghat-cart-table tbody tr.cart_item td.product-subtotal{ grid-area:subtotal; padding-top:4px; }
	.sooghat-cart-table tbody tr.cart_item td.product-quantity::before,
	.sooghat-cart-table tbody tr.cart_item td.product-subtotal::before{ content: attr(data-title); font-weight:600; font-size:13px; color: var(--color-text-muted); }
	.sooghat-cart-table tbody tr.cart_item td.product-name::before,
	.sooghat-cart-table tbody tr.cart_item td.product-price::before{ content:none; }
	.sooghat-cart-table tbody tr:not(.cart_item){ display:block; }
	.sooghat-cart-table td.actions{ display:block; }
	.sooghat-cart-table .coupon{ float:none; width:100%; }
	.sooghat-cart-table .coupon .input-text{ flex:1; min-width:0; }
	.sooghat-cart-table [name="update_cart"]{ float:none; width:100%; margin-top:10px; }

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper,
	.woocommerce-EditAccountForm{ grid-template-columns:1fr; }
	.woocommerce-billing-fields__field-wrapper > .form-row-first, .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.woocommerce-shipping-fields__field-wrapper > .form-row-first, .woocommerce-shipping-fields__field-wrapper > .form-row-last,
	.woocommerce-address-fields__field-wrapper > .form-row-first, .woocommerce-address-fields__field-wrapper > .form-row-last,
	.woocommerce-EditAccountForm > .form-row-first, .woocommerce-EditAccountForm > .form-row-last{ grid-column:1; }

	.woocommerce-columns--addresses, .woocommerce-Addresses{ grid-template-columns:1fr; }
	.cross-sells ul.products{ grid-template-columns: repeat(2,1fr); }

	/* جدول سفارش‌های حساب کاربری به شکل کارت */
	table.woocommerce-orders-table, table.woocommerce-orders-table tbody, table.woocommerce-orders-table tr{ display:block; }
	table.woocommerce-orders-table thead{ display:none; }
	table.woocommerce-orders-table tbody tr{ padding:10px 14px; border-bottom:1px solid var(--color-border); }
	table.woocommerce-orders-table tbody tr:last-child{ border-bottom:0; }
	table.woocommerce-orders-table tbody td, table.woocommerce-orders-table tbody th{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7px 0; border:0; text-align:left; }
	table.woocommerce-orders-table tbody td::before, table.woocommerce-orders-table tbody th::before{ content: attr(data-title); font-weight:600; color: var(--color-text-muted); font-size:12.5px; }
	table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions{ justify-content:flex-end; flex-wrap:wrap; }
	table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before{ content:none !important; }

	.sooghat-shop-results .woocommerce-result-count{ float:none; display:block; margin-bottom:8px; }
	.sooghat-shop-results .woocommerce-ordering{ float:none; margin-bottom:6px; }
	.sooghat-shop-results .woocommerce-ordering select{ width:100%; }
}

@media (max-width:480px){
	.sooghat-order-received__status{ padding:26px 16px; }
	.sooghat-order-received__status p{ font-size:15px; }
	.sooghat-order-received .sooghat-order-overview{ gap:10px; }
	.sooghat-order-received .sooghat-order-overview > li{ flex-basis: calc(50% - 5px); padding:12px; }
	.sooghat-order-received .sooghat-order-overview > li.email{ flex-basis:100%; }
	.sooghat-order-received__footer .sooghat-btn{ flex:1; }
	.woocommerce-order-details, .woocommerce-customer-details,
	.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields,
	.sooghat-checkout-order-box, .cart_totals, .woocommerce-MyAccount-content form{ padding:16px; }
	.sooghat-notice .button{ float:none; margin:8px 0 0; }
}

/* =========================================================
   ۱۳. سازگاری با بلوک‌های سبد و پرداخت ووکامرس (اگر به‌جای شورت‌کد استفاده شوند)
   ========================================================= */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wc-block-components-sidebar-layout{ font-family: var(--font-main); color: var(--color-text); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button{
	background: var(--color-copper) !important; color:#fff !important; border-radius: var(--radius-sm) !important; font-family: var(--font-main) !important; font-weight:700 !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input, .wc-blocks-components-select select{ font-family: var(--font-main) !important; border-radius: var(--radius-sm) !important; }
.wc-block-components-totals-item__value, .wc-block-formatted-money-amount{ direction:rtl; unicode-bidi:isolate; white-space:nowrap; }
.wc-block-components-notice-banner{ border-radius: var(--radius-md) !important; font-family: var(--font-main); }

/* =========================================================
   ۱۵. سبد خرید و پرداخت «بلوکی» ووکامرس - موبایل و PWA
   (سبد خرید سایت با بلوک ووکامرس ساخته شده، نه تمپلیت cart.php؛
   پس چیدمان موبایل باید برای کلاس‌های wc-block نوشته شود)
   ========================================================= */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout{ max-width:100%; overflow-x:clip; }
.wc-block-cart, .wc-block-checkout{ max-width:100%; }

@media (max-width:900px){
	/* ستون محصولات و جمع کل زیر هم، تمام‌عرض */
	body .wc-block-components-sidebar-layout{ display:block !important; }
	body .wc-block-components-sidebar-layout .wc-block-components-main,
	body .wc-block-components-sidebar-layout .wc-block-components-sidebar{ width:100% !important; max-width:100% !important; padding:0 !important; margin:0 !important; }
	body .wc-block-components-sidebar-layout .wc-block-components-sidebar{ margin-top:22px !important; }
}

@media (max-width:768px){
	/* ---- جدول اقلام به‌شکل کارت ---- */
	body .wc-block-cart-items{ display:block !important; width:100% !important; border:0 !important; margin:0 !important; }
	body .wc-block-cart-items thead{ display:none !important; }
	body .wc-block-cart-items tbody{ display:block !important; }
	body .wc-block-cart-items .wc-block-cart-items__row{
		display:grid !important; grid-template-columns:76px minmax(0,1fr); grid-template-areas:"img product" "img total";
		column-gap:12px; row-gap:6px; align-items:start;
		padding:14px !important; margin:0 0 12px !important;
		background: var(--color-card-bg); border:1px solid var(--color-border) !important; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
	}
	body .wc-block-cart-items .wc-block-cart-item__image{ grid-area:img; display:block !important; width:76px !important; padding:0 !important; margin:0 !important; }
	body .wc-block-cart-items .wc-block-cart-item__image a, body .wc-block-cart-items .wc-block-cart-item__image img{ display:block; width:76px !important; height:76px !important; object-fit:cover; border-radius: var(--radius-sm); }
	body .wc-block-cart-items .wc-block-cart-item__product{ grid-area:product; display:block !important; padding:0 !important; min-width:0; }
	body .wc-block-cart-items .wc-block-cart-item__wrap{ display:block; min-width:0; }
	body .wc-block-cart-items .wc-block-components-product-name{ display:block; font-size:14px; font-weight:700; line-height:1.8; color: var(--color-text); overflow-wrap:anywhere; }
	body .wc-block-cart-items .wc-block-cart-item__prices{ font-size:13px; color: var(--color-text-muted); margin:2px 0; }
	body .wc-block-cart-items .wc-block-components-product-metadata{ font-size:12.5px; color: var(--color-text-muted); margin:2px 0 8px; }
	body .wc-block-cart-items .wc-block-components-product-details{ margin:0; padding:0; list-style:none; }
	body .wc-block-cart-items .wc-block-cart-item__quantity{ display:flex !important; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
	body .wc-block-cart-items .wc-block-components-quantity-selector{ width:auto !important; flex-shrink:0; margin:0 !important; }
	body .wc-block-cart-items .wc-block-components-quantity-selector__button{ min-width:36px; min-height:36px; }
	body .wc-block-cart-items .wc-block-components-quantity-selector__input{ min-width:34px; font-size:16px !important; }
	body .wc-block-cart-items .wc-block-cart-item__remove-link{ font-size:12.5px; color: var(--color-alert); padding:8px 4px; min-height:36px; }
	body .wc-block-cart-items .wc-block-cart-item__total{
		grid-area:total; display:flex !important; align-items:center; justify-content:space-between; gap:8px;
		padding:8px 0 0 !important; margin:0 !important; border-top:1px dashed var(--color-border);
		font-weight:800; color: var(--color-price); text-align:start !important;
	}
	body .wc-block-cart-items .wc-block-cart-item__total::before{ content:"جمع"; font-weight:600; font-size:12.5px; color: var(--color-text-muted); }
	body .wc-block-cart-items .wc-block-cart-item__total-price-and-sale-badge-wrapper{ display:flex; flex-direction:column; align-items:flex-end; }

	/* ---- جمع کل ---- */
	body .wc-block-components-sidebar-layout .wc-block-components-sidebar.wc-block-cart__sidebar{ background: var(--color-card-bg); border-radius: var(--radius-lg); padding:16px !important; box-shadow: var(--shadow-sm); }
	body .wc-block-cart__totals-title{ display:block !important; font-size:16px; font-weight:700; padding:0 0 10px !important; text-align:start !important; text-transform:none !important; }
	body .wc-block-components-totals-wrapper{ padding-inline:0 !important; }
	body .wc-block-components-totals-item{ display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
	body .wc-block-components-totals-item__label{ font-size:14px; }
	body .wc-block-components-totals-item__value{ font-size:14px; font-weight:700; }
	body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{ font-size:17px; color: var(--color-price); }
	body .wc-block-components-totals-item__description{ font-size:12px; }

	/* ---- دکمه «رفتن به پرداخت»: بالای نوار پایین برنامه، نه پشت آن ---- */
	body .wc-block-cart__submit-container{ padding:0 !important; }
	body .wc-block-cart__submit-container--sticky{
		position:sticky !important; bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; z-index:500;
		background: var(--color-card-bg) !important; padding:10px 0 !important; margin-top:12px;
		box-shadow:none !important; border-top:0 !important;
	}
	body .wc-block-cart__submit-button, body .wc-block-components-checkout-place-order-button{ display:flex !important; align-items:center; justify-content:center; text-align:center; width:100% !important; min-height:50px; font-size:15px !important; }

	/* ---- پرداخت (چک‌اوت بلوکی) ---- */
	body .wc-block-checkout__main, body .wc-block-checkout__sidebar{ padding:0 !important; }
	body .wc-block-components-checkout-step{ padding-inline-start:0 !important; margin:0 0 18px !important; }
	body .wc-block-components-checkout-step__container::after, body .wc-block-components-checkout-step__heading-content{ display:none; }
	body .wc-block-components-address-form__first_name, body .wc-block-components-address-form__last_name{ flex-basis:100% !important; }
	body .wc-block-components-order-summary .wc-block-components-order-summary-item{ gap:10px; }

	/* هر چیز عریض‌تر از صفحه داخل خودش اسکرول شود، نه کل صفحه */
	body .wp-block-woocommerce-cart table, body .wp-block-woocommerce-checkout table{ max-width:100%; }
	body .wc-block-components-notice-banner{ font-size:13.5px; padding:12px !important; }
}

@media (max-width:480px){
	body .wc-block-cart-items .wc-block-cart-items__row{ grid-template-columns:64px minmax(0,1fr); padding:12px !important; }
	body .wc-block-cart-items .wc-block-cart-item__image,
	body .wc-block-cart-items .wc-block-cart-item__image a,
	body .wc-block-cart-items .wc-block-cart-item__image img{ width:64px !important; height:64px !important; }
}

/* حالت اپلیکیشن نصب‌شده: فاصله‌ی ایمن پایین (نوار ناوبری گوشی) */
@media (display-mode: standalone) and (max-width:768px){
	body.sooghat-woo-flow .sooghat-main{ padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   ۱۶. پیگیری سفارش
   ========================================================= */
.sooghat-track{ max-width:640px; margin:0 auto 40px; }
.sooghat-track__form{ background: var(--color-card-bg); border-radius: var(--radius-lg); padding:24px; box-shadow: var(--shadow-sm); margin-bottom:20px; }
.sooghat-track__intro{ color: var(--color-text-muted); font-size:14px; margin-bottom:16px !important; }
.sooghat-track__form p{ margin-bottom:14px !important; }
.sooghat-track__form label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.sooghat-track__form input{ width:100%; padding:12px 14px; border:1px solid var(--color-border); border-radius: var(--radius-sm); background:#fff; outline:none; font-size:15px; }
.sooghat-track__form input:focus{ border-color: var(--color-primary); box-shadow:0 0 0 3px rgba(21,94,77,.12); }
.sooghat-track__form .sooghat-btn{ margin-top:4px; border:0; cursor:pointer; }

.sooghat-track__result{ background: var(--color-card-bg); border-radius: var(--radius-lg); padding:24px; box-shadow: var(--shadow-sm); }
.sooghat-track__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.sooghat-track__label{ display:block; font-size:12.5px; color: var(--color-text-muted); }
.sooghat-track__number{ font-size:20px; font-weight:800; direction:ltr; unicode-bidi:isolate; }
.sooghat-track__badge{ padding:4px 14px; border-radius:999px; font-size:13px; font-weight:700; }
.sooghat-track__badge--ok{ background:#E4F3EC; color:#0E4438; }
.sooghat-track__badge--info{ background:#E6EEF8; color:#1F4E86; }
.sooghat-track__badge--warn{ background:#FBF3E2; color:#7A5A16; }
.sooghat-track__badge--bad{ background:#FBEAE7; color:#7A2E22; }
.sooghat-track__text{ font-size:14px; color: var(--color-text-muted); margin-bottom:20px !important; }

.sooghat-track__steps{ display:grid !important; grid-template-columns:repeat(3,1fr); gap:0; margin:0 0 24px !important; padding:0; list-style:none; counter-reset:none; }
.sooghat-track__step{ position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; font-size:12.5px; color: var(--color-text-muted); }
.sooghat-track__step::before{ content:""; position:absolute; top:15px; left:50%; width:100%; height:3px; background: var(--color-border); z-index:0; }
.sooghat-track__step:first-child::before{ display:none; }
.sooghat-track__dot{ position:relative; z-index:1; width:32px; height:32px; border-radius:50%; background: var(--color-border); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.sooghat-track__step.is-done .sooghat-track__dot{ background: var(--color-primary); }
.sooghat-track__step.is-done::before, .sooghat-track__step.is-current::before{ background: var(--color-primary); }
.sooghat-track__step.is-current .sooghat-track__dot{ background: var(--color-copper); box-shadow:0 0 0 5px rgba(153,89,43,.18); }
.sooghat-track__step.is-current, .sooghat-track__step.is-done{ color: var(--color-text); font-weight:600; }

.sooghat-track__meta{ margin:0 0 18px; display:grid; gap:0; }
.sooghat-track__meta > div{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px dashed var(--color-border); font-size:14px; }
.sooghat-track__meta dt{ color: var(--color-text-muted); }
.sooghat-track__meta dd{ margin:0; font-weight:600; text-align:left; }
.sooghat-track__code dd{ font-family:monospace; letter-spacing:.5px; user-select:all; }
.sooghat-track__sub{ font-size:15px; font-weight:700; margin:6px 0 8px; }
.sooghat-track__items{ list-style:none; margin:0 0 18px; padding:0; }
.sooghat-track__items li{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--color-border); font-size:14px; }
.sooghat-track__items li:last-child{ border-bottom:0; }
.sooghat-track__items em{ font-style:normal; color: var(--color-text-muted); white-space:nowrap; }
@media (max-width:480px){
	.sooghat-track__form, .sooghat-track__result{ padding:18px 16px; }
}

/* =========================================================
   ۱۷. پیام وضعیت ثبت دیدگاه (AJAX)
   ========================================================= */
.sooghat-reviews__status{ border-radius: var(--radius-md); padding:12px 16px; margin:0 0 16px; font-size:14px; line-height:1.9; }
.sooghat-reviews__status[hidden]{ display:none; }
.sooghat-reviews__status--info{ background:#FBF3E2; color:#7A5A16; border:1px solid #EFD9A0; }
.sooghat-reviews__status--success{ background:#E4F3EC; color:#0E4438; border:1px solid #BFE3D1; }
.sooghat-reviews__status--error{ background:#FBEAE7; color:#7A2E22; border:1px solid #F0C6BC; }
.sooghat-reviews .comment-form-phone input, .sooghat-reviews .comment-form-author input{ font-size:16px; }

/* =========================================================
   ۱۶. اصلاح چیدمان اقلام سبد خرید بلوکی در موبایل
   مشکل: قیمت «جمع» روی نام محصول می‌افتاد، چون CSS خود بلوک ووکامرس
   (کلاس‌های is-mobile / is-small) ردیف و ستون سلول جمع را دوباره تنظیم می‌کند و
   قوانین بخش ۱۵ (بدون !important) را باطل می‌کرد. اینجا جای هر سلول با
   شماره‌ی خط (نه فقط grid-area) و با اولویت بالاتر تثبیت می‌شود.
   ========================================================= */
@media (max-width:768px){
	body .wp-block-woocommerce-cart .wc-block-cart-items tr.wc-block-cart-items__row{
		display:grid !important;
		grid-template-columns:76px minmax(0,1fr) !important;
		grid-template-rows:auto auto !important;
		grid-template-areas:none !important;
		column-gap:12px !important; row-gap:8px !important;
		position:relative !important; height:auto !important;
	}
	body .wp-block-woocommerce-cart .wc-block-cart-items tr.wc-block-cart-items__row > td{
		position:static !important; inset:auto !important; transform:none !important;
		float:none !important; width:auto !important; max-width:none !important; min-width:0 !important;
		margin:0 !important; box-sizing:border-box;
	}
	body .wp-block-woocommerce-cart .wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__image{
		grid-column:1 !important; grid-row:1 / span 2 !important; width:76px !important; padding:0 !important;
	}
	body .wp-block-woocommerce-cart .wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__product{
		grid-column:2 !important; grid-row:1 !important; padding:0 !important; display:block !important;
	}
	body .wp-block-woocommerce-cart .wc-block-cart-items tr.wc-block-cart-items__row > td.wc-block-cart-item__total{
		grid-column:2 !important; grid-row:2 !important; align-self:end;
		display:flex !important; align-items:center; justify-content:space-between; gap:8px;
		padding:8px 0 0 !important; border-top:1px dashed var(--color-border);
		text-align:start !important; font-weight:800; color: var(--color-price);
	}
	/* نام محصول و قیمت واحد زیر هم، بدون هم‌پوشانی */
	body .wp-block-woocommerce-cart .wc-block-cart-item__wrap{ display:block !important; position:static !important; }
	body .wp-block-woocommerce-cart .wc-block-cart-item__wrap > *{ position:static !important; }
	body .wp-block-woocommerce-cart .wc-block-components-product-name{ display:block !important; margin:0 0 4px !important; }
	body .wp-block-woocommerce-cart .wc-block-cart-item__prices{ display:block !important; margin:0 0 4px !important; }
	/* شمارنده‌ی تعداد + حذف: یک ردیف تمیز، شمارنده چپ‌به‌راست تا + و − جابه‌جا نشوند */
	body .wp-block-woocommerce-cart .wc-block-cart-item__quantity{ display:flex !important; align-items:center; justify-content:space-between; gap:10px; margin-top:8px !important; }
	body .wp-block-woocommerce-cart .wc-block-components-quantity-selector{ direction:ltr; display:inline-flex !important; width:auto !important; margin:0 !important; }
	body .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input{ width:44px !important; min-width:0 !important; }
}

/* =========================================================
   ۱۸. نوار خرید چسبان صفحه محصول (فقط موبایل)
   ========================================================= */
.sooghat-sticky-buy{ display:none; }
@media (max-width:768px){
	.sooghat-sticky-buy{
		position:fixed; right:0; left:0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index:590;
		display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 14px;
		background:#fff; border-top:1px solid var(--color-border); box-shadow: 0 -4px 14px rgba(43,38,34,.08);
		visibility:hidden; opacity:0; transform: translateY(100%);
		transition: transform .2s ease, opacity .2s ease, visibility .2s;
	}
	.sooghat-sticky-buy.is-visible{ visibility:visible; opacity:1; transform:none; }
	.sooghat-sticky-buy__info{ min-width:0; flex:1; display:flex; flex-direction:column; line-height:1.5; }
	.sooghat-sticky-buy__name{ font-size:12px; color: var(--color-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
	.sooghat-sticky-buy__price{ font-size:14.5px; font-weight:700; color: var(--color-price); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
	.sooghat-sticky-buy__price del{ display:none; }
	.sooghat-sticky-buy__price ins{ text-decoration:none; }
	.sooghat-sticky-buy__btn{ flex-shrink:0; min-height:44px; padding:8px 18px; font-size:14px; white-space:nowrap; }
	/* تا انتهای صفحه زیر نوار پنهان نشود */
	body.has-sticky-buy{ padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   ۱۹. برگه پایینی فیلترها (موبایل)
   ========================================================= */
.sooghat-filter-open{ display:none; }
.sooghat-sheet{
	position:fixed; inset:auto 0 0 0; width:100%; max-width:none; max-height:85dvh;
	margin:0; padding:0; border:0; background:transparent; color: var(--color-text);
}
.sooghat-sheet[open]{ display:block; }
.sooghat-sheet::backdrop{ background: rgba(20,15,12,.45); }
.sooghat-sheet__inner{ display:flex; flex-direction:column; max-height:85dvh; background:#fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sooghat-sheet__head{ display:flex; align-items:center; justify-content:space-between; padding:8px 16px; border-bottom:1px solid var(--color-border); }
.sooghat-sheet__head h2{ font-size:16px; font-weight:700; }
.sooghat-sheet__body{ overflow-y:auto; padding:14px 16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
.sooghat-sheet .sooghat-shop-sidebar{ display:block; position:static; padding:0; background:transparent; }
@media (max-width:768px){
	.sooghat-shop-sidebar{ display:none; }
	.sooghat-sheet .sooghat-shop-sidebar{ display:block; }
	.sooghat-filter-open{
		display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:44px; margin-bottom:10px;
		background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-sm); font-weight:600; font-size:14px; color: var(--color-text); cursor:pointer;
	}
	.sooghat-filter-open__count{ min-width:20px; height:20px; padding:0 5px; border-radius:999px; background: var(--color-primary); color:#fff; font-size:12px; line-height:20px; text-align:center; }
	/* مرورگر قدیمی بدون dialog: همان سایدبار معمولی */
	html.sooghat-no-dialog .sooghat-shop-sidebar{ display:block; }
	html.sooghat-no-dialog .sooghat-filter-open{ display:none; }
}

/* =========================================================
   ۲۰. داستان محصول: سازنده و شهر
   ========================================================= */
.sooghat-maker{ margin: 32px 0 0; max-width:800px; padding:20px; background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius-lg); }
.sooghat-maker.has-image{ display:grid; grid-template-columns: 200px minmax(0,1fr); gap:20px; align-items:start; }
.sooghat-maker__image img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius: var(--radius-md); }
.sooghat-maker__eyebrow{ font-size:12.5px; font-weight:600; color: var(--color-copper); }
.sooghat-maker__name{ font-size:19px; font-weight:800; margin:0 0 4px; }
.sooghat-maker__name a{ color: var(--color-text); }
.sooghat-maker__cities{ display:flex; align-items:center; gap:4px; font-size:13.5px; color: var(--color-text-muted); margin:0 0 10px; }
.sooghat-maker__cities a{ text-decoration:underline; }
.sooghat-maker__story{ font-size:14px; line-height:2; margin-bottom:10px; }
.sooghat-maker__story p{ margin:0 0 8px; }
@media (max-width:600px){ .sooghat-maker.has-image{ grid-template-columns:1fr; } }

