/* ATISA commerce surfaces — presentation only; WooCommerce owns commerce state. */
.atisa-commerce-page .site-main,.atisa-commerce-page main{min-height:55vh}.woocommerce-notices-wrapper{max-width:1180px;margin-inline:auto}.woocommerce-message,.woocommerce-info,.woocommerce-error{border:1px solid var(--atisa-border)!important;border-top:3px solid var(--atisa-green)!important;background:var(--atisa-white)!important;border-radius:12px;padding:16px 18px 16px 48px!important;box-shadow:none!important;color:var(--atisa-text)!important}.woocommerce-error{border-top-color:#8a3c32!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--atisa-green)!important}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--atisa-green)!important;color:#fff!important;border-radius:var(--atisa-button-radius)!important;min-height:46px;padding:13px 22px!important;font-weight:700!important}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--atisa-green-2)!important;color:#fff!important}.woocommerce .button.alt{background:var(--atisa-green)!important}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form select,.woocommerce .select2-container--default .select2-selection--single{border:1px solid var(--atisa-border);border-radius:10px;background:#fff;min-height:48px;padding:10px 12px;color:var(--atisa-text)}.woocommerce form .form-row textarea{min-height:110px}.woocommerce form .form-row label{font-weight:700;margin-bottom:7px}.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#8a3c32}.woocommerce form .form-row.woocommerce-validated input.input-text{border-color:var(--atisa-green)}
/* Cart */
.woocommerce-cart .woocommerce{max-width:1180px;margin:0 auto;padding:54px 24px 80px}.woocommerce-cart-form,.cart_totals{background:#fff;border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius);padding:22px}.woocommerce table.shop_table{border:0!important;border-collapse:separate!important;border-spacing:0}.woocommerce table.shop_table th{color:#666;font-size:.85rem;border-bottom:1px solid var(--atisa-border)!important}.woocommerce table.shop_table td{border-top:0!important;border-bottom:1px solid #eee!important;padding:18px 12px!important}.woocommerce-cart-form__cart-item .product-thumbnail img{width:82px!important;aspect-ratio:4/5;object-fit:cover;border-radius:10px;background:var(--atisa-ivory)}.woocommerce .quantity .qty{min-height:44px;border:1px solid var(--atisa-border);border-radius:10px}.cart-collaterals{margin-top:26px}.woocommerce .cart-collaterals .cart_totals{width:min(100%,460px)!important;float:none!important;margin-inline-start:auto}.cart_totals h2{font-size:1.4rem}.wc-proceed-to-checkout a.checkout-button{font-size:1rem!important;margin-bottom:0!important}.coupon{display:flex;gap:8px}.coupon #coupon_code{min-width:180px!important;min-height:46px;border:1px solid var(--atisa-border);border-radius:10px;padding:10px}
/* Checkout */
.woocommerce-checkout .woocommerce{max-width:1180px;margin:0 auto;padding:54px 24px 80px}.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.78fr);gap:34px;align-items:start}.woocommerce-checkout #customer_details{grid-column:1}.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:2}.woocommerce-checkout #order_review_heading{grid-row:1;margin:0 0 -14px;padding:24px 24px 0;background:var(--atisa-ivory);border:1px solid var(--atisa-border);border-bottom:0;border-radius:var(--atisa-card-radius) var(--atisa-card-radius) 0 0}.woocommerce-checkout #order_review{grid-row:1;margin-top:58px;background:var(--atisa-ivory);border:1px solid var(--atisa-border);border-top:0;border-radius:0 0 var(--atisa-card-radius) var(--atisa-card-radius);padding:0 24px 24px;position:sticky;top:110px}.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields{background:#fff;border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius);padding:24px;margin-bottom:20px}.woocommerce-checkout-review-order-table{background:transparent!important}.woocommerce-checkout-payment{background:#fff!important;border:1px solid var(--atisa-border);border-radius:12px!important}.woocommerce-checkout-payment ul.payment_methods{border-bottom:1px solid var(--atisa-border)!important}.woocommerce-checkout-payment .payment_box{background:var(--atisa-ivory)!important}.woocommerce-checkout-payment .payment_box:before{border-bottom-color:var(--atisa-ivory)!important}.woocommerce #payment #place_order{width:100%;min-height:52px}.woocommerce-privacy-policy-text{font-size:.86rem;line-height:1.8;color:#666}
/* Account */
.woocommerce-account .woocommerce{max-width:1180px;margin:0 auto;padding:54px 24px 80px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px}.woocommerce-account .woocommerce-MyAccount-navigation{width:auto!important;float:none!important}.woocommerce-account .woocommerce-MyAccount-content{width:auto!important;float:none!important;background:#fff;border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius);padding:26px;min-width:0}.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:10px;background:var(--atisa-ivory);border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius)}.woocommerce-MyAccount-navigation li a{display:block;padding:12px 14px;border-radius:9px;color:var(--atisa-text)}.woocommerce-MyAccount-navigation li.is-active a{background:var(--atisa-green);color:#fff}.woocommerce-account table.my_account_orders{font-size:.92rem}.woocommerce-account .woocommerce-Address{border:1px solid var(--atisa-border);border-radius:12px;padding:18px}
/* Order confirmation */
.woocommerce-order-received .woocommerce{max-width:980px;margin:0 auto;padding:54px 24px 80px}.atisa-order-success{display:flex;gap:18px;align-items:flex-start;background:var(--atisa-ivory);border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius);padding:24px;margin-bottom:28px}.atisa-order-success__mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:var(--atisa-green);color:#fff;font-weight:800}.atisa-order-success h2{margin:0 0 5px}.atisa-order-success p{margin:0;color:#555}.woocommerce-order-overview{background:#fff;border:1px solid var(--atisa-border);border-radius:12px;padding:18px!important}.woocommerce-order-details,.woocommerce-customer-details{margin-top:32px;background:#fff;border:1px solid var(--atisa-border);border-radius:var(--atisa-card-radius);padding:22px}.woocommerce-customer-details address{border:0!important;padding:0!important}
/* States */
.woocommerce .stock.out-of-stock{color:#8a3c32}.woocommerce .stock.in-stock{color:var(--atisa-green)}.blockUI.blockOverlay:before,.loader:before{color:var(--atisa-green)!important}.atisa-commerce-page :focus-visible{outline:3px solid var(--atisa-gold);outline-offset:3px}
@media(max-width:900px){.woocommerce-checkout form.checkout{grid-template-columns:1fr}.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:1}.woocommerce-checkout #order_review_heading{grid-row:auto}.woocommerce-checkout #order_review{grid-row:auto;margin-top:-34px;position:static}.woocommerce-account .woocommerce{grid-template-columns:1fr}.woocommerce-MyAccount-navigation ul{display:flex;overflow:auto;gap:6px}.woocommerce-MyAccount-navigation li{flex:0 0 auto}}
@media(max-width:620px){.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce,.woocommerce-account .woocommerce,.woocommerce-order-received .woocommerce{padding:34px 14px 60px}.woocommerce-cart-form{padding:12px}.woocommerce-cart-form table.shop_table{min-width:0}.woocommerce-cart-form .product-name{overflow-wrap:anywhere}.cart_totals{padding:16px}.coupon{flex-wrap:wrap}.coupon #coupon_code{min-width:0!important;flex:1}.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields{padding:16px}.woocommerce-checkout #order_review_heading{padding-inline:16px}.woocommerce-checkout #order_review{padding-inline:16px}.atisa-order-success{padding:18px}.woocommerce-account .woocommerce-MyAccount-content{padding:18px}.woocommerce-message,.woocommerce-info,.woocommerce-error{margin-inline:0!important}}

/* ATISA 0.6.6 — center the complete My Account experience on desktop and mobile.
   Keep WooCommerce endpoints functional; this only changes layout/presentation. */
.woocommerce-account .woocommerce{
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  gap:24px;
  width:min(100% - 40px, 1120px);
  max-width:1120px;
  margin-inline:auto!important;
  padding:54px 20px 80px;
}
.woocommerce-account .woocommerce-MyAccount-navigation{
  float:none!important;
  width:100%!important;
  max-width:1000px;
  margin:0 auto!important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:6px;
  width:100%;
  box-sizing:border-box;
  margin:0 auto;
  padding:10px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0!important}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:block;
  padding:11px 16px;
  text-align:center;
  white-space:nowrap;
}
.woocommerce-account .woocommerce-MyAccount-content{
  box-sizing:border-box;
  float:none!important;
  width:100%!important;
  max-width:1000px;
  min-width:0;
  margin:0 auto!important;
  padding:30px;
  background:#fff;
  border:1px solid var(--atisa-border);
  border-radius:var(--atisa-card-radius);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child,
.woocommerce-account .woocommerce-MyAccount-content > h2:first-child,
.woocommerce-account .woocommerce-MyAccount-content > h3:first-child{
  margin-top:0;
}
.woocommerce-account .woocommerce-MyAccount-content form{
  width:100%;
  max-width:720px;
  margin-inline:auto;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address{
  box-sizing:border-box;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table{
  width:100%;
  margin-inline:auto;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
}
/* Logged-out login/register forms share a centered content width. */
body.woocommerce-account:not(.logged-in) .woocommerce{
  max-width:1000px;
}
body.woocommerce-account:not(.logged-in) .woocommerce > h2,
body.woocommerce-account:not(.logged-in) .woocommerce > p{
  width:100%;
  text-align:center;
}
body.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-form-login{
  box-sizing:border-box;
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:30px;
  background:#fff;
  border:1px solid var(--atisa-border);
  border-radius:var(--atisa-card-radius);
}
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:28px;
  width:100%;
  max-width:920px;
  margin:0 auto;
}
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set:before,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set:after{display:none!important}
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set > .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set > .u-column2{
  box-sizing:border-box;
  float:none!important;
  width:calc(50% - 14px)!important;
  max-width:446px;
  margin:0!important;
  padding:28px;
  background:#fff;
  border:1px solid var(--atisa-border);
  border-radius:var(--atisa-card-radius);
}
@media(max-width:900px){
  .woocommerce-account .woocommerce{width:100%;padding:38px 18px 60px;gap:18px}
  .woocommerce-account .woocommerce-MyAccount-content{max-width:100%;padding:24px}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto}
  .woocommerce-account .woocommerce-MyAccount-navigation li{flex:0 0 auto}
}
@media(max-width:620px){
  .woocommerce-account .woocommerce{padding:30px 14px 54px}
  .woocommerce-account .woocommerce-MyAccount-content{padding:18px}
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set{flex-direction:column;align-items:center;gap:16px}
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set > .u-column1,
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set > .u-column2{width:100%!important;max-width:480px}
}

/* Keep the native cart controls in a compact, single-column flow. */
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .wp-block-woocommerce-cart {
    max-width: 920px;
    margin-inline: auto;
}

body.woocommerce-cart .woocommerce {
    padding-block: 24px 40px;
}

body.woocommerce-cart .cart-collaterals {
    margin-top: 16px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    width: 100% !important;
}

body.woocommerce-cart .woocommerce-cart-form .shop_table td {
    padding: 10px 12px !important;
}

body.woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail img {
    width: 56px !important;
}

body.woocommerce-cart .wc-block-cart.wp-block-woocommerce-filled-cart-block {
    display: block;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
    box-sizing: border-box;
    width: 100%;
    padding: 0;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
    margin-top: 16px;
}

/* Keep checkout item totals and long RTL descriptions inside the summary. */
body.woocommerce-checkout .wc-block-components-order-summary-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: start;
    min-inline-size: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image {
    grid-area: 1 / 1;
    max-inline-size: 100%;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
    grid-area: 1 / 2;
    min-inline-size: 0;
    padding-inline: 0;
    text-align: start;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    grid-area: 2 / 2;
    min-inline-size: 0;
    inline-size: auto;
    padding-inline: 0;
    justify-self: stretch;
    text-align: end;
    font-variant-numeric: tabular-nums;
}

body.woocommerce-checkout .wc-block-components-order-summary-item :is(.wc-block-components-product-name, .wc-block-components-product-metadata, .wc-block-components-product-badge, .wc-block-components-formatted-money-amount) {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Stack each block-cart total below its product details on narrow screens. */
@media (max-width: 700px) {
    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-cart table.wc-block-cart-items {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 6px 12px;
    }

    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row > :is(.wc-block-cart-item__image, .wc-block-cart-item__product, .wc-block-cart-item__total) {
        width: auto;
        min-width: 0;
        padding-inline: 0;
        overflow-wrap: anywhere;
    }

    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__total {
        grid-column: 2;
        text-align: end;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart :is(.wc-block-components-product-badge, .wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value) {
        white-space: normal;
        overflow-wrap: anywhere;
        max-inline-size: 100%;
    }
}

/* Readable Persian date in the order receipt. */
body.woocommerce-order-received .woocommerce-order-overview__date strong {
    font-family: Tahoma, "Segoe UI", var(--atisa-font), sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
    overflow-wrap: normal;
}
