/* ==========================================================================
   Trendy Box Product UI  v2.4.0  —  Shop / category pages + My account + notices
   Same luxury language as the product page: square edges, hairlines, serif
   headings, spaced uppercase labels. Logical properties are used everywhere,
   so RTL (Arabic) mirrors automatically.
   Scopes:  body.tb-woo      every WooCommerce page (notices, breadcrumb)
            body.tb-archive  shop + category / tag archives
            body.tb-account  My account
   ========================================================================== */

body.tb-woo {
  --tb-ink: #111111;
  --tb-text: #3b3835;
  --tb-muted: #6f6b67;
  --tb-soft: #9a948e;
  --tb-line: #e8e5e1;
  --tb-line-strong: #cfc8c0;
  --tb-bg: #f7f5f2;
  --tb-red: #b3121c;
  --tb-star: #b8935a;
  --tb-serif: Georgia, 'Times New Roman', serif;
  --tb-label: 11px;
  --tb-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.rtl.tb-woo { --tb-serif: inherit; }

/* ==========================================================================
   Notices (all WooCommerce pages, including the single product page)
   ========================================================================== */
.tb-woo .woocommerce-notices-wrapper:empty { display: none; }
.tb-woo .woocommerce-message, .tb-woo .woocommerce-info, .tb-woo .woocommerce-error {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  margin: 0 0 24px; padding: 16px 20px; border: 0; border-inline-start: 2px solid var(--tb-ink); border-radius: 0;
  background: var(--tb-bg); color: var(--tb-text); font-size: 13px; line-height: 1.7; list-style: none; box-shadow: none;
}
.tb-woo .woocommerce-error { display: block; border-inline-start-color: var(--tb-red); }
.tb-woo .woocommerce-error li { margin: 0; padding: 0; }
.tb-woo .woocommerce-message::before, .tb-woo .woocommerce-info::before, .tb-woo .woocommerce-error::before { display: none; }
.tb-woo .woocommerce-message .button, .tb-woo .woocommerce-info .button {
  order: 2; float: none; margin: 0; margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 10px 22px; border: 1px solid var(--tb-ink) !important; border-radius: 0 !important; background: transparent !important; color: var(--tb-ink) !important;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; box-shadow: none !important; transition: background-color .25s, color .25s;
}
.tb-woo .woocommerce-message .button:hover, .tb-woo .woocommerce-info .button:hover { background: var(--tb-ink) !important; color: #fff !important; }
.tb-woo .woocommerce-message a:not(.button), .tb-woo .woocommerce-info a:not(.button), .tb-woo .woocommerce-error a { color: var(--tb-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.tb-woo .woocommerce-breadcrumb { margin: 0 0 26px; padding: 0; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-soft); }
.tb-woo .woocommerce-breadcrumb a { color: var(--tb-muted); text-decoration: none; transition: color .2s; }
.tb-woo .woocommerce-breadcrumb a:hover { color: var(--tb-ink); }

/* ==========================================================================
   Shop + category archives  (v2.4: filter drawer, category pills, product card, pagination)
   ========================================================================== */
.tb-woo .tb-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tb-archive .woocommerce-products-header { margin: 0 0 30px; text-align: start; }
.tb-archive .woocommerce-products-header__title, .tb-archive h1.page-title {
  margin: 0 0 12px; font-family: var(--tb-serif); font-size: 38px; font-weight: 400; line-height: 1.12; letter-spacing: 0; text-transform: none; color: var(--tb-ink);
}
.rtl.tb-archive .woocommerce-products-header__title, .rtl.tb-archive h1.page-title { font-weight: 600; }
.tb-archive .term-description, .tb-archive .woocommerce-products-header .page-description { max-width: 680px; font-size: 14px; line-height: 1.85; color: var(--tb-muted); }
.tb-archive .term-description p { margin: 0 0 10px; }

/* ---- Category pills ---- */
.tb-cat-pills { display: flex; gap: 10px; margin: 26px 0 0; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tb-cat-pills::-webkit-scrollbar { display: none; }
.tb-cat-pills a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 9px 22px; border: 1px solid var(--tb-line-strong); background: #fff; color: var(--tb-ink);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
}
.tb-cat-pills a:hover { border-color: var(--tb-ink); }
.tb-cat-pills a.is-active { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; }

/* ---- Toolbar: filter button + result count  |  sorting ---- */
.tb-archive .tb-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; clear: both; margin: 0 0 24px; padding: 14px 0; border-bottom: 1px solid var(--tb-line);
}
.tb-archive .tb-toolbar-start { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tb-archive .tb-toolbar .woocommerce-result-count { float: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .04em; color: var(--tb-muted); }
.tb-archive .tb-toolbar .woocommerce-ordering { float: none; margin: 0; }
.tb-archive .woocommerce-result-count { float: none; }
.tb-archive .woocommerce-ordering { float: none; margin: 0; }
.tb-archive .woocommerce-ordering select {
  -webkit-appearance: none; appearance: none; min-width: 210px; min-height: 46px; margin: 0; padding: 10px 44px 10px 16px; border: 1px solid var(--tb-line-strong); border-radius: 0; box-shadow: none;
  background: #fff var(--tb-chevron) no-repeat right 14px center / 16px; font-size: 12px; letter-spacing: .04em; color: var(--tb-ink); cursor: pointer;
}
.rtl.tb-archive .woocommerce-ordering select { padding: 10px 16px 10px 44px; background-position: left 14px center; }
.tb-archive .woocommerce-ordering select:focus { outline: 0; border-color: var(--tb-ink); }

.tb-filter-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin: 0; padding: 0 22px; border: 1px solid var(--tb-ink); border-radius: 0; background: transparent; color: var(--tb-ink);
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; box-shadow: none; transition: background-color .2s, color .2s;
}
.tb-filter-toggle:hover, .tb-filter-toggle:focus-visible { background: var(--tb-ink); color: #fff; }
.tb-filter-toggle .tb-icon { width: 18px; height: 18px; flex: none; }
.tb-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tb-ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.tb-filter-toggle:hover .tb-filter-count, .tb-filter-toggle:focus-visible .tb-filter-count { background: #fff; color: var(--tb-ink); }

/* ---- Active filter chips ---- */
.tb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 28px; }
.tb-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--tb-line); background: var(--tb-bg); color: var(--tb-ink); font-size: 12px; line-height: 1.2; text-decoration: none; transition: border-color .2s; }
.tb-chip:hover { border-color: var(--tb-ink); }
.tb-chip .tb-icon { width: 12px; height: 12px; flex: none; }
.tb-chips-clear { margin-inline-start: 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-muted); text-decoration: underline; text-underline-offset: 4px; }
.tb-chips-clear:hover { color: var(--tb-ink); }

/* ---- Product grid ---- */
.tb-archive ul.products:not(.elementor-grid) {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; clear: both; margin: 0; padding: 0; list-style: none;
}
.tb-archive ul.products.columns-2:not(.elementor-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-archive ul.products.columns-3:not(.elementor-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-archive ul.products.columns-5:not(.elementor-grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tb-archive ul.products.columns-6:not(.elementor-grid) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tb-archive ul.products:not(.elementor-grid)::before, .tb-archive ul.products:not(.elementor-grid)::after { display: none !important; content: none; }
.tb-archive ul.products:not(.elementor-grid) li.product {
  position: relative; display: flex; flex-direction: column; float: none; width: auto; max-width: none; margin: 0; padding: 0; background: transparent; text-align: start; min-width: 0;
}

/* ---- Product card (plugin template) ---- */
.tb-lc, .tb-lc *, .tb-toolbar, .tb-toolbar *, .tb-cat-pills, .tb-cat-pills *, .tb-chips, .tb-chips * { box-sizing: border-box; }
.tb-lc { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tb-lc-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; text-decoration: none;
  background: linear-gradient(145deg, #f3f0ec, #e4ddd5);
}
/* The whole product is visible: contain (never cover / crop), soft padding, blends with the gradient. */
.tb-lc-media img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 7%; box-sizing: border-box; aspect-ratio: auto;
  object-fit: contain; object-position: center; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; transition: opacity .45s ease, transform .7s ease;
}
.tb-lc-media .tb-lc-alt { opacity: 0; }
.tb-lc-media.has-alt:hover img:not(.tb-lc-alt), .tb-lc-media.has-alt:focus-visible img:not(.tb-lc-alt) { opacity: 0; }
.tb-lc-media.has-alt:hover .tb-lc-alt, .tb-lc-media.has-alt:focus-visible .tb-lc-alt { opacity: 1; }
.tb-lc-media:not(.has-alt):hover img { transform: scale(1.04); }
.tb-lc.is-out img, .tb-lc-item.is-out .tb-lc-media img { filter: grayscale(.35); }
.tb-lc-item.is-out .tb-lc-media img:not(.tb-lc-alt) { opacity: .6; }
.tb-lc-badges { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.tb-lc-badge { padding: 6px 11px; border-radius: 2px; background: var(--tb-ink); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .14em; direction: ltr; unicode-bidi: isolate; }
.tb-lc-badge.is-out { background: #fff; color: var(--tb-ink); border: 1px solid var(--tb-line-strong); direction: inherit; }

.tb-lc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.tb-lc-cat { display: block; margin: 0 0 7px; font-size: 10px; font-weight: 500; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: var(--tb-soft); }
.tb-archive .tb-lc-title, .tb-archive ul.products li.product .tb-lc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0 0 8px; padding: 0;
  font-family: var(--tb-serif); font-size: 17px; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--tb-ink);
}
.tb-lc-title a { color: inherit; text-decoration: none; }
.tb-lc-item:hover .tb-lc-title a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.rtl .tb-lc-title { font-weight: 600; font-size: 15.5px; }
.tb-lc-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; color: var(--tb-muted); }
.tb-lc-rating .tb-stars .tb-icon { width: 12px; height: 12px; }
.tb-lc-price, .tb-archive ul.products li.product .tb-lc-price { display: block; margin: 0 0 16px; font-size: 14px; letter-spacing: .02em; color: var(--tb-text); }
.tb-lc-price del { margin-inline-end: 8px; color: var(--tb-soft); font-size: .88em; opacity: 1; }
.tb-lc-price ins { text-decoration: none; font-weight: 600; color: var(--tb-ink); background: transparent; }
.tb-lc-price .woocommerce-Price-amount { white-space: nowrap; }

/* ---- Cards from other templates / Elementor product grids (kept consistent) ---- */
.tb-archive ul.products li.product a.woocommerce-LoopProduct-link, .tb-archive ul.products li.product > a:first-child { display: block; text-decoration: none; color: inherit; }
.tb-archive ul.products li.product:not(.tb-lc-item) img {
  display: block; width: 100%; height: auto; margin: 0; aspect-ratio: 4 / 5; object-fit: contain; padding: 6%; box-sizing: border-box; mix-blend-mode: multiply;
  background: linear-gradient(145deg, #f3f0ec, #e4ddd5); border-radius: 0; box-shadow: none; transition: opacity .35s;
}
.tb-archive ul.products li.product:not(.tb-lc-item) .woocommerce-loop-product__title, .tb-archive ul.products li.product:not(.tb-lc-item) h2, .tb-archive ul.products li.product:not(.tb-lc-item) h3 {
  margin: 18px 0 6px; padding: 0; font-family: var(--tb-serif); font-size: 17px; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--tb-ink);
}
.tb-archive ul.products li.product:not(.tb-lc-item) .price { display: block; margin: 0 0 14px; font-size: 14px; color: var(--tb-text); }
.tb-archive ul.products li.product .star-rating { margin: 0 0 8px; font-size: 11px; color: var(--tb-star); }
.tb-archive ul.products li.product .onsale {
  position: absolute; z-index: 2; top: 14px; left: auto; right: auto; inset-inline-start: 14px; min-width: 0; min-height: 0; margin: 0;
  padding: 6px 11px; border-radius: 2px; background: var(--tb-ink); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase;
}

/* ---- Add to bag button on every card ---- */
.tb-archive ul.products li.product .button, .tb-archive ul.products li.product .added_to_cart {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 46px; margin: auto 0 0; padding: 12px 10px;
  border: 1px solid var(--tb-ink) !important; border-radius: 0 !important; background: transparent !important; color: var(--tb-ink) !important;
  font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; text-align: center; text-decoration: none; box-shadow: none !important; transition: background-color .25s, color .25s;
}
.tb-archive ul.products li.product .button:hover, .tb-archive ul.products li.product .button:focus-visible { background: var(--tb-ink) !important; color: #fff !important; }
.tb-archive ul.products li.product .button.loading { opacity: .55; pointer-events: none; }
.tb-archive ul.products li.product .button.loading::after { display: none; }
.tb-archive ul.products li.product .button.added { display: none !important; }
.tb-archive ul.products li.product .added_to_cart { margin-top: 10px; border-color: transparent !important; min-height: 32px; text-decoration: underline; text-underline-offset: 5px; }
.tb-archive ul.products li.product .added_to_cart:hover { background: transparent !important; color: var(--tb-muted) !important; }
.tb-archive ul.products li.product .woocommerce-Price-amount { white-space: nowrap; }

/* ---- Pagination ---- */
.tb-woo nav.woocommerce-pagination { margin: 64px 0 10px; text-align: center; }
.tb-woo nav.woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.tb-woo nav.woocommerce-pagination ul.page-numbers li { float: none; margin: 0; padding: 0; border: 0; overflow: visible; }
.tb-woo nav.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; margin: 0; padding: 0 14px;
  border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; color: var(--tb-ink); font-size: 13px; font-weight: 500; letter-spacing: .04em; line-height: 1; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.tb-woo nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--tb-ink); background: var(--tb-bg); }
.tb-woo nav.woocommerce-pagination ul.page-numbers li .page-numbers.current { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; }
.tb-woo nav.woocommerce-pagination ul.page-numbers li .page-numbers.dots { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.tb-woo nav.woocommerce-pagination .tb-icon { width: 18px; height: 18px; }
[dir="rtl"] .tb-woo nav.woocommerce-pagination .tb-icon, .rtl.tb-woo nav.woocommerce-pagination .tb-icon { transform: scaleX(-1); }

/* ---- Empty category / no results ---- */
.tb-archive .woocommerce-no-products-found { margin-top: 12px; }

/* ==========================================================================
   Filter drawer (moved to <body> by archive-ui.js)
   ========================================================================== */
html.tb-lock { overflow: hidden; }
.tb-filter-overlay { position: fixed; inset: 0; z-index: 99998; background: rgba(17, 17, 17, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.tb-filter-drawer {
  --tb-ink: #111111; --tb-text: #3b3835; --tb-muted: #6f6b67; --tb-soft: #9a948e; --tb-line: #e8e5e1; --tb-line-strong: #cfc8c0; --tb-bg: #f7f5f2; --tb-star: #b8935a;
  --tb-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  position: fixed; z-index: 99999; inset-block: 0; inset-inline-start: 0; width: min(420px, 92vw); max-width: 100%; display: flex; flex-direction: column; background: #fff; color: var(--tb-text);
  box-shadow: 0 0 60px rgba(0, 0, 0, .18); transform: translateX(-102%); visibility: hidden; transition: transform .35s ease, visibility .35s ease; box-sizing: border-box;
}
[dir="rtl"] .tb-filter-drawer { transform: translateX(102%); }
html.tb-filter-open .tb-filter-drawer { transform: none; visibility: visible; }
html.tb-filter-open .tb-filter-overlay { opacity: 1; visibility: visible; }
.tb-filter-drawer *, .tb-filter-drawer *::before, .tb-filter-drawer *::after { box-sizing: border-box; }
.tb-filter-form { display: flex; flex-direction: column; height: 100%; min-height: 0; margin: 0; }
.tb-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--tb-line); }
.tb-filter-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--tb-ink); }
[dir="rtl"] .tb-filter-head h2 { font-family: inherit; font-weight: 600; font-size: 20px; }
.tb-filter-x { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid var(--tb-line); border-radius: 0; background: #fff; color: var(--tb-ink); cursor: pointer; box-shadow: none; transition: border-color .2s; }
.tb-filter-x:hover { border-color: var(--tb-ink); }
.tb-filter-x .tb-icon { width: 18px; height: 18px; }
.tb-filter-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 26px 24px; }

.tb-fgroup { border-bottom: 1px solid var(--tb-line); }
.tb-fgroup > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; list-style: none; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tb-ink);
}
.tb-fgroup > summary::-webkit-details-marker { display: none; }
.tb-fgroup > summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--tb-chevron) center / contain no-repeat; transition: transform .25s; }
.tb-fgroup[open] > summary::after { transform: rotate(180deg); }
.tb-fgroup-body { padding: 0 0 18px; }

.tb-fopt { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0; font-size: 14px; line-height: 1.4; color: var(--tb-text); cursor: pointer; }
.tb-fopt.depth-1 { padding-inline-start: 20px; } .tb-fopt.depth-2 { padding-inline-start: 40px; } .tb-fopt.depth-3 { padding-inline-start: 56px; }
.tb-fopt input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.tb-fopt input[type="radio"] { border-radius: 50%; }
.tb-fopt input:hover { border-color: var(--tb-ink); }
.tb-fopt input:checked { background: var(--tb-ink); border-color: var(--tb-ink); }
.tb-fopt input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tb-fopt input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.tb-fopt input:focus-visible { outline: 2px solid var(--tb-ink); outline-offset: 2px; }
.tb-fopt-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tb-fopt-note { font-size: 12px; color: var(--tb-muted); }
.tb-fopt .tb-stars .tb-icon { width: 13px; height: 13px; }
.tb-fcount { margin-inline-start: auto; font-size: 12px; color: var(--tb-soft); }

.tb-range { position: relative; height: 26px; margin: 2px 4px 14px; direction: ltr; }
[dir="rtl"] .tb-range { direction: rtl; }
.tb-range-track { position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--tb-line-strong); transform: translateY(-50%); }
.tb-range-fill { position: absolute; top: 0; bottom: 0; background: var(--tb-ink); }
.tb-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tb-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 26px; }
.tb-range input[type="range"]::-moz-range-track { background: transparent; }
.tb-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 3px; border: 2px solid var(--tb-ink); border-radius: 50%; background: #fff; cursor: grab; }
.tb-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border: 2px solid var(--tb-ink); border-radius: 50%; background: #fff; cursor: grab; }
.tb-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--tb-ink); outline-offset: 2px; }

.tb-price-fields { display: flex; gap: 12px; }
.tb-price-fields label { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-muted); }
.tb-money { position: relative; display: block; }
.tb-money::after { content: attr(data-symbol); position: absolute; inset-block: 0; inset-inline-end: 12px; display: flex; align-items: center; font-size: 11px; letter-spacing: 0; color: var(--tb-soft); pointer-events: none; }
.tb-price-fields input { display: block; width: 100%; height: 48px; min-height: 0; margin: 0; padding: 0 44px 0 14px; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; box-shadow: none; font-size: 16px; letter-spacing: 0; color: var(--tb-ink); -moz-appearance: textfield; appearance: textfield; }
[dir="rtl"] .tb-price-fields input { padding: 0 14px 0 44px; }
.tb-price-fields input::-webkit-outer-spin-button, .tb-price-fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-price-fields input:focus { outline: 0; border-color: var(--tb-ink); }

.tb-filter-foot { display: flex; gap: 12px; padding: 16px 26px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--tb-line); background: #fff; }
.tb-filter-apply, .tb-filter-clear {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; padding: 0 22px; border: 1px solid var(--tb-ink); border-radius: 0; box-shadow: none;
  font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s;
}
.tb-filter-apply { flex: 1; background: var(--tb-ink); color: #fff; }
.tb-filter-apply:hover { opacity: .86; }
.tb-filter-apply.is-loading { opacity: .6; pointer-events: none; }
.tb-filter-clear { background: transparent; color: var(--tb-ink); border-color: var(--tb-line-strong); }
.tb-filter-clear:hover { border-color: var(--tb-ink); }

/* ---- Arabic / RTL: joined letters must not be spaced or upper-cased ---- */
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) :is(.tb-filter-toggle, .tb-chips-clear, .tb-cat-pills a, .tb-lc-cat, .tb-lc-badge, .tb-fgroup > summary, .tb-price-fields label, .tb-filter-apply, .tb-filter-clear, .tb-lc-item .button, .tb-lc-item .added_to_cart) { letter-spacing: 0; text-transform: none; }
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) :is(.tb-lc-item .button, .tb-lc-item .added_to_cart, .tb-filter-apply, .tb-filter-clear) { font-size: 12px; font-weight: 600; }
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) .tb-archive .woocommerce-ordering select, .rtl.tb-archive .woocommerce-ordering select { letter-spacing: 0; }

/* ==========================================================================
   My account
   ========================================================================== */
.tb-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 64px; align-items: start;
}
.tb-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.tb-account .woocommerce-MyAccount-navigation { float: none; width: auto; grid-column: 1; }
.tb-account .woocommerce-MyAccount-content { float: none; width: auto; grid-column: 2; min-width: 0; }

.tb-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tb-ink); }
.tb-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--tb-line); list-style: none; }
.tb-account .woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; padding-inline-start: 14px; border-inline-start: 2px solid transparent;
  font-size: var(--tb-label); font-weight: 500; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--tb-muted); transition: color .2s, padding .25s, border-color .2s;
}
.tb-account .woocommerce-MyAccount-navigation li a::after {
  content: ''; flex: none; width: 14px; height: 14px; opacity: 0; transition: opacity .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
[dir="rtl"] .tb-account .woocommerce-MyAccount-navigation li a::after { transform: scaleX(-1); }
.tb-account .woocommerce-MyAccount-navigation li a:hover { color: var(--tb-ink); padding-inline-start: 18px; }
.tb-account .woocommerce-MyAccount-navigation li a:hover::after { opacity: 1; }
.tb-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--tb-ink); font-weight: 600; border-inline-start-color: var(--tb-ink); }
.tb-account .woocommerce-MyAccount-navigation li.is-active a::after { opacity: 1; }
.tb-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--tb-soft); }

.tb-account .woocommerce-MyAccount-content > p { margin: 0 0 18px; font-size: 14px; line-height: 1.85; color: var(--tb-text); }
.tb-account .woocommerce-MyAccount-content > p:first-of-type:not(.woocommerce-info) { font-family: var(--tb-serif); font-size: 20px; line-height: 1.5; color: var(--tb-ink); }
.tb-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button) { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tb-account .woocommerce-MyAccount-content h2, .tb-account .woocommerce-MyAccount-content h3, .tb-account .woocommerce-column__title, .tb-account .woocommerce-Address-title h2, .tb-account .woocommerce-Address-title h3 {
  margin: 0 0 20px; font-family: var(--tb-serif); font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--tb-ink);
}
.rtl.tb-account .woocommerce-MyAccount-content h2, .rtl.tb-account .woocommerce-MyAccount-content h3 { font-weight: 600; }

/* Orders table */
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover { text-decoration: underline; }
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-muted); }
.tb-account table.woocommerce-orders-table td { font-size: 13px; }
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { white-space: nowrap; text-align: end; }
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button { margin-inline-start: 8px; }
.tb-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:first-child { margin-inline-start: 0; }
.tb-account .woocommerce-orders-table .button, .tb-account .woocommerce-MyAccount-content .button:not(.woocommerce-Button), .tb-account .woocommerce-pagination .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 10px 20px; border: 1px solid var(--tb-ink) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--tb-ink) !important; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; text-decoration: none !important; box-shadow: none !important; transition: background-color .25s, color .25s;
}
.tb-account .woocommerce-orders-table .button:hover, .tb-account .woocommerce-MyAccount-content .button:not(.woocommerce-Button):hover { background: var(--tb-ink) !important; color: #fff !important; }
.tb-account .woocommerce-MyAccount-content .order-again .button { background: var(--tb-ink) !important; color: #fff !important; min-height: 50px; padding-inline: 28px; }
.tb-account .woocommerce-MyAccount-content .order-again .button:hover { opacity: .86; }
.tb-account .woocommerce-MyAccount-content mark { background: transparent; color: var(--tb-ink); font-weight: 600; }
.tb-account .woocommerce-MyAccount-content mark.order-status { padding: 3px 9px; background: var(--tb-bg); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Addresses (also the two address columns on the view-order page) */
.tb-account .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tb-account .woocommerce-columns--addresses::before, .tb-account .woocommerce-columns--addresses::after { display: none; }
.tb-account .woocommerce-columns--addresses .woocommerce-column, .tb-account .woocommerce-columns--addresses .col-1, .tb-account .woocommerce-columns--addresses .col-2 { float: none; width: auto; max-width: none; }
.tb-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.tb-account .woocommerce-Addresses::before, .tb-account .woocommerce-Addresses::after { display: none; }
.tb-account .woocommerce-Addresses .woocommerce-Address, .tb-account .woocommerce-Addresses .u-column1, .tb-account .woocommerce-Addresses .u-column2,
.tb-account .woocommerce-Addresses .col-1, .tb-account .woocommerce-Addresses .col-2 { float: none; width: auto; max-width: none; }
.tb-account .woocommerce-Address { padding: 28px; border: 1px solid var(--tb-line); background: #fff; }
.tb-account .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.tb-account .woocommerce-Address-title h2, .tb-account .woocommerce-Address-title h3 { margin: 0; font-size: 21px; }
.tb-account .woocommerce-Address-title a.edit { float: none; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tb-account .woocommerce-Address address { font-style: normal; font-size: 14px; line-height: 1.9; color: var(--tb-text); }

/* Edit address / account details forms */
.tb-account .woocommerce-address-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tb-account .woocommerce-address-fields__field-wrapper .form-row { flex: 1 1 100%; float: none; width: 100%; }
.tb-account .woocommerce-address-fields__field-wrapper .form-row-first, .tb-account .woocommerce-address-fields__field-wrapper .form-row-last { flex: 1 1 calc(50% - 8px); width: calc(50% - 8px); }
.tb-account .woocommerce-EditAccountForm .form-row-first, .tb-account .woocommerce-EditAccountForm .form-row-last { float: none; width: 100%; }
.tb-account .woocommerce-EditAccountForm fieldset { margin: 34px 0 10px; padding: 26px; border: 1px solid var(--tb-line); border-radius: 0; }
.tb-account .woocommerce-EditAccountForm fieldset legend { padding: 0 12px; font-family: var(--tb-serif); font-size: 20px; font-weight: 400; color: var(--tb-ink); }
.tb-account .woocommerce-EditAccountForm em, .tb-account .woocommerce-EditAccountForm span em { display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: var(--tb-soft); }
.tb-account input[type="checkbox"], .tb-account input[type="radio"] { accent-color: var(--tb-ink); }

/* Main buttons: solid black */
.tb-account .woocommerce-Button, .tb-account button[type="submit"].button, .tb-account .woocommerce-form-login__submit, .tb-account .woocommerce-form-register__submit,
.tb-account .woocommerce-address-fields .button, .tb-account .woocommerce-EditAccountForm button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin: 0; padding: 13px 34px; border: 1px solid var(--tb-ink) !important; border-radius: 0 !important;
  background: var(--tb-ink) !important; color: #fff !important; font-size: var(--tb-label); font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; box-shadow: none !important; transition: opacity .25s;
}
.tb-account .woocommerce-Button:hover, .tb-account button[type="submit"].button:hover, .tb-account .woocommerce-form-login__submit:hover, .tb-account .woocommerce-form-register__submit:hover { opacity: .86; }
.tb-account .woocommerce-form-login__submit, .tb-account .woocommerce-form-register__submit { width: 100%; }

/* Login / register / lost password */
.tb-account #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.tb-account #customer_login::before, .tb-account #customer_login::after { display: none; }
.tb-account #customer_login .u-column1, .tb-account #customer_login .u-column2, .tb-account #customer_login .col-1, .tb-account #customer_login .col-2 { float: none; width: auto; max-width: none; margin: 0; }
.tb-account #customer_login h2 { margin: 0 0 20px; font-family: var(--tb-serif); font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--tb-ink); }
.rtl.tb-account #customer_login h2 { font-weight: 600; }
.tb-account form.woocommerce-form-login, .tb-account form.woocommerce-form-register, .tb-account form.woocommerce-ResetPassword, .tb-account form.lost_reset_password {
  margin: 0; padding: 36px; border: 1px solid var(--tb-line); border-radius: 0; background: #fff;
}
.tb-account .woocommerce > .woocommerce-form-login, .tb-account .woocommerce > .woocommerce-ResetPassword, .tb-account .woocommerce > form.lost_reset_password { max-width: 520px; margin-inline: auto; }
.tb-account .woocommerce-form-login__rememberme { display: flex !important; align-items: center; gap: 10px; margin: 6px 0 18px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; font-weight: 400 !important; }
.tb-account .woocommerce-LostPassword, .tb-account p.lost_password { margin: 18px 0 0; font-size: 12px; text-align: center; }
.tb-account .woocommerce-LostPassword a { color: var(--tb-muted); text-decoration: underline; text-underline-offset: 4px; }
.tb-account .woocommerce-form-register .woocommerce-privacy-policy-text { margin-bottom: 16px; font-size: 12px; line-height: 1.7; color: var(--tb-muted); }
.tb-account .password-input { display: block; position: relative; }
.tb-account .password-input input[type="password"], .tb-account .password-input input[type="text"] { padding-inline-end: 46px !important; }
.tb-account .show-password-input { position: absolute; top: 50%; left: auto; right: auto; inset-inline-end: 14px; margin: 0; transform: translateY(-50%); background: transparent; border: 0; box-shadow: none; opacity: .6; }
.tb-account .show-password-input:hover { opacity: 1; }

/* ==========================================================================
   Tablet / phones
   ========================================================================== */
@media (max-width: 1024px) {
  .tb-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 210px minmax(0, 1fr); column-gap: 40px; }
}

@media (max-width: 900px) {
  /* My account: navigation becomes a swipeable tab bar above the content */
  .tb-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
  .tb-account .woocommerce-MyAccount-navigation, .tb-account .woocommerce-MyAccount-content { grid-column: 1; }
  .tb-account .woocommerce-MyAccount-navigation { margin-bottom: 30px; }
  .tb-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--tb-line); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tb-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .tb-account .woocommerce-MyAccount-navigation li { flex: none; border: 0; }
  .tb-account .woocommerce-MyAccount-navigation li a {
    padding: 14px 18px; border-inline-start: 0; border-bottom: 2px solid transparent; white-space: nowrap; letter-spacing: .12em;
  }
  .tb-account .woocommerce-MyAccount-navigation li a:hover { padding-inline-start: 18px; }
  .tb-account .woocommerce-MyAccount-navigation li a::after { display: none; }
  .tb-account .woocommerce-MyAccount-navigation li.is-active a { border-bottom-color: var(--tb-ink); }
}

@media (max-width: 767px) {

  .tb-woo .woocommerce-message, .tb-woo .woocommerce-info { padding: 16px; }
  .tb-woo .woocommerce-message .button, .tb-woo .woocommerce-info .button { order: 3; width: 100%; margin-inline-start: 0; }

  .tb-account #customer_login, .tb-account .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tb-account form.woocommerce-form-login, .tb-account form.woocommerce-form-register, .tb-account form.woocommerce-ResetPassword, .tb-account form.lost_reset_password { padding: 26px 20px; }
  .tb-account .woocommerce-address-fields__field-wrapper .form-row-first, .tb-account .woocommerce-address-fields__field-wrapper .form-row-last { flex-basis: 100%; width: 100%; }
  .tb-account .woocommerce-EditAccountForm fieldset { padding: 20px 16px; }
  .tb-account .woocommerce-Address { padding: 22px 18px; }
  .tb-account .woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }

  /* Orders table: every order becomes a small card with labelled rows */
  .tb-account table.shop_table_responsive.woocommerce-orders-table { border: 0; }
  .tb-account table.shop_table_responsive.woocommerce-orders-table thead { display: none; }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr { display: block; margin: 0 0 16px; padding: 6px 18px; border: 1px solid var(--tb-line); background: #fff; }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr td {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0 !important; border: 0; border-bottom: 1px solid var(--tb-line); text-align: end !important;
  }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr td:last-child { border-bottom: 0; }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr td::before {
    float: none; content: attr(data-title); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-muted); text-align: start;
  }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr td.woocommerce-orders-table__cell-order-actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 16px !important; }
  .tb-account table.shop_table_responsive.woocommerce-orders-table tr td.woocommerce-orders-table__cell-order-actions::before { display: none; }
}

@media (max-width: 1024px) {
  .tb-archive ul.products:not(.elementor-grid), .tb-archive ul.products[class*="columns-"]:not(.elementor-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 18px; }
}
@media (max-width: 767px) {
  .tb-archive .woocommerce-products-header__title, .tb-archive h1.page-title { font-size: 28px; }
  .tb-cat-pills { margin-top: 20px; margin-inline: -4px; padding-inline: 4px; }
  .tb-cat-pills a { min-height: 38px; padding: 8px 18px; }
  .tb-archive .tb-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .tb-archive .tb-toolbar-start { display: contents; }
  .tb-filter-toggle { order: 1; flex: stretch; justify-content: center; min-height: 48px; padding: 0 14px; }
  .tb-archive .tb-toolbar .woocommerce-ordering { order: 2; flex: 1 1 0; min-width: 0; }
  .tb-archive .tb-toolbar .woocommerce-result-count { order: 3; flex: 1 1 100%; font-size: 11px; }
  .tb-archive .woocommerce-ordering select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
  .tb-archive ul.products:not(.elementor-grid), .tb-archive ul.products[class*="columns-"]:not(.elementor-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
  .tb-lc-body { padding-top: 12px; }
  .tb-lc-media img { padding: 6%; }
  .tb-lc-badges { top: 8px; inset-inline-start: 8px; }
  .tb-lc-badge { padding: 5px 8px; font-size: 9px; }
  .tb-archive .tb-lc-title, .tb-archive ul.products li.product .tb-lc-title { font-size: 14.5px; }
  .tb-lc-price, .tb-archive ul.products li.product .tb-lc-price { font-size: 13px; margin-bottom: 12px; }
  .tb-archive ul.products li.product .button, .tb-archive ul.products li.product .added_to_cart { min-height: 44px; letter-spacing: .1em; padding-inline: 6px; font-size: 9.5px; }
  .tb-woo nav.woocommerce-pagination { margin-top: 44px; }
  .tb-woo nav.woocommerce-pagination ul.page-numbers { gap: 6px; }
  .tb-woo nav.woocommerce-pagination ul.page-numbers li .page-numbers { min-width: 42px; height: 44px; padding: 0 10px; }
  .tb-filter-head, .tb-filter-foot { padding-inline: 20px; }
  .tb-filter-body { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-archive ul.products li.product img, .tb-account .woocommerce-MyAccount-navigation li a, .tb-filter-drawer, .tb-filter-overlay { transition: none; }
}
