/* پوست تیره ووکامرس برای آرپینا وب: سبد، تسویه، حساب کاربری، پیام‌ها. بعد از CSS ووکامرس لود می‌شود. */
body.woocommerce-page main .max-w-3xl{max-width:72rem}
body.woocommerce-page main{color:var(--ar-fg)}
body.woocommerce-page main a:not(.button):not(.arp-btn){color:inherit}

/* پیام‌ها */
body.woocommerce-page .woocommerce-message,body.woocommerce-page .woocommerce-info,body.woocommerce-page .woocommerce-error{background:var(--ar-card);color:var(--ar-fg);border:1px solid var(--ar-line);border-top:3px solid var(--ar-gold);border-radius:14px;padding:1rem 3.25rem 1rem 1.25rem}
body.woocommerce-page .woocommerce-error{border-top-color:#ff8a80}
body.woocommerce-page .woocommerce-message::before,body.woocommerce-page .woocommerce-info::before{color:var(--ar-gold)}
body.woocommerce-page .woocommerce-message a.button,body.woocommerce-page .woocommerce-info a.button{float:left}

/* دکمه‌ها: معمولی سفید، اصلی (alt) طلایی */
body.woocommerce-page main a.button,body.woocommerce-page main button.button,body.woocommerce-page main input.button,body.woocommerce-page main #respond input#submit{background:var(--ar-fg);color:var(--ar-bg);border-radius:99px;padding:.75rem 1.5rem;font-weight:700;line-height:1.5;transition:filter .2s}
body.woocommerce-page main a.button.alt,body.woocommerce-page main button.button.alt,body.woocommerce-page main input.button.alt,body.woocommerce-page main #place_order{background:linear-gradient(120deg,#38bdf8,#0369a1 55%,#b08d47);color:#000}
body.woocommerce-page main a.button:hover,body.woocommerce-page main button.button:hover,body.woocommerce-page main input.button:hover{filter:brightness(1.1)}
body.woocommerce-page main button.button:disabled,body.woocommerce-page main button.button[disabled]{opacity:.45}

/* فرم‌ها */
body.woocommerce-page main label{color:var(--ar-muted)}
body.woocommerce-page main .woocommerce form .form-row input.input-text,body.woocommerce-page main .woocommerce form .form-row textarea,body.woocommerce-page main .woocommerce form .form-row select,body.woocommerce-page main .woocommerce .quantity .qty,body.woocommerce-page main .woocommerce #coupon_code{background:transparent;color:var(--ar-fg);border:1px solid var(--ar-line);border-radius:12px;padding:.7rem 1rem}
body.woocommerce-page main .woocommerce form .form-row input.input-text:focus,body.woocommerce-page main .woocommerce form .form-row textarea:focus{border-color:var(--ar-gold);outline:0}
.select2-container--default .select2-selection--single{background:transparent;border:1px solid var(--ar-line);border-radius:12px;height:auto;padding:.45rem .5rem}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ar-fg)}
.select2-dropdown{background:var(--ar-card,#0c0c0c);color:var(--ar-fg,#fff);border-color:var(--ar-line,#333)}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--ar-gold,#0369a1);color:#000}

/* جدول‌ها و جمع سبد/تسویه */
body.woocommerce-page main table.shop_table{border:1px solid var(--ar-line);border-radius:16px;border-collapse:separate;border-spacing:0;background:transparent;color:var(--ar-fg)}
body.woocommerce-page main table.shop_table th,body.woocommerce-page main table.shop_table td{border-color:var(--ar-line);background:transparent}
body.woocommerce-page main .cart_totals,body.woocommerce-page main #order_review{background:var(--ar-card);border:1px solid var(--ar-line);border-radius:20px;padding:1.25rem}
body.woocommerce-page main #payment{background:var(--ar-card);border-radius:16px}
body.woocommerce-page main #payment ul.payment_methods{border-color:var(--ar-line)}
body.woocommerce-page main #payment div.payment_box{background:var(--ar-line);color:var(--ar-fg)}
body.woocommerce-page main #payment div.payment_box::before{border-bottom-color:var(--ar-line)}
body.woocommerce-page main .woocommerce-checkout-review-order-table .product-name{color:var(--ar-fg)}
body.woocommerce-page main .woocommerce-breadcrumb{color:var(--ar-muted)}

/* حساب کاربری ووکامرس: چیدمان دو ستونه (منو راست، محتوا چپ). عناصر دیگر (مثل ظرف خالی پیام‌ها) تمام‌عرض می‌شوند. */
body.woocommerce-account main .woocommerce:has(>.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:240px minmax(0,1fr);column-gap:2rem;row-gap:1rem;align-items:start}
body.woocommerce-account main .woocommerce:has(>.woocommerce-MyAccount-navigation)>:not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content){grid-column:1/-1}
body.woocommerce-account main .woocommerce:has(>.woocommerce-MyAccount-navigation)>.woocommerce-notices-wrapper:not(:has(*)){display:none}
body.woocommerce-account main .woocommerce-MyAccount-navigation,body.woocommerce-account main .woocommerce-MyAccount-content{float:none!important;width:auto!important;margin:0!important}
body.woocommerce-account main .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:.5rem;border:1px solid var(--ar-line,#333);border-radius:20px;background:var(--ar-card,#0c0c0c);display:grid;gap:.25rem}
body.woocommerce-account main .woocommerce-MyAccount-navigation a{display:block;padding:.6rem 1rem;border-radius:12px;color:var(--ar-muted,#aaa)}
body.woocommerce-account main .woocommerce-MyAccount-navigation .is-active a,body.woocommerce-account main .woocommerce-MyAccount-navigation a:hover{background:var(--ar-line,#222);color:var(--ar-fg,#fff)}
@media(max-width:800px){body.woocommerce-account main .woocommerce:has(>.woocommerce-MyAccount-navigation){grid-template-columns:1fr}}

/* 3.3.1: خرید/سبد/تسویه‌حساب */
.woocommerce, .woocommerce-page, .woocommerce-checkout, .woocommerce-cart { min-width: 0; }
.woocommerce form .form-row { min-width: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; min-width: 0; box-sizing: border-box; }
.woocommerce table.shop_table { width: 100%; max-width: 100%; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-error, .woocommerce .woocommerce-info { overflow-wrap: anywhere; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { min-height: 44px; }
@media (max-width: 640px) {
  .woocommerce table.shop_table_responsive thead, .woocommerce-page table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tbody tr, .woocommerce-page table.shop_table_responsive tbody tr { display: block; padding: .5rem; margin-block: .75rem; border: 1px solid var(--ar-line, #ddd); border-radius: .75rem; }
  .woocommerce table.shop_table_responsive tbody tr td, .woocommerce-page table.shop_table_responsive tbody tr td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; text-align: end; }
  .woocommerce table.shop_table_responsive tbody tr td::before, .woocommerce-page table.shop_table_responsive tbody tr td::before { float: none; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: 100%; }
}
