/* Compiled-independent mobile-first public storefront styles. Source: talaiieh/resources/css/components/public-mobile-refresh.css */
/* Talaieh storefront refresh. Scoped to the public shell; portal/admin remain untouched.
   The final component layer intentionally overrides the earlier general-purpose utilities. */

  /* The public header has one dedicated, search-free mobile composition. */
  .t-public-header {
    border-block-end: 1px solid rgb(196 153 65 / .22);
    background: rgb(255 254 251 / .96);
    box-shadow: 0 3px 17px rgb(59 43 15 / .045);
  }
  .t-public-header-inner { min-inline-size: 0; }
  .t-mobile-header-actions { display: none; }
  .t-public-desktop-actions { display: flex; align-items: center; flex: 0 0 auto; }
  .t-public-brand-name { font-weight: 850; letter-spacing: -.01em; }
  .t-public-brand:focus-visible, .t-mobile-header-action:focus-visible,
  .t-home-quicklink:focus-visible, .t-shop-filter-button:focus-visible,
  .t-home-search-link:focus-visible, .t-live-search-go:focus-visible {
    outline: 3px solid var(--color-brand-600);
    outline-offset: 2px;
  }
  .t-footer-contact-phone { display: inline-flex; align-items: center; gap: .45rem; min-block-size: 2.75rem; color: #f4d58b; font-size: .83rem; text-decoration: none; }
  .t-footer-contact-phone b { direction: ltr; unicode-bidi: isolate; }

  .t-mobile-contact-options { display: grid; gap: .65rem; }
  .t-mobile-contact-item { display: flex; min-block-size: 3.9rem; align-items: center; gap: .75rem; border: 1px solid var(--color-border); border-radius: 1rem; padding: .6rem .75rem; color: var(--color-ink-950); text-decoration: none; }
  .t-mobile-contact-item.is-call { border-color: var(--color-brand-200); background: var(--color-brand-50); }
  .t-mobile-contact-item > span { display: grid; inline-size: 2.45rem; block-size: 2.45rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; background: #fff; color: var(--color-brand-800); }
  .t-mobile-contact-item > div { flex: 1; min-inline-size: 0; }
  .t-mobile-contact-item strong, .t-mobile-contact-address strong { display: block; font-size: .87rem; font-weight: 760; }
  .t-mobile-contact-item small, .t-mobile-contact-address small { display: block; margin-block-start: .18rem; color: var(--color-neutral-600); font-size: .75rem; }
  .t-mobile-contact-address { display: flex; align-items: center; gap: .65rem; border: 1px dashed var(--color-border); border-radius: 1rem; padding: .9rem; color: var(--color-ink-900); }
  .t-mobile-contact-address > svg { flex: 0 0 auto; color: var(--color-brand-700); }
  .t-public-menu-sheet .t-public-mobile-nav { margin-block-start: .6rem; }

  /* Homepage: short greeting, three genuine navigation links, no fake search field. */
  .t-home-welcome {
    display: grid; gap: 1rem; margin-block-start: 1rem;
    border: 1px solid #eadbb8; border-radius: 1.2rem;
    background: radial-gradient(circle at 12% 8%, rgb(255 255 255 / .9), transparent 47%), linear-gradient(135deg, #fff9ea, #f9f4e9);
    padding: 1.05rem; box-shadow: 0 8px 26px rgb(92 68 18 / .045);
  }
  .t-home-welcome h1 { margin-block-start: .25rem; color: #241b0f; font-size: clamp(1.2rem, 4.2vw, 1.65rem); font-weight: 850; line-height: 1.55; }
  .t-home-welcome-copy > p:last-child { margin-block-start: .2rem; color: #665948; font-size: .79rem; line-height: 1.75; }
  .t-home-quicklinks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .t-home-quicklink { display: grid; min-inline-size: 0; min-block-size: 4.85rem; justify-items: center; align-content: center; gap: .3rem; border: 1px solid #e9ddc3; border-radius: .9rem; background: rgb(255 255 255 / .82); color: #4d3d26; font-size: .77rem; text-decoration: none; }
  .t-home-quicklink > span { display: grid; inline-size: 2.05rem; block-size: 2.05rem; place-items: center; border-radius: .68rem; background: #f8efd9; color: #875a00; }
  .t-home-quicklink strong { overflow: hidden; max-inline-size: 100%; font-weight: 770; text-overflow: ellipsis; white-space: nowrap; }
  .t-home-quicklink.is-primary { border-color: #dcb768; background: #fffdfa; color: #604000; }
  .t-home-quicklink:active { transform: translateY(1px); }
  .t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers { margin-block-start: 1.35rem; }
  .t-home-stories .t-story-avatar { inline-size: 3.3rem; block-size: 3.3rem; }
  .t-home-stories .t-story { min-inline-size: 4rem; }
  .t-section-head { gap: .5rem; min-inline-size: 0; }
  .t-section-head > div { min-inline-size: 0; }
  .t-section-kicker { font-size: .68rem; line-height: 1.55; letter-spacing: 0; }
  .t-home-categories .type-h2, .t-home-shop-section .type-h2,
  .t-home-stories .type-h2, .t-home-sellers .type-h2,
  .t-home-carousel-section .type-h2 { font-size: clamp(1.1rem, 3.9vw, 1.35rem); font-weight: 820; line-height: 1.6; }
  .t-link-more { min-block-size: 2.3rem; max-inline-size: 43%; padding-inline: .2rem; font-size: .74rem; white-space: nowrap; }
  .t-inline-empty { display: flex; grid-column: 1/-1; align-items: center; gap: .5rem; border: 1px dashed #e5d8bc; border-radius: 1rem; padding: .95rem; color: var(--color-neutral-700); font-size: .8rem; }
  .t-inline-empty > svg { flex: 0 0 auto; color: var(--color-brand-700); }

  /* Category cards use illustrative icon or real image; never a random letter. */
  .t-category-grid { gap: .65rem; }
  .t-category-card { min-inline-size: 0; border-color: #eae4d9; box-shadow: 0 4px 15px rgb(35 30 21 / .025); }
  .t-category-visual { background: linear-gradient(145deg, #fff7e1, #f5f0e6); color: #996600; }
  .t-category-visual > svg { stroke-width: 1.75; }
  .t-category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 790; }
  .t-category-card:focus-visible { outline: 3px solid var(--color-brand-600); outline-offset: 2px; }

  /* Unified product feed filters: scroll chips and a fixed-size accessible filter button. */
  .t-home-result-count { margin-block-start: .12rem; color: var(--color-neutral-600); font-size: .74rem; }
  .t-home-search-link { display: inline-flex; min-block-size: 2.45rem; flex: 0 0 auto; align-items: center; gap: .3rem; border: 1px solid #ead6a5; border-radius: .8rem; background: #fff9e8; padding-inline: .62rem; color: #815300; font-size: .76rem; font-weight: 780; text-decoration: none; }
  .t-shop-toolbar { display: flex; min-inline-size: 0; align-items: center; gap: .5rem; margin-block: .85rem .85rem; }
  .t-shop-chips { display: flex; min-inline-size: 0; flex: 1; align-items: center; gap: .4rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: inline proximity; padding-block: .15rem; }
  .t-shop-chips::-webkit-scrollbar { display: none; }
  .t-shop-chips .t-chip { min-block-size: 2.4rem; flex: 0 0 auto; scroll-snap-align: start; border-color: #e9e1d4; padding-inline: .75rem; font-size: .75rem; text-decoration: none; white-space: nowrap; }
  .t-shop-chips .t-chip.is-active { border-color: #c39b46; background: #fff3cf; box-shadow: none; color: #775100; }
  .t-shop-filter-button { position: relative; display: inline-flex; min-block-size: 2.65rem; flex: 0 0 auto; align-items: center; justify-content: center; gap: .35rem; border: 1px solid #d8be86; border-radius: .82rem; background: #fff8e9; padding-inline: .72rem; color: #6d4c12; font: inherit; font-size: .77rem; font-weight: 780; cursor: pointer; }
  .t-shop-filter-button:hover { background: #faefd5; }
  .t-shop-filter-dot { inline-size: .4rem; block-size: .4rem; border-radius: 50%; background: #9c6600; }
  .t-home-active-filters { display: flex; min-inline-size: 0; flex-wrap: wrap; gap: .4rem; margin-block: .35rem .8rem; }
  .t-home-active-filters .t-chip { min-block-size: 2rem; padding-inline: .6rem; font-size: .7rem; }
  .t-clear-filters { align-self: center; padding: .3rem; color: #8d610a; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }
  .t-home-products-result { min-inline-size: 0; }
  .t-home-first-products { display: grid; justify-items: center; gap: .65rem; border: 1px dashed #e4d5b6; border-radius: 1.05rem; background: #fffdf9; padding: 1.5rem 1rem; text-align: center; }
  .t-home-first-products-icon { display: grid; inline-size: 2.9rem; block-size: 2.9rem; place-items: center; border-radius: .9rem; background: #fff0c5; color: #936400; }
  .t-home-first-products h3 { font-size: .96rem; font-weight: 790; }
  .t-home-first-products p { margin-block-start: .25rem; color: var(--color-neutral-700); font-size: .77rem; line-height: 1.75; }
  .t-home-first-products-link { display: inline-flex; min-block-size: 2.3rem; align-items: center; gap: .35rem; color: #8c620e; font-size: .76rem; font-weight: 750; text-decoration: none; }
  .t-home-products-result .t-empty { padding: 1.5rem 1rem; }
  .t-home-carousel-section { padding-block: 1.4rem 0; }
  .t-product-carousel-track { gap: .7rem; padding-block-end: .5rem; }
  .t-product-carousel-controls { gap: .4rem; margin-block-start: .1rem; }
  .t-carousel-control { inline-size: 2.3rem; block-size: 2.3rem; }
  .t-product-carousel-item { flex-basis: clamp(9.4rem, 45vw, 14rem); }
  .t-product-card { border-color: #eae4d9; box-shadow: 0 3px 12px rgb(35 30 21 / .035); }
  .t-product-card-link:hover .t-product-title { color: #986405; }
  .t-product-title { font-weight: 735; }
  .t-product-price { font-weight: 820; }
  .t-product-review-empty { display: none; }
  .t-product-meta { overflow: hidden; }
  .t-product-media > img { object-position: center; transition: transform .2s ease; }
  .t-product-card:hover .t-product-media > img { transform: scale(1.02); }

  .t-home-soft-banner { display: flex; align-items: center; gap: .7rem; border: 1px solid #e5dcc7; border-radius: 1.1rem; background: #fff; padding: .85rem; }
  .t-home-personal { margin-block-start: 1.3rem; }
  .t-home-soft-banner-icon { display: grid; inline-size: 2.4rem; block-size: 2.4rem; flex: 0 0 auto; place-items: center; border-radius: .72rem; background: #faf0d9; color: #875c10; }
  .t-home-soft-banner > div { min-inline-size: 0; flex: 1; }
  .t-home-soft-banner h2 { font-size: .85rem; font-weight: 800; }
  .t-home-soft-banner p { margin-block-start: .15rem; color: var(--color-neutral-700); font-size: .7rem; line-height: 1.6; }
  .t-home-soft-banner a { display: inline-flex; align-items: center; gap: .15rem; color: #8b6214; font-size: .73rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
  .t-home-sell-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-start: 1.5rem; border-radius: 1.1rem; background: #262015; padding: 1.05rem; color: #fff; }
  .t-home-sell-cta p { color: #eac98a; font-size: .71rem; }
  .t-home-sell-cta h2 { margin-block-start: .15rem; font-size: .9rem; font-weight: 800; }
  .t-home-sell-cta a { display: inline-flex; min-block-size: 2.45rem; flex: 0 0 auto; align-items: center; gap: .25rem; border-radius: .72rem; background: #f9df9d; padding-inline: .65rem; color: #46300c; font-size: .73rem; font-weight: 800; text-decoration: none; }

  /* Public listings and search: short headings, one inline search, one filter sheet. */
  .t-public-page { padding-block: 1rem 2rem; }
  .t-public-page .t-breadcrumbs { font-size: .71rem; }
  .t-public-page-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block: 1.1rem .95rem; }
  .t-public-page-heading > div { min-inline-size: 0; }
  .t-public-page-heading .type-h1 { margin-block-start: .2rem; font-size: clamp(1.32rem, 4.8vw, 1.9rem); font-weight: 850; line-height: 1.5; }
  .t-public-page-heading p:last-child { margin-block-start: .25rem; color: var(--color-neutral-700); font-size: .78rem; line-height: 1.8; }
  .t-page-heading-icon { display: grid; inline-size: 3.1rem; block-size: 3.1rem; flex: 0 0 auto; place-items: center; border: 1px solid #f2e2b9; border-radius: .95rem; background: #fff6df; color: #966500; }
  .t-category-search-link { display: flex; min-block-size: 3rem; align-items: center; gap: .55rem; border: 1px solid #e8dfcb; border-radius: .9rem; background: #fffdfa; padding-inline: .85rem; color: var(--color-neutral-700); font-size: .79rem; text-decoration: none; }
  .t-category-search-link > span { min-inline-size: 0; flex: 1; }
  .t-category-search-link > svg { flex: 0 0 auto; color: #8b610e; }
  .t-page-category-grid { margin-block-start: .9rem; }
  .t-directory-search-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: .5rem; margin-block: .9rem; }
  .t-directory-search-toolbar > .t-shop-filter-button { min-block-size: 3.25rem; }
  .t-page-seller-grid { margin-block-start: .9rem; }
  .t-page-seller-grid .t-directory-seller-card { border-color: #e9e1d5; }
  .t-page-seller-grid .t-directory-seller-link { padding: .75rem; }
  .t-page-seller-grid .t-directory-seller-name { font-weight: 790; }
  .t-search-page-field { position: relative; z-index: 10; margin-block-start: .75rem; }
  .t-search-page-results-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block: 1.3rem .75rem; }
  .t-search-page-results-heading .type-h3 { font-size: 1.08rem; font-weight: 810; }
  .t-search-page-results-heading p { margin-block-start: .2rem; color: var(--color-neutral-600); font-size: .75rem; }
  .t-search-page-grid { min-inline-size: 0; }
  .t-search-page-grid .t-empty { padding-block: 1.7rem; }

  /* The search input is a real GET form, keyboard-friendly and visually unified. */
  .t-live-search { position: relative; isolation: isolate; z-index: 1; min-inline-size: 0; }
  .t-live-search:focus-within { z-index: 60; }
  .t-live-search-field { display: flex; min-inline-size: 0; min-block-size: 3.25rem; align-items: center; gap: .35rem; border: 1px solid #dfd6c5; border-radius: .95rem; background: white; padding: .32rem .42rem .32rem .65rem; box-shadow: 0 4px 18px rgb(41 33 17 / .045); transition: border-color .16s ease, box-shadow .16s ease; }
  .t-live-search-field:focus-within { border-color: #c69b47; box-shadow: 0 0 0 3px rgb(198 155 71 / .15); }
  .t-live-search-leading { display: grid; inline-size: 1.85rem; flex: 0 0 auto; place-items: center; color: #916510; }
  .t-live-search-input, .t-live-search.is-compact .t-live-search-input { min-inline-size: 0; inline-size: 1px; min-block-size: 2.4rem; flex: 1 1 auto; border: 0; border-radius: 0; outline: 0; background: transparent; padding: 0 .1rem; box-shadow: none; color: var(--color-ink-950); font-size: 1rem; }
  .t-live-search-input:focus, .t-live-search-input:focus-visible { border-color: transparent; box-shadow: none; outline: 0; }
  .t-live-search-input::placeholder { color: #778399; opacity: 1; font-size: .82rem; }
  .t-live-search-clear { position: static; display: grid; inline-size: 1.9rem; block-size: 2rem; flex: 0 0 auto; place-items: center; border: 0; border-radius: .6rem; background: #f4f0e7; color: #625849; cursor: pointer; }
  .t-live-search-go { display: inline-flex; min-block-size: 2.55rem; flex: 0 0 auto; align-items: center; gap: .2rem; border: 0; border-radius: .72rem; background: #8e620c; padding-inline: .73rem; color: white; font: inherit; font-size: .79rem; font-weight: 790; cursor: pointer; }
  .t-live-search-go:hover { background: #744d07; }
  .t-live-search.is-compact .t-live-search-field { min-block-size: 2.75rem; }
  .t-live-search.is-compact .t-live-search-input { min-block-size: 2.1rem; }
  .t-live-search-panel { z-index: 70; max-block-size: min(55dvh,26rem); border-color: #e6decd; border-radius: 1rem; box-shadow: 0 15px 40px rgb(41 33 17 / .15); }
  .t-live-search-state { min-block-size: 3rem; font-size: .78rem; line-height: 1.75; }
  .t-live-search-option { min-block-size: 3.5rem; }
  .t-live-search-all { min-block-size: 2.6rem; }

  @media (max-width: 63.999rem) {
    .t-public-header-inner { justify-content: space-between; gap: .5rem; min-block-size: 3.9rem; }
    .t-public-header-search, .t-public-desktop-actions { display: none !important; }
    .t-public-brand { min-inline-size: 0; max-inline-size: calc(100% - 11rem); gap: .4rem; }
    .t-public-brand-copy { display: block; min-inline-size: 0; }
    .t-public-brand-name { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
    .t-public-brand-tagline { display: block; overflow: hidden; margin-block-start: .08rem; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
    .t-public-brand-mark { inline-size: 2.4rem; block-size: 2.4rem; border-radius: .8rem; }
    .t-mobile-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .25rem; }
    .t-mobile-header-action { display: grid; inline-size: 2.4rem; block-size: 2.4rem; flex: 0 0 auto; place-items: center; border: 1px solid #ece5d6; border-radius: .77rem; background: #fff; color: #4c5158; font: inherit; text-decoration: none; cursor: pointer; }
    .t-mobile-header-action.is-shop { border-color: #e3c482; background: #fff4d9; color: #805402; }
    .t-mobile-header-action.is-menu { border-color: #2d291f; background: #302a1d; color: #fff; }
    .t-mobile-header-action:active { transform: scale(.96); }
    .t-public-menu-sheet .t-dialog-body { padding-inline: .85rem; }
    .t-public-footer { margin-block-start: 2.5rem; }
  }
  @media (max-width: 39.999rem) {
    .t-home-categories .t-category-grid, .t-page-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .t-home-categories .t-category-grid:has(> :only-child), .t-page-category-grid:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
    .t-home-categories .t-category-card, .t-page-category-grid .t-category-card { grid-template-columns: 2.65rem minmax(0,1fr); min-block-size: 4.4rem; gap: .45rem; border-radius: .9rem; padding: .5rem; }
    .t-home-categories .t-category-card > svg, .t-page-category-grid .t-category-card > svg { display: none; }
    .t-home-categories .t-category-visual, .t-page-category-grid .t-category-visual { inline-size: 2.65rem; block-size: 2.65rem; border-radius: .72rem; }
    .t-home-categories .t-category-name, .t-page-category-grid .t-category-name { font-size: .78rem; }
    .t-home-categories .t-category-copy, .t-page-category-grid .t-category-copy { font-size: .67rem; }
    .t-market-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
    .t-market-product-grid .t-product-card-link { display: flex; min-block-size: 0; flex-direction: column; }
    .t-market-product-grid .t-product-media { aspect-ratio: 5/4; }
    .t-market-product-grid .t-product-body { min-block-size: 0; flex: 1; padding: .6rem .58rem .65rem; }
    .t-product-title { font-size: .79rem; line-height: 1.75; }
    .t-product-price { margin-block-start: .45rem; font-size: .85rem; }
    .t-product-meta { font-size: .67rem; }
    .t-product-discount { font-size: .67rem; }
    .t-product-carousel-item .t-product-card-link { display: flex; flex-direction: column; min-block-size: 0; }
    .t-product-carousel-item .t-product-media { aspect-ratio: 5/4; }
    .t-product-carousel-item .t-product-body { min-block-size: 0; padding: .6rem; }
    .t-directory-seller-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
    .t-home-soft-banner { flex-wrap: wrap; }
    .t-home-soft-banner a { margin-inline-start: auto; }
    .t-home-sell-cta h2 { font-size: .77rem; }
    .t-home-sell-cta a { font-size: .68rem; }
    .t-footer-summary { margin-block-start: .6rem; }
    .t-search-page-field .t-live-search-field { min-block-size: 3.45rem; }
    .t-public-page .t-empty { padding: 1.6rem 1rem; }
  }
  @media (max-width: 22.999rem) {
    .t-public-header-inner { gap: .2rem; }
    .t-mobile-header-actions { gap: .15rem; }
    .t-mobile-header-action { inline-size: 2.08rem; block-size: 2.25rem; border-radius: .65rem; }
    .t-public-brand { max-inline-size: calc(100% - 9rem); }
    .t-public-brand-mark { inline-size: 2.1rem; block-size: 2.1rem; }
    .t-public-brand-name { font-size: .76rem; }
    .t-public-brand-tagline { display: none; }
    .t-market-product-grid { grid-template-columns: 1fr; }
    .t-market-product-grid .t-product-card-link { display: grid; grid-template-columns: 6.2rem minmax(0,1fr); }
    .t-market-product-grid .t-product-media { aspect-ratio: 1; }
    .t-home-sell-cta { flex-wrap: wrap; }
    .t-home-sell-cta a { margin-inline-start: auto; }
    .t-directory-search-toolbar { grid-template-columns: minmax(0,1fr); }
    .t-directory-search-toolbar > .t-shop-filter-button { justify-self: end; min-block-size: 2.5rem; }
  }
  @media (min-width: 40rem) {
    .t-home-welcome { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem; }
    .t-home-quicklinks { min-inline-size: 18rem; }
    .t-home-quicklink { min-block-size: 5.5rem; }
    .t-home-categories, .t-home-shop-section, .t-home-stories { margin-block-start: 2rem; }
    .t-public-page { padding-block-start: 1.7rem; }
    .t-shop-toolbar { margin-block: 1rem; }
    .t-home-first-products { padding-block: 2.2rem; }
  }
  @media (min-width: 64rem) {
    .t-mobile-header-actions { display: none; }
    .t-public-header-search { display: flex; }
    .t-public-desktop-actions { display: flex; }
    .t-home-shop-section .t-market-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .t-home-welcome { margin-block-start: 1.75rem; }
    .t-home-welcome h1 { font-size: 1.8rem; }
    .t-public-header-inner { gap: .85rem; }
    .t-home-quicklinks { gap: .75rem; }
    .t-home-quicklink { inline-size: 7.5rem; }
    .t-public-page-heading .type-h1 { font-size: 1.85rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .t-product-media > img, .t-live-search-field, .t-home-quicklink { transition: none; }
    .t-product-card:hover .t-product-media > img { transform: none; }
  }

/* Category detail and mobile touch usability. */
.t-category-detail-top { display: grid; gap: .8rem; margin-block: 1.05rem .75rem; }
.t-category-detail-top h1 { font-size: clamp(1.25rem,4.5vw,1.8rem); line-height: 1.5; }
.t-category-detail-description { margin-block-start: .25rem; color: var(--color-neutral-700); font-size: .8rem; line-height: 1.75; }
.t-category-detail-search { min-inline-size: 0; }
.t-category-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-block: 1rem .8rem; }
.t-category-detail-result { min-inline-size: 0; }
.t-category-detail-page .t-category-strip { margin-block-start: .85rem; }
.t-category-detail-page .t-market-product-grid { margin-block-start: .7rem; }
.t-category-detail-page .t-shop-filter-button { min-block-size: 2.4rem; }
.t-product-card .t-product-meta { overflow-wrap: anywhere; }
.t-public-page, .t-container { min-inline-size: 0; }
@media (min-width: 64rem) {
  .t-category-detail-top { grid-template-columns: minmax(0,1fr) minmax(19rem,32rem); align-items: end; gap: 2rem; }
}
@media (max-width: 63.999rem) {
  .t-mobile-header-actions { display: flex; }
  .t-public-header-search { display: none !important; }
}
@media (max-width: 22.999rem) {
  .t-public-brand-copy { display: block; }
}
.t-live-search-input::-webkit-search-cancel-button { appearance: none; }
@media (max-width: 63.999rem) {
  .t-mobile-header-action { min-block-size: 2.6rem; }
}

/* Stage 19 — home RTL headings and compact public-page/footer transition.
 * Only public storefront sections are affected; portal tables, controls and
 * deliberately centered navigation tiles keep their own alignment. */
@media (max-width: 39.999rem) {
  :is(.t-home-welcome-copy, .t-home-soft-banner > div, .t-home-sell-cta > div),
  :is(.t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers, .t-home-carousel-section) .t-section-head,
  :is(.t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers, .t-home-carousel-section) .t-section-head > div {
    direction: rtl;
    text-align: right;
  }
  :is(.t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers, .t-home-carousel-section) .t-section-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .55rem;
  }
  :is(.t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers, .t-home-carousel-section) .t-section-head > :first-child {
    min-inline-size: 0;
    margin-inline-end: auto;
    text-align: right;
  }
  :is(.t-home-stories, .t-home-categories, .t-home-shop-section, .t-home-sellers, .t-home-carousel-section)
    :is(.t-section-kicker, .type-h2, .t-home-result-count),
  .t-home-welcome-copy :is(h1, p),
  .t-home-soft-banner :is(h2, p),
  .t-home-sell-cta :is(h2, p) {
    direction: rtl;
    text-align: right;
  }
  /* The footer has its own internal spacing. An external 2.5rem margin
     creates an unnecessary blank strip on every narrow public page. */
  .t-public-footer { margin-block-start: 0; }
  /* Fixed purchase/checkout bars need a safe zone at the *end of the footer*,
     not between the last content section and the footer. */
  body:has(.t-pdp-mobile-buy, .t-commerce-mobile-bar) .t-public-footer .t-footer-shell {
    padding-block-end: calc(6rem + env(safe-area-inset-bottom, 0px));
  }
}
