/* Healthy Town v3 skin for WooCommerce's own pages (cart, checkout, account and plain pages).
   The design's header and footer replace Blocksy's; the rest keeps WooCommerce's markup and behaviour.
   Ground #F7F5F9, ink #1C1C1C, lavender #D5B7FF, green #5DD15D. */

:root:root {
  --theme-palette-color-1: #1c1c1c;
  --theme-palette-color-2: #000;
  --theme-palette-color-3: #1c1c1c;
  --theme-palette-color-4: #1c1c1c;
  --theme-palette-color-5: #e2dde9;
  --theme-palette-color-6: #f1efea;
  --theme-palette-color-7: #fbfaf7;
  --theme-palette-color-8: #ffffff;
  --theme-text-color: #1c1c1c;
  --theme-headings-color: #1c1c1c;
  --theme-link-initial-color: #1c1c1c;
  --theme-link-hover-color: #000;
  --theme-border-color: #e2dde9;
  --theme-form-field-border-initial-color: #ddd7e5;
  --theme-form-field-border-focus-color: #1c1c1c;
  --theme-form-field-border-radius: 14px;
  --theme-form-field-height: 50px;
  --theme-button-background-initial-color: #1c1c1c;
  --theme-button-background-hover-color: #000;
  --theme-button-text-initial-color: #fff;
  --theme-button-text-hover-color: #fff;
  --theme-button-border-radius: 999px;
  --theme-font-family: "HT Neo Sans Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --theme-content-vertical-spacing: 48px;
}

body.ht-chrome {
  background: #fbfaf7 !important;
  color: #1c1c1c;
  font-family: "HT Neo Sans Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
body.ht-chrome :is(h1, h2, h3, h4, h5, h6, p, a, li, label, input, select, textarea, button, td, th, span, strong, bdi) {
  font-family: inherit;
}
body.ht-chrome .ht-root .f-serif { font-family: "Instrument Serif", Georgia, serif !important; }
body.ht-chrome .ht-root .f-mono { font-family: "IBM Plex Mono", ui-monospace, monospace !important; }

/* Blocksy's header and footer give way to the design's */
body.ht-chrome #header,
body.ht-chrome header#header,
body.ht-chrome #footer,
body.ht-chrome footer#footer,
body.ht-chrome .ct-drawer-canvas[data-location="start"],
body.ht-chrome .ct-back-to-top { display: none !important; }
body.ht-chrome #main-container,
body.ht-chrome .site-main { background: transparent; }
body.ht-chrome .site-main { padding-top: 96px; }
body.ht-chrome #ht-footer .ht-root,
body.ht-chrome #ht-header .ht-root { text-align: right; }
body.admin-bar .ht-root header.fixed { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .ht-root header.fixed { top: 46px !important; } }

/* page heading */
body.ht-chrome .hero-section .page-title,
body.ht-chrome .entry-header .page-title,
body.ht-chrome h1.page-title {
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  color: #1c1c1c;
}
body.ht-chrome .ct-breadcrumbs { font-size: 12px; color: #8b8594; }

/* buttons */
body.ht-chrome :is(.button, button.button, a.button, input.button, .checkout-button, #place_order, .wp-element-button, .wc-block-components-button) {
  border-radius: 999px !important;
  background: #1c1c1c !important;
  color: #fff !important;
  border: 0 !important;
  min-height: 50px;
  padding-inline: 28px !important;
  font-weight: 500 !important;
  transition: transform .2s ease, background .2s ease !important;
  box-shadow: none !important;
}
body.ht-chrome :is(.button, #place_order, .checkout-button):hover { background: #000 !important; transform: translateY(-1px); }
body.ht-chrome .button:disabled, body.ht-chrome .button.disabled { opacity: .45 !important; }
body.ht-chrome #place_order { width: 100%; min-height: 58px; font-size: 1.05rem !important; }
body.ht-chrome .checkout-button { width: 100%; min-height: 58px; font-size: 1.05rem !important; }

/* fields */
body.ht-chrome :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea, .select2-container .select2-selection) {
  background: #fff !important;
  border: 1px solid #ddd7e5 !important;
  border-radius: 14px !important;
  color: #1c1c1c !important;
  box-shadow: none !important;
}
body.ht-chrome :is(input, select, textarea):focus { border-color: #1c1c1c !important; outline: 3px solid rgba(213, 183, 255, .55); outline-offset: 0; }
body.ht-chrome .select2-container .select2-selection--single { height: 50px !important; display: flex; align-items: center; }
body.ht-chrome .form-row label { font-size: 13px; color: #5d5866; margin-bottom: 6px; font-weight: 400; }
body.ht-chrome .form-row .required { color: #1c1c1c; text-decoration: none; }
body.ht-chrome .ht-na input { letter-spacing: .04em; }
body.ht-chrome .ht-na-req label .optional { display: none; }
body.ht-chrome .ht-na-req label::after { content: " *"; color: #1c1c1c; }

/* notices */
body.ht-chrome :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  background: #fff !important;
  border: 1px solid #e2dde9 !important;
  border-inline-start: 4px solid #1c1c1c !important;
  border-radius: 16px !important;
  color: #1c1c1c !important;
}
body.ht-chrome .woocommerce-error { border-inline-start-color: #d0021b !important; }
body.ht-chrome .woocommerce-message { border-inline-start-color: #5dd15d !important; }

/* cart */
body.ht-chrome .woocommerce-cart-form,
body.ht-chrome .cart-collaterals .cart_totals,
body.ht-chrome .woocommerce-checkout-review-order,
body.ht-chrome #customer_details,
body.ht-chrome .woocommerce-MyAccount-content,
body.ht-chrome .woocommerce-MyAccount-navigation,
body.ht-chrome .woocommerce-form-login,
body.ht-chrome .woocommerce-form-register,
body.ht-chrome .woocommerce-order {
  background: #fff;
  border: 1px solid #ebe7f0;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
}
body.ht-chrome .woocommerce-cart-form table.shop_table,
body.ht-chrome .cart_totals table.shop_table,
body.ht-chrome .woocommerce-checkout-review-order-table { border: 0 !important; background: transparent; }
body.ht-chrome table.shop_table :is(th, td) { border-color: #efecf3 !important; background: transparent !important; }
body.ht-chrome table.shop_table th { font-weight: 400; color: #8b8594; font-size: 13px; }
body.ht-chrome .woocommerce-cart-form .product-thumbnail img { border-radius: 14px; background: #ebebeb; }
body.ht-chrome .woocommerce-cart-form .product-name a { color: #1c1c1c; font-weight: 500; }
body.ht-chrome .product-remove a.remove { color: #8b8594 !important; border: 1px solid #e2dde9; border-radius: 50%; }
body.ht-chrome .product-remove a.remove:hover { background: #1c1c1c !important; color: #fff !important; }
body.ht-chrome .quantity { border-radius: 999px; }
body.ht-chrome .quantity .qty { border-radius: 999px !important; text-align: center; }
body.ht-chrome .cart_totals h2,
body.ht-chrome #order_review_heading,
body.ht-chrome .woocommerce-billing-fields > h3,
body.ht-chrome .woocommerce-additional-fields > h3,
body.ht-chrome #ship-to-different-address {
  font-size: 1.35rem;
  font-weight: 500;
  color: #1c1c1c;
}
body.ht-chrome .order-total :is(th, td), body.ht-chrome .order-total .amount { font-size: 1.15rem; font-weight: 600; color: #1c1c1c; }
body.ht-chrome .coupon .input-text { min-width: 160px; }
body.ht-chrome .cart-empty.woocommerce-info { text-align: center; padding: 48px 24px !important; font-size: 1.1rem; }
body.ht-chrome .return-to-shop { text-align: center; }

/* checkout */
body.ht-chrome .woocommerce-checkout #payment,
body.ht-chrome #payment { background: #fbfaf7 !important; border-radius: 20px !important; border: 0 !important; }
body.ht-chrome #payment ul.payment_methods { border-bottom: 1px solid #e5e2db !important; }
body.ht-chrome #payment ul.payment_methods li { padding-block: 10px; }
body.ht-chrome #payment div.payment_box { background: #fff !important; border-radius: 14px !important; color: #5d5866 !important; }
body.ht-chrome #payment div.payment_box::before { display: none !important; }
body.ht-chrome .woocommerce-privacy-policy-text, body.ht-chrome .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: #8b8594; }

/* account */
body.ht-chrome .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.ht-chrome .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-radius: 12px; color: #1c1c1c; }
body.ht-chrome .woocommerce-MyAccount-navigation li.is-active a { background: #1c1c1c; color: #fff; }

/* ---------------------------------------------------------------- the order flow (cart, checkout, thank you) */
body.ht-chrome.woocommerce-cart .hero-section,
body.ht-chrome.woocommerce-checkout .hero-section,
body.ht-chrome.woocommerce-cart .entry-header,
body.ht-chrome.woocommerce-checkout .entry-header { display: none !important; }
body.ht-chrome.woocommerce-cart .site-main,
body.ht-chrome.woocommerce-checkout .site-main { padding-top: 112px; }

.ht-flow { display: grid; gap: 14px; margin: 0 0 36px; padding-bottom: 22px; border-bottom: 2px solid #1c1c1c; }
.ht-flow__kicker { margin: 0; font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .2em; color: rgba(28,28,28,.45); text-align: right; }
.ht-flow__title { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.15; color: #1c1c1c; }
.ht-flow__steps { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.ht-flow__steps li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: rgba(28,28,28,.4); }
.ht-flow__steps li span { font: 500 11px "IBM Plex Mono", ui-monospace, monospace; }
.ht-flow__steps li.is-done { color: rgba(28,28,28,.7); }
.ht-flow__steps li.is-done span::after { content: " ✓"; color: #2c8a2c; }
.ht-flow__steps li.is-on { color: #1c1c1c; font-weight: 600; }
.ht-flow__steps li.is-on span { color: #1c1c1c; background: #d5b7ff; padding: 3px 7px; border-radius: 99px; }

/* checkout: your details on one side, a dark order file on the other */
body.ht-chrome form.ct-woocommerce-checkout { gap: clamp(20px, 3vw, 44px); align-items: start; }
body.ht-chrome .ct-customer-details { counter-reset: htsec; }
body.ht-chrome #customer_details { background: #fff; border: 1px solid #ebe7f0; border-radius: 24px; padding: clamp(18px, 3vw, 34px); }
body.ht-chrome #customer_details :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) > h3,
body.ht-chrome #customer_details #ship-to-different-address {
  counter-increment: htsec; display: flex; align-items: baseline; gap: 10px;
  font-size: 1.25rem; font-weight: 500; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px dashed rgba(28,28,28,.2);
}
body.ht-chrome #customer_details :is(.woocommerce-billing-fields, .woocommerce-additional-fields) > h3::before {
  content: "0" counter(htsec); font: 500 12px "IBM Plex Mono", ui-monospace, monospace; color: rgba(28,28,28,.45);
}
body.ht-chrome #customer_details .col-2 { margin-top: 28px; }
body.ht-chrome #customer_details .form-row { margin-bottom: 16px; }

body.ht-chrome .ct-order-review { position: sticky; top: 104px; background: #1c1c1c !important; color: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px) !important; border: 0 !important; }
body.ht-chrome .ct-order-review #order_review_heading { color: #fff; font-size: 1.25rem; font-weight: 500; margin: 0 0 6px; }
body.ht-chrome .ct-order-review #order_review_heading::before { content: "ملف الطلب"; display: block; font: 500 11px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .15em; color: #d5b7ff; margin-bottom: 8px; }
body.ht-chrome .ct-order-review .woocommerce-checkout-review-order { background: transparent !important; border: 0 !important; padding: 0 !important; }
body.ht-chrome .ct-order-review table.shop_table { color: #fff; }
body.ht-chrome .ct-order-review table.shop_table :is(th, td) { border-color: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.85) !important; padding-block: 14px !important; }
body.ht-chrome .ct-order-review table.shop_table thead th { color: rgba(255,255,255,.45) !important; font-size: 12px; }
body.ht-chrome .ct-order-review .order-total :is(th, td), body.ht-chrome .ct-order-review .order-total .amount { color: #fff !important; font-size: 1.3rem; }
body.ht-chrome .ct-order-review .product-quantity { color: #d5b7ff; font-family: "IBM Plex Mono", monospace; }
body.ht-chrome .ct-order-review .ct-checkout-cart-item { display: flex; align-items: center; gap: 14px; }
body.ht-chrome .ct-order-review .ct-checkout-cart-item figure { width: 56px !important; max-width: 56px; flex: none; margin: 0; border-radius: 12px; overflow: hidden; background: #2a2a2a; }
body.ht-chrome .ct-order-review .ct-checkout-cart-item figure img { width: 56px; height: 56px; object-fit: cover; }
body.ht-chrome .ct-order-review .ct-checkout-cart-item-title { color: #fff; font-size: 14px; line-height: 1.6; }

body.ht-chrome .ct-order-review #payment { background: rgba(255,255,255,.04) !important; border-radius: 18px !important; margin-top: 18px; padding: 6px 14px 16px !important; }
body.ht-chrome .ct-order-review #payment ul.payment_methods { border-color: rgba(255,255,255,.1) !important; padding: 8px 0 !important; }
body.ht-chrome .ct-order-review #payment ul.payment_methods li { color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px !important; margin: 8px 0 !important; list-style: none; }
body.ht-chrome .ct-order-review #payment ul.payment_methods li:has(input:checked) { border-color: #d5b7ff; background: rgba(213,183,255,.08); }
body.ht-chrome .ct-order-review #payment ul.payment_methods li label { color: #fff !important; font-weight: 500; }
body.ht-chrome .ct-order-review #payment div.payment_box { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.7) !important; }
body.ht-chrome .ct-order-review .woocommerce-privacy-policy-text, body.ht-chrome .ct-order-review .woocommerce-terms-and-conditions-wrapper { color: rgba(255,255,255,.45) !important; }
body.ht-chrome .ct-order-review .woocommerce-privacy-policy-text a { color: #d5b7ff !important; }
body.ht-chrome .ct-order-review #place_order { background: #d5b7ff !important; color: #1c1c1c !important; font-weight: 600 !important; }
body.ht-chrome .ct-order-review #place_order:hover { background: #fff !important; }

/* the seal, inked by mask so its drawing stays exactly as issued */
.ht-seal-ink { display: inline-block; flex: none; width: 56px; height: 56px; background-color: currentColor;
  -webkit-mask: var(--seal) center / contain no-repeat; mask: var(--seal) center / contain no-repeat; }
.ht-trust { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #d5b7ff; }
.ht-trust p { margin: 0; font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }
.ht-trust p strong { color: #fff; font-weight: 500; }
.ht-trust--light { color: #1c1c1c; border-top-color: #ebe7f0; }
.ht-trust--light p { color: #5d5866; }
.ht-trust--light p strong { color: #1c1c1c; }
.ht-trust--big .ht-seal-ink { width: 96px; height: 96px; }
.ht-seal-ink.is-stamp { animation: htStamp .8s cubic-bezier(.2,.9,.25,1.2) .3s both; }
@keyframes htStamp { 0% { opacity: 0; transform: scale(1.8) rotate(-24deg); } 60% { opacity: 1; transform: scale(.92) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .ht-seal-ink.is-stamp { animation: none; } }

/* cart: lines as a list, totals as the dark file */
body.ht-chrome.woocommerce-cart .cart-collaterals .cart_totals { background: #1c1c1c !important; color: #fff; border: 0; }
body.ht-chrome.woocommerce-cart .cart_totals h2 { color: #fff; }
body.ht-chrome.woocommerce-cart .cart_totals table.shop_table :is(th, td) { color: rgba(255,255,255,.85) !important; border-color: rgba(255,255,255,.1) !important; }
body.ht-chrome.woocommerce-cart .cart_totals .order-total :is(th, td), body.ht-chrome.woocommerce-cart .cart_totals .order-total .amount { color: #fff !important; }
body.ht-chrome.woocommerce-cart .cart_totals .checkout-button { background: #d5b7ff !important; color: #1c1c1c !important; font-weight: 600 !important; }
body.ht-chrome.woocommerce-cart .cart_totals .ht-trust { border-top-color: rgba(255,255,255,.1); color: #d5b7ff; }
body.ht-chrome.woocommerce-cart .cart_totals .ht-trust p { color: rgba(255,255,255,.6); }

/* thank you */
body.ht-chrome .woocommerce-order .woocommerce-thankyou-order-received { font-size: 1.2rem; font-weight: 500; }
body.ht-chrome .woocommerce-order ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: #ebe7f0; border-radius: 16px; overflow: hidden; padding: 0; margin: 20px 0; }
body.ht-chrome .woocommerce-order ul.order_details li { background: #fff; margin: 0; padding: 14px 16px; border: 0; font-size: 12px; color: #8b8594; list-style: none; }
body.ht-chrome .woocommerce-order ul.order_details li strong { display: block; margin-top: 6px; font-size: 15px; color: #1c1c1c; }

@media (max-width: 999px) {
  body.ht-chrome .ct-order-review { position: static; }
}
