/* ============================================================
   Digital Commerce Integration — Marketplace + account surface  (tj-shop)
   ------------------------------------------------------------
   Modern storefront components for the redesigned public pages
   (/marketplace, /products, product details, cart, wishlist,
   compare, orders, addresses, profile, notifications, inbox,
   seller pages, packs). Consumes ONLY the --tj-* tokens from
   tj-tokens.css; everything is scoped under .tj-shop so it is
   inert on legacy / B2B pages.

   RULES
   - RTL via logical properties only. Chevrons mirrored with
     html[dir=rtl] … { transform: scaleX(-1) }.
   - Pages that use this file declare @section('legacy_theme','off')
     → the layout skips the Electro theme and adds body.tj-legacy-off;
     the small base block below replaces what Electro provided.
   - Skeleton primitives (.tjsk, .tjsk-line) come from tj-skeleton.css;
     the page-shaped variants live here.
   ============================================================ */

/* ------------------------------------------------------------
   0. Base when the Electro theme is off
   ------------------------------------------------------------ */
body.tj-legacy-off{ font-size: var(--tj-fs-body); line-height: var(--tj-lh-body); color: var(--tj-ink); }
/* (0,1,0) specificity: beats Bootstrap's element rules, loses to any descendant component rule */
.tj-legacy-off :where(a){ text-decoration: none; color: inherit; }
.tj-legacy-off :where(a:hover){ text-decoration: none; }
:where(.tj-legacy-off img){ display: block; max-width: 100%; height: auto; } /* zero specificity: any sized img rule (.tj-foot-logo, .tj-pcard-media img) wins */
.tj-legacy-off :where(h1, h2, h3, h4){ margin: 0; font-weight: 700; color: var(--tj-ink); line-height: var(--tj-lh-heading); }
.tj-legacy-off :where(ul, ol){ margin: 0; padding: 0; list-style: none; }
.tj-legacy-off :where(button, input, select, textarea){ font: inherit; color: inherit; }
.tj-legacy-off :where(button){ cursor: pointer; }
body.tj-legacy-off .container{ margin-inline: auto; }
body.tj-legacy-off .site-content{ padding-block: 0 var(--tj-sec-y-sm); }
body.tj-legacy-off :focus-visible{ outline: 2px solid var(--tj-orange-hover); outline-offset: 2px; }

.tj-shop{ --shop-gap: 18px; --shop-r: var(--tj-r); --shop-media-bg: var(--tj-surface-alt); --shop-band-gold: var(--tj-orange-50); --shop-band-navy: var(--tj-surface-alt); }
.tj-shop *, .tj-shop *::before, .tj-shop *::after{ box-sizing: border-box; }
.tj-shop h1, .tj-shop h2, .tj-shop h3, .tj-shop h4{ letter-spacing: var(--tj-ls-heading); }
html[lang="ar"] .tj-shop h1, html[lang="ar"] .tj-shop h2, html[lang="ar"] .tj-shop h3{ letter-spacing: 0; }
.tj-shop .tj-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------
   1. Page chrome: crumbs, headings, sections, toolbars
   ------------------------------------------------------------ */
.tj-crumb{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--tj-muted); margin-block: 4px 18px; }
.tj-crumb a{ color: var(--tj-muted); font-weight: 600; }
.tj-crumb a:hover{ color: var(--tj-navy); }
.tj-crumb i{ font-size: 14px; color: var(--tj-muted-2); }
html[dir="rtl"] .tj-crumb i.ri-arrow-right-s-line{ transform: scaleX(-1); }
.tj-crumb span:last-child{ color: var(--tj-ink); font-weight: 700; }

.tj-shop-title{ display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 22px; }
.tj-shop-title h1{ font-size: clamp(24px, 3vw, 34px); color: var(--tj-navy); }
.tj-shop-title p{ margin: 6px 0 0; color: var(--tj-muted); font-size: 15px; }
.tj-shop-eyebrow{
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--tj-orange); margin-block-end: 8px;
}
.tj-shop-eyebrow::before{ content: ""; width: 18px; height: 2px; border-radius: 0; background: var(--tj-orange); }
html[lang="ar"] .tj-shop-eyebrow{ letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; }

.tj-shop-sec{ margin-block-start: var(--tj-sec-y-sm); }
.tj-shop-sec-head{ display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 24px; padding-block-end: 12px; border-block-end: 1px solid #d8dae0; }
.tj-shop-sec-head h2{ font-size: clamp(20px, 2.2vw, 26px); color: var(--tj-navy); }
.tj-shop-sec-head p{ margin: 4px 0 0; color: var(--tj-muted); font-size: 14px; }
.tj-viewall{ display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--tj-navy); white-space: nowrap; padding-block-end: 2px; }
.tj-viewall{ transition: color 100ms ease-out; }
.tj-viewall:hover{ color: var(--tj-orange-deep); }
html[dir="rtl"] .tj-viewall i{ transform: scaleX(-1); }

.tj-shop-toolbar{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 16px; }
.tj-shop-toolbar > *{ min-width: 0; }
.tj-shop-toolbar-count{ font-size: 14px; color: var(--tj-muted); }
.tj-shop-toolbar-count strong{ color: var(--tj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tj-shop-toolbar-right{ display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }

/* ------------------------------------------------------------
   2. Grids, rails, layouts
   ------------------------------------------------------------ */
.tj-shop-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--shop-gap); }
.tj-shop-grid.cols-3{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 640px){ .tj-shop-grid, .tj-shop-grid.cols-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tj-shop{ --shop-r: 3px; } .tj-pcard-body{ padding: 10px 12px 12px; gap: 4px; } .tj-pcard-title{ font-size: 13.5px; } .tj-pcard-cart{ height: 34px; padding: 0 10px; font-size: 12px; } .tj-pcard-foot{ flex-wrap: wrap; } }
.tj-shop-rail{
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
    gap: var(--shop-gap); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-block-end: 8px; margin-inline: -4px; padding-inline: 4px;
    scrollbar-width: thin; scrollbar-color: var(--tj-navy-200) transparent;
}
.tj-shop-rail > *{ scroll-snap-align: start; }
@media (min-width: 1100px){ .tj-shop-rail{ grid-auto-columns: calc((100% - var(--shop-gap) * 4) / 5); } }
@media (max-width: 640px){ .tj-shop-rail{ grid-auto-columns: 72%; } }

.tj-shop-layout{ display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 26px; align-items: start; }
.tj-page-split{ display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
@media (max-width: 991px){ .tj-shop-layout, .tj-page-split{ grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   3. Buttons & small controls (extends .tj-btn from tokens)
   ------------------------------------------------------------ */
.tj-shop .tj-btn{ font-family: inherit; }
.tj-iconbtn{
    width: 36px; height: 36px; border-radius: var(--tj-r); border: 1px solid var(--tj-input-border, #c9ccd4);
    background: var(--tj-surface); color: var(--tj-muted); display: inline-grid; place-items: center;
    box-shadow: none; cursor: pointer; transition: border-color 100ms ease-out, color 100ms ease-out, background 100ms ease-out; text-decoration: none;
}
.tj-iconbtn i{ font-size: 17px; line-height: 1; }
.tj-iconbtn:hover{ border-color: var(--tj-muted-2); color: var(--tj-ink); }
.tj-iconbtn[aria-pressed="true"]{ background: var(--tj-orange-50); color: var(--tj-orange-deep); border-color: var(--tj-orange-200); }
.tj-iconbtn.lg{ width: 42px; height: 42px; border-radius: var(--tj-r); }
.tj-iconbtn.lg i{ font-size: 20px; }

.tj-chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.tj-chips.scroll{ flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; min-width: 0; max-width: 100%; }
.tj-chips.scroll::-webkit-scrollbar{ display: none; }
.tj-chips .tj-chip{ white-space: nowrap; cursor: pointer; text-decoration: none; }
.tj-chip i{ font-size: 14px; }
.tj-chip .x{ margin-inline-start: 2px; opacity: .7; }

.tj-qty{ display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--tj-input-border, #c9ccd4); border-radius: var(--tj-r); background: var(--tj-surface); overflow: hidden; }
.tj-qty button{ width: 38px; height: 100%; border: 0; background: transparent; color: var(--tj-navy); display: grid; place-items: center; cursor: pointer; transition: background 100ms ease-out; }
.tj-qty button:hover{ background: var(--tj-surface-alt); }
.tj-qty button:disabled{ color: var(--tj-muted-2); cursor: not-allowed; background: transparent; }
.site-content .tj-qty input, .tj-qty input{
    width: 52px !important; height: 100% !important; min-height: 0 !important; border: 0 !important; border-inline: 1px solid var(--tj-border) !important;
    border-radius: 0 !important; text-align: center; font-weight: 600; padding: 0 !important; background: var(--tj-surface) !important; font-variant-numeric: tabular-nums;
    -moz-appearance: textfield; box-shadow: none !important;
}
.tj-qty input::-webkit-outer-spin-button, .tj-qty input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.tj-qty.sm{ height: 36px; }
.tj-qty.sm button{ width: 32px; }
.tj-qty.sm input{ width: 44px !important; }

.tj-select-wrap{ position: relative; }
.tj-select-wrap select{ appearance: none; padding-inline-end: 36px !important; }
.tj-select-wrap::after{ content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 8px; height: 8px; border-inline-end: 2px solid var(--tj-muted); border-block-end: 2px solid var(--tj-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.tj-price{ display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; line-height: 1; }
.tj-price ins{ text-decoration: none; font-weight: 700; font-size: 18px; color: var(--tj-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tj-price ins small, .tj-price-cur{ font-size: 11px; font-weight: 600; color: var(--tj-muted-2); margin-inline-start: 4px; letter-spacing: .08em; }
.tj-price del{ font-size: 12px; font-weight: 500; color: var(--tj-muted-2); font-variant-numeric: tabular-nums; }
.tj-price.sm ins{ font-size: 15px; }
.tj-price.lg ins{ font-size: 34px; }
.tj-price.lg ins small{ font-size: 13px; }
.tj-price.lg del{ font-size: 16px; }
.tj-price.on-dark ins, .tj-price.on-dark ins small{ color: #fff; }
.tj-price.on-dark del{ color: rgba(255,255,255,.6); }
.tj-pcard-badge, .tj-off, .tj-price ins, .tj-price del{ direction: ltr; unicode-bidi: isolate; }
.tj-off{ display: inline-flex; align-items: center; padding: 4px 7px; border-radius: var(--tj-r); background: var(--tj-orange-50); color: var(--tj-orange-deep); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.tj-stars{ display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tj-muted); }
.tj-stars-row{ display: inline-flex; gap: 1px; color: #f59e0b; font-size: 15px; line-height: 1; }
.tj-stars-row i.off{ color: var(--tj-border); }
.tj-stars.lg .tj-stars-row{ font-size: 20px; }

.tj-stock{ display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--tj-muted); white-space: nowrap; }
.tj-stock::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tj-success); flex: 0 0 auto; }
.tj-stock.low::before{ background: var(--tj-warning); }
.tj-stock.out::before{ background: var(--tj-danger); }
.tj-stock.out{ color: var(--tj-danger-ink); }

.tj-tag{ display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: var(--tj-r); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--tj-surface-alt); color: var(--tj-muted); border: 0; }
.tj-tag.gold{ background: var(--tj-orange-50); color: var(--tj-orange-deep); }
.tj-tag.success{ background: var(--tj-success-50); color: var(--tj-success-ink); }
html[lang="ar"] .tj-tag, html[lang="ar"] .tj-off{ letter-spacing: 0; text-transform: none; font-size: 12px; }

/* status badge (orders) */
.tj-ostatus{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: var(--tj-r); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--tj-surface-alt); color: var(--tj-muted); }
html[lang="ar"] .tj-ostatus{ letter-spacing: 0; text-transform: none; font-size: 12px; }
.tj-ostatus::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tj-ostatus[data-status="pending"]{ background: var(--tj-warning-50); color: var(--tj-warning-ink); }
.tj-ostatus[data-status="confirmed"]{ background: var(--tj-info-50); color: var(--tj-info-ink); }
.tj-ostatus[data-status="processing"]{ background: var(--tj-orange-50); color: var(--tj-orange-deep); }
.tj-ostatus[data-status="delivered"]{ background: var(--tj-success-50); color: var(--tj-success-ink); }
.tj-ostatus[data-status="canceled"], .tj-ostatus[data-status="declined"]{ background: var(--tj-danger-50); color: var(--tj-danger-ink); }
.tj-ostatus[data-status="active"]{ background: var(--tj-success-50); color: var(--tj-success-ink); }
.tj-ostatus[data-status="suspended"], .tj-ostatus[data-status="on_hold"]{ background: var(--tj-warning-50); color: var(--tj-warning-ink); }

/* ------------------------------------------------------------
   4. Product card — the signature component
   ------------------------------------------------------------ */
.tj-pcard{
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--shop-r);
    overflow: hidden; transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.tj-pcard:hover, .tj-pcard:focus-within{ border-color: var(--tj-muted-2); box-shadow: 0 4px 14px -6px rgba(16,20,32,.18); }
.tj-pcard-media{ position: relative; display: block; aspect-ratio: 1 / 1; background: var(--shop-media-bg); overflow: hidden; border-block-end: 1px solid var(--tj-border); }
.tj-pcard-media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tj-pcard-badges{ position: absolute; inset-block-start: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.tj-pcard-badge{ display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--tj-ink); color: var(--tj-bg); font-variant-numeric: tabular-nums; }
.tj-pcard-badge.off{ background: var(--tj-orange); color: var(--tj-brand-on, #fff); }
.tj-pcard-badge.featured{ background: var(--tj-ink); }
.tj-pcard-badge.new{ background: var(--tj-info-ink); }
html[lang="ar"] .tj-pcard-badge{ letter-spacing: 0; text-transform: none; font-size: 11px; }
.tj-pcard-quick{ position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; opacity: 0; transition: opacity 100ms ease-out; }
.tj-pcard:hover .tj-pcard-quick, .tj-pcard:focus-within .tj-pcard-quick{ opacity: 1; }
@media (hover: none){ .tj-pcard-quick{ opacity: 1; } }
.tj-pcard-body{ display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1 1 auto; min-width: 0; }
.tj-pcard-cat{ display: inline-flex; align-self: flex-start; padding: 0; border-radius: 0; background: transparent; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--tj-muted-2); }
.tj-pcard-cat{ position: relative; z-index: 2; }
.tj-pcard-cat a{ color: inherit; }
html[lang="ar"] .tj-pcard-cat{ letter-spacing: 0; text-transform: none; font-size: 12px; }
/* fixed 2-line box: Chrome paints a 3rd line into any min-height slack, so height is exact */
.tj-pcard-title{ margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35 !important; color: var(--tj-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.7em; }
.tj-pcard-title a{ color: inherit; }
/* stretched link: a sibling overlay (an ::after inside the clamped box breaks -webkit-line-clamp) */
.tj-pcard-link{ position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tj-pcard-link:focus-visible{ outline: 2px solid var(--tj-orange-hover); outline-offset: -2px; }
.tj-pcard-seller{ display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tj-muted-2); min-width: 0; }
.tj-pcard-seller i{ color: var(--tj-navy-400); font-size: 14px; flex: 0 0 auto; }
.tj-pcard-seller span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-pcard-seller .ri-verified-badge-fill{ color: var(--tj-orange-hover); }
.tj-pcard-price{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-block-start: 4px; }
.tj-pcard-foot{ position: relative; z-index: 2; margin-block-start: auto; padding-block-start: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-block-start: 1px solid var(--tj-border-2); }
.tj-pcard-cart{
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: var(--tj-r);
    background: var(--tj-orange); color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background 100ms ease-out, box-shadow 100ms ease-out; box-shadow: none;
}
.tj-pcard-cart i{ font-size: 16px; }
.tj-pcard-cart:hover{ background: var(--tj-orange-hover); }
.tj-pcard-cart:active{ background: var(--tj-orange-deep); box-shadow: inset 0 2px 4px rgba(0,0,0,.22); }
.tj-pcard-cart:focus-visible{ outline: 2px solid var(--tj-orange); outline-offset: 2px; }
.tj-pcard-cart.in-cart{ background: var(--tj-success-50); color: var(--tj-success-ink) !important; box-shadow: none; }
.tj-pcard-cart.icon-only{ width: 38px; padding: 0; }
.tj-pcard-cart-form{ display: contents; }
/* row variant (related products, seller profile compact) */
.tj-pcard.row{ flex-direction: row; align-items: stretch; }
.tj-pcard.row .tj-pcard-media{ flex: 0 0 132px; aspect-ratio: auto; }
.tj-pcard.row .tj-pcard-body{ padding: 12px 14px; }
.tj-pcard.row .tj-pcard-title{ min-height: 0; font-size: 14px; }
.tj-pcard.row .tj-pcard-foot{ border: 0; padding: 0; }
.tj-pcard.row .tj-pcard-quick{ display: none; }

/* ------------------------------------------------------------
   5. Marketplace home: hero search, category rail, deal, banners
   ------------------------------------------------------------ */
.tj-shop-hero{
    position: relative; isolation: isolate; border-radius: var(--tj-r); overflow: hidden; min-height: clamp(340px, 42vw, 440px);
    display: grid; align-items: end; color: #fff;
    background: #0d1424; border: 1px solid #263049;
    box-shadow: none;
}
.tj-shop-hero-slides{ position: absolute; inset: 0; z-index: -2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tj-shop-hero-slides::-webkit-scrollbar{ display: none; }
.tj-shop-hero-slide{ flex: 0 0 100%; scroll-snap-align: start; background-size: cover; background-position: center; }
.tj-shop-hero::before{ content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,15,30,.72); }
.tj-shop-hero-content{ position: relative; padding: clamp(24px, 4.5vw, 52px); max-width: 720px; }
.tj-shop-hero-content .tj-shop-eyebrow{ color: var(--tj-brand-300); }
.tj-shop-hero-content .tj-shop-eyebrow::before{ background: var(--tj-orange-400); }
.tj-shop-hero h1{ color: #fff; font-size: clamp(26px, 3.6vw, 42px); margin-block-end: 10px; letter-spacing: -.03em; line-height: 1.05; }
html[lang="ar"] .tj-shop-hero h1{ letter-spacing: 0; line-height: 1.25; }
.tj-shop-hero p{ margin: 0 0 20px; color: #c3cbdb; font-size: 15.5px; max-width: 560px; }
.tj-hero-search{ display: flex; align-items: center; gap: 6px; background: var(--tj-surface); border: 1px solid var(--tj-input-border, #c9ccd4); border-radius: var(--tj-r); padding: 4px; padding-inline-start: 14px; box-shadow: none; max-width: 640px; }
.tj-hero-search > i{ font-size: 18px; color: var(--tj-muted-2); flex: 0 0 auto; }
.site-content .tj-hero-search input, .tj-hero-search input{ flex: 1 1 auto; min-width: 0; height: 46px !important; border: 0 !important; background: transparent !important; padding: 0 8px !important; font-size: 15px; color: var(--tj-ink); box-shadow: none !important; }
.tj-hero-search input::placeholder{ color: var(--tj-muted-2); }
.tj-hero-search .tj-btn{ height: 42px; border-radius: var(--tj-r); padding-inline: 20px; }
.tj-hero-chips{ display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 14px; }
.tj-hero-chips a{ display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--tj-r); border: 1px solid #263049; background: #131a2c; color: #c3cbdb; font-size: 12.5px; font-weight: 500; transition: background 100ms ease-out, border-color 100ms ease-out, color 100ms ease-out; }
.tj-hero-chips a:hover{ background: var(--tj-ink-2); border-color: #465575; color: var(--tj-bg); }
.tj-shop-hero-dots{ position: absolute; inset-block-end: 16px; inset-inline-end: 22px; display: flex; gap: 6px; z-index: 1; }
.tj-shop-hero-dots button{ width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; transition: background 100ms ease-out; }
.tj-shop-hero-dots button.is-active{ background: var(--tj-orange-400); }
.tj-shop-hero-stat{ display: flex; gap: 22px; flex-wrap: wrap; margin-block-start: 22px; }
.tj-shop-hero-stat div{ display: flex; flex-direction: column; }
.tj-shop-hero-stat strong{ font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tj-shop-hero-stat small{ font-size: 12px; color: #98a1b8; }

.tj-cat-rail{ display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-block: 6px 10px; scrollbar-width: none; }
.tj-cat-rail::-webkit-scrollbar{ display: none; }
.tj-cat{ flex: 0 0 auto; width: 108px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; scroll-snap-align: start; color: var(--tj-ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.tj-cat-ico{ width: 74px; height: 74px; border-radius: var(--tj-r-lg); background: var(--tj-surface); border: 1px solid var(--tj-border); display: grid; place-items: center; overflow: hidden; box-shadow: none; transition: border-color 140ms ease-out, box-shadow 140ms ease-out; }
.tj-cat-ico img{ width: 100%; height: 100%; object-fit: cover; }
.tj-cat-ico i{ font-size: 28px; color: var(--tj-navy); }
.tj-cat:hover .tj-cat-ico{ border-color: var(--tj-muted-2); box-shadow: 0 4px 14px -6px rgba(16,20,32,.18); }
.tj-cat.all .tj-cat-ico{ background: var(--tj-ink); border-color: var(--tj-ink); }
.tj-cat.all .tj-cat-ico i{ color: #fff; }

.tj-deal-wrap{ display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 991px){ .tj-deal-wrap{ grid-template-columns: 1fr; } }
.tj-deal{ position: relative; overflow: hidden; border-radius: var(--tj-r-lg); padding: 22px; color: #fff; background: var(--tj-brand-hero, var(--tj-brand-950)); border: 1px solid transparent; box-shadow: var(--tj-shadow-sm); }
.tj-deal-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 14px; }
.tj-deal-head .tj-shop-eyebrow{ margin: 0; color: var(--tj-brand-300); }
.tj-deal-head .tj-shop-eyebrow::before{ background: var(--tj-orange-400); }
.tj-deal-save{ font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--tj-r); background: var(--tj-orange); color: #fff; }
.tj-deal-media{ aspect-ratio: 4 / 3; border-radius: var(--tj-r); overflow: hidden; background: #131a2c; border: 1px solid #263049; margin-block-end: 14px; }
.tj-deal-media img{ width: 100%; height: 100%; object-fit: cover; }
.tj-deal h3{ color: #fff; font-size: 17px; margin-block-end: 10px; line-height: 1.35; }
.tj-deal-meter{ margin-block: 16px 6px; height: 3px; border-radius: var(--tj-r); background: #263049; overflow: hidden; }
.tj-deal-meter span{ display: block; height: 100%; border-radius: inherit; background: var(--tj-orange-400); }
.tj-deal-meta{ display: flex; justify-content: space-between; font-size: 12px; color: #98a1b8; font-variant-numeric: tabular-nums; }
.tj-deal-meta b{ color: #fff; }
.tj-countdown{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-block-start: 16px; }
.tj-countdown div{ background: #131a2c; border: 1px solid #263049; border-radius: var(--tj-r); padding: 8px 4px; text-align: center; }
.tj-countdown strong{ display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tj-countdown small{ font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6e7891; }
.tj-deal .tj-btn{ width: 100%; margin-block-start: 16px; }

.tj-banner{ position: relative; display: block; border-radius: var(--tj-r); overflow: hidden; aspect-ratio: 21 / 6; background: var(--shop-media-bg); border: 1px solid var(--tj-border); box-shadow: none; margin-block-start: var(--tj-sec-y-sm); }
.tj-banner img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px){ .tj-banner{ aspect-ratio: 16 / 7; } }

/* ------------------------------------------------------------
   6. Products list: filters, drawer
   ------------------------------------------------------------ */
.tj-filters{ position: sticky; top: calc(var(--tj-header-h) + 16px); background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r-lg); padding: 18px; display: grid; gap: 18px; }
.tj-filters-head{ display: flex; align-items: center; justify-content: space-between; }
.tj-filters-head h3{ font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tj-filters-head h3 i{ color: var(--tj-navy-400); }
.tj-filters-head a{ font-size: 12.5px; font-weight: 700; color: var(--tj-muted); }
.tj-filter-group{ display: grid; gap: 8px; }
.tj-filter-group > label, .tj-filter-label{ font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tj-muted-2); }
html[lang="ar"] .tj-filter-label, html[lang="ar"] .tj-filter-group > label{ letter-spacing: 0; text-transform: none; font-size: 12px; }
.site-content .tj-filters select, .site-content .tj-filters input[type="text"], .site-content .tj-filters input[type="search"], .tj-filters select, .tj-filters input{
    width: 100%; height: 44px !important; border: 1px solid var(--tj-input-border, #c9ccd4) !important; border-radius: var(--tj-r) !important; padding: 0 14px !important; background: var(--tj-surface) !important; font-size: 14px; font-weight: 500; box-shadow: none !important; transition: border-color 100ms ease-out, box-shadow 100ms ease-out;
}
.tj-filters select:focus, .tj-filters input:focus{ border-color: var(--tj-orange) !important; box-shadow: 0 0 0 3px rgba(var(--tj-brand-rgb),.16) !important; outline: 0; }
.tj-filter-search{ position: relative; }
.tj-filter-search i{ position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--tj-muted-2); font-size: 16px; pointer-events: none; }
.site-content .tj-filters .tj-filter-search input[type="search"], .site-content .tj-filters .tj-filter-search input[type="text"], .site-content .tj-filter-search input, .tj-filter-search input{ padding-inline-start: 38px !important; }
.tj-filter-list{ display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.tj-filter-list a{ display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 0; font-size: 14px; color: var(--tj-ink-2); font-weight: 500; transition: background 100ms ease-out; }
.tj-filter-list a:hover{ background: var(--tj-surface-alt); }
.tj-filter-list a.is-active{ background: var(--tj-orange-50); box-shadow: inset 2px 0 0 var(--tj-orange); color: var(--tj-ink); font-weight: 600; }
.tj-filter-list a small{ color: var(--tj-muted-2); font-size: 12px; }
.tj-filters-open{ display: none; }
.tj-filters form{ display: grid; gap: 18px; }
@media (max-width: 991px){
    .tj-filters-open{ display: inline-flex; }
    .tj-filters{ position: fixed; inset: auto 0 0 0; top: auto; z-index: 1200; max-height: 86vh; overflow: auto; border-radius: var(--tj-r-lg) 3px 0 0; transform: translateY(105%); transition: transform 280ms cubic-bezier(.2,.8,.2,1); box-shadow: 0 -24px 48px -20px rgba(16,20,32,.34); padding-block-end: max(18px, env(safe-area-inset-bottom)); }
    .tj-filters.is-open{ transform: none; }
    .tj-filters::before{ content: ""; display: block; width: 40px; height: 3px; border-radius: var(--tj-r); background: var(--tj-input-border, #c9ccd4); margin: -6px auto 6px; }
}
.tj-drawer-backdrop{ position: fixed; inset: 0; z-index: 1190; background: rgba(4,7,15,.55); opacity: 0; pointer-events: none; transition: opacity 280ms cubic-bezier(.2,.8,.2,1); }
.tj-drawer-backdrop.is-on{ opacity: 1; pointer-events: auto; }
body.tj-drawer-lock{ overflow: hidden; }

.tj-pagination-wrap{ display: flex; justify-content: center; margin-block-start: 28px; }

/* ------------------------------------------------------------
   7. Product detail page
   ------------------------------------------------------------ */
.tj-pdp{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 991px){ .tj-pdp{ grid-template-columns: 1fr; gap: 22px; } }
.tj-gallery{ position: sticky; top: calc(var(--tj-header-h) + 16px); display: grid; gap: 12px; }
@media (max-width: 991px){ .tj-gallery{ position: static; } }
.tj-gallery-main{ position: relative; aspect-ratio: 1; border-radius: var(--tj-r); overflow: hidden; background: var(--shop-media-bg); border: 1px solid var(--tj-border); }
.tj-gallery-main img{ width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.tj-gallery-main .tj-pcard-badges{ inset-block-start: 14px; inset-inline-start: 14px; }
.tj-gallery-main .tj-pcard-quick{ opacity: 1; transform: none; inset-block-start: 14px; inset-inline-end: 14px; }
.tj-gallery-thumbs{ display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tj-gallery-thumbs::-webkit-scrollbar{ display: none; }
.tj-gallery-thumb{ flex: 0 0 76px; aspect-ratio: 1; border-radius: var(--tj-r); overflow: hidden; border: 1px solid var(--tj-border); background: var(--tj-surface); cursor: pointer; padding: 0; transition: border-color 100ms ease-out; }
.tj-gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.tj-gallery-thumb.is-active{ border-color: var(--tj-orange); box-shadow: inset 0 0 0 1px var(--tj-orange); }
.tj-gallery-thumb:hover{ border-color: var(--tj-muted-2); }

.tj-buy{ display: grid; gap: 14px; }
.tj-buy h1{ font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.028em; }
html[lang="ar"] .tj-buy h1{ letter-spacing: 0; line-height: 1.3; }
.tj-buy-meta{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--tj-muted); }
.tj-buy-meta .dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--tj-border); }
.tj-seller-link{ display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--tj-navy); }
.tj-seller-link i{ color: var(--tj-navy-400); }
.tj-buy-panel{ background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 22px; display: grid; gap: 16px; box-shadow: none; }
.tj-buy-price{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tj-buy-price-col{ display: grid; gap: 4px; }
.tj-buy-price-col small{ font-size: 12px; color: var(--tj-muted); font-weight: 600; }
.tj-buy-row{ display: grid; gap: 8px; }
.tj-buy-row > label{ font-size: 12px; font-weight: 600; color: var(--tj-muted); }
.site-content .tj-buy-row select, .tj-buy-row select{ width: 100%; height: 46px !important; border: 1px solid var(--tj-input-border, #c9ccd4) !important; border-radius: var(--tj-r) !important; padding: 0 14px !important; background: var(--tj-surface) !important; font-size: 14px; font-weight: 500; box-shadow: none !important; }
.tj-buy-cta{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tj-buy-cta .tj-btn{ flex: 1 1 200px; height: 50px; font-size: 15px; border-radius: var(--tj-r); }
.tj-buy-sec{ display: flex; gap: 6px 18px; flex-wrap: wrap; padding-block-start: 4px; }
.tj-buy-sec button, .tj-buy-sec a{ display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--tj-muted); cursor: pointer; transition: color 100ms ease-out; }
.tj-buy-sec button:hover, .tj-buy-sec a:hover{ color: var(--tj-navy); }
.tj-buy-sec button[aria-pressed="true"]{ color: var(--tj-orange-deep); }
.tj-buy-sec i{ font-size: 17px; }
.tj-buy-trust{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tj-buy-trust div{ display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tj-muted); font-weight: 600; }
.tj-buy-trust i{ font-size: 18px; color: var(--tj-navy-400); }
@media (max-width: 480px){ .tj-buy-trust{ grid-template-columns: 1fr; } }

.tj-sticky-cta{ position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 1100; display: none; align-items: center; gap: 12px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--tj-surface); border-block-start: 1px solid var(--tj-border); box-shadow: 0 -1px 2px rgba(16,20,32,.05); transform: translateY(100%); transition: transform 280ms cubic-bezier(.2,.8,.2,1); }
.tj-sticky-cta.is-on{ transform: none; }
.tj-sticky-cta-info{ flex: 1 1 auto; min-width: 0; display: grid; }
.tj-sticky-cta-info b{ font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-sticky-cta .tj-btn{ height: 44px; padding-inline: 20px; border-radius: var(--tj-r); }
@media (max-width: 991px){ .tj-sticky-cta{ display: flex; } body.tj-has-sticky .site-content{ padding-block-end: 90px; } }

.tj-tabs{ display: flex; gap: 8px; border-block-end: 1px solid var(--tj-border); overflow-x: auto; scrollbar-width: none; margin-block-end: 22px; }
.tj-tabs::-webkit-scrollbar{ display: none; }
.tj-tab{ position: relative; padding: 0 9px 13px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--tj-muted-2); white-space: nowrap; cursor: pointer; text-decoration: none; transition: color 100ms ease-out; }
.tj-tab::after{ content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; height: 2px; border-radius: 0; background: var(--tj-orange); opacity: 0; transition: opacity 180ms cubic-bezier(.2,.8,.2,1); }
.tj-tab:hover{ color: var(--tj-ink); }
.tj-tab.is-active{ color: var(--tj-ink); font-weight: 600; }
.tj-tab.is-active::after{ opacity: 1; }
.tj-tab .tj-count{ margin-inline-start: 6px; padding: 3px 6px; border-radius: var(--tj-r); background: var(--tj-surface-alt); font-size: 10px; font-weight: 600; color: var(--tj-muted); font-variant-numeric: tabular-nums; }
.tj-tabpane{ display: none; }
.tj-tabpane.is-active{ display: block; }
.tj-prose{ font-size: 15px; line-height: 1.75; color: var(--tj-ink-2); white-space: pre-wrap; max-width: 78ch; }
.tj-reviews{ display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px){ .tj-reviews{ grid-template-columns: 1fr; } }
.tj-rating-summary{ background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 20px; display: grid; gap: 14px; }
.tj-rating-big{ display: flex; align-items: baseline; gap: 6px; }
.tj-rating-big strong{ font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--tj-ink); font-variant-numeric: tabular-nums; }
.tj-rating-big span{ color: var(--tj-muted); font-size: 14px; }
.tj-rating-bar{ display: grid; grid-template-columns: 22px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; color: var(--tj-muted); }
.tj-rating-bar i{ height: 3px; border-radius: var(--tj-r); background: var(--tj-border-2); overflow: hidden; display: block; }
.tj-rating-bar i b{ display: block; height: 100%; background: var(--tj-orange); }
.tj-review{ display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-block-end: 1px solid var(--tj-border-2); }
.tj-review img{ width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.tj-review-head{ display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tj-review-head b{ font-size: 14px; }
.tj-review-head small{ color: var(--tj-muted-2); font-size: 12px; }
.tj-review p{ margin: 6px 0 0; font-size: 14px; color: var(--tj-ink-2); line-height: 1.6; }
.tj-rate-input{ display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.tj-rate-input input{ position: absolute; opacity: 0; width: 0; height: 0; }
.tj-rate-input label{ font-size: 26px; color: var(--tj-border); cursor: pointer; transition: color 100ms ease-out; }
.tj-rate-input label:hover, .tj-rate-input label:hover ~ label, .tj-rate-input input:checked ~ label{ color: #f59e0b; }

/* ------------------------------------------------------------
   8. Cart & summary
   ------------------------------------------------------------ */
.tj-cart-list{ display: grid; gap: 12px; }
.tj-cart-row{ display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); transition: border-color 100ms ease-out; }
.tj-cart-row:hover{ border-color: var(--tj-muted-2); }
.tj-cart-row.is-removing{ opacity: .4; pointer-events: none; }
.tj-cart-media{ width: 88px; aspect-ratio: 1; border-radius: var(--tj-r); overflow: hidden; background: var(--shop-media-bg); border: 1px solid var(--tj-border); }
.tj-cart-media img{ width: 100%; height: 100%; object-fit: cover; }
.tj-cart-info{ display: grid; gap: 6px; min-width: 0; }
.tj-cart-info a{ font-weight: 600; font-size: 15px; color: var(--tj-ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tj-cart-info small{ color: var(--tj-muted); font-size: 12.5px; }
.tj-cart-ctrl{ display: flex; align-items: center; gap: 12px; }
.tj-cart-side{ display: grid; gap: 8px; justify-items: end; text-align: end; }
.tj-cart-remove{ width: 34px; height: 34px; border-radius: var(--tj-r); border: 1px solid transparent; background: transparent; color: var(--tj-muted-2); display: grid; place-items: center; cursor: pointer; transition: background 100ms ease-out, color 100ms ease-out, border-color 100ms ease-out; }
.tj-cart-remove:hover{ background: var(--tj-danger-50); color: var(--tj-danger-ink); border-color: #f3c6c6; }
.tj-cart-actions{ display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-start: 6px; }
@media (max-width: 640px){
    .tj-cart-row{ grid-template-columns: 72px minmax(0, 1fr); }
    .tj-cart-media{ width: 72px; }
    .tj-cart-side{ grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
}

.tj-summary{ position: sticky; top: calc(var(--tj-header-h) + 16px); background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 22px; display: grid; gap: 12px; box-shadow: none; }
.tj-summary h3{ font-size: 16px; margin-block-end: 4px; }
.tj-summary-row{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--tj-muted); }
.tj-summary-row b{ color: var(--tj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tj-summary-total{ display: flex; justify-content: space-between; align-items: baseline; padding-block-start: 12px; border-block-start: 1px solid var(--tj-border); font-weight: 700; }
.tj-summary-total span{ font-size: 14px; color: var(--tj-muted); }
.tj-summary-total b{ font-size: 26px; color: var(--tj-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tj-summary-total b small{ font-size: 12px; color: var(--tj-muted); margin-inline-start: 3px; }
.tj-summary .tj-btn{ width: 100%; height: 50px; font-size: 15px; border-radius: var(--tj-r); }
.tj-summary-note{ display: flex; gap: 8px; font-size: 12.5px; color: var(--tj-muted); line-height: 1.5; }
.tj-summary-note i{ color: var(--tj-navy-400); font-size: 16px; flex: 0 0 auto; }
.site-content .tj-summary select, .tj-summary select{ width: 100%; height: 46px !important; border: 1px solid var(--tj-input-border, #c9ccd4) !important; border-radius: var(--tj-r) !important; padding: 0 14px !important; background: var(--tj-surface) !important; font-size: 14px; box-shadow: none !important; }
@media (max-width: 991px){ .tj-summary{ position: static; } }

/* ------------------------------------------------------------
   9. Account shell, orders, notifications, addresses
   ------------------------------------------------------------ */
.tj-acct{ display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 26px; align-items: start; }
.tj-acct-nav{ position: sticky; top: calc(var(--tj-header-h) + 16px); background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 8px 0; display: grid; gap: 0; }
.tj-acct-user{ display: flex; align-items: center; gap: 12px; padding: 8px 16px 16px; margin-block-end: 8px; border-block-end: 1px solid var(--tj-border); }
.tj-acct-user img{ width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--shop-media-bg); }
.tj-acct-user b{ display: block; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-acct-user small{ display: inline-flex; margin-block-start: 4px; padding: 3px 6px; border-radius: var(--tj-r); background: var(--tj-orange-50); color: var(--tj-orange-deep); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .tj-acct-user small{ letter-spacing: 0; text-transform: none; font-size: 11px; }
.tj-acct-link{ display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 0; font-size: 14px; font-weight: 500; color: var(--tj-muted); transition: background 100ms ease-out, color 100ms ease-out; white-space: nowrap; }
.tj-acct-link i{ font-size: 18px; color: var(--tj-muted-2); }
.tj-acct-link:hover{ background: var(--tj-surface-alt); color: var(--tj-ink); }
.tj-acct-link.is-active{ background: var(--tj-orange-50); box-shadow: inset 2px 0 0 var(--tj-orange); color: var(--tj-ink); font-weight: 600; }
.tj-acct-link.is-active i{ color: var(--tj-orange-deep); }
.tj-acct-link .tj-count{ margin-inline-start: auto; padding: 3px 6px; border-radius: var(--tj-r); background: var(--tj-surface-alt); color: var(--tj-muted); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tj-acct-link.danger{ color: var(--tj-danger-ink); }
.tj-acct-link.danger i{ color: inherit; }
.tj-acct-sep{ height: 1px; background: var(--tj-border); margin: 8px 0; }
@media (max-width: 991px){
    .tj-acct{ grid-template-columns: 1fr; gap: 16px; }
    .tj-acct-nav{ position: static; display: flex; gap: 0; overflow-x: auto; padding: 0; scrollbar-width: none; border-radius: var(--tj-r-lg); }
    .tj-acct-nav::-webkit-scrollbar{ display: none; }
    .tj-acct-user{ display: none; }
    .tj-acct-sep{ display: none; }
    .tj-acct-link{ flex: 0 0 auto; padding: 12px 14px; font-size: 13px; }
    .tj-acct-link.is-active{ box-shadow: inset 0 -2px 0 var(--tj-orange); background: transparent; }
}
.tj-acct-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 18px; }
.tj-acct-head h1{ font-size: clamp(22px, 2.6vw, 28px); color: var(--tj-navy); }
.tj-acct-head p{ margin: 4px 0 0; color: var(--tj-muted); font-size: 14px; }
.tj-acct-card{ background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 22px; }
.tj-acct-card + .tj-acct-card{ margin-block-start: 18px; }
.tj-acct-card h2{ font-size: 17px; margin-block-end: 16px; display: flex; align-items: center; gap: 8px; }
.tj-acct-card h2 i{ color: var(--tj-navy-400); }

.tj-order-list{ display: grid; gap: 10px; }
.tj-order-row{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); color: inherit; transition: border-color 100ms ease-out, background 100ms ease-out; }
.tj-order-row:hover{ border-color: var(--tj-muted-2); background: var(--tj-surface-alt); }
.tj-order-ico{ width: 40px; height: 40px; border-radius: var(--tj-r); background: var(--tj-surface-alt); color: var(--tj-muted); display: grid; place-items: center; font-size: 18px; }
.tj-order-main{ display: grid; gap: 3px; min-width: 0; }
.tj-order-main b{ font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tj-order-main small{ color: var(--tj-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-order-amt{ text-align: end; display: grid; gap: 2px; }
.tj-order-amt b{ font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tj-ink); }
.tj-order-amt small{ color: var(--tj-muted-2); font-size: 12px; }
.tj-order-row > i.ri-arrow-right-s-line{ color: var(--tj-muted-2); font-size: 20px; }
html[dir="rtl"] .tj-order-row > i.ri-arrow-right-s-line{ transform: scaleX(-1); }
@media (max-width: 640px){
    .tj-order-row{ grid-template-columns: auto minmax(0, 1fr); }
    .tj-order-amt{ grid-column: 2; text-align: start; }
    .tj-order-row > i{ display: none; }
}
.tj-timeline{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-block: 8px 4px; }
.tj-timeline::before{ content: ""; position: absolute; inset-inline: 12.5%; top: 15px; height: 2px; background: var(--tj-border); border-radius: 0; }
.tj-timeline-step{ position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--tj-muted); font-weight: 600; }
.tj-timeline-step i{ width: 32px; height: 32px; border-radius: 50%; background: var(--tj-surface); border: 2px solid var(--tj-border); display: grid; place-items: center; font-size: 14px; color: var(--tj-muted-2); position: relative; z-index: 1; }
.tj-timeline-step.done i{ background: var(--tj-success); border-color: var(--tj-success); color: #fff; }
.tj-timeline-step.current i{ background: var(--tj-orange); border-color: var(--tj-orange); color: #fff; box-shadow: 0 0 0 3px var(--tj-orange-50); }
.tj-timeline-step.done, .tj-timeline-step.current{ color: var(--tj-ink); }
.tj-timeline-step.fail i{ background: var(--tj-danger); border-color: var(--tj-danger); color: #fff; }
.tj-order-item{ display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-block-end: 1px solid var(--tj-border-2); }
.tj-order-item img{ width: 56px; height: 56px; border-radius: var(--tj-r); object-fit: cover; background: var(--shop-media-bg); border: 1px solid var(--tj-border); }
.tj-order-item b{ font-size: 14px; font-weight: 600; display: block; }
.tj-order-item small{ color: var(--tj-muted); font-size: 12.5px; }
.tj-kv{ display: grid; gap: 8px; font-size: 14px; }
.tj-kv div{ display: flex; justify-content: space-between; gap: 12px; color: var(--tj-muted); }
.tj-kv b{ color: var(--tj-ink); font-variant-numeric: tabular-nums; }

.tj-notif{ display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); color: inherit; }
.tj-notif + .tj-notif{ margin-block-start: -1px; }
.tj-notif i.ico{ width: 40px; height: 40px; border-radius: var(--tj-r); display: grid; place-items: center; font-size: 18px; background: var(--tj-surface-alt); color: var(--tj-muted); }
.tj-notif p{ margin: 0; font-size: 14px; color: var(--tj-ink-2); }
.tj-notif small{ color: var(--tj-muted-2); font-size: 12px; white-space: nowrap; }
.tj-notif.unread{ background: var(--tj-orange-50); box-shadow: inset 2px 0 0 var(--tj-orange); }

.tj-addr-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tj-addr{ background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 18px; display: grid; gap: 8px; }
.tj-addr b{ display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.tj-addr b i{ color: var(--tj-navy-400); }
.tj-addr p{ margin: 0; color: var(--tj-muted); font-size: 13.5px; line-height: 1.55; }
.tj-addr-actions{ display: flex; gap: 6px; margin-block-start: 6px; }
.tj-addr.add{ border-style: dashed; place-items: center; text-align: center; color: var(--tj-muted); cursor: pointer; min-height: 150px; border-color: #cfd2d9; transition: border-color 100ms ease-out, background 100ms ease-out; }
.tj-addr.add:hover{ border-color: var(--tj-muted-2); background: var(--tj-surface-alt); }
.tj-addr.add i{ font-size: 28px; color: var(--tj-navy-400); }

/* ------------------------------------------------------------
   10. Empty state
   ------------------------------------------------------------ */
.tj-empty{ display: grid; justify-items: center; text-align: center; gap: 8px; padding: 44px 26px; background: transparent; border: 1px dashed #cfd2d9; border-radius: var(--tj-r); color: var(--tj-muted-2); }
.tj-empty i{ width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--tj-input-border, #c9ccd4); border-radius: var(--tj-r); font-size: 16px; color: #9aa0ac; margin-block-end: 10px; }
.tj-empty h3{ font-size: 15px; font-weight: 600; color: var(--tj-ink); }
.tj-empty p{ margin: 0; font-size: 13px; line-height: 1.6; max-width: 34ch; }
.tj-empty .tj-btn{ margin-block-start: 8px; }

/* ------------------------------------------------------------
   11. Loading states: skeletons + pending buttons + toast
   ------------------------------------------------------------ */
.tj-skel-card{ border: 1px solid var(--tj-border); border-radius: var(--shop-r); overflow: hidden; background: var(--tj-surface); }
.tj-skel-card .tjsk-media{ aspect-ratio: 1 / 1; border-radius: 0; border-block-end: 1px solid var(--tj-border); }
.tj-skel-card .tjsk-body{ padding: 14px 16px 16px; }
.tj-skel-card .tjsk-line{ margin: 8px 0; }
.tj-skel-card .tjsk-price{ height: 20px; width: 36%; margin-block-start: 12px; }
.tj-skel-row{ display: grid; grid-template-columns: 88px minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--tj-border); border-radius: var(--tj-r); background: var(--tj-surface); }
.tj-skel-row .tjsk-media{ aspect-ratio: 1; border-radius: var(--tj-r); }
.tj-skel-row + .tj-skel-row{ margin-block-start: 12px; }
.tj-skel-thumb{ width: 100%; aspect-ratio: 1; border-radius: var(--tj-r); }
[aria-busy="true"] > :not(.tj-skel-card):not(.tj-skel-row){ display: none; }
.tj-btn.is-loading, .tj-pcard-cart.is-loading, .tj-iconbtn.is-loading{ position: relative; pointer-events: none; color: transparent !important; }
.tj-btn.is-loading::after, .tj-pcard-cart.is-loading::after, .tj-iconbtn.is-loading::after{
    content: ""; position: absolute; width: 18px; height: 18px; inset: 0; margin: auto; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.45); border-top-color: var(--tj-surface); animation: tjShopSpin .7s linear infinite;
}
.tj-iconbtn.is-loading::after, .tj-btn-outline.is-loading::after, .tj-btn-ghost.is-loading::after{ border-color: var(--tj-navy-200); border-top-color: var(--tj-navy); }
@keyframes tjShopSpin{ to{ transform: rotate(360deg); } }
.tj-inbox-skel{ display: grid; gap: 10px; padding: 16px; }
.tj-inbox-skel .tjsk{ height: 38px; width: 55%; border-radius: var(--tj-r-lg); }
.tj-inbox-skel .tjsk:nth-child(even){ justify-self: end; width: 45%; }

.tj-toast{ position: fixed; left: 50%; bottom: 24px; z-index: 1300; transform: translate(-50%, 6px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--tj-r); background: var(--tj-ink-2); border: 1px solid #33405c; border-inline-start: 3px solid var(--tj-orange-400); color: var(--tj-bg); font-size: 13px; font-weight: 600; box-shadow: 0 24px 48px -18px rgba(0,0,0,.7); transition: opacity 180ms ease-out, transform 180ms cubic-bezier(.2,.8,.2,1); pointer-events: none; max-width: min(92vw, 420px); }
.tj-toast.is-on{ opacity: 1; transform: translate(-50%, 0); }
.tj-toast i{ font-size: 18px; color: var(--tj-brand-300); }
.tj-toast.error{ border-inline-start-color: #f87171; }
.tj-toast.error i{ color: #f87171; }

/* ------------------------------------------------------------
   12. Misc: compare, seller hero, packs, inbox, product form
   ------------------------------------------------------------ */
.tj-seller-hero{ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); margin-block-end: 26px; }
.tj-seller-hero img{ width: 88px; height: 88px; border-radius: var(--tj-r); object-fit: cover; background: var(--shop-media-bg); border: 1px solid var(--tj-border); }
.tj-seller-hero h1{ font-size: 24px; color: var(--tj-ink); }
.tj-seller-hero .tj-buy-meta{ margin-block-start: 6px; }
.tj-seller-contacts{ display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px){ .tj-seller-hero{ grid-template-columns: auto minmax(0, 1fr); } .tj-seller-contacts{ grid-column: 1 / -1; } }

.tj-compare{ display: grid; grid-template-columns: 160px repeat(var(--cols, 3), minmax(200px, 1fr)); gap: 0; overflow-x: auto; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); }
.tj-compare > div{ padding: 14px 16px; border-block-end: 1px solid var(--tj-border-2); font-size: 14px; min-width: 0; }
.tj-compare .lab{ position: sticky; inset-inline-start: 0; background: var(--tj-surface-alt); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tj-muted-2); z-index: 1; }
html[lang="ar"] .tj-compare .lab{ letter-spacing: 0; text-transform: none; font-size: 11px; }
.tj-compare .head{ display: grid; gap: 8px; }
.tj-compare .head .tj-pcard-media{ border-radius: var(--tj-r); border: 1px solid var(--tj-border); }

.tj-pack-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tj-pack{ position: relative; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 24px; display: grid; gap: 14px; transition: border-color 140ms ease-out; }
.tj-pack:hover{ border-color: var(--tj-muted-2); }
.tj-pack.is-featured{ border-color: var(--tj-orange); box-shadow: inset 0 0 0 1px var(--tj-orange); }
.tj-pack-ribbon{ position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.tj-pack h3{ font-size: 17px; font-weight: 600; }
.tj-pack-price{ display: flex; align-items: baseline; gap: 4px; }
.tj-pack-price strong{ font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--tj-ink); font-variant-numeric: tabular-nums; }
.tj-pack-price span{ color: var(--tj-muted); font-size: 13px; }
.tj-pack ul{ display: grid; gap: 8px; font-size: 14px; color: var(--tj-ink-2); }
.tj-pack ul li{ display: flex; gap: 8px; align-items: flex-start; }
.tj-pack ul li i{ color: var(--tj-success-ink); font-size: 17px; }

.tj-inbox{ display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); overflow: hidden; min-height: 560px; height: calc(100vh - var(--tj-header-h) - 120px); }
.tj-inbox-list{ border-inline-end: 1px solid var(--tj-border); overflow: auto; }
.tj-inbox-list .contact{ display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; border-block-end: 1px solid var(--tj-border-2); transition: background 100ms ease-out; }
.tj-inbox-list .contact:hover{ background: var(--tj-surface-alt); }
.tj-inbox-list .contact.active{ background: var(--tj-orange-50); box-shadow: inset 2px 0 0 var(--tj-orange); }
.tj-inbox-list .contact img{ width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tj-inbox-list .contact b{ display: block; font-size: 14px; font-weight: 600; }
.tj-inbox-list .contact small{ display: block; color: var(--tj-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-inbox-thread{ display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
.tj-inbox-head{ display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-block-end: 1px solid var(--tj-border); }
.tj-inbox-head img{ width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tj-inbox-body{ overflow: auto; padding: 16px; background: var(--tj-surface-alt); }
.tj-inbox .messages-list{ display: grid; gap: 8px; }
.tj-inbox .messages-list li{ display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.tj-inbox .messages-list li img{ width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.tj-inbox .messages-list li p{ margin: 0; padding: 10px 14px; border-radius: var(--tj-r-lg); font-size: 14px; line-height: 1.5; background: var(--tj-surface); border: 1px solid var(--tj-border); }
.tj-inbox .messages-list li.replies{ justify-self: end; flex-direction: row-reverse; }
.tj-inbox .messages-list li.replies p{ background: var(--tj-ink-2); color: var(--tj-bg); border-color: var(--tj-ink-2); }
.tj-inbox .messages-list li p span{ display: block; margin-block-start: 4px; font-size: 10.5px; opacity: .65; }
.tj-inbox-compose{ display: flex; gap: 8px; padding: 12px 14px; border-block-start: 1px solid var(--tj-border); }
.site-content .tj-inbox-compose input, .tj-inbox-compose input{ flex: 1; height: 44px !important; border: 1px solid var(--tj-input-border, #c9ccd4) !important; border-radius: var(--tj-r) !important; padding: 0 14px !important; box-shadow: none !important; background: var(--tj-surface) !important; }
@media (max-width: 860px){
    .tj-inbox{ grid-template-columns: 1fr; height: auto; min-height: 0; }
    .tj-inbox-list{ border: 0; }
    .tj-inbox.show-thread .tj-inbox-list{ display: none; }
    .tj-inbox:not(.show-thread) .tj-inbox-thread{ display: none; }
}

.tj-pform{ display: grid; gap: 18px; }
.tj-pform-section{ background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 22px; display: grid; gap: 16px; }
.tj-pform-section h2{ font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tj-pform-section h2 i{ color: var(--tj-navy-400); }
.tj-pform-section h2 small{ margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--tj-muted); }
.tj-pform-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tj-pform-block{ border: 1px dashed #cfd2d9; border-radius: var(--tj-r); padding: 16px; display: grid; gap: 12px; position: relative; }
.tj-pform-block .rm{ position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.tj-pform-sticky{ position: sticky; inset-block-end: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0; background: var(--tj-bg); border-block-start: 1px solid var(--tj-border); }

.tj-shop table.tjk-table td, .tj-shop table.tjk-table th{ vertical-align: middle; }
.tj-thumb-sm{ width: 48px; height: 48px; border-radius: var(--tj-r); object-fit: cover; background: var(--shop-media-bg); border: 1px solid var(--tj-border); }

@media (prefers-reduced-motion: reduce){
    .tj-shop *, .tj-shop *::before, .tj-shop *::after{ transition: none !important; animation: none !important; }
    .tj-sticky-cta, .tj-filters{ transition: none; }
}

/* ------------------------------------------------------------
   13. Bold home: full-bleed bands, category tiles, deal band
   ------------------------------------------------------------ */
.tj-shop-bleed{ margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
.tj-band{ padding-block: var(--tj-sec-y-sm); margin-block-start: var(--tj-sec-y-sm); }
.tj-band.gold{ background: var(--shop-band-gold); border-block: 1px solid var(--tj-orange-100); }
.tj-band.navy{ background: var(--shop-band-navy); border-block: 1px solid var(--tj-border); }
.tj-band.dark{ background: #0d1424; border-block: 1px solid #263049; color: #fff; }
.tj-band.dark .tj-shop-sec-head{ border-block-end-color: #263049; }
.tj-band.dark .tj-shop-sec-head h2{ color: #f3f5fa; }
.tj-band.dark .tj-shop-sec-head p{ color: #98a1b8; }
.tj-band.dark .tj-shop-eyebrow{ color: var(--tj-brand-300); }
.tj-band.dark .tj-shop-eyebrow::before{ background: var(--tj-brand-400); }
.tj-band.dark .tj-viewall{ color: var(--tj-brand-300); }
.tj-band.dark .tj-viewall:hover{ color: var(--tj-brand-200); }
.tj-band > .tj-shop-sec-head{ margin-block-end: 18px; }
.tj-band + .tj-band{ margin-block-start: 0; }

/* hero v2: full-bleed slider, floating search card */
.tj-shop-hero.bleed{ border-radius: 0; border-inline: 0; border-block-start: 0; margin-inline: calc(50% - 50vw); min-height: clamp(400px, 48vw, 520px); box-shadow: none; align-items: center; }
.tj-shop-hero.bleed .tj-shop-hero-content{ margin-inline: auto; width: min(1180px, calc(100% - 48px)); max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.tj-shop-hero.bleed h1{ font-size: clamp(30px, 4.4vw, 54px); line-height: 1; letter-spacing: -.035em; }
html[lang="ar"] .tj-shop-hero.bleed h1{ letter-spacing: 0; line-height: 1.2; }
.tj-shop-hero.bleed h1 em{ font-style: normal; color: var(--tj-brand-300); }
.tj-shop-hero.bleed::before{ background: rgba(10,15,30,.78); }
.tj-hero-card{ background: var(--tj-surface); color: var(--tj-ink); border: 1px solid var(--tj-border); border-radius: var(--tj-r); padding: 22px; box-shadow: 0 6px 16px -6px rgba(16,20,32,.16); display: grid; gap: 14px; }
.tj-hero-card h3{ font-size: 17px; font-weight: 600; color: var(--tj-ink); display: flex; align-items: center; gap: 8px; }
.tj-hero-card h3 i{ color: var(--tj-orange-deep); }
.tj-hero-card .tj-hero-search{ box-shadow: none; border: 1px solid var(--tj-input-border, #c9ccd4); background: var(--tj-surface); padding-inline-start: 12px; max-width: none; }
.tj-hero-card .tj-hero-chips{ margin: 0; }
.tj-hero-card .tj-hero-chips a{ background: var(--tj-surface); border-color: var(--tj-input-border, #c9ccd4); color: var(--tj-muted); }
.tj-hero-card .tj-hero-chips a:hover{ background: var(--tj-orange-50); border-color: var(--tj-orange-200); color: var(--tj-orange-deep); }
.tj-hero-card .tj-shop-hero-stat{ margin: 0; padding-block-start: 12px; border-block-start: 1px solid var(--tj-border); gap: 18px; }
.tj-hero-card .tj-shop-hero-stat strong{ color: var(--tj-ink); font-size: 20px; letter-spacing: -.02em; }
.tj-hero-card .tj-shop-hero-stat small{ color: var(--tj-muted); }
.tj-shop-hero.bleed .tj-shop-hero-dots{ inset-inline-end: max(22px, calc(50vw - 590px)); }
.tj-shop-hero.bleed .tj-shop-hero-content > *{ min-width: 0; }
.tj-hero-card .tj-hero-search input{ width: 0; }
@media (max-width: 991px){ .tj-shop-hero.bleed .tj-shop-hero-content{ grid-template-columns: 1fr; gap: 20px; width: calc(100% - 32px); } .tj-hero-card{ padding: 16px; } }

/* category tiles grid */
.tj-cat-grid{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tj-cat-tile{ position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--tj-r); overflow: hidden; background: var(--shop-media-bg); box-shadow: none; border: 1px solid var(--tj-border); transition: border-color 140ms ease-out, box-shadow 140ms ease-out; }
.tj-cat-tile img{ width: 100%; height: 100%; object-fit: cover; }
.tj-cat-tile span{ position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; padding: 10px 12px; background: rgba(10,15,30,.82); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tj-cat-tile span i{ font-size: 16px; opacity: .8; }
html[dir="rtl"] .tj-cat-tile span i{ transform: scaleX(-1); }
.tj-cat-tile:hover{ border-color: var(--tj-muted-2); box-shadow: 0 4px 14px -6px rgba(16,20,32,.18); }
.tj-cat-tile.all{ background: #0d1424; border-color: #263049; display: grid; place-items: center; color: #fff; }
.tj-cat-tile.all > i{ font-size: 36px; color: var(--tj-brand-300); }
.tj-cat-tile.all span{ position: static; justify-content: center; background: transparent; padding: 0; }
@media (max-width: 991px){ .tj-cat-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px){ .tj-cat-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .tj-cat-tile span{ font-size: 12px; inset-inline: 9px; inset-block-end: 9px; } }

/* deal band: full-width dark */
.tj-deal-band{ display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 32px; align-items: center; }
.tj-deal-band .tj-deal-media{ aspect-ratio: 1 / 1; border-radius: var(--tj-r); margin: 0; background: var(--tj-surface); border: 1px solid #263049; box-shadow: none; }
.tj-deal-band .tj-deal-media img{ object-fit: contain; }
.tj-deal-band h3{ color: #fff; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.022em; margin-block: 10px 6px; }
html[lang="ar"] .tj-deal-band h3{ letter-spacing: 0; line-height: 1.35; }
.tj-deal-band p{ color: #98a1b8; margin: 0 0 16px; font-size: 15px; max-width: 520px; }
.tj-deal-band .tj-deal-meter{ max-width: 420px; }
.tj-deal-band .tj-deal-meta{ max-width: 420px; }
.tj-deal-band .tj-countdown{ max-width: 420px; }
.tj-deal-band .tj-deal-cta{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-block-start: 20px; }
.tj-deal-band .tj-deal-cta .tj-btn{ margin: 0; width: auto; }
.tj-deal-band .tj-seller-link{ color: var(--tj-brand-300); }
.tj-deal-band .tj-seller-link i{ color: var(--tj-brand-300); }
@media (max-width: 860px){ .tj-deal-band{ grid-template-columns: 1fr; gap: 20px; } .tj-deal-band .tj-deal-media{ max-width: 360px; } }

/* buy price strip, filters head — flat, hairline-framed */
.tj-buy-price{ padding: 16px 18px; border-radius: var(--tj-r-lg); background: var(--shop-band-gold); border: 1px solid var(--tj-orange-100); }
.tj-buy-panel{ border-color: var(--tj-border); box-shadow: none; }
.tj-filters-head{ margin: -18px -18px 0; padding: 14px 18px; background: var(--tj-surface-alt); border-block-end: 1px solid var(--tj-border); border-radius: var(--tj-r-lg) 3px 0 0; color: var(--tj-ink); }
.tj-filters-head h3{ color: var(--tj-ink); font-weight: 600; }
.tj-filters-head h3 i{ color: var(--tj-orange-deep); }
.tj-filters-head a{ color: var(--tj-muted); }
.tj-filters-head a:hover{ color: var(--tj-orange-deep); }
.tj-shop-title h1, .tj-acct-head h1{ color: var(--tj-ink); letter-spacing: -.028em; line-height: 1.08; }
html[lang="ar"] .tj-shop-title h1, html[lang="ar"] .tj-acct-head h1{ letter-spacing: 0; line-height: 1.3; }
.tj-shop-sec-head h2{ color: var(--tj-ink); letter-spacing: -.022em; }
html[lang="ar"] .tj-shop-sec-head h2{ letter-spacing: 0; }

/* ------------------------------------------------------------
   14. Arabic leading (Cairo runs 1.15–1.25× Inter's line-height)
   ------------------------------------------------------------ */
html[lang="ar"] body.tj-legacy-off{ line-height: 1.85; }
html[lang="ar"] .tj-shop :where(h1, h2, h3, h4){ line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .tj-shop .tj-prose{ line-height: 1.9; }
