/* ==========================================================================
   ToolBank24 — Modern Yellow + Blue Theme
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: hidden;
	max-width: 100%;
}

body {
	font-family: var(--tb-font);
	background: var(--tb-bg);
	color: var(--tb-text);
	line-height: 1.75;
	letter-spacing: -0.01em;
	direction: rtl;
	font-weight: 400;
	transition: background 0.3s ease, color 0.3s ease;
	overflow-x: hidden;
	-webkit-tap-highlight-color: rgba(30, 86, 160, 0.12);
	touch-action: manipulation;
}

html { transition: background 0.3s ease; }

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

button, input, select, textarea, .tb-btn {
	font-family: var(--tb-font);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tb-link); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--tb-link-hover); }
ul, ol { list-style: none; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.tb-container {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	min-width: 0;
}

/* Buttons */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: none;
	border-radius: var(--tb-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tb-btn-primary {
	background: var(--tb-gradient-cta);
	color: var(--tb-white);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.tb-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
	color: var(--tb-white);
}

.tb-btn-outline {
	background: transparent;
	border: 2px solid var(--tb-blue-700);
	color: var(--tb-blue-700);
}
.tb-btn-outline:hover {
	background: var(--tb-blue-700);
	color: var(--tb-white);
}

.tb-btn-hero {
	background: var(--tb-yellow-400);
	color: var(--tb-blue-900);
	font-size: 1.05rem;
	padding: 14px 36px;
	border-radius: var(--tb-radius);
	box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
}
.tb-btn-hero:hover {
	background: var(--tb-yellow-300);
	transform: translateY(-2px);
	color: var(--tb-blue-900);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.tb-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--tb-header-bg);
	box-shadow: var(--tb-shadow);
	transition: box-shadow 0.3s, background 0.3s;
	padding-top: env(safe-area-inset-top, 0);
}
.tb-header.scrolled { box-shadow: var(--tb-shadow-lg); }

.tb-header-top {
	background: var(--tb-gradient);
	color: var(--tb-white);
	font-size: 0.85rem;
	padding: 6px 0;
}
.tb-header-top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tb-header-contact a {
	color: var(--tb-yellow-300);
	display: flex;
	align-items: center;
	gap: 6px;
}
.tb-header-contact a:hover { color: var(--tb-white); }

.tb-header-main { padding: 14px 0; min-height: 68px; }
.tb-header-main-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.tb-logo {
	flex-shrink: 0;
	overflow: visible;
	display: flex;
	align-items: center;
}

.tb-logo-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	overflow: visible;
}
.tb-logo-icon {
	height: 58px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	object-position: center center;
	display: block;
	flex-shrink: 0;
}
[data-theme="dark"] .tb-logo-icon {
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
	        drop-shadow(0 0 3px rgba(255, 255, 255, 0.5))
	        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.tb-logo-text-wrap {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.tb-logo-en {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--tb-text);
	letter-spacing: -0.03em;
}
.tb-logo-accent { color: var(--tb-yellow-500); }
.tb-logo-fa {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--tb-text-muted);
}
.tb-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.tb-logo-img,
.tb-logo .custom-logo {
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center top;
	display: block;
}

.tb-search-form {
	flex: 1;
	display: flex;
	background: var(--tb-gray-100);
	border: 2px solid transparent;
	border-radius: var(--tb-radius-lg);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
	max-width: 560px;
}
.tb-search-form:focus-within {
	border-color: var(--tb-blue-600);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.tb-search-form input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
}
.tb-search-form button {
	background: var(--tb-blue-800);
	color: var(--tb-white);
	border: none;
	padding: 0 18px;
	cursor: pointer;
	transition: background 0.2s;
}
.tb-search-form button:hover { background: var(--tb-yellow-500); color: var(--tb-blue-900); }

.tb-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.tb-account-icon, .tb-cart-icon, .tb-wishlist-header-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--tb-gray-600);
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: color 0.2s;
}
.tb-account-icon:hover, .tb-cart-icon:hover, .tb-wishlist-header-btn:hover { color: var(--tb-blue-700); }
.tb-action-label { font-size: 0.7rem; }

.tb-cart-count, .tb-wishlist-count {
	position: absolute;
	top: -4px;
	left: -4px;
	background: var(--tb-yellow-400);
	color: var(--tb-blue-900);
	font-size: 0.65rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Category Nav */
.tb-nav-categories {
	background: var(--tb-blue-900);
	position: relative;
}
.tb-nav-categories .tb-container {
	display: flex;
	align-items: center;
	gap: 24px;
}
.tb-mega-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--tb-yellow-400);
	color: var(--tb-blue-900);
	border: none;
	padding: 12px 20px;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 0;
	transition: background 0.2s;
}
.tb-mega-toggle:hover { background: var(--tb-yellow-300); }

.tb-primary-menu {
	display: flex;
	gap: 4px;
}
.tb-primary-menu a {
	color: rgba(255,255,255,0.9);
	padding: 14px 16px;
	font-size: 0.9rem;
	display: block;
	transition: color 0.2s, background 0.2s;
	border-radius: var(--tb-radius-sm);
}
.tb-primary-menu a:hover {
	color: var(--tb-yellow-400);
	background: rgba(255,255,255,0.08);
}

.tb-mega-menu {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	background: var(--tb-bg-card);
	box-shadow: var(--tb-shadow-lg);
	z-index: 999;
	padding: 24px 0;
	border-top: 3px solid var(--tb-yellow-400);
	border-radius: 0 0 var(--tb-radius-lg) var(--tb-radius-lg);
}
.tb-mega-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.tb-mega-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--tb-radius-sm);
	transition: background 0.2s, transform 0.2s;
	color: var(--tb-gray-800);
}
.tb-mega-item:hover {
	background: var(--tb-blue-100);
	transform: translateX(-4px);
	color: var(--tb-blue-800);
}

/* Mobile menu toggle */
.tb-header-search-mobile { display: none; }

.tb-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	min-width: 44px;
	min-height: 44px;
	touch-action: manipulation;
}
.tb-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--tb-blue-800);
	border-radius: 2px;
	transition: transform 0.3s;
}

/* Mobile drawer */
.tb-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 2000;
	pointer-events: none;
}
.tb-mobile-drawer.open { pointer-events: auto; }
.tb-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 45, 92, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s;
}
.tb-mobile-drawer.open .tb-drawer-overlay { opacity: 1; }
.tb-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 85vw);
	height: 100%;
	background: var(--tb-white);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}
.tb-mobile-drawer.open .tb-drawer-panel { transform: translateX(0); }
.tb-drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: var(--tb-gradient);
	color: var(--tb-white);
}
.tb-drawer-close {
	background: none;
	border: none;
	color: var(--tb-white);
	font-size: 1.5rem;
	cursor: pointer;
}
.tb-mobile-menu a {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid var(--tb-gray-100);
	color: var(--tb-gray-800);
	font-weight: 500;
}
.tb-mobile-menu a:hover { background: var(--tb-blue-100); color: var(--tb-blue-800); }

/* ==========================================================================
   HERO SLIDER — full banner visible, compact & harmonious (v1.2.23)
   ========================================================================== */
.tb-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 14px clamp(20px, 5vw, 56px) 0;
	box-sizing: border-box;
}
.tb-hero-inner {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	min-width: 0;
}
.tb-hero-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 600;
	max-height: 270px;
	margin-inline: auto;
	border-radius: var(--tb-radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(15, 45, 92, 0.08);
	background: var(--tb-blue-900);
}
.tb-hero-slide {
	display: none;
	opacity: 0;
	transition: opacity 0.4s ease;
	position: absolute;
	inset: 0;
}
.tb-hero-slide.active {
	display: block;
	opacity: 1;
}
.tb-hero-slide--natural {
	background: #000;
}
.tb-hero-slide--natural .tb-hero-banner-link,
.tb-hero-slide--natural picture {
	display: block;
	width: 100%;
	height: 100%;
}
.tb-hero-banner-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center center;
}
.tb-hero-banner-img--custom {
	object-fit: contain;
}
.tb-hero-slide--text .tb-hero-bg,
.tb-hero-slide--text .tb-hero-overlay {
	position: absolute;
	inset: 0;
}
.tb-hero-slide--text .tb-hero-overlay {
	pointer-events: none;
}
.tb-hero-slide--text .tb-hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tb-hero-bg--gradient {
	background: var(--tb-gradient);
}
.tb-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15,45,92,0.75) 0%, rgba(30,86,160,0.5) 60%, rgba(245,158,11,0.15) 100%);
	pointer-events: none;
}
.tb-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--tb-white);
	max-width: 600px;
	padding: 24px 0;
}
.tb-hero-title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 12px;
	text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tb-hero-subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
	margin-bottom: 28px;
}
.tb-hero-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 3;
}
.tb-hero-dot {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
	touch-action: manipulation;
}
.tb-hero-dot::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--tb-white);
	background: transparent;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tb-hero-dot.active::after {
	background: var(--tb-yellow-400);
	border-color: var(--tb-yellow-400);
	transform: scale(1.2);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.tb-section { padding: 48px 0; }
.tb-section-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--tb-blue-900);
	margin-bottom: 28px;
	position: relative;
	padding-right: 16px;
}
.tb-section-title::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 28px;
	background: var(--tb-gradient-cta);
	border-radius: 4px;
}
.tb-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
	flex-wrap: wrap;
	gap: 16px;
}
.tb-section-header .tb-section-title { margin-bottom: 0; }

/* Category Grid */
.tb-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.tb-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 16px;
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	border: 2px solid var(--tb-gray-100);
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
	color: var(--tb-gray-800);
}
.tb-category-tile:hover {
	transform: translateY(-4px);
	border-color: var(--tb-blue-600);
	box-shadow: var(--tb-shadow);
	color: var(--tb-blue-800);
}
.tb-category-icon {
	width: 72px;
	height: 72px;
	background: var(--tb-yellow-100);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s;
}
.tb-category-tile:hover .tb-category-icon { background: var(--tb-blue-100); }
.tb-category-name { font-weight: 600; font-size: 0.9rem; text-align: center; }

/* Countdown */
.tb-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--tb-blue-900);
	padding: 8px 20px;
	border-radius: var(--tb-radius);
	color: var(--tb-white);
}
.tb-countdown-num {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--tb-yellow-400);
}
.tb-countdown-item { text-align: center; }
.tb-countdown-item small { display: block; font-size: 0.7rem; opacity: 0.8; }
.tb-countdown-sep { color: var(--tb-yellow-400); font-weight: 700; }

/* Flash deals section */
.tb-flash-deals {
	background: linear-gradient(180deg, var(--tb-blue-100) 0%, var(--tb-white) 100%);
}

/* Product Grid */
.tb-product-grid,
.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.tb-product-card {
	background: var(--tb-bg-card);
	border-radius: var(--tb-radius);
	border: 2px solid var(--tb-border);
	overflow: hidden;
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
	position: relative;
}
.tb-product-card:hover {
	transform: translateY(-4px);
	border-color: var(--tb-blue-600);
	box-shadow: var(--tb-shadow-lg);
}
.tb-product-inner { padding: 16px; }
.tb-product-image {
	position: relative;
	border-radius: var(--tb-radius-sm);
	overflow: hidden;
	margin-bottom: 12px;
	aspect-ratio: 1;
	background: var(--tb-gray-50);
}
.tb-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.tb-product-card:hover .tb-product-image img { transform: scale(1.05); }

.tb-sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--tb-yellow-400);
	color: var(--tb-blue-900);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 2;
}

.tb-product-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tb-gray-800);
	margin-bottom: 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tb-product-price {
	font-size: 1rem;
	font-weight: 800;
	color: var(--tb-blue-800);
	margin-bottom: 12px;
}
.tb-product-price del {
	color: var(--tb-gray-400);
	font-weight: 400;
	font-size: 0.85rem;
	margin-left: 8px;
}
.tb-product-price ins { text-decoration: none; color: var(--tb-blue-800); }

/* Stars */
.tb-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.tb-star { color: var(--tb-gray-200); font-size: 0.85rem; }
.tb-star.filled { color: var(--tb-yellow-400); }
.tb-rating-count { font-size: 0.75rem; color: var(--tb-gray-400); margin-right: 4px; }

/* Product actions */
.tb-product-actions {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.25s, transform 0.25s;
}
.tb-product-card:hover .tb-product-actions { opacity: 1; transform: translateX(0); }
.tb-quick-view-btn, .tb-wishlist-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tb-white);
	border: 2px solid var(--tb-blue-100);
	color: var(--tb-blue-700);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s;
	box-shadow: var(--tb-shadow);
}
.tb-quick-view-btn:hover, .tb-wishlist-btn:hover {
	background: var(--tb-blue-700);
	color: var(--tb-white);
	border-color: var(--tb-blue-700);
}
.tb-wishlist-btn.active { background: var(--tb-yellow-400); border-color: var(--tb-yellow-400); color: var(--tb-blue-900); }

/* Add to cart button in loop */
.tb-product-card .button,
.tb-product-card .add_to_cart_button {
	width: 100%;
	background: var(--tb-blue-800);
	color: var(--tb-white);
	border: none;
	padding: 10px;
	border-radius: var(--tb-radius-sm);
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	text-align: center;
	display: block;
}
.tb-product-card .button:hover { background: var(--tb-yellow-500); color: var(--tb-blue-900); }

/* Carousel */
.tb-product-carousel { position: relative; overflow: hidden; }
.tb-carousel-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 8px 0;
	max-width: 100%;
	min-width: 0;
}
.tb-carousel-track::-webkit-scrollbar { display: none; }
.tb-carousel-track .tb-product-card {
	min-width: 260px;
	flex-shrink: 0;
	scroll-snap-align: start;
}
.tb-carousel-prev, .tb-carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tb-white);
	border: 2px solid var(--tb-blue-200);
	color: var(--tb-blue-800);
	cursor: pointer;
	z-index: 2;
	box-shadow: var(--tb-shadow);
	transition: background 0.2s;
	font-size: 1rem;
}
.tb-carousel-prev { right: -8px; }
.tb-carousel-next { left: -8px; }
.tb-carousel-prev:hover, .tb-carousel-next:hover { background: var(--tb-yellow-400); border-color: var(--tb-yellow-400); }

/* Brands */
.tb-brand-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
.tb-brand-logo {
	padding: 16px 32px;
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	border: 2px solid var(--tb-gray-100);
	font-weight: 700;
	color: var(--tb-gray-400);
	font-size: 0.9rem;
	transition: border-color 0.2s, color 0.2s;
}
.tb-brand-logo:hover { border-color: var(--tb-blue-600); color: var(--tb-blue-800); }

/* Trust badges */
.tb-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.tb-trust-item {
	text-align: center;
	padding: 28px 20px;
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	border: 2px solid var(--tb-gray-100);
	transition: transform 0.25s, box-shadow 0.25s;
}
.tb-trust-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--tb-shadow);
}
.tb-trust-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--tb-gradient-cta);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}
.tb-trust-item h3 { font-size: 1rem; color: var(--tb-blue-900); margin-bottom: 6px; }
.tb-trust-item p { font-size: 0.85rem; color: var(--tb-gray-600); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tb-footer-newsletter {
	background: var(--tb-gradient);
	padding: 40px 0;
}
.tb-newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.tb-newsletter-text h3 { color: var(--tb-white); font-size: 1.3rem; margin-bottom: 4px; }
.tb-newsletter-text p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.tb-newsletter-form {
	display: flex;
	gap: 8px;
	flex: 1;
	max-width: 480px;
}
.tb-newsletter-form input {
	flex: 1;
	padding: 12px 16px;
	border: none;
	border-radius: var(--tb-radius-sm);
	font-family: inherit;
	outline: none;
}

.tb-footer-main {
	background: var(--tb-blue-900);
	color: rgba(255,255,255,0.85);
	padding: 48px 0;
}
.tb-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 32px;
}
.tb-footer-about .tb-logo-en { color: var(--tb-white); font-size: 1.3rem; }
.tb-footer-about .tb-logo-fa { color: var(--tb-yellow-400); }
.tb-footer-about p { font-size: 0.9rem; margin: 12px 0 20px; line-height: 1.8; }
.tb-footer-social { display: flex; gap: 12px; }
.tb-footer-social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.tb-footer-social a:hover { background: var(--tb-yellow-400); }

.footer-widget-title, .tb-footer-col h4 {
	color: var(--tb-white);
	font-size: 1rem;
	margin-bottom: 16px;
	font-weight: 700;
}
.tb-footer-links li { margin-bottom: 8px; }
.tb-footer-links a {
	color: rgba(255,255,255,0.75);
	font-size: 0.9rem;
	transition: color 0.2s;
}
.tb-footer-links a:hover { color: var(--tb-yellow-400); }
.tb-footer-contact li { margin-bottom: 8px; font-size: 0.9rem; }
.tb-payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-payment-badge {
	background: rgba(255,255,255,0.1);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.8rem;
}

.tb-footer-bottom {
	background: rgba(0,0,0,0.2);
	padding: 16px 0;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   BREADCRUMBS & PAGINATION
   ========================================================================== */
.tb-breadcrumbs { padding: 16px 0; font-size: 0.85rem; }
.tb-breadcrumb-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tb-breadcrumb-list li:not(:last-child)::after { content: '/'; margin-right: 8px; color: var(--tb-gray-400); }
.tb-breadcrumb-list a { color: var(--tb-gray-600); }
.tb-breadcrumb-list a:hover { color: var(--tb-blue-800); }
.tb-breadcrumb-list li[aria-current="page"] { color: var(--tb-blue-800); font-weight: 600; }

.tb-pagination { padding: 32px 0; }
.tb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-white);
	border: 2px solid var(--tb-gray-100);
	color: var(--tb-gray-800);
	font-weight: 600;
	transition: all 0.2s;
}
.tb-pagination .page-numbers.current,
.tb-pagination .page-numbers:hover {
	background: var(--tb-blue-800);
	border-color: var(--tb-blue-800);
	color: var(--tb-white);
}

/* ==========================================================================
   SHOP / WOOCOMMERCE
   ========================================================================== */
.tb-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.tb-shop-sidebar {
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	padding: 20px;
	border: 2px solid var(--tb-gray-100);
	height: fit-content;
	position: sticky;
	top: calc(var(--tb-header-height) + 20px);
}
.filter-title { font-size: 0.95rem; color: var(--tb-blue-900); margin-bottom: 12px; font-weight: 700; }

.tb-single-product { padding: 32px 0; }
.tb-product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 48px;
}
.tb-product-gallery { position: relative; }
.tb-product-summary .tb-product-title { font-size: 1.6rem; margin-bottom: 12px; color: var(--tb-blue-900); }
.tb-product-summary .price { font-size: 1.4rem; font-weight: 800; color: var(--tb-blue-800); margin: 16px 0; }
.tb-product-summary .single_add_to_cart_button {
	background: var(--tb-gradient-cta);
	color: var(--tb-white);
	border: none;
	padding: 14px 32px;
	border-radius: var(--tb-radius-sm);
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s;
}
.tb-product-summary .single_add_to_cart_button:hover { transform: translateY(-2px); }

.tb-cart-page { padding: 32px 0; }
.tb-cart-table { width: 100%; border-collapse: collapse; background: var(--tb-white); border-radius: var(--tb-radius); overflow: hidden; }
.tb-cart-table th, .tb-cart-table td { padding: 16px; border-bottom: 1px solid var(--tb-gray-100); text-align: right; }
.tb-cart-table th { background: var(--tb-blue-100); color: var(--tb-blue-900); font-weight: 700; }

.tb-checkout-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 32px;
	padding: 32px 0;
}
.tb-order-review {
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	padding: 24px;
	border: 2px solid var(--tb-gray-100);
	height: fit-content;
	position: sticky;
	top: calc(var(--tb-header-height) + 20px);
}

/* Card-to-card payment box */
.tb-c2c-box {
	background: var(--tb-blue-50, #eff6ff);
	border: 2px solid var(--tb-blue-100);
	border-radius: var(--tb-radius);
	padding: 16px 20px;
	margin-top: 12px;
	text-align: right;
}
.tb-c2c-title {
	font-size: 0.95rem;
	color: var(--tb-blue-900);
	margin: 0 0 12px;
	font-weight: 700;
}
.tb-c2c-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tb-c2c-list li {
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: var(--tb-gray-800);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.tb-c2c-card-num {
	font-family: ui-monospace, monospace;
	font-weight: 700;
	font-size: 1rem;
	color: var(--tb-blue-800);
	letter-spacing: 0.05em;
}
.tb-c2c-copy {
	background: var(--tb-blue-800);
	color: var(--tb-white);
	border: none;
	border-radius: var(--tb-radius-sm);
	padding: 4px 12px;
	font-family: inherit;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.2s;
}
.tb-c2c-copy:hover { background: var(--tb-blue-900); }
.tb-c2c-amount span { font-weight: 800; color: var(--tb-blue-800); }
.tb-c2c-note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--tb-gray-600);
}
.tb-c2c-thankyou { margin: 24px 0; }
.tb-c2c-notice {
	background: var(--tb-blue-50, #eff6ff) !important;
	border-right: 4px solid var(--tb-blue-800) !important;
}
.payment_method_toolbank24_card_to_card label {
	font-weight: 700;
	color: var(--tb-blue-900);
}

/* ==========================================================================
   MODAL (Quick View)
   ========================================================================== */
.tb-modal {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.tb-modal.open { opacity: 1; pointer-events: auto; }
.tb-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 45, 92, 0.7);
	backdrop-filter: blur(6px);
}
.tb-modal-content {
	position: relative;
	background: var(--tb-white);
	border-radius: var(--tb-radius);
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	box-shadow: var(--tb-shadow-lg);
	transform: scale(0.95);
	transition: transform 0.3s;
}
.tb-modal.open .tb-modal-content { transform: scale(1); }
.tb-modal-close {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--tb-gray-100);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	z-index: 1;
}
.tb-quick-view-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.tb-quick-view-price { font-size: 1.2rem; font-weight: 800; color: var(--tb-blue-800); margin: 12px 0; }

/* ==========================================================================
   404 / SEARCH / COMMENTS
   ========================================================================== */
.tb-404 { text-align: center; padding: 80px 20px; }
.tb-404-icon { font-size: 6rem; font-weight: 900; background: var(--tb-gradient-cta); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.tb-404 h1 { font-size: 1.8rem; color: var(--tb-blue-900); margin-bottom: 12px; }
.tb-404 p { color: var(--tb-gray-600); margin-bottom: 24px; }
.tb-404-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.tb-404-search { max-width: 400px; margin: 0 auto; }

.tb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; }
.tb-post-card { background: var(--tb-white); border-radius: var(--tb-radius); overflow: hidden; border: 2px solid var(--tb-gray-100); }
.tb-post-content { padding: 20px; }
.tb-read-more { color: var(--tb-blue-800); font-weight: 600; font-size: 0.9rem; }

.tb-comments { padding: 32px 0; }
.tb-comment-list { margin-bottom: 32px; }
.tb-comment { margin-bottom: 20px; padding: 16px; background: var(--tb-white); border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-gray-100); }
.tb-comment-header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.tb-comment-author { font-weight: 700; color: var(--tb-blue-900); }

.tb-content-area { padding: 32px 0; }
.tb-entry-title { font-size: 1.8rem; color: var(--tb-blue-900); margin-bottom: 12px; }
.tb-entry-content { line-height: 1.9; }
.tb-entry-content p { margin-bottom: 16px; }

/* Mini cart */
.tb-mini-cart {
	position: fixed;
	top: 0;
	left: 0;
	width: min(360px, 90vw);
	height: 100%;
	background: var(--tb-white);
	z-index: 2500;
	transform: translateX(-100%);
	transition: transform 0.3s;
	box-shadow: var(--tb-shadow-lg);
	display: flex;
	flex-direction: column;
}
.tb-mini-cart.open { transform: translateX(0); }
.tb-mini-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: var(--tb-blue-900);
	color: var(--tb-white);
	font-weight: 700;
}
.tb-mini-cart-close { background: none; border: none; color: var(--tb-white); font-size: 1.2rem; cursor: pointer; }
.tb-mini-cart-body { flex: 1; overflow-y: auto; padding: 16px; }

/* Notice */
.tb-notice {
	padding: 16px 20px;
	background: var(--tb-yellow-100);
	border-radius: var(--tb-radius-sm);
	color: var(--tb-blue-900);
	text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.tb-category-grid { grid-template-columns: repeat(4, 1fr); }
	.tb-product-grid, .products { grid-template-columns: repeat(3, 1fr); }
	.tb-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.tb-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.tb-product-layout { grid-template-columns: 1fr; }
	.tb-shop-layout { grid-template-columns: 1fr; }
	.tb-checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.tb-menu-toggle { display: flex; }
	.tb-search-form { display: none; }
	.tb-action-label { display: none; }
	.tb-header-main-inner { gap: 12px; }
	.tb-nav-categories .tb-primary-menu { display: none; }
	.tb-hero { padding: 12px 20px 0; }
	.tb-category-grid { grid-template-columns: repeat(2, 1fr); }
	.tb-product-grid, .products { grid-template-columns: repeat(2, 1fr); }
	.tb-post-grid { grid-template-columns: 1fr; }
	.tb-mega-inner { grid-template-columns: repeat(2, 1fr); }
	.tb-newsletter-inner { flex-direction: column; text-align: center; }
	.tb-quick-view-content { grid-template-columns: 1fr; }
	.tb-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.tb-product-grid, .products { grid-template-columns: 1fr; }
	.tb-trust-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.1.1 — Digikala-style Redesign
   ========================================================================== */

/* Compact category circles */
.tb-categories-compact { padding: 24px 0; }
.tb-categories-scroll {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 12px;
}
.tb-cat-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--tb-gray-800);
	transition: transform 0.2s;
}
.tb-cat-circle:hover {
	transform: translateY(-3px);
	color: var(--tb-blue-800);
}
.tb-cat-circle-icon {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--tb-bg-card);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s, box-shadow 0.25s;
	border: 1px solid var(--tb-border);
	box-shadow: 0 2px 12px rgba(15, 45, 92, 0.06);
}
.tb-cat-circle:hover .tb-cat-circle-icon {
	transform: scale(1.05);
	box-shadow: var(--tb-shadow-lg);
}
.tb-cat-circle-icon img {
	max-width: 85%;
	max-height: 85%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center center;
}
.tb-cat-circle-label {
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
	max-width: 120px;
	color: var(--tb-text);
}

/* Flash deals v2 */
.tb-flash-v2 { padding: 0; }
.tb-flash-banner {
	background: linear-gradient(135deg, #0f2d5c 0%, #1E56A0 40%, #2563EB 70%, rgba(245, 158, 11, 0.3) 100%);
	padding: 28px 0 32px;
	position: relative;
	overflow: hidden;
	border-radius: var(--tb-radius-lg);
	margin: 0 auto 0;
	width: calc(100% - 40px);
	max-width: calc(1280px - 40px);
	box-sizing: border-box;
}
.tb-flash-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
	pointer-events: none;
}
.tb-flash-inner { position: relative; z-index: 1; }
.tb-flash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 16px;
}
.tb-flash-title-wrap { display: flex; align-items: center; gap: 12px; }
.tb-flash-badge {
	background: var(--tb-yellow-400);
	color: var(--tb-blue-900);
	font-size: 0.75rem;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 20px;
	animation: tb-pulse 2s ease-in-out infinite;
}
@keyframes tb-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
	50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}
.tb-flash-title {
	color: var(--tb-white);
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0;
}
.tb-countdown-v2 {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	padding: 8px 16px;
	border-radius: var(--tb-radius);
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.tb-countdown-block {
	text-align: center;
	min-width: 44px;
}
.tb-countdown-v2 .tb-countdown-num {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--tb-yellow-400);
	line-height: 1;
}
.tb-countdown-label {
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 2px;
	display: block;
}
.tb-countdown-v2 .tb-countdown-sep {
	color: var(--tb-yellow-400);
	font-weight: 700;
	font-size: 1.2rem;
}
.tb-flash-carousel {
	position: relative;
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}
.tb-flash-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 0;
	max-width: 100%;
	min-width: 0;
}
.tb-flash-track::-webkit-scrollbar { display: none; }
.tb-flash-item {
	min-width: 220px;
	flex-shrink: 0;
	scroll-snap-align: start;
}
.tb-flash-item .tb-product-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.tb-flash-item .tb-sale-badge {
	font-size: 0.85rem;
	padding: 6px 12px;
	background: linear-gradient(135deg, #F59E0B, #FBBF24);
}
.tb-flash-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tb-white);
	border: none;
	color: var(--tb-blue-800);
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.2s;
}
.tb-flash-prev { right: -12px; }
.tb-flash-next { left: -12px; }
.tb-flash-nav:hover { background: var(--tb-yellow-400); }

/* Best sellers v2 */
.tb-best-v2 { padding: 40px 0; }
.tb-section-head-v2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tb-gray-100);
}
.tb-section-head-left { display: flex; align-items: center; gap: 10px; }
.tb-section-icon { font-size: 1.4rem; }
.tb-section-title-v2 {
	font-size: 1.25rem;
	font-weight: 800;
	background: var(--tb-gradient-cta);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0;
}
.tb-view-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--tb-blue-700);
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 0.2s, gap 0.2s;
}
.tb-view-all:hover { color: var(--tb-yellow-500); gap: 8px; }
.tb-ranked-grid { counter-reset: product-rank; }
.tb-ranked-grid .tb-product-card {
	counter-increment: product-rank;
	position: relative;
}
.tb-ranked-grid .tb-product-card::before {
	content: '#' counter(product-rank);
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	background: var(--tb-blue-900);
	color: var(--tb-yellow-400);
	font-size: 0.7rem;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
}
.tb-ranked-grid .tb-product-card:nth-child(1)::before { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: var(--tb-blue-900); }
.tb-ranked-grid .tb-product-card:nth-child(2)::before { background: #94A3B8; color: var(--tb-white); }
.tb-ranked-grid .tb-product-card:nth-child(3)::before { background: #CD7F32; color: var(--tb-white); }
.tb-best-v2 .tb-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(30, 86, 160, 0.15);
}

/* Trust badges v2 — Digikala style */
.tb-trust-v2 {
	padding: 36px 0;
	background: var(--tb-bg-card);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	margin: 0 auto 24px;
	width: calc(100% - 40px);
	max-width: calc(1280px - 40px);
	box-sizing: border-box;
}
.tb-trust-heading {
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--tb-text);
	margin-bottom: 28px;
}
.tb-trust-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.tb-trust-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 20px 12px;
	border-radius: var(--tb-radius);
	border: 1px solid var(--tb-border);
	background: var(--tb-bg);
	transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.tb-trust-card:hover {
	transform: translateY(-3px);
	background: var(--tb-gray-100);
	box-shadow: var(--tb-shadow);
}
.tb-trust-icon-wrap {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(30, 86, 160, 0.12);
	transition: transform 0.25s, box-shadow 0.25s;
}
.tb-trust-card:hover .tb-trust-icon-wrap {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(30, 86, 160, 0.18);
}
.tb-trust-bg-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.tb-trust-bg-yellow { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.tb-trust-icon-wrap img { width: 32px; height: 32px; }
.tb-trust-text h3 {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--tb-text);
	margin-bottom: 4px;
	line-height: 1.4;
}
.tb-trust-text p {
	font-size: 0.72rem;
	color: var(--tb-text-muted);
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 1024px) {
	.tb-categories-scroll { grid-template-columns: repeat(4, 1fr); }
	.tb-trust-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.tb-categories-scroll { grid-template-columns: repeat(4, 1fr); gap: 12px; }
	.tb-cat-circle-icon { width: 96px; height: 96px; }
	.tb-cat-circle-icon img { width: 76px; height: 76px; }
	.tb-trust-row { grid-template-columns: repeat(2, 1fr); }
	.tb-flash-header { flex-direction: column; align-items: flex-start; }
	.tb-flash-banner {
		width: calc(100% - 24px);
		max-width: none;
		border-radius: var(--tb-radius);
	}
	.tb-trust-v2 {
		width: calc(100% - 24px);
		max-width: none;
		margin-bottom: 20px;
	}
}

@media (max-width: 480px) {
	.tb-categories-scroll { grid-template-columns: repeat(4, 1fr); }
	.tb-cat-circle-label { font-size: 0.7rem; }
	.tb-trust-row { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   v1.1.2 — Theme Toggle & Dark Mode
   ========================================================================== */
.tb-theme-toggle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--tb-border);
	background: var(--tb-bg-card);
	color: var(--tb-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, border-color 0.25s, transform 0.2s;
	flex-shrink: 0;
}
.tb-theme-toggle:hover {
	background: var(--tb-yellow-100);
	border-color: var(--tb-yellow-400);
	transform: scale(1.05);
}
.tb-icon-moon { display: none; }
[data-theme="dark"] .tb-icon-sun { display: none; }
[data-theme="dark"] .tb-icon-moon { display: block; }

.tb-product-card,
.tb-trust-v2,
.tb-cat-circle-label,
.tb-post-card,
.tb-search-form,
.tb-trust-card,
.tb-brand-logo,
.tb-shop-sidebar,
.tb-order-review,
.tb-modal-content,
.tb-drawer-panel {
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tb-product-card {
	background: var(--tb-bg-card);
	border-color: var(--tb-border);
}
.tb-product-title { color: var(--tb-text); }
.tb-search-form {
	background: var(--tb-gray-100);
}
[data-theme="dark"] .tb-search-form input { color: var(--tb-text); }
[data-theme="dark"] .tb-header-top { opacity: 0.95; }
[data-theme="dark"] .tb-flash-item .tb-product-card {
	background: rgba(30, 41, 59, 0.95);
}
[data-theme="dark"] .tb-trust-v2 {
	background: var(--tb-bg);
	border-color: var(--tb-border);
}
[data-theme="dark"] .tb-trust-text h3 { color: var(--tb-text); }
[data-theme="dark"] .tb-trust-text p { color: var(--tb-text-muted); }
[data-theme="dark"] .tb-cat-circle-label { color: var(--tb-text); }
[data-theme="dark"] .tb-account-icon,
[data-theme="dark"] .tb-cart-icon,
[data-theme="dark"] .tb-wishlist-header-btn { color: var(--tb-text-muted); }
[data-theme="dark"] .tb-mega-menu { background: var(--tb-bg-card); }
[data-theme="dark"] .tb-mini-cart { background: var(--tb-bg-card); }
[data-theme="dark"] .tb-mini-cart-header { background: #1e3a5f; color: var(--tb-text); }

/* v1.1.3 — Dark mode contrast & rounded polish */
[data-theme="dark"] .tb-section-title,
[data-theme="dark"] .tb-section-title-v2,
[data-theme="dark"] .tb-trust-heading,
[data-theme="dark"] .tb-flash-title { color: var(--tb-text); }
[data-theme="dark"] .tb-section-title-v2 {
	-webkit-text-fill-color: unset;
	background: none;
	color: var(--tb-yellow-400);
}
[data-theme="dark"] .tb-product-price,
[data-theme="dark"] .tb-product-price ins { color: var(--tb-yellow-400); }
[data-theme="dark"] .tb-view-all { color: var(--tb-link); }
[data-theme="dark"] .tb-view-all:hover { color: var(--tb-link-hover); }
[data-theme="dark"] .tb-primary-menu a:hover { color: var(--tb-yellow-400); }
[data-theme="dark"] .tb-mega-item { color: var(--tb-text); }
[data-theme="dark"] .tb-mega-item:hover { color: var(--tb-link); background: var(--tb-gray-100); }
[data-theme="dark"] .tb-mobile-menu a { color: var(--tb-text); border-color: var(--tb-border); }
[data-theme="dark"] .tb-mobile-menu a:hover { color: var(--tb-link); background: var(--tb-gray-100); }
[data-theme="dark"] .tb-footer-links a { color: var(--tb-text-muted); }
[data-theme="dark"] .tb-footer-links a:hover { color: var(--tb-yellow-400); }
[data-theme="dark"] .tb-breadcrumb-list a { color: var(--tb-text-muted); }
[data-theme="dark"] .tb-breadcrumb-list li[aria-current="page"] { color: var(--tb-link); }
[data-theme="dark"] .tb-brand-logo { background: var(--tb-bg-card); color: var(--tb-text-muted); border-color: var(--tb-border); }
[data-theme="dark"] .tb-hero-slider { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); }
[data-theme="dark"] .tb-product-card { border-radius: var(--tb-radius); }
[data-theme="dark"] .tb-cat-circle-icon { background: var(--tb-bg-card); border-color: var(--tb-border); }
[data-theme="dark"] .tb-theme-toggle:hover { background: var(--tb-gray-100); }
[data-theme="dark"] .tb-logo-accent { color: var(--tb-yellow-400); }
[data-theme="dark"] .tb-flash-badge { color: #0f172a; }

/* v1.1.7 — Social icons (minimal line style) */
.tb-social-links,
.tb-footer-social,
.tb-header-social {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.tb-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--tb-gray-500);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tb-social-link svg {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}
.tb-social-link:hover {
	transform: translateY(-1px);
}
.tb-header-social .tb-social-link {
	width: 38px;
	height: 38px;
	color: rgba(255, 255, 255, 0.88);
	border-color: rgba(255, 255, 255, 0.4);
}
.tb-header-social .tb-social-link:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
}
.tb-footer-social .tb-social-link {
	color: var(--tb-gray-500);
	border-color: var(--tb-gray-300);
}
.tb-footer-social .tb-social-link:hover {
	background: rgba(30, 86, 160, 0.06);
}
.tb-social-instagram:hover { color: #C13584; border-color: #C13584; }
.tb-social-telegram:hover  { color: #229ED9; border-color: #229ED9; }
.tb-social-whatsapp:hover  { color: #25D366; border-color: #25D366; }
.tb-social-rubika:hover    { color: #7C3AED; border-color: #7C3AED; }
.tb-social-eitaa:hover     { color: #F97316; border-color: #F97316; }
[data-theme="dark"] .tb-footer-social .tb-social-link {
	color: var(--tb-text-muted);
	border-color: var(--tb-border);
}
@media (max-width: 768px) {
	.tb-header-social { display: none; }
}

/* v1.1.6 — Phone login/register */
.tb-login-hint,
.tb-field-hint {
	display: block;
	font-size: 0.85rem;
	color: var(--tb-gray-600);
	margin: 4px 0 12px;
}
.woocommerce form .form-row input[type="tel"],
.woocommerce-account form input[type="tel"] {
	direction: ltr;
	text-align: left;
	font-family: inherit;
	border-radius: var(--tb-radius);
	border: 2px solid var(--tb-border);
	padding: 12px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.woocommerce form .form-row input[type="tel"]:focus,
.woocommerce-account form input[type="tel"]:focus {
	border-color: var(--tb-blue-800);
	box-shadow: 0 0 0 3px rgba(30, 86, 160, 0.15);
	outline: none;
}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	background: var(--tb-bg-card);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	padding: 28px;
	box-shadow: var(--tb-shadow);
}

/* ==========================================================================
   v1.1.9 — Mobile Responsive (comprehensive)
   ========================================================================== */
@media (max-width: 768px) {
	html { font-size: 15px; }

	.tb-container { padding: 0 16px; }

	/* Header mobile */
	.tb-header-top { font-size: 0.8rem; padding: 4px 0; }
	.tb-header-tagline { display: none; }
	.tb-header-main { padding: 10px 0; min-height: auto; }
	.tb-header-main-inner { gap: 8px; flex-wrap: nowrap; min-width: 0; }
	.tb-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; }
	.tb-logo-icon { height: 40px; max-width: 100px; }
	.tb-header-actions { flex-shrink: 0; gap: 6px; }
	.tb-logo-en { font-size: 1rem; }
	.tb-logo-fa { font-size: 0.65rem; }
	.tb-header-search-mobile {
		display: block;
		padding: 0 0 10px;
		background: var(--tb-header-bg);
	}
	.tb-header-search-mobile .tb-search-form {
		display: flex;
		width: 100%;
		max-width: none;
	}
	.tb-header-search-mobile .tb-search-form input {
		font-size: 16px;
		min-height: 44px;
	}
	.tb-header-actions { gap: 8px; }
	.tb-theme-toggle,
	.tb-account-icon,
	.tb-cart-icon,
	.tb-wishlist-header-btn {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
	}
	.tb-nav-categories .tb-mega-toggle {
		width: 100%;
		justify-content: center;
		min-height: 44px;
	}

	/* Drawer full-width on small phones */
	.tb-drawer-panel { width: min(320px, 92vw); }
	.tb-mobile-menu a {
		min-height: 48px;
		display: flex;
		align-items: center;
		font-size: 1rem;
	}

	.tb-hero { padding: 10px 16px 0; }
	.tb-hero-inner { max-width: 100%; }
	.tb-hero-slider {
		max-height: 145px;
		border-radius: 12px;
	}
	.tb-hero-dots { bottom: 6px; }

	/* Categories — horizontal scroll */
	.tb-categories-scroll {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 14px;
		padding: 4px 4px 12px;
		scrollbar-width: none;
		max-width: 100%;
		min-width: 0;
	}
	.tb-categories-scroll::-webkit-scrollbar { display: none; }
	.tb-cat-circle {
		flex: 0 0 auto;
		min-width: 80px;
		scroll-snap-align: start;
	}
	.tb-cat-circle-icon { width: 72px; height: 72px; }
	.tb-cat-circle-label { font-size: 0.75rem; max-width: 80px; }

	/* Product cards */
	.tb-product-grid,
	.products,
	.tb-ranked-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.tb-product-title { font-size: 0.85rem; }
	.tb-product-price { font-size: 0.95rem; }
	.tb-product-card .button,
	.tb-product-card .add_to_cart_button {
		min-height: 44px;
		padding: 12px 8px;
		font-size: 0.85rem;
	}

	/* Flash / carousel horizontal scroll */
	.tb-flash-item { min-width: 140px; }
	.tb-flash-nav { display: none; }
	.tb-carousel-track .tb-product-card { min-width: 140px; }

	/* Trust badges 2x2 */
	.tb-trust-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

	/* Footer stack + centered social */
	.tb-footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
	.tb-footer-about,
	.tb-footer-col { text-align: center; }
	.tb-footer-social { justify-content: center; }
	.tb-footer-links,
	.tb-footer-contact { display: inline-block; text-align: right; }
	.tb-newsletter-form { flex-direction: column; width: 100%; }
	.tb-newsletter-form input,
	.tb-newsletter-form .tb-btn { min-height: 44px; width: 100%; }

	/* WooCommerce */
	.tb-shop-sidebar { order: 2; }
	.tb-product-layout,
	.tb-checkout-layout,
	.woocommerce-cart-form,
	.woocommerce-checkout { grid-template-columns: 1fr !important; }
	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		width: 100% !important;
		float: none !important;
	}
	.woocommerce table.shop_table { font-size: 0.85rem; }
	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2 { width: 100%; float: none; }
}

@media (max-width: 480px) {
	html { font-size: 14px; }

	.tb-header-top { display: none; }
	.tb-hero { padding: 12px 16px 0; }
	.tb-drawer-panel { width: 100%; max-width: 100%; }

	.tb-product-grid,
	.products { grid-template-columns: 1fr; }
	.tb-cat-circle-icon { width: 64px; height: 64px; }
	.tb-flash-banner {
		width: calc(100% - 16px);
		padding: 20px 0 24px;
	}
	.tb-trust-v2 {
		width: calc(100% - 16px);
		margin-bottom: 16px;
	}

	.tb-header-main-inner { gap: 4px; }
	.tb-header-actions { gap: 2px; }
	.tb-theme-toggle,
	.tb-account-icon,
	.tb-cart-icon,
	.tb-wishlist-header-btn {
		min-width: 40px;
		min-height: 40px;
		padding: 6px;
	}
	.tb-logo-icon { height: 36px; max-width: 72px; }
	.tb-wishlist-header-btn { display: none; }
}

/* Touch devices — always show product actions */
@media (hover: none), (pointer: coarse) {
	.tb-product-actions {
		opacity: 1;
		transform: translateX(0);
	}
	.tb-quick-view-btn,
	.tb-wishlist-btn {
		min-width: 40px;
		min-height: 40px;
	}
}

/* ==========================================================================
   v1.2.6 — Flash deals image fit + single-product header logo
   ========================================================================== */
/*
 * WooCommerce loads `.woocommerce-page img { height: auto; max-width: 100% }`
 * after theme CSS (same specificity as `.tb-product-image img`), which breaks
 * aspect-ratio image boxes and lets the header logo scale to intrinsic size.
 */

/* Flash deals — fixed card width + bounded image box */
.tb-flash-item {
	max-width: 220px;
	width: 220px;
	min-height: 0;
	overflow: hidden;
}
.tb-flash-item .tb-product-card {
	width: 100%;
	max-width: 100%;
}
.tb-flash-item .tb-product-image {
	aspect-ratio: 1;
	width: 100%;
	max-height: 180px;
	overflow: hidden;
}
.tb-flash-item .tb-product-image img,
.woocommerce-page .tb-flash-item .tb-product-image img,
.woocommerce .tb-flash-item .tb-product-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	object-position: center;
}

/* Product loop cards — override WooCommerce img reset */
.woocommerce-page .tb-product-image img,
.woocommerce .tb-product-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
}

/* Single product / shop pages — keep header logo and branding sized */
body.woocommerce-page .tb-header .tb-logo img,
body.single-product .tb-header .tb-logo img,
body.woocommerce .tb-header .tb-logo img {
	max-width: 200px !important;
	max-height: 48px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}
body.woocommerce-page .tb-header .tb-logo-icon,
body.single-product .tb-header .tb-logo-icon {
	height: 58px;
	max-width: 140px;
	width: auto;
}
body.woocommerce-page .tb-header .custom-logo-link,
body.single-product .tb-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 48px;
	line-height: 0;
}
body.woocommerce-page .tb-header-main,
body.single-product .tb-header-main {
	padding: 14px 0;
	min-height: 68px;
}

@media (max-width: 768px) {
	body.woocommerce-page .tb-header .tb-logo img,
	body.single-product .tb-header .tb-logo img {
		max-height: 40px !important;
		max-width: 120px !important;
	}
	body.woocommerce-page .tb-header .tb-logo-icon,
	body.single-product .tb-header .tb-logo-icon {
		height: 40px;
		max-width: 100px;
	}
	.tb-flash-item {
		max-width: 160px;
		width: 160px;
	}
	.tb-flash-item .tb-product-image {
		max-height: 140px;
	}
}

@media (max-width: 480px) {
	.tb-flash-item {
		max-width: 140px;
		width: 140px;
	}
}

/* ==========================================================================
   v1.2.13 — Mobile horizontal overflow fix
   ========================================================================== */
.tb-main,
.tb-front-main,
.tb-shop-main,
.tb-product-main {
	max-width: 100%;
	overflow-x: clip;
}

.tb-header {
	max-width: 100%;
}

.tb-product-grid,
.products,
.tb-ranked-grid {
	min-width: 0;
}

.woocommerce-cart-form,
.woocommerce-checkout {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.woocommerce table.shop_table {
	max-width: 100%;
}

@media (max-width: 768px) {
	.tb-hero-inner,
	.tb-flash-inner {
		min-width: 0;
		max-width: 100%;
	}

	.tb-product-grid,
	.products,
	.tb-ranked-grid {
		gap: 12px;
	}
}

/* Call for price */
.tb-call-for-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background: var(--tb-blue-800, #1E56A0);
	color: #fff !important;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s;
}

.tb-call-for-price:hover {
	background: var(--tb-blue-700, #2563EB);
	color: #fff !important;
}

.tb-call-for-price-box {
	margin: 16px 0;
}

.tb-call-for-price-note {
	margin: 8px 0 0;
	color: var(--tb-gray-600, #475569);
	font-size: 0.9rem;
}

.tb-product-price .tb-call-for-price {
	font-size: inherit;
}

.tb-footer-tel {
	color: inherit;
	text-decoration: none;
	direction: ltr;
	display: inline-block;
}

.tb-footer-tel:hover {
	color: var(--tb-yellow-400, #FBBF24);
	text-decoration: underline;
}
