/* ==========================================================================
   Tbokr — main styles
   Brand: violet #7B4DFF · ink #161616 · white · soft violet #EFE9FF
   Uses logical properties so it works in RTL (Arabic) and LTR.
   ========================================================================== */

:root {
	--tb-brand: #7B4DFF;
	--tb-brand-ink: color-mix(in srgb, var(--tb-brand) 82%, #000);
	--tb-soft: color-mix(in srgb, var(--tb-brand) 12%, #fff);
	--tb-soft-2: color-mix(in srgb, var(--tb-brand) 6%, #fff);
	--tb-ink: #161616;
	--tb-muted: #6B6780;
	--tb-line: #E7E2F5;
	--tb-bg: #FFFFFF;
	--tb-success: #1F9D55;
	--tb-danger: #D93A3A;

	--tb-font: "Thmanyah Sans", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
	--tb-font-display: "Thmanyah Serif Display", "Thmanyah Sans", Georgia, serif;

	--tb-radius: 18px;
	--tb-radius-sm: 12px;
	--tb-radius-lg: 28px;
	--tb-shadow: 0 10px 30px -12px rgba(40, 20, 90, .18);
	--tb-gutter: clamp(16px, 4vw, 32px);
	--tb-max: 1280px;
	--tb-header-h: 72px;
	--tb-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--tb-bg);
	color: var(--tb-ink);
	font-family: var(--tb-font);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tb-brand); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tb-brand); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tb-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--tb-ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.tb-skip:focus { top: 12px; color: #fff; }

.tb-container { width: 100%; max-width: var(--tb-max); margin-inline: auto; padding-inline: var(--tb-gutter); }
.tb-container--narrow { max-width: 820px; }
.tb-main { padding-block: 28px 72px; min-height: 50vh; }
.tb-home { padding-block: 0 72px; }

/* ---------- Buttons ---------- */
.tb-btn,
.button, button.button, a.button, input[type="submit"],
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tb-brand); color: #fff; border: 0; cursor: pointer;
	padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.4;
	text-decoration: none; transition: transform .2s var(--tb-ease), background .2s, box-shadow .2s;
}
.tb-btn:hover,
.button:hover, button.button:hover, a.button:hover, input[type="submit"]:hover,
.wp-block-button__link:hover { background: var(--tb-brand-ink); color: #fff; transform: translateY(-1px); box-shadow: var(--tb-shadow); }
.tb-btn .tb-icon { width: 18px; height: 18px; }
.tb-btn--lg { padding: 15px 28px; font-size: 16px; }
.tb-btn--ghost { background: transparent; color: var(--tb-ink); box-shadow: inset 0 0 0 1.5px var(--tb-line); }
.tb-btn--ghost:hover { background: var(--tb-soft); color: var(--tb-ink); box-shadow: inset 0 0 0 1.5px var(--tb-brand); }
.tb-btn--light { background: #fff; color: var(--tb-brand); }
.tb-btn--light:hover { background: var(--tb-ink); color: #fff; }
.tb-btn--block { width: 100%; }
.tb-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
	background: transparent; border: 0; cursor: pointer; color: var(--tb-ink); position: relative;
	transition: background .2s;
}
.tb-icon-btn:hover { background: var(--tb-soft); color: var(--tb-ink); }
.tb-icon { width: 22px; height: 22px; flex: none; }
.tb-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--tb-brand); }
.tb-link .tb-icon { width: 18px; height: 18px; }
.tb-pill { display: inline-block; background: #fff; color: var(--tb-brand); font-weight: 900; font-size: 13px; padding: 5px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--tb-line); }

/* Arrow icons point "forward" in reading direction */
[dir="ltr"] .tb-btn .tb-icon, [dir="ltr"] .tb-link .tb-icon { transform: scaleX(-1); }

/* ---------- Announcement ---------- */
.tb-announce { background: var(--tb-ink); color: #fff; text-align: center; font-size: 13px; font-weight: 500; }
.tb-announce p { margin: 0; padding: 8px var(--tb-gutter); }

/* ---------- Header ---------- */
.tb-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-header { top: 0; } }
.tb-header.is-scrolled { border-color: var(--tb-line); box-shadow: 0 6px 24px -18px rgba(40, 20, 90, .35); }
.tb-header__inner { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--tb-header-h); }
.tb-header__actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.tb-logo { display: inline-flex; color: var(--tb-ink); text-decoration: none; flex: none; }
.tb-logo svg { width: 92px; height: auto; display: block; }
.tb-logo img { max-height: 48px; width: auto; }
.tb-logo:hover { color: var(--tb-brand); }
.tb-logo--sm svg { width: 76px; }

.tb-nav { flex: 1; display: flex; justify-content: center; }
.tb-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tb-menu a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
.tb-menu a:hover, .tb-menu .current-menu-item > a { background: var(--tb-soft); color: var(--tb-brand); }
.tb-menu li { position: relative; }
.tb-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 200px;
	background: #fff; border-radius: var(--tb-radius-sm); box-shadow: var(--tb-shadow); border: 1px solid var(--tb-line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--tb-ease);
}
.tb-nav li:hover > .sub-menu, .tb-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tb-nav .sub-menu a { border-radius: 8px; }

.tb-cart-btn { text-decoration: none; }
.tb-cart-count {
	position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	background: var(--tb-brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center;
}
.tb-cart-count[data-count="0"] { display: none; }
.tb-cart-count.is-bump { animation: tb-bump .5s var(--tb-ease); }
@keyframes tb-bump { 40% { transform: scale(1.35); } }

.tb-only-mobile { display: none; }
@media (max-width: 960px) {
	.tb-only-desktop { display: none !important; }
	.tb-only-mobile { display: inline-grid; }
	.tb-header__inner { min-height: 62px; }
	.tb-logo svg { width: 78px; }
	.tb-header .tb-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* ---------- Drawers ---------- */
.tb-overlay { position: fixed; inset: 0; background: rgba(22, 22, 22, .45); z-index: 90; animation: tb-fade .2s; }
.tb-drawer { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 100; width: min(420px, 92vw); }
.tb-drawer--cart, .tb-drawer--filters { inset-inline-start: auto; inset-inline-end: 0; }
.tb-drawer__panel {
	height: 100%; overflow-y: auto; background: #fff; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
	display: flex; flex-direction: column; gap: 16px; animation: tb-slide-in .3s var(--tb-ease);
}
.tb-drawer--cart .tb-drawer__panel, .tb-drawer--filters .tb-drawer__panel { animation-name: tb-slide-in-end; }
.tb-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--tb-line); }
.tb-drawer__head strong { font-size: 18px; font-weight: 900; }
.tb-menu--mobile { flex-direction: column; gap: 2px; }
.tb-menu--mobile a { font-size: 18px; padding: 12px 14px; border-radius: 12px; }
.tb-menu--mobile .sub-menu { list-style: none; padding-inline-start: 14px; margin: 0; }
.tb-menu--mobile .sub-menu a { font-size: 15px; font-weight: 500; }
@keyframes tb-fade { from { opacity: 0; } }
@keyframes tb-slide-in { from { transform: translateX(100%); } }
@keyframes tb-slide-in-end { from { transform: translateX(-100%); } }
[dir="ltr"] .tb-drawer__panel { animation-name: tb-slide-in-ltr; }
[dir="ltr"] .tb-drawer--cart .tb-drawer__panel, [dir="ltr"] .tb-drawer--filters .tb-drawer__panel { animation-name: tb-slide-in-end-ltr; }
@keyframes tb-slide-in-ltr { from { transform: translateX(-100%); } }
@keyframes tb-slide-in-end-ltr { from { transform: translateX(100%); } }
body.tb-lock { overflow: hidden; }

/* ---------- Search overlay ---------- */
.tb-search { position: fixed; inset-inline: 0; top: 0; z-index: 100; background: #fff; padding-block: 18px; box-shadow: var(--tb-shadow); animation: tb-drop .25s var(--tb-ease); }
.tb-search .tb-container { display: flex; align-items: center; gap: 10px; }
.tb-search .tb-searchform { flex: 1; }
@keyframes tb-drop { from { transform: translateY(-100%); } }
.tb-searchform { display: flex; align-items: center; background: var(--tb-soft-2); border: 1.5px solid var(--tb-line); border-radius: 999px; padding-inline: 18px 6px; }
.tb-searchform:focus-within { border-color: var(--tb-brand); background: #fff; }
.tb-searchform input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 16px; outline: none; }
.tb-searchform button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--tb-brand); color: #fff; cursor: pointer; }
.tb-searchform button .tb-icon { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.tb-hero { position: relative; overflow: hidden; background: var(--tb-soft); padding-block: clamp(36px, 7vw, 88px) clamp(56px, 8vw, 110px); }
.tb-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.tb-hero__copy { display: grid; gap: 18px; justify-items: start; }
.tb-hero__title { font-family: var(--tb-font-display); font-weight: 700; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.15; margin: 0; }
.tb-hero__text { font-size: clamp(16px, 1.6vw, 19px); color: var(--tb-muted); max-width: 44ch; margin: 0; }
.tb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.tb-hero__media { position: relative; }
.tb-hero__img, .tb-hero__placeholder { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--tb-radius-lg); max-width: 100%; }
.tb-hero__placeholder { background: var(--tb-brand); display: grid; place-items: center; color: #fff; }
.tb-hero__placeholder svg { width: min(300px, 62%); height: auto; color: #fff; }
.tb-float {
	position: absolute; background: #fff; color: var(--tb-ink); font-weight: 900; font-size: 14px; padding: 10px 16px;
	border-radius: 14px; box-shadow: var(--tb-shadow); white-space: nowrap; animation: tb-float 5s ease-in-out infinite;
}
.tb-float::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tb-brand); margin-inline-end: 8px; vertical-align: middle; }
.tb-float--a { top: 12%; inset-inline-end: -12px; }
.tb-float--b { bottom: 14%; inset-inline-start: -12px; animation-delay: -2.5s; }
@keyframes tb-float { 50% { transform: translateY(-8px); } }
.tb-hero__ribbon { position: absolute; inset-inline: 0; bottom: 6%; width: 100%; height: 38%; color: color-mix(in srgb, var(--tb-brand) 22%, transparent); z-index: 0; }
@media (max-width: 860px) {
	.tb-hero__inner { grid-template-columns: 1fr; }
	.tb-hero__media { max-width: 460px; width: 100%; margin-inline: auto; }
	.tb-hero__placeholder { aspect-ratio: 16 / 9; }
	.tb-hero__img { aspect-ratio: 4 / 3; }
	.tb-float { display: none; }
}

/* ---------- Features strip ---------- */
.tb-features { border-bottom: 1px solid var(--tb-line); }
.tb-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.tb-feature { display: flex; align-items: center; gap: 12px; }
.tb-feature .tb-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--tb-soft); color: var(--tb-brand); }
.tb-feature div { display: grid; line-height: 1.4; }
.tb-feature strong { font-size: 15px; }
.tb-feature span { font-size: 13px; color: var(--tb-muted); }
@media (max-width: 860px) { .tb-features__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tb-feature .tb-icon { width: 38px; height: 38px; padding: 8px; } .tb-feature strong { font-size: 14px; } }

/* ---------- Sections ---------- */
.tb-section { padding-block: clamp(40px, 6vw, 72px) 0; }
.tb-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tb-section__head h2 { margin: 0; }

.tb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tb-cat { display: grid; gap: 4px; text-decoration: none; }
.tb-cat__media { aspect-ratio: 1; border-radius: var(--tb-radius); background: var(--tb-soft); overflow: hidden; display: block; }
.tb-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--tb-ease); }
.tb-cat:hover .tb-cat__media img { transform: scale(1.05); }
.tb-cat__name { font-weight: 900; font-size: 16px; margin-top: 6px; }
.tb-cat__count { font-size: 13px; color: var(--tb-muted); }

.tb-banner { padding-block: clamp(40px, 6vw, 72px) 0; }
.tb-banner__inner {
	background: var(--tb-brand); color: #fff; border-radius: var(--tb-radius-lg);
	padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	position: relative; overflow: hidden;
}
.tb-banner__inner::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .12); inset-inline-end: -110px; top: -160px; }
.tb-banner h2 { font-family: var(--tb-font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 8px; }
.tb-banner p { margin: 0; opacity: .88; max-width: 52ch; }
.tb-banner .tb-btn { position: relative; z-index: 1; }

/* ---------- Page head / breadcrumbs ---------- */
.tb-breadcrumbs, .woocommerce-breadcrumb { font-size: 13px; color: var(--tb-muted); margin-bottom: 18px; }
.tb-breadcrumbs a, .woocommerce-breadcrumb a { color: var(--tb-muted); text-decoration: none; }
.tb-breadcrumbs a:hover { color: var(--tb-brand); }
.tb-breadcrumbs .sep, .rank-math-breadcrumb .separator { margin-inline: 6px; opacity: .6; }
.rank-math-breadcrumb p { margin: 0; }
.tb-page-head { margin-bottom: 28px; }
.tb-page-head h1 { margin: 0; }
.tb-page-head__desc { color: var(--tb-muted); margin-top: 8px; }

/* ---------- Prose ---------- */
.tb-prose { font-size: 17px; }
.tb-prose > * + * { margin-top: 1em; }
.tb-prose h2, .tb-prose h3 { margin-top: 1.6em; }
.tb-prose img { border-radius: var(--tb-radius); }
.tb-prose blockquote { margin-inline: 0; padding: 12px 20px; border-inline-start: 4px solid var(--tb-brand); background: var(--tb-soft-2); border-radius: 0 12px 12px 0; }
.tb-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tb-prose th, .tb-prose td { border: 1px solid var(--tb-line); padding: 10px 12px; text-align: start; }
.alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }

/* ---------- Blog ---------- */
.tb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tb-card { display: grid; gap: 14px; }
.tb-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--tb-radius); background: var(--tb-soft); overflow: hidden; }
.tb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tb-card__meta { font-size: 13px; color: var(--tb-muted); }
.tb-card__title { font-size: 20px; margin: 4px 0 6px; }
.tb-card__title a { text-decoration: none; }
.tb-card p { color: var(--tb-muted); margin: 0; }
.tb-article__cover img { border-radius: var(--tb-radius-lg); width: 100%; }
.tb-article__cover { margin: 0 0 28px; }
.tb-article__tags a { display: inline-block; background: var(--tb-soft); padding: 4px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; margin: 24px 4px 0 0; }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid var(--tb-line); }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--tb-brand); color: #fff; border-color: var(--tb-brand); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation .nav-links a { border: 0; text-decoration: none; font-weight: 700; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], textarea, select {
	width: 100%; background: #fff; border: 1.5px solid var(--tb-line); border-radius: var(--tb-radius-sm);
	padding: 12px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--tb-brand); box-shadow: 0 0 0 4px var(--tb-soft); }
label { font-weight: 700; font-size: 14px; }

/* ---------- Comments ---------- */
.tb-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--tb-line); }
.tb-comments__list { list-style: none; padding: 0; }
.tb-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--tb-line); }

/* ---------- 404 / empty ---------- */
.tb-404, .tb-empty { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 40px; }
.tb-404 .tb-searchform { width: min(520px, 100%); }
.tb-404__code { font-family: var(--tb-font-display); font-size: clamp(80px, 16vw, 160px); line-height: 1; color: var(--tb-brand); }

/* ---------- Footer ---------- */
.tb-footer { background: var(--tb-ink); color: #D8D6E0; margin-top: 40px; }
.tb-footer a { color: #fff; text-decoration: none; }
.tb-footer a:hover { color: color-mix(in srgb, var(--tb-brand) 55%, #fff); }
.tb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.tb-footer__brand p { max-width: 38ch; margin: 16px 0; font-size: 15px; }
.tb-logo--footer { color: #fff; }
.tb-logo--footer svg { width: 110px; }
.tb-footer h2 { font-size: 16px; color: #fff; margin-bottom: 14px; }
.tb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.tb-footer__points li::before { content: "✓"; color: var(--tb-brand); margin-inline-end: 8px; font-weight: 900; }
.tb-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 13px; }
.tb-footer__bottom p { margin: 0; }
.tb-social { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tb-social a:hover { background: var(--tb-brand); color: #fff; }
.tb-social .tb-icon { width: 20px; height: 20px; }
.tb-drawer .tb-social a { background: var(--tb-soft); color: var(--tb-ink); }
@media (max-width: 860px) { .tb-footer__grid { grid-template-columns: 1fr 1fr; } .tb-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .tb-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating buttons ---------- */
.tb-wa, .tb-top {
	position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
	width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--tb-shadow);
}
.tb-wa { inset-inline-start: 18px; background: #25D366; color: #fff; }
.tb-wa:hover { color: #fff; transform: scale(1.05); }
.tb-wa .tb-icon { width: 28px; height: 28px; }
.tb-top { inset-inline-end: 18px; background: #fff; color: var(--tb-ink); width: 44px; height: 44px; animation: tb-fade .2s; }
.single-product .tb-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive polish — tablet & phone
   ========================================================================== */

/* Hero collage (when no hero image is set) */
.tb-hero__collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 6; max-width: 100%; }
.tb-hero__tile { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: #fff; box-shadow: var(--tb-shadow); }
.tb-hero__tile--1 { grid-row: 1 / 3; }

/* Categories: horizontal swipe row on small screens */
.tb-cat__media { position: relative; }
.tb-cat__media:empty::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: color-mix(in srgb, var(--tb-brand) 25%, transparent); }
@media (max-width: 760px) {
	.tb-cats {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto;
		scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--tb-gutter)); padding-inline: var(--tb-gutter);
	}
	.tb-cats::-webkit-scrollbar { display: none; }
	.tb-cat { scroll-snap-align: start; }
}

/* Tablet */
@media (min-width: 700px) and (max-width: 960px) {
	.tb-hero__inner { grid-template-columns: 1.1fr 1fr; gap: 28px; }
	.tb-hero__media { max-width: none; }
	.tb-hero__title { font-size: 44px; }
	.tb-hero__placeholder { aspect-ratio: 5 / 6; }
	.tb-float { display: none; }
	.tb-features__grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.tb-feature { flex-direction: column; align-items: flex-start; gap: 8px; }
	.tb-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.tb-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone */
@media (max-width: 699px) {
	.tb-hero { padding-block: 28px 44px; }
	.tb-hero__copy { gap: 12px; }
	.tb-hero__title { font-size: clamp(32px, 9vw, 40px); }
	.tb-hero__cta { width: 100%; }
	.tb-hero__cta .tb-btn { width: 100%; }
	.tb-hero__collage { aspect-ratio: 4 / 3; }
	.tb-hero__ribbon { display: none; }
	.tb-section { padding-top: 36px; }
	.tb-section__head { margin-bottom: 16px; }
	.tb-section__head h2 { font-size: 22px; }
	.tb-features__grid { padding-block: 16px; gap: 14px 10px; }
	.tb-banner__inner { padding: 24px; border-radius: 22px; }
	.tb-banner .tb-btn { width: 100%; }
	.tb-main { padding-block: 18px 48px; }
	.tb-page-head { margin-bottom: 18px; }
	.tb-announce { font-size: 12px; }
	.tb-announce p { padding-block: 6px; }
}

/* Bottom navigation (phones) */
.tb-bottom-nav { display: none; }
@media (max-width: 760px) {
	.tb-bottom-nav {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 44; display: grid; grid-template-columns: repeat(5, 1fr);
		background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-top: 1px solid var(--tb-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
	}
	.tb-bottom-nav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--tb-muted); }
	.tb-bottom-nav a[aria-current="page"] { color: var(--tb-brand); }
	.tb-bottom-nav .tb-icon { width: 22px; height: 22px; }
	.tb-bottom-nav .tb-cart-count { top: 0; inset-inline-end: calc(50% - 22px); }
	body:has(.tb-bottom-nav) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	body:has(.tb-bottom-nav) .tb-top, body:has(.tb-bottom-nav) .tb-wa { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
	/* Header search/cart are in the bottom bar on phones */
	body:has(.tb-bottom-nav) .tb-header__actions [data-tb-open="search"] { display: none; }
}

/* ==========================================================================
   Home — real customer reviews
   ========================================================================== */
.tb-reviews { padding-bottom: 8px; }
.tb-reviews__avg { margin: 6px 0 0; color: var(--tb-muted); display: flex; align-items: center; gap: 8px; }
.tb-reviews__avg strong { color: var(--tb-ink); }
.tb-stars { --tb-r: 5; display: inline-block; width: 90px; height: 16px; flex: none;
	background: linear-gradient(90deg, #F5B301 calc(var(--tb-r) / 5 * 100%), #E4E0EE 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 1l2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4 4.5 14.8l.9-5L1.8 6.3l5-.7z'/%3E%3C/svg%3E") 0 0 / 18px 16px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 1l2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4 4.5 14.8l.9-5L1.8 6.3l5-.7z'/%3E%3C/svg%3E") 0 0 / 18px 16px repeat-x;
}
[dir="rtl"] .tb-stars { transform: scaleX(-1); }
.tb-reviews__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 32%); gap: 16px; overflow-x: auto;
	scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin;
}
.tb-review { margin: 0; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.tb-review__head { display: flex; align-items: center; gap: 10px; }
.tb-review__head figcaption { display: grid; line-height: 1.35; }
.tb-review__head strong { font-size: 15px; }
.tb-review__badge { font-size: 11px; color: var(--tb-success); font-weight: 700; }
.tb-review .tb-bubble { margin-inline-start: 18px; }
.tb-review .tb-bubble::before {
	content: ""; position: absolute; top: -1px; inset-inline-start: -9px; width: 10px; height: 14px; background: var(--tb-soft-2);
	border-top: 1px solid var(--tb-line); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .tb-review .tb-bubble::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.tb-bubble p { margin: 6px 0 0; font-size: 15px; line-height: 1.75; }
.tb-bubble__meta { position: absolute; bottom: 5px; inset-inline-end: 12px; font-size: 11px; color: var(--tb-muted); }
.tb-bubble__meta { color: color-mix(in srgb, var(--tb-brand) 60%, var(--tb-muted)); }
.tb-review__product { font-size: 13px; color: var(--tb-muted); text-decoration: none; margin-inline-start: 18px; }
.tb-review__product::before { content: "على: "; }
.tb-review__product:hover { color: var(--tb-brand); }
@media (max-width: 760px) {
	.tb-reviews__track { grid-auto-columns: 84%; margin-inline: calc(-1 * var(--tb-gutter)); padding-inline: var(--tb-gutter); }
}

/* ==========================================================================
   Phone refinement — calmer type scale & tighter spacing
   ========================================================================== */
@media (max-width: 699px) {
	body { font-size: 15px; line-height: 1.7; }
	h1 { font-size: 26px; }
	h2 { font-size: 20px; }
	h3 { font-size: 17px; }
	.tb-prose { font-size: 15px; }
	.tb-btn, .button, input[type="submit"], .wp-block-button__link { font-size: 14px; padding: 11px 18px; }
	.tb-btn--lg { font-size: 15px; padding: 13px 22px; }

	.tb-header__inner { min-height: 56px; }
	.tb-logo svg { width: 70px; }
	.tb-icon-btn { width: 40px; height: 40px; }

	.tb-hero { padding-block: 22px 32px; }
	.tb-hero__copy { gap: 10px; }
	.tb-pill { font-size: 12px; padding: 4px 12px; }
	.tb-hero__title { font-size: 28px; line-height: 1.3; }
	.tb-hero__text { font-size: 14.5px; }
	.tb-hero__collage { aspect-ratio: 16 / 13; gap: 8px; }
	.tb-hero__tile { border-radius: 16px; }

	.tb-features__grid { grid-template-columns: 1fr 1fr; gap: 12px 8px; padding-block: 14px; }
	.tb-feature { gap: 8px; }
	.tb-feature .tb-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; }
	.tb-feature strong { font-size: 13px; }
	.tb-feature span { font-size: 11.5px; }

	.tb-section { padding-top: 30px; }
	.tb-section__head h2 { font-size: 19px; }
	.tb-link { font-size: 13px; }

	.tb-banner { padding-top: 30px; }
	.tb-banner h2 { font-size: 22px; }
	.tb-banner p { font-size: 14px; }

	.tb-reviews__track { grid-auto-columns: 82%; scrollbar-width: none; }
	.tb-reviews__track::-webkit-scrollbar { display: none; }
	.tb-bubble p { font-size: 14px; }

	.tb-footer { margin-top: 24px; }
	.tb-footer__grid { padding-block: 36px 24px; gap: 24px; }
	.tb-footer__brand p, .tb-footer ul { font-size: 14px; }
	.tb-logo--footer svg { width: 90px; }

	.tb-drawer__panel { padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
	.tb-menu--mobile a { font-size: 16px; padding: 10px 12px; }

	/* Bottom bar already gives quick access — drop the extra floating button */
	body:has(.tb-bottom-nav) .tb-top { display: none !important; }
}
.tb-hero__collage { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.tb-hero__tile { min-height: 0; min-width: 0; }
.tb-footer .tb-pay svg { width: 50px; height: 17px; }

/* Design pass v2 — section heads & features */
.tb-section__head h2 { position: relative; padding-inline-start: 14px; }
.tb-section__head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 4px; background: var(--tb-brand); }
.tb-feature .tb-icon { background: #fff; box-shadow: inset 0 0 0 1px var(--tb-line); }
.tb-features { background: var(--tb-soft-2); border-bottom: 0; }
