/* Padideh Hello — the bridge between the design kit (assets/kit/css/ds.css) and Hello Elementor / WooCommerce.
   Only tokens of the kit, no new colour, face or layout: any visual change is shown as a sample and approved first.
   Scoped to WooCommerce and Hello selectors; nothing here restyles the whole page. */

/* the faces the kit's stacks expect, by the names next/font gave them */
:root {
  --font-vazir: 'Vazirmatn RD', Tahoma, system-ui, sans-serif;
  --font-cormorant: 'Cormorant Garamond';
  --font-montserrat: 'Montserrat';
  /* Shazde (Fontiran, licensed to Saman Bouyan only) is not shipped: its slot in the English stack takes Vazirmatn RD */
  --font-shazde: var(--font-vazir);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

/* WooCommerce prices: Latin figures in the Latin face, «T» after them (Currency contract) */
.woocommerce .price,
.woocommerce-Price-amount {
  font-family: var(--font-en-ui);
  font-variant-numeric: lining-nums;
}

/* WooCommerce notices and buttons take the kit's roles instead of Woo's purple */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--action);
  color: var(--on-action);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-en-ui);
  font-weight: 500;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--action-hover, var(--action));
  color: var(--on-action);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-block-start-color: var(--accent);
}

/* key-note pictures fill their frame like next/image `fill` */
.product-keyNoteMedia { aspect-ratio: 4 / 5; }

/* next/image `fill` is absolute + 100% inline; the kit styles only object-fit, so WordPress images need the frame filled here */
.pages-heroImg,
.shop-cardImg,
.shop-collectionImg,
.shop-spotlightImg,
.header-megaImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pages-heroArt { position: absolute; }
.shop-cardMedia,
.shop-collectionMedia,
.header-megaMedia { position: relative; overflow: hidden; display: block; }
.shop-cardMedia { aspect-ratio: 4 / 5; }

/* WooCommerce and Hello give every <img> height:auto / max-width:100% on their pages: the logo keeps the kit's heights */
.header-header img.header-mark { height: var(--logo-h); width: auto; max-width: none; }
.header-header img.header-word { height: calc(var(--logo-h) * .42); width: auto; max-width: none; }
.header-header[data-condensed] img.header-mark { height: var(--logo-h-condensed); }
.header-header[data-condensed] img.header-word { height: calc(var(--logo-h-condensed) * .42); }
.header-megaMedia img.header-megaImg { max-width: none; }
.shop-footerLogo img { width: 120px; height: auto; max-width: 100%; }
.header-count[hidden] { display: none; }

/* product page: WooCommerce's add-to-cart form takes the kit's button and quantity looks */
.product-buy form.cart { display: flex; gap: var(--space-3); align-items: stretch; flex-wrap: wrap; margin: 0; }
.product-buy .quantity input.qty { width: 4.5em; min-height: var(--touch-min, 48px); border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); text-align: center; background: var(--surface, #fff); font-family: var(--font-en-ui); }
.product-buy .single_add_to_cart_button { flex: 1; min-width: 12em; min-height: var(--touch-min, 48px); }
.product-slide img, .product-thumb img { max-width: none; }
.product-thumb { position: relative; }
.product-spec > div { display: grid; grid-template-columns: 8em 1fr; gap: var(--space-3); padding-block: var(--space-2); border-block-end: 1px solid var(--border-subtle); }
.product-spec dt { color: var(--text-muted); }
.product-spec dd { margin: 0; }

/* classic Woo wrappers around the product page and shop must not add their own gutters or floats */
.woocommerce #primary, .woocommerce-page #primary { width: 100%; max-width: none; padding: 0; }
.woocommerce-page main#main.site-main { max-width: none; padding: 0; margin: 0; }
.woocommerce ul.shop-grid { margin: 0; padding: 0; list-style: none; }
.woocommerce ul.shop-grid::before, .woocommerce ul.shop-grid::after { content: none; }
.woocommerce ul.shop-grid > li { float: none; width: auto; margin: 0; }

/* Woo's `.woocommerce img { height:auto }` outranks the frame rules above on shop pages: these carry one more class */
.shop-cardMedia img.shop-cardImg,
.shop-collectionMedia img.shop-collectionImg,
.shop-spotlightArt img.shop-spotlightImg,
.pages-heroArt img.pages-heroImg,
.header-megaMedia img.header-megaImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* `corner-shape: squircle` on a frame that clips an absolutely placed picture makes Chromium paint the picture blank
   (seen on desktop Chrome with the kit's cards, collections and hero). The frame keeps its radius, round instead of squircle. */
.squircle { corner-shape: round; }

/* shop archive: WooCommerce's sort control and pager take the kit's look */
.catalog-page .woocommerce-ordering { margin: 0; float: none; }
.catalog-page .woocommerce-ordering select {
  min-height: var(--touch-min, 44px);
  padding-inline: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface, #fff);
  color: var(--text);
  font: inherit;
  max-width: 100%;
}
.catalog-page .woocommerce-pagination { margin-block: var(--space-12); text-align: center; }
.catalog-page .woocommerce-pagination ul { display: inline-flex; gap: var(--space-2); border: 0; margin: 0; padding: 0; }
.catalog-page .woocommerce-pagination ul li { border: 0; float: none; }
.catalog-page .woocommerce-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-pill, 999px); color: var(--text); background: transparent; font-family: var(--font-en-ui);
}
.catalog-page .woocommerce-pagination .page-numbers.current { background: var(--action); color: var(--on-action); }
.catalog-page .catalog-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.catalog-page .catalog-head { text-align: center; padding-block: var(--space-12) var(--space-8); }

/* English runs inside the Persian (RTL) page keep their own left-to-right word order: word-by-word headlines wrap in the wrong order otherwise */
.pages-heroEn, .en, [lang="en"].micro, [lang="en"].eyebrow { direction: ltr; unicode-bidi: isolate; }
.pages-heroEn { display: block; }

/* the hero picture sits at z-index:-1 inside its panel: the panel must open its own stacking context or the picture falls behind the panel's background */
.pages-heroPanel, .shop-spotlightPanel { isolation: isolate; }

/* the hero picture settles once; the endless drift is dropped because an infinite transform animation under a masked frame stops the picture painting (seen in Chromium without GPU) */
.pages-heroArt img.pages-heroImg { animation: pages-heroSettle 9s var(--ease-out) both; }

/* ───────── cart, checkout, account: WooCommerce's own markup, wearing the house look ───────── */
.woo-page .woo-pageHead { margin-block: var(--space-6) var(--space-8); }
.woo-page .woo-pageTitle { margin: 0; font-weight: 300; }
.woo-page .woo-pageFa { font-size: var(--fs-h1); }
.woo-page--text .woo-pageBody { max-width: 46rem; line-height: 2; font-size: var(--fs-lead); padding-block-end: var(--space-16); }
.woo-page .container { padding-block-end: var(--space-16); }
.woocommerce-notices-wrapper { margin-block-end: var(--space-4); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--radius-md);
  background: var(--surface-warm); color: var(--text); font-size: var(--fs-small); line-height: 1.9;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { box-shadow: inset 0 0 0 1px var(--text); }
.woocommerce-message a.button, .woocommerce-info a.button { margin-inline-start: auto; order: 2; }

/* every WooCommerce button takes the kit's pill */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control-h-sm); padding: 0 var(--space-6); border: 1px solid var(--action); border-radius: var(--radius-pill);
  background: var(--action); color: var(--on-action); font: inherit; font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; line-height: 1.4; text-decoration: none; cursor: pointer;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #place_order:hover { background: var(--action); color: var(--on-action); opacity: .88; }
.woocommerce button.button:disabled, .woocommerce button.button[disabled], .woocommerce button.button:disabled[disabled] { opacity: .35; cursor: not-allowed; padding: 0 var(--space-6); }
.woocommerce #place_order { width: 100%; min-height: var(--control-h); float: none; }
.woocommerce .woo-updateCart, .woocommerce .shop-couponBtn, .woocommerce a.button.wc-backward { background: transparent; color: var(--text); border-color: var(--border-strong); }
.woocommerce .woo-updateCart:hover, .woocommerce .shop-couponBtn:hover { background: var(--surface-2); color: var(--text); opacity: 1; }

/* cart lines */
.woo-page--cart .shop-lines { margin: 0; padding: 0; list-style: none; }
.woo-page--cart .shop-lineImg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.woo-page--cart .shop-lineBrand { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; direction: ltr; text-align: start; }
.woo-page--cart .shop-lineRemove { text-decoration: none; font-size: 0; width: 44px; height: 44px; border-radius: 50%; }
.woo-page--cart a.remove.shop-lineRemove { color: var(--text-muted) !important; background: transparent; }
.woo-page--cart a.remove.shop-lineRemove:hover { color: var(--text) !important; background: var(--surface-2); }
.woo-page--cart .shop-lineRow .quantity input.qty, .woocommerce .quantity input.qty {
  width: 4.5em; min-height: var(--control-h-sm); padding: 0 var(--space-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  background: var(--surface-1); color: var(--text); text-align: center; font-family: var(--font-en-ui); font-size: var(--fs-body);
}
.woo-cartActions { display: grid; gap: var(--space-3); padding-block: var(--space-6); }
.woo-cartActions .coupon { display: flex; }
.woo-cartActions .shop-couponInput { border: 0; box-shadow: none; background: transparent; min-height: 44px; padding: 0; }
@media (min-width: 560px) { .woo-cartActions { grid-template-columns: 1fr auto; align-items: center; } }

/* summary tables become quiet definition rows */
.woocommerce table.shop_table { display: block; width: 100%; border: 0; margin: 0; border-collapse: collapse; background: transparent; }
.woocommerce table.shop_table thead, .woocommerce table.shop_table tbody, .woocommerce table.shop_table tfoot { display: block; }
.woocommerce table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: var(--space-2); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { display: block; border: 0; padding: 0; background: transparent; font-size: var(--fs-small); text-align: start; font-weight: 400; }
.woocommerce table.shop_table th { color: var(--text-muted); }
.woocommerce table.shop_table td { text-align: end; font-family: var(--font-en-ui); }
.woocommerce table.shop_table td::before { display: none !important; }
.woocommerce table.shop_table tr.order-total, .woocommerce table.shop_table tr.cart-subtotal + tr.order-total { padding-block-start: var(--space-4); margin-block-start: var(--space-2); border-block-start: 1px solid var(--border-subtle); }
.woocommerce table.shop_table tr.order-total th { color: var(--text); font-size: var(--fs-body); }
.woocommerce table.shop_table tr.order-total td { font-size: 1.25rem; }
.woocommerce table.shop_table tr.shipping td, .woocommerce table.shop_table tr.woocommerce-shipping-totals td { text-align: end; }
.woocommerce ul#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.woocommerce ul#shipping_method li { margin: 0; padding: 0; }
.woocommerce .cart_totals { display: grid; gap: var(--space-4); width: 100%; float: none; }
.woocommerce .cart_totals h2 { margin: 0; }
.woocommerce .wc-proceed-to-checkout { padding: 0; margin-block-start: var(--space-4); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0; min-height: var(--control-h); font-size: var(--fs-body); }

/* checkout review lines and payment box */
.woocommerce-checkout-review-order-table .product-name { max-width: 70%; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--text-muted); }
.woocommerce #payment { background: transparent; border-radius: 0; margin-block-start: var(--space-4); }
.woocommerce #payment ul.payment_methods { padding: 0; margin: 0 0 var(--space-4); border: 0; display: grid; gap: var(--space-2); list-style: none; }
.woocommerce #payment ul.payment_methods li { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--color-line); line-height: 1.8; }
.woocommerce #payment ul.payment_methods li:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--text); }
.woocommerce #payment ul.payment_methods li label { font-size: var(--fs-small); cursor: pointer; }
.woocommerce #payment div.payment_box { background: transparent; color: var(--text-muted); font-size: var(--fs-caption); padding: var(--space-2) 0 0; margin: 0; }
.woocommerce #payment div.payment_box::before { display: none; }
.woocommerce #payment .place-order { padding: 0; margin: 0; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-caption); color: var(--text-muted); line-height: 1.9; margin-block-end: var(--space-3); }
.woocommerce-privacy-policy-text a { text-decoration: underline; text-underline-offset: 4px; }

/* forms (billing, shipping, login, register, account details) */
.woocommerce form .form-row { padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); float: none; width: 100%; }
.woocommerce form .form-row label { font-size: var(--fs-small); line-height: 1.6; color: var(--text); margin: 0; }
.woocommerce form .form-row label .required { color: var(--text); text-decoration: none; }
.woocommerce form .form-row .optional { color: var(--text-muted); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-page form .form-row select,
.select2-container--default .select2-selection--single {
  width: 100%; min-height: var(--control-h); padding: 0 var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-control);
  background: var(--surface-1); color: var(--text); font: inherit; font-size: var(--fs-body); box-shadow: none;
}
.woocommerce form .form-row textarea { padding-block: var(--space-3); min-height: 7rem; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { outline: 2px solid var(--text); outline-offset: 2px; border-color: var(--text); }
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.woocommerce .woocommerce-billing-fields h3, .woocommerce .woocommerce-shipping-fields h3, .woocommerce .woocommerce-additional-fields h3 { font-size: var(--fs-h3); font-weight: 400; margin: 0 0 var(--space-4); }
.woo-fields .woocommerce-billing-fields__field-wrapper, .woo-fields .woocommerce-shipping-fields__field-wrapper, .woo-fields .woocommerce-additional-fields__field-wrapper { display: grid; gap: 0 var(--space-4); }
@media (min-width: 720px) {
  .woo-fields .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
  .woo-fields .woocommerce-billing-fields__field-wrapper .form-row-wide, .woo-fields .woocommerce-billing-fields__field-wrapper .notes { grid-column: 1 / -1; }
}
.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce .woocommerce-form-login-toggle .woocommerce-info { background: var(--surface-2); }
.woocommerce form.checkout_coupon, .woocommerce form.woocommerce-form-login { border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-4); margin-block-end: var(--space-4); }

/* account */
.woocommerce-account .woocommerce { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 240px 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: var(--touch-min); padding-inline: var(--space-4); border-radius: var(--radius-pill); color: var(--text-muted); text-decoration: none; font-size: var(--fs-small); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--surface-2); color: var(--text); }
.woocommerce-MyAccount-content { min-width: 0; line-height: 2; }
.woocommerce-account .u-columns { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .woocommerce-account .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-account .u-columns .col-1, .woocommerce-account .u-columns .col-2 { float: none; width: 100%; max-width: none; padding: var(--space-6); border: 1px solid var(--color-line); border-radius: var(--radius-section); }
.woocommerce-account h2 { font-size: var(--fs-h3); font-weight: 400; margin: 0 0 var(--space-4); }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); }
.woocommerce-LostPassword a { font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 4px; }

/* order received */
.woocommerce-order ul.woocommerce-order-overview { list-style: none; margin: 0 0 var(--space-8); padding: var(--space-4); border-radius: var(--radius-section); background: var(--surface-2); display: grid; gap: var(--space-3); font-size: var(--fs-small); }
@media (min-width: 720px) { .woocommerce-order ul.woocommerce-order-overview { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.woocommerce-order ul.woocommerce-order-overview li { border: 0; padding: 0; margin: 0; float: none; }
.woocommerce-order ul.woocommerce-order-overview strong { display: block; font-weight: 400; font-size: var(--fs-body); font-family: var(--font-en-ui); }
.woocommerce-order-details, .woocommerce-customer-details { margin-block-end: var(--space-8); }

/* WooCommerce's small-screen rules hide every row header and print data-title instead: keep the real headers */
.woocommerce table.shop_table_responsive tbody th, .woocommerce-page table.shop_table_responsive tbody th,
.woocommerce table.shop_table_responsive tfoot th, .woocommerce-page table.shop_table_responsive tfoot th { display: block !important; }
.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { text-align: end !important; }
.woocommerce table.shop_table tr.shipping, .woocommerce table.shop_table tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.woocommerce table.shop_table tr.shipping td, .woocommerce table.shop_table tr.woocommerce-shipping-totals td { background: transparent; width: 100%; text-align: start !important; font-family: inherit; padding: 0; }
.woocommerce table.shop_table tr.shipping td p, .woocommerce-shipping-destination { font-size: var(--fs-caption); color: var(--text-muted); margin: 0; line-height: 1.9; }
.woocommerce ul#shipping_method li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); }
.woocommerce ul#shipping_method li label { display: inline-flex; gap: var(--space-2); align-items: baseline; }
.woocommerce a.shipping-calculator-button { text-decoration: underline; text-underline-offset: 4px; font-size: var(--fs-caption); }

/* Hello's table rules add borders and a header row: the summary rows stay hairline-free apart from the total */
.woocommerce table.shop_table, .woocommerce table.shop_table tr, .woocommerce table.shop_table th, .woocommerce table.shop_table td,
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { border: 0 !important; background: transparent !important; box-shadow: none; }
.woocommerce table.shop_table thead { display: none; }
.woocommerce table.shop_table tr.order-total, .woocommerce table.shop_table tr.cart-subtotal + tr.order-total { border-block-start: 1px solid var(--border-subtle) !important; }
.woocommerce table.shop_table tr.cart_item td.product-name { text-align: start !important; font-family: inherit; }
.woocommerce table.shop_table tr.cart_item td.product-total { white-space: nowrap; }
/* checkboxes (ship to another address, terms, remember me) */
.woocommerce form .form-row input[type='checkbox'], .woocommerce input[type='checkbox'] {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-1); display: inline-grid; place-content: center; cursor: pointer;
}
.woocommerce input[type='checkbox']:checked { background: var(--action); border-color: var(--action); }
.woocommerce input[type='checkbox']:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--on-action); border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.woocommerce input[type='checkbox']:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.woocommerce #ship-to-different-address { font-size: var(--fs-body); font-weight: 400; margin: var(--space-2) 0 var(--space-4); }
.woocommerce #ship-to-different-address label { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.woocommerce form .form-row.validate-required label.checkbox, .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: var(--space-3); }

.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce #place_order { padding-inline: var(--space-4); white-space: nowrap; }

.woocommerce-order h2, .woocommerce-order .woocommerce-order-details__title, .woocommerce-order .woocommerce-column__title { font-size: var(--fs-h3); font-weight: 400; margin: 0 0 var(--space-4); }
.woocommerce-order .woocommerce-notice--success { margin-block-end: var(--space-6); }
.woocommerce-order-details .shop_table td.product-name { text-align: start !important; }
