/* ============================================================
   هماهنگ‌سازی ظاهر پیش‌فرض ووکامرس (تک‌محصول، سبد خرید، تسویه‌حساب) با تم سایت
   ============================================================ */

.shop-main { min-height: 50vh; }
.woo-crumbs { padding: 16px 0 0; font-size: 12.5px; color: var(--muted-foreground); }
.woo-crumbs a:hover { color: var(--gold); }

/* ---------- عنوان صفحه‌ی آرشیو (فروشگاه/دسته‌بندی) ---------- */
.woocommerce-products-header__title { font-size: 24px; margin: 6px 0 22px; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 12.5px; color: var(--muted-foreground); }
.woocommerce-ordering select { padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }

/* ---------- پیام‌ها (افزوده شد، خطا، اطلاعیه) ---------- */
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-noreviews {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--gold); color: var(--foreground); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px;
}
.woocommerce-error { border-color: #ff6b6b; }
.woocommerce-message .button, .woocommerce-error .button { padding: 8px 16px; border-radius: 999px; background: var(--gold); color: #14110a; font-weight: 800; font-size: 12.5px; }

/* ---------- تک‌محصول ---------- */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; } }
.woocommerce div.product .woocommerce-product-gallery { position: sticky; top: 90px; }
.woocommerce-product-gallery__wrapper { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.flex-control-thumbs li { width: 64px; }
.flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; opacity: .7; }
.flex-control-thumbs img.flex-active { border-color: var(--gold); opacity: 1; }

.product_title { font-size: 26px; margin: 0 0 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--gold); font-size: 24px; font-weight: 900; margin-bottom: 16px; display: block; }
.woocommerce-product-details__short-description { color: var(--muted-foreground); font-size: 14px; line-height: 2; margin-bottom: 18px; }

.woocommerce div.product form.cart { margin-bottom: 24px; }
table.variations { width: 100%; border: 0; margin-bottom: 8px; }
table.variations tr { display: block; margin-bottom: 12px; }
table.variations td, table.variations th { display: block; border: 0; padding: 0; text-align: right; }
table.variations label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
table.variations select { width: 100%; max-width: 320px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--gold); }
.woocommerce-variation-price { margin: 10px 0; }
.woocommerce-variation-price .price { font-size: 20px; }
.woocommerce-variation-availability { font-size: 12.5px; color: var(--muted-foreground); }

.quantity { display: inline-flex; margin-inline-end: 10px; }
.quantity .qty { width: 64px; padding: 12px; text-align: center; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.single_add_to_cart_button, .woocommerce div.product form.cart .button {
  padding: 14px 30px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a !important; font-weight: 900; font-size: 15px; transition: .25s;
}
.single_add_to_cart_button:hover { box-shadow: 0 0 26px var(--gold-glow); }
.single_add_to_cart_button.disabled { opacity: .5; pointer-events: none; }

.woocommerce-tabs { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li { padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.woocommerce-tabs ul.tabs li.active { border-color: var(--gold); color: var(--gold); }
.woocommerce-tabs .panel { line-height: 2; color: var(--muted-foreground); font-size: 13.5px; }
.woocommerce-Tabs-panel table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel table.shop_attributes th, .woocommerce-Tabs-panel table.shop_attributes td { padding: 10px 14px; border: 1px solid var(--border); font-size: 13px; }

/* ---------- محصولات مرتبط ---------- */
.related.products { margin-top: 50px; grid-column: 1 / -1; }
.related.products > h2 { font-size: 20px; margin-bottom: 16px; }

/* ---------- سبد خرید (صفحه‌ی کامل) ---------- */
table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
table.shop_table th, table.shop_table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: center; font-size: 13px; }
table.shop_table th { color: var(--muted-foreground); font-weight: 700; }
table.shop_table td.product-name a { font-weight: 700; }
table.shop_table td.product-thumbnail img { width: 64px; border-radius: 10px; }
table.shop_table td.product-remove a { color: #ff6b6b; font-size: 18px; }
.coupon { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.coupon input#coupon_code { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.coupon button, [name="update_cart"] { padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 800; }
.cart_totals { max-width: 420px; margin-inline-start: auto; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.cart_totals h2 { margin-top: 0; font-size: 18px; }
.cart_totals table { width: 100%; }
.cart_totals table td, .cart_totals table th { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.wc-proceed-to-checkout .checkout-button { display: block; text-align: center; margin-top: 14px; padding: 15px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; font-weight: 900; }

/* ---------- تسویه‌حساب ---------- */
.woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { display: block; }
.woocommerce-billing-fields .form-row, .woocommerce-additional-fields .form-row { margin-bottom: 14px; }
.woocommerce-checkout label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 700; }
.woocommerce-checkout input.input-text, .woocommerce-checkout select, .woocommerce-checkout textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border);
}
#order_review { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-top: 24px; }
#place_order { width: 100%; padding: 16px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; font-weight: 900; font-size: 15px; }
.woocommerce-checkout .payment_methods { list-style: none; padding: 0; }
.woocommerce-checkout .payment_methods li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }

/* ---------- صفحه‌ی تشکر از خرید ---------- */
.woocommerce-order-received .woocommerce-thankyou-order-received { font-size: 18px; color: var(--gold); margin-bottom: 20px; }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }

/* ---------- امتیاز ستاره‌ای (مینیمال، در صورت فعال بودن نظرات) ---------- */
.star-rating { color: var(--gold); font-size: 13px; }

/* ============================================================
   حساب من: ورود و ثبت‌نام (دو کارت کنار هم، خوانا تو شب و روز)
   ============================================================ */
.woocommerce-account .woocommerce { max-width: 980px; margin-inline: auto; }
.woocommerce .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .woocommerce .u-columns.col2-set { grid-template-columns: 1fr; } }
.woocommerce .u-columns .u-column1, .woocommerce .u-columns .u-column2 {
  float: none; width: auto; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.woocommerce .u-columns h2, .woocommerce-account h2 { margin: 0 0 16px; font-size: 19px; font-weight: 900; }
.woocommerce-form-login, .woocommerce-form-register { border: 0; padding: 0; margin: 0; }
.woocommerce-form .form-row, .woocommerce-account .form-row { margin: 0 0 14px; }
.woocommerce-form label, .woocommerce-account label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--foreground); }
.woocommerce-form input.input-text, .woocommerce-account input.input-text, .woocommerce-account select, .woocommerce-account textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--background); border: 1px solid var(--border); color: var(--foreground); }
.woocommerce-form input.input-text:focus, .woocommerce-account input.input-text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-account button.button[type="submit"] {
  display: block; width: 100%; padding: 13px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; font-weight: 900; font-size: 14.5px; }
.woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.woocommerce-LostPassword a { font-size: 12.5px; color: var(--gold); }
.woocommerce-privacy-policy-text p { font-size: 12px; color: var(--muted-foreground); line-height: 1.9; }

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--gold); color: var(--gold); }
.woocommerce-MyAccount-content { line-height: 2; font-size: 14px; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--gold); }

.woocommerce-account .woocommerce > form.woocommerce-form-login { max-width: 440px; margin-inline: auto; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }

/* ============================================================
   ریسپانسیو: سبد خرید و تسویه‌حساب تو موبایل به‌هم نریزن
   ============================================================ */
.garage-tracking-box { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border)); font-size: 13.5px; }

@media (max-width: 680px) {
  table.shop_table thead { display: none; }
  table.shop_table, table.shop_table tbody, table.shop_table tr, table.shop_table td {
    display: block; width: 100%;
  }
  table.shop_table tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 6px 10px; background: var(--card); }
  table.shop_table td {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-bottom: 1px dashed var(--border); text-align: left; padding: 10px 2px;
  }
  table.shop_table tr td:last-child { border-bottom: 0; }
  table.shop_table td[data-title]::before { content: attr(data-title); font-weight: 700; font-size: 12px; color: var(--muted-foreground); flex-shrink: 0; }
  table.shop_table td.product-thumbnail { justify-content: center; padding-bottom: 4px; }
  table.shop_table td.product-thumbnail::before { display: none; }
  table.shop_table td.product-remove { justify-content: flex-end; }
  table.shop_table td.product-remove::before { display: none; }
  .cart_totals { max-width: 100%; }
  .woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { display: block; }
  .woocommerce .u-columns .u-column1, .woocommerce .u-columns .u-column2 { padding: 18px; }
}

.garage-signup-note { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border)); font-size: 12.5px; }


/* ============================================================
   ورود / ثبت‌نام (قالب woocommerce/myaccount/form-login.php) + پیشخوان حساب
   ============================================================ */
body.woocommerce-account:not(.logged-in) .section-title { display: none; }
body.woocommerce-account:not(.logged-in) .woocommerce { max-width: 960px; }
.auth { display: grid; grid-template-columns: .9fr 1.1fr; margin: 6px auto 0; overflow: hidden; border-radius: 28px; background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); box-shadow: 0 34px 80px -34px rgba(0,0,0,.6), 0 0 80px -48px var(--gold); }
.auth-side { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 38px 30px; color: #f4eedc; background: radial-gradient(90% 70% at 12% 0%, rgba(232,199,102,.3), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(207,159,63,.22), transparent 60%), linear-gradient(160deg, #1b1810, #0b0a07); }
.auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: -90px; bottom: -90px; border: 1px solid rgba(232,199,102,.25); box-shadow: 0 0 0 36px rgba(232,199,102,.05), 0 0 0 72px rgba(232,199,102,.03); pointer-events: none; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.auth-brand img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(232,199,102,.4); }
.auth-side h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: #fff; }
.auth-side p { margin: 0; font-size: 13.5px; line-height: 2; color: rgba(244,238,220,.78); }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; }
.auth-benefits .g-ico { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #e8c766; background: rgba(232,199,102,.12); box-shadow: inset 0 0 0 1px rgba(232,199,102,.3); }
.auth-benefits svg { width: 18px; height: 18px; }
.auth-help { position: relative; z-index: 1; margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(244,238,220,.7); }
.auth-help a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .25s; }
.auth-help a:first-of-type { background: linear-gradient(135deg, #2fe27a, #128c4a); }
.auth-help a:last-of-type { background: linear-gradient(45deg, #f9a03c, #dc2743 55%, #8a3ab9); }
.auth-help a:hover { transform: translateY(-3px) scale(1.08); }
.auth-help svg { width: 19px; height: 19px; }

.auth-card { padding: 34px 32px 30px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 26px; border-radius: 999px; background: color-mix(in srgb, var(--foreground) 7%, transparent); }
.auth-tabs button { position: relative; z-index: 1; padding: 11px 0; border-radius: 999px; font-size: 14px; font-weight: 900; color: var(--muted-foreground); transition: color .3s; cursor: pointer; }
.auth-tabs button.is-on { color: #14110a; }
.auth-ink { position: absolute; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 8px 22px -8px var(--gold); transition: transform .38s cubic-bezier(.2,.9,.3,1.1); }
.auth[data-tab="register"] .auth-ink { transform: translateX(-100%); }
html[data-theme="day"] .auth-ink { background-image: linear-gradient(135deg, #8a6a24, #6b4f14); }
html[data-theme="day"] .auth-tabs button.is-on { color: #fff; }

.auth-form { animation: auth-in .4s ease; }
.auth-form[hidden] { display: none; }
@keyframes auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-title { margin: 0 0 18px; font-size: 19px; font-weight: 900; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 800; }
.auth-field .req { color: #ff6b6b; }
.auth-input { position: relative; }
.auth-input > .g-ico { position: absolute; top: 50%; inset-inline-start: 14px; translate: 0 -50%; display: grid; color: var(--muted-foreground); pointer-events: none; transition: color .25s; }
.auth-input > .g-ico svg { width: 18px; height: 18px; }
.auth .auth-input input.input-text { width: 100%; height: 50px; padding: 0 44px; border-radius: 14px; font-size: 14px; background: var(--background); border: 1px solid var(--border); color: var(--foreground); transition: border-color .25s, box-shadow .25s; }
.auth .auth-input input[dir="ltr"] { text-align: right; }
.auth .auth-input input.input-text::placeholder { color: color-mix(in srgb, var(--muted-foreground) 70%, transparent); }
.auth .auth-input input.input-text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.auth-input:focus-within > .g-ico { color: var(--gold); }
.auth-eye { position: absolute; top: 50%; inset-inline-end: 8px; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted-foreground); cursor: pointer; }
.auth-eye:hover { color: var(--gold); }
.auth-eye svg { width: 18px; height: 18px; grid-area: 1/1; }
.auth-eye svg + svg, .auth-eye.is-on svg:first-child { display: none; }
.auth-eye.is-on svg + svg { display: block; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; font-size: 12.5px; }
.auth-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.auth-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }
.auth-link { font-weight: 800; color: var(--gold); }
.auth-submit { display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 52px; border: 0; cursor: pointer; box-shadow: 0 14px 30px -14px var(--gold); transition: transform .25s, box-shadow .25s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--gold); }
.auth-submit svg { width: 18px; height: 18px; transition: transform .25s; }
.auth-submit:hover svg { transform: translateX(-4px); }
html[data-theme="day"] .auth-submit { background: linear-gradient(135deg, #8a6a24, #6b4f14); color: #fff; }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.auth-switch a { font-weight: 900; color: var(--gold); }
.auth-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; background: color-mix(in srgb, var(--gold) 10%, transparent); }
.auth .woocommerce-privacy-policy-text { margin-bottom: 16px; }

@media (max-width: 800px) {
  .auth { grid-template-columns: 1fr; border-radius: 24px; }
  .auth-side { padding: 22px 20px; gap: 12px; }
  .auth-side h2 { font-size: 21px; margin-bottom: 4px; }
  .auth-benefits, .auth-help { display: none; }
  .auth-card { padding: 22px 18px 24px; }
}

/* پیشخوان حساب من */
.acct-welcome { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); }
.acct-avatar { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; font-weight: 900; color: #14110a; background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 10px 26px -10px var(--gold); }
.acct-welcome h2 { margin: 0 0 4px; font-size: 20px; }
.acct-welcome p { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.acct-tile { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: transform .25s, border-color .25s, box-shadow .25s; }
.acct-tile:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 34px -20px var(--gold); }
.acct-tile > .g-ico { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 13px; color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.acct-tile svg { width: 20px; height: 20px; }
.acct-tile b { font-size: 14px; }
.acct-tile small { font-size: 12px; color: var(--muted-foreground); }
.acct-wa > .g-ico { color: #fff; background: linear-gradient(135deg, #2fe27a, #128c4a); }
.acct-ig > .g-ico { color: #fff; background: linear-gradient(45deg, #f9a03c, #dc2743 55%, #8a3ab9); }
.acct-out > .g-ico { color: #ff6b6b; background: rgba(255,107,107,.12); }


/* فلش‌ها: توی صفحه‌ی راست‌به‌چپ، کاراکترهای ‹ › آینه می‌شدن و به‌جای بیرون، به داخل اشاره می‌کردن */
.car-arrow, .qv-arrow { direction: ltr; unicode-bidi: isolate; }

/* ورود/ثبت‌نام روی گوشی */
.auth-side { overflow: hidden; }
.auth-submit { width: 100%; }
.auth input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; border-radius: 6px; border: 1.5px solid var(--border); background: var(--background); display: inline-grid; place-content: center; cursor: pointer; transition: .2s; }
.auth input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.auth input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border-inline-start: 2px solid #14110a; border-bottom: 2px solid #14110a; transform: rotate(-45deg) translate(1px, -1px); }
