/* Role sizes interpolate from 390px to 1440px at the default root size. */
body.athar-site {
  --athar-type-page: clamp(1.875rem, 1.55rem + 1.333vw, 2.75rem);
  --athar-type-product: clamp(2rem, 1.536rem + 1.905vw, 3.25rem);
  --athar-type-section: clamp(1.5rem, 1.314rem + .762vw, 2rem);
  --athar-type-subsection: clamp(1.125rem, 1.079rem + .19vw, 1.25rem);
  --athar-type-body: clamp(1rem, .977rem + .095vw, 1.0625rem);
  --athar-type-small: clamp(.8125rem, .789rem + .095vw, .875rem);
  --athar-type-eyebrow: clamp(.75rem, .727rem + .095vw, .8125rem);
  --athar-type-serif: var(--future-serif, Georgia, serif);
  --athar-type-sans: var(--future-sans, Inter, Arial, sans-serif);
  --athar-type-ink: #211d17;
  --athar-type-muted: #5c5141;
  --athar-type-gold: #785019;

  font-family: var(--athar-type-sans);
  font-size: var(--athar-type-body);
  line-height: 1.6;
}

:lang(ar) body.athar-site {
  --athar-type-serif: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --athar-type-sans: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

/* The cinematic display title has its own responsive lettering and animation. */
.athar-site #athar-main h1:not(.athar-cinematic-hero__title) {
  font: 400 var(--athar-type-page)/1.13 var(--athar-type-serif) !important;
  letter-spacing: -.025em;
  max-inline-size: 28ch;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.athar-site #athar-main h1.product_title {
  font-size: var(--athar-type-product) !important;
}

.athar-site #athar-main .athar-site-commerce-heading h1,
.athar-site #athar-main .athar-site-account-header h1 {
  font-family: var(--athar-type-sans) !important;
  font-weight: 650 !important;
}

.athar-site #athar-main h2,
.athar-site :is(.athar-site-footer, [role="dialog"]) h2 {
  font-size: var(--athar-type-section) !important;
  line-height: 1.16 !important;
}

.athar-site #athar-main h3,
.athar-site [role="dialog"] h3,
.athar-site #athar-main .related ul.products h2 {
  font-size: var(--athar-type-subsection) !important;
  line-height: 1.25 !important;
}

.athar-site #athar-main h4 {
  font-size: var(--athar-type-body) !important;
  line-height: 1.3 !important;
}

.athar-site #athar-main :is(h2, h3, h4),
.athar-site :is(.athar-site-footer, [role="dialog"]) :is(h2, h3, h4) {
  font-family: var(--athar-type-serif);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.athar-site #athar-main :is(.wc-block-components-checkout-step__title, .wc-block-cart__totals-title),
.athar-site :is(.athar-cart-surface__header, .athar-checkout-surface__header) h2 {
  font-family: var(--athar-type-sans);
  font-weight: 650;
}

:lang(ar) body.athar-site #athar-main,
:lang(ar) body.athar-site :is(.athar-site-footer, [role="dialog"]) {
  font-family: var(--athar-type-sans);
}

:lang(ar) .athar-site #athar-main :is(h1:not(.athar-cinematic-hero__title), h2, h3, h4),
:lang(ar) .athar-site :is(.athar-site-footer, [role="dialog"]) :is(h2, h3, h4),
:lang(ar) .athar-site #athar-main :is(p, label, button, input, select, textarea):not(.athar-cinematic-hero *) {
  font-family: var(--athar-type-sans) !important;
  letter-spacing: normal;
}

.athar-site #athar-main :is(.athar-site-prose, .woocommerce-Tabs-panel, .athar-site-product__facts) :is(p, li),
.athar-site #athar-main :is(.shop-masthead__title > p, .athar-about-02__body, .athar-about-02__closing, .athar-site-commerce-page .athar-site-entry p, .athar-site-catalog__masthead p, .athar-site-popular header p, .composition-guide p, .athar-gift-offer-bar, .athar-cinematic-hero__subcopy, .athar-site-empty > p:not(.athar-site-eyebrow)),
.athar-site .athar-cart-surface__header p,
.athar-site .athar-site-footer__statement p:not(.athar-site-eyebrow) {
  font-size: var(--athar-type-body);
  line-height: 1.6;
  max-inline-size: 56ch;
  text-wrap: pretty;
}

.athar-site #athar-main .athar-site-prose .wp-block-paragraph,
.athar-site #athar-main .woocommerce-product-details__short-description p {
  font-size: var(--athar-type-body);
  line-height: 1.6;
}

.athar-site #athar-main :is(.athar-site-eyebrow, .athar-cinematic-hero__eyebrow, .athar-about-option__eyebrow),
.athar-site :is(.athar-site-eyebrow, .athar-site-footer h3) {
  font-size: var(--athar-type-eyebrow) !important;
  font-weight: 650;
  line-height: 1.35;
}

.athar-site #athar-main :is(.athar-site-pricing-note, .athar-product-card__badge, .athar-product-card__classification, .athar-product-card__notes, .athar-product-card__from, .athar-product-card__price, .athar-product-card__stock, .product_meta, .woocommerce-tabs .tabs a, .athar-price-disclosure__tax, .athar-product-purchase__status, .athar-shipping-week-progress, .athar-shipping-week-shop),
.athar-site .athar-site-footer :is(address, address a, .athar-site-footer__base, .athar-site-footer__base span, .athar-site-footer__base a),
.athar-site .athar-cart-surface :is([data-athar-cart-item-volume], [data-athar-cart-item-price], .athar-cart-surface__footer-total span, .athar-shipping-week-progress),
.athar-site #athar-main :is(.wc-block-components-totals-shipping__via, .wc-block-components-text-input label, .wc-blocks-components-select__label, .athar-filter-option__count, .athar-site-product__facts dt, .woocommerce-MyAccount-navigation a, .athar-cinematic-hero__meta span, .family-ledger small, .family-ledger a > span:first-child, .athar-filter-group summary span, .composition-guide li > span, .athar-filter-rail__actions a, .athar-filter-rail__trigger span, .athar-sort span) {
  font-size: var(--athar-type-small) !important;
  line-height: 1.45;
}

.athar-site #athar-main :is(p.athar-site-pricing-note, .athar-shipping-week-progress, .athar-product-price-notice > p) {
  max-inline-size: 56ch;
}

.athar-site #athar-main :is(label, legend, .athar-filter-option__label, .wc-block-components-checkbox__label) {
  font-size: var(--athar-type-small);
}

.athar-site #athar-main :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), textarea, select) {
  font-size: var(--athar-type-body) !important;
}

.athar-site #athar-main :is(button, .button, .athar-site-button, .athar-button, .wp-element-button, .athar-cinematic-cta),
.athar-site :is(.athar-cart-surface__checkout, .athar-cart-surface__view-cart, .athar-site-text-link) {
  font-size: var(--athar-type-small) !important;
}

.athar-site .athar-cart-surface :is(button, .athar-cart-item__remove) {
  font-size: var(--athar-type-small);
}

.athar-site #athar-main :is(.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button),
.athar-site .athar-cart-surface .athar-cart-surface__checkout {
  font-size: var(--athar-type-body) !important;
}

.athar-site #athar-main .wc-block-components-checkout-place-order-button__text,
.athar-site #athar-main .athar-site-pricing-note a {
  font-size: inherit;
}

.athar-site #athar-main :is(.athar-filter-rail__close, .athar-filter-rail__actions a, .composition-guide li > span) {
  color: var(--athar-type-gold);
}

.athar-site #athar-main :is(.athar-filter-option, .athar-filter-option__label, .athar-filter-option__count),
.athar-site #athar-main .athar-filter-option:has(input:disabled) {
  color: var(--athar-type-muted);
}

.athar-site #athar-main :is(.related .add_to_cart_button, .single_add_to_cart_button):not(:disabled, .disabled) {
  color: var(--athar-type-ink);
}

.athar-site #athar-main .athar-site-empty > span[aria-hidden="true"] {
  font-size: var(--athar-type-product);
}

/* Order confirmation */
.athar-site #athar-main .athar-receipt {
  --receipt-rule: #dbd0bc;
  --receipt-paper: #faf8f3;

  color: var(--athar-type-ink);
  inline-size: min(100%, 60rem);
  margin-inline: auto;
  overflow-wrap: anywhere;
}

.athar-site #athar-main .athar-receipt__header {
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.athar-site #athar-main .athar-receipt__header h1 {
  max-inline-size: 33ch;
  margin-block: .85rem .55rem;
  text-wrap: pretty;
}

.athar-site #athar-main .athar-receipt__header p {
  color: var(--athar-type-muted);
  margin: 0;
}

.athar-receipt__success {
  display: inline-grid;
  place-items: center;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  border: 1px solid #cfb079;
  border-radius: 50%;
  background: #f4e8d2;
  color: var(--athar-type-gold);
}

.athar-receipt__overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--receipt-rule);
  background: var(--receipt-paper);
}

.athar-receipt__overview > div {
  padding: 1rem;
}

.athar-receipt__overview > div + div {
  border-inline-start: 1px solid var(--receipt-rule);
}

.athar-receipt__overview dt {
  color: var(--athar-type-muted);
  font-size: var(--athar-type-small);
}

.athar-receipt__overview dd,
.athar-receipt__totals dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.athar-receipt__next,
.athar-receipt__details,
.athar-receipt__addresses,
.athar-receipt__actions,
.athar-receipt__tracking {
  margin-block-start: clamp(1.75rem, 4vw, 3rem);
}

.athar-receipt__next {
  padding-block: 1.2rem;
  border-block: 1px solid var(--receipt-rule);
}

.athar-site #athar-main .athar-receipt :is(.athar-receipt__steps, .athar-receipt__items) {
  max-inline-size: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.athar-receipt__steps {
  counter-reset: athar-step;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: .8rem 1.3rem;
}

.athar-receipt__steps li {
  counter-increment: athar-step;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.athar-receipt__steps li::before {
  content: counter(athar-step, decimal-leading-zero);
  flex: none;
  color: var(--athar-type-gold);
  font-size: var(--athar-type-small);
  font-weight: 650;
}

.athar-receipt__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-block-size: 5rem;
  padding-block: .65rem;
  border-block-start: 1px solid var(--receipt-rule);
}

.athar-receipt__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--receipt-paper);
}

.athar-receipt__thumb img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.athar-site #athar-main .athar-receipt__item-copy p {
  margin: .12rem 0 0;
  color: var(--athar-type-muted);
  font-size: var(--athar-type-small);
}

.athar-receipt__gift {
  display: inline-block;
  margin-inline-start: .35em;
  padding-inline: .5em;
  border-radius: 1rem;
  background: #f4e8d2;
  color: var(--athar-type-gold);
  font-size: var(--athar-type-small);
  font-weight: 650;
}

.athar-receipt__amount {
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.athar-receipt__totals {
  width: min(100%, 25rem);
  margin: .7rem 0 0 auto;
  margin-inline: auto 0;
}

.athar-receipt__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .36rem;
}

.athar-receipt__totals .athar-receipt__grand-total {
  margin-block-start: .4rem;
  padding-block-start: .7rem;
  border-block-start: 1px solid var(--receipt-rule);
  font-weight: 700;
}

.athar-receipt__addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-block-start: 1.3rem;
  border-block-start: 1px solid var(--receipt-rule);
}

.athar-receipt__addresses address {
  font-style: normal;
  line-height: 1.6;
}

.athar-receipt__addresses address > span {
  display: block;
}

.athar-receipt__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.25rem;
}

.athar-site #athar-main .athar-receipt__primary {
  background: var(--athar-type-ink);
  border: 1px solid var(--athar-type-ink);
  color: #fffaf0;
  font-size: var(--athar-type-body) !important;
  letter-spacing: normal;
  text-transform: none;
}

.athar-site #athar-main .athar-receipt__primary:hover {
  background: var(--athar-type-gold);
  border-color: var(--athar-type-gold);
}

.athar-receipt__secondary {
  color: var(--athar-type-ink);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.athar-receipt__actions a:focus-visible {
  outline: 2px solid var(--athar-type-gold);
  outline-offset: 4px;
}

@media (max-width: 42rem) {
  .athar-receipt__overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .athar-receipt__overview > div:nth-child(3) {
    border-inline-start: 0;
  }

  .athar-receipt__overview > div:nth-child(n + 3) {
    border-block-start: 1px solid var(--receipt-rule);
  }

  .athar-receipt__steps,
  .athar-receipt__addresses {
    grid-template-columns: minmax(0, 1fr);
  }
}

.athar-site #athar-main :is(.related .add_to_cart_button, .single_add_to_cart_button):not(:disabled, .disabled):is(:hover, :focus-visible) {
  background: #8a5017;
  border-color: #8a5017;
  color: #fffaf0;
}

/* The result count titles its product grid without enlarging the filter toolbar. */
.athar-site #athar-main h2.athar-discovery-toolbar__count {
  font: 500 var(--athar-type-small)/1.45 var(--athar-type-sans) !important;
  letter-spacing: normal;
  margin: 0;
  text-wrap: wrap;
}

/* Give featured cards the final track geometry before carousel initialization. */
.athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-product-carousel__viewport {
  overflow-x: auto;
  scrollbar-width: none;
}

.athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-discovery-results {
  inline-size: max-content;
  max-inline-size: none;
}

.athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-product-grid {
  display: grid;
  gap: var(--athar-carousel-gap);
  grid-auto-columns: minmax(15rem, min(24vw, 22rem));
  grid-auto-flow: column;
  grid-template-columns: none;
}

.athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-product-card {
  grid-column: auto;
  grid-row: auto;
}

.athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-product-carousel__controls[hidden] {
  display: grid;
  visibility: hidden;
}

@media (max-width: 40rem) {
  .athar-site .athar-product-carousel--popular:has(.athar-product-card:nth-child(2)) .athar-product-grid {
    gap: .85rem;
    grid-auto-columns: minmax(16rem, 78vw);
  }
}

@media (width < 30rem) {
  .athar-site #athar-main h2.athar-discovery-toolbar__count {
    position: absolute;
    display: block;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* WooCommerce supplies the shipping notice after its cart data loads. */
.athar-site #athar-main [data-athar-shipping-week]:is([data-athar-shipping-week="cart"], [data-athar-shipping-week="checkout"]) {
  min-block-size: 3.8rem;
}

.athar-site #athar-main [data-athar-shipping-week][hidden] {
  display: block !important;
  visibility: hidden;
}

.athar-site #athar-main .athar-site-commerce-page [data-athar-shipping-week] p {
  font-size: var(--athar-type-small);
  line-height: 1.45;
  white-space: normal;
}

@media (min-width: 48rem) {
  .athar-site--cart #athar-main .wp-block-woocommerce-cart {
    min-block-size: 34rem;
  }
}

.athar-site #athar-main :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
  background: var(--athar-type-ink);
  border-color: var(--athar-type-ink);
  color: #fffaf0;
}

.athar-site #athar-main :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):is(:hover, :focus-visible) {
  background: var(--athar-type-gold);
  border-color: var(--athar-type-gold);
  color: #fffaf0;
}

.athar-site #athar-main :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) :is(.wc-block-components-button__text, .wc-block-components-checkout-place-order-button__text) {
  color: inherit;
}
