/* TJH Fashion — Luxury theme: Black, Gold, Off-white — Modern UI/UX */
/*
 * Font system (single source of truth)
 * - Loaded: includes/header.php, includes/admin_header.php (Google Fonts: DM Sans, Outfit, Tajawal, Noto Sans Arabic)
 * - English: body = DM Sans, headings = Outfit
 * - Arabic (html[lang="ar"] / html[dir="rtl"]): body & headings = Tajawal, fallback Noto Sans Arabic
 * - Use only --tj-font-body, --tj-font-heading in CSS so language switch is automatic
 */

:root {
  --tj-black: #1a1a1a;
  --tj-black-soft: #2d2d2d;
  --tj-gold: #b8860b;
  --tj-gold-light: #d4a84b;
  --tj-gold-dark: #8b6914;
  --tj-offwhite: #f8f6f3;
  --tj-offwhite-warm: #f5f2ed;
  --tj-white: #ffffff;
  --tj-text: #1a1a1a;
  --tj-text-muted: #5c5c5c;
  --tj-border: #e8e4de;
  /* Softer, layered shadows for a modern look */
  --tj-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --tj-shadow-hover: 0 8px 30px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --tj-shadow-soft: 0 2px 12px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
  --tj-shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.05);
  --tj-radius: 14px;
  --tj-radius-lg: 20px;
  --tj-radius-xl: 28px;
  --tj-radius-pill: 9999px;
  /* Smooth, modern easing */
  --tj-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --tj-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tj-transition: 0.28s var(--tj-ease);
  --tj-transition-slow: 0.4s var(--tj-ease);
  /* Font system — English (default) */
  --tj-font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tj-font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tj-font-mono: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  /* Font system — Arabic (applied via html[lang="ar"] / html[dir="rtl"] below) */
  --tj-font-body-ar: 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --tj-font-heading-ar: 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --tj-section-spacing: 4.5rem;
  --tj-section-spacing-md: 3rem;
  --tj-section-spacing-sm: 2rem;
  --tj-container-narrow: 1120px;
  --tj-container-padding: 1.5rem;
  /* Semantic colors (derived from brand palette for contrast & accessibility) */
  --tj-success: var(--tj-gold-dark);
  --tj-success-bg: rgba(139, 105, 20, 0.12);
  --tj-danger: var(--tj-black-soft);
  --tj-danger-bg: rgba(45, 45, 45, 0.12);
  --tj-warning: var(--tj-gold-dark);
  --tj-warning-bg: rgba(139, 105, 20, 0.12);
  --tj-info: var(--tj-gold);
  --tj-info-bg: rgba(184, 134, 11, 0.12);
}

/* Font system — apply to entire UI so all text uses theme fonts */
html {
  font-family: var(--tj-font-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body,
input,
button,
select,
textarea,
.tj-topbar,
.tj-navbar,
.tj-footer,
.tj-btn,
.dropdown-menu,
.modal-content {
  font-family: inherit;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: inherit; /* from html → --tj-font-body (or -ar when Arabic) */
  background-color: var(--tj-offwhite);
  color: var(--tj-text);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { flex: 1; }

a { color: var(--tj-gold-dark); text-decoration: none; transition: color var(--tj-transition); }
a:hover { color: var(--tj-gold); }

/* Typography — modern, readable */
.tj-heading {
  font-family: var(--tj-font-heading);
  font-weight: 500;
  color: var(--tj-black);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.tj-heading-1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
.tj-heading-2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.tj-heading-3 { font-size: 1.25rem; }
.tj-accent { color: var(--tj-gold); }
.tj-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tj-gold-dark);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Buttons — modern, clear feedback */
.tj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--tj-radius);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--tj-transition), box-shadow var(--tj-transition), border-color var(--tj-transition), background var(--tj-transition);
  min-height: 44px;
  letter-spacing: 0.02em;
}
.tj-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--tj-ease), height 0.5s var(--tj-ease);
}
.tj-btn:hover::before {
  width: 280px;
  height: 280px;
}
.tj-btn:active {
  transform: translateY(0) scale(0.98);
}
.tj-btn:focus-visible { 
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.25);
}
.tj-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.tj-btn-primary {
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 50%, var(--tj-gold-dark) 100%);
  color: var(--tj-white);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.25), 0 1px 3px rgba(184, 134, 11, 0.15);
  position: relative;
  z-index: 1;
}
.tj-btn-primary:hover {
  background: linear-gradient(135deg, var(--tj-gold) 0%, var(--tj-gold-dark) 50%, #7a5d12 100%);
  color: var(--tj-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35), 0 2px 6px rgba(184, 134, 11, 0.2);
}
.tj-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.25);
}
.tj-btn-outline {
  background: var(--tj-white);
  color: var(--tj-black);
  border: 1.5px solid var(--tj-border);
  border-radius: var(--tj-radius);
  position: relative;
  z-index: 1;
}
.tj-btn-outline:hover {
  background: rgba(212, 168, 75, 0.06);
  border-color: var(--tj-gold-light);
  color: var(--tj-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--tj-shadow-soft);
}
.tj-btn-outline:active {
  transform: translateY(0);
}
.tj-btn-ghost {
  background: transparent;
  color: var(--tj-text);
  border: 1px solid transparent;
}
.tj-btn-ghost:hover { 
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--tj-border);
  transform: translateY(-1px);
}
.tj-btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  min-height: 36px;
}
.tj-btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.0625rem;
  min-height: 52px;
  font-weight: 600;
}

/* Product cards — clean, modern e‑commerce */
.tj-card {
  background: var(--tj-white);
  border-radius: var(--tj-radius-xl);
  box-shadow: var(--tj-shadow-card);
  overflow: hidden;
  transition: transform var(--tj-transition-slow), box-shadow var(--tj-transition-slow), border-color var(--tj-transition);
  border: 1px solid rgba(232,228,222,0.7);
  width: 100%;
  max-width: 100%;
  position: relative;
}
.tj-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  transform: translateY(-5px);
  border-color: rgba(212,168,75,0.22);
}
.tj-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--tj-offwhite-warm) 0%, #faf8f5 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-card-customized-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
}
[dir="rtl"] .tj-card-customized-pill {
  left: auto;
  right: 0.75rem;
}
.tj-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  color: var(--tj-text-muted);
  background: linear-gradient(135deg, rgba(232,228,222,0.5) 0%, rgba(245,241,235,0.5) 100%);
  opacity: 0.6;
}
.tj-card-img-placeholder i {
  font-size: 2.5rem;
}
.tj-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s var(--tj-ease);
  padding: 0.5rem;
}
.tj-card:hover .tj-card-img-wrap img { transform: scale(1.04); }
.tj-card-body { 
  padding: 1.5rem 1.25rem; 
  position: relative; 
  min-height: 110px;
  border-top: 1px solid rgba(232,228,222,0.3);
}
.tj-card-title {
  font-weight: 600;
  color: var(--tj-black);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}
.tj-card:hover .tj-card-title {
  color: var(--tj-gold-dark);
}
.tj-card-price { 
  color: var(--tj-gold-dark); 
  font-weight: 700; 
  font-size: 1.25rem; 
  letter-spacing: -0.02em;
}
.tj-card-price-wrap { 
  display: flex; 
  align-items: baseline; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
  margin-bottom: 0;
}
.tj-card-compare-price { 
  display: none !important;
}
.tj-card-cart-form {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  margin: 0;
  z-index: 2;
}
.tj-card-cart-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-gold);
  color: var(--tj-white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform var(--tj-transition), box-shadow var(--tj-transition), background var(--tj-transition);
  box-shadow: 0 2px 10px rgba(184,134,11,0.28);
}
.tj-card-cart-btn:hover {
  background: var(--tj-gold-dark);
  color: var(--tj-white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(184,134,11,0.35);
}
.tj-card-cart-btn:active {
  transform: translateY(0) scale(1.01);
}
.tj-card-cart-btn:focus-visible { 
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.35);
}
.tj-card-cart-btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.tj-card-cart-btn:hover i {
  transform: scale(1.1);
}
[dir="rtl"] .tj-card-cart-form { right: auto; left: 1.25rem; }
[dir="rtl"] .tj-card-cart-btn { right: auto; left: 1.25rem; }
.tj-sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  color: var(--tj-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--tj-radius-pill);
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 8px rgba(184,134,11,0.35);
  transition: transform var(--tj-transition);
}
.tj-card:hover .tj-sale-badge { transform: scale(1.02); }
[dir="rtl"] .tj-sale-badge { left: auto; right: 14px; }
/* Gissah-style product card with dual buttons — slide-up overlay */
.tj-card-gissah .tj-card-img-wrap { position: relative; }
.tj-card-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.tj-card-gissah:hover .tj-card-actions-overlay,
.tj-card-gissah:focus-within .tj-card-actions-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tj-card-actions-form { margin: 0; }
.tj-card-actions-overlay .tj-btn { 
  flex: 1; 
  max-width: 140px; 
  white-space: nowrap; 
  min-width: 100px; 
  font-size: 0.875rem; 
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tj-card-actions-overlay .tj-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tj-card-actions-overlay .tj-btn-outline { 
  background: rgba(255,255,255,0.95); 
  color: var(--tj-black); 
  border-color: rgba(255,255,255,0.9);
  border-width: 1.5px;
}
.tj-card-actions-overlay .tj-btn-outline:hover { 
  background: var(--tj-white); 
  color: var(--tj-black); 
  border-color: var(--tj-white);
  transform: translateY(-2px);
}
.tj-card-actions-overlay .tj-quick-view-btn {
  flex: 0 0 auto; 
  min-width: 48px; 
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255,255,255,0.2); 
  color: var(--tj-white); 
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tj-card-actions-overlay .tj-quick-view-btn:hover {
  background: var(--tj-gold); 
  color: var(--tj-white); 
  border-color: var(--tj-gold);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(184,134,11,0.4);
}
.tj-card-actions-overlay .tj-btn-primary {
  background: linear-gradient(135deg, #d4a84b 0%, #b8860b 100%);
  border: none;
  color: var(--tj-white);
}
.tj-card-actions-overlay .tj-btn-primary:hover {
  background: linear-gradient(135deg, #b8860b 0%, #9a7209 100%);
}
[dir="rtl"] .tj-card-actions-overlay {
  flex-direction: row-reverse;
}

/* Mobile-only actions: full-width buttons below price (hidden on desktop) */
.tj-card-actions-mobile {
  display: none;
}
.tj-card-mobile-form {
  margin: 0;
}
/* Quick view modal */
#quickViewModal .modal-body { padding: 1.5rem; }
.tj-quick-view-content { min-height: 180px; }
.tj-quick-view-img { transition: opacity var(--tj-transition); }
.tj-quick-view-img:hover { opacity: 0.92; }
.tj-product-grid-featured { gap: 1.5rem; }
.tj-section-featured .tj-product-grid { gap: 1.75rem; }
@media (min-width: 1200px) {
  .tj-section-featured .tj-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
/* Shop toolbar view toggle */
.tj-view-toggle { display: inline-flex; }
.tj-view-toggle .tj-btn {
  padding: 0.4rem 0.75rem;
  min-height: 36px;
  border-radius: 0;
  margin: 0 -1px;
}
.tj-view-toggle .tj-btn:first-child { border-radius: var(--tj-radius) 0 0 var(--tj-radius); }
.tj-view-toggle .tj-btn:last-child { border-radius: 0 var(--tj-radius) var(--tj-radius) 0; }
[dir="rtl"] .tj-view-toggle .tj-btn:first-child { border-radius: 0 var(--tj-radius) var(--tj-radius) 0; }
[dir="rtl"] .tj-view-toggle .tj-btn:last-child { border-radius: var(--tj-radius) 0 0 var(--tj-radius); }
.tj-view-toggle .tj-btn.tj-btn-primary { background: var(--tj-gold); border-color: var(--tj-gold); color: var(--tj-white); }
.tj-view-toggle .tj-btn.tj-btn-ghost { border: 2px solid var(--tj-border); }

/* Layout — narrow content width (design outline Section 5.4); no color change */
.tj-container-narrow {
  max-width: var(--tj-container-narrow);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Sections */
.tj-section { padding: var(--tj-section-spacing) 0; }
.tj-section-alt { background: var(--tj-white); box-shadow: 0 1px 0 var(--tj-border); }
.tj-section-header {
  margin-bottom: 2rem;
  max-width: 640px;
}
.tj-section-title {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--tj-black);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tj-section-title::after {
  content: "";
  flex: 1;
  min-width: 40px;
  max-width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  border-radius: var(--tj-radius-pill);
}
.tj-section-sub {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--tj-text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}
/* Homepage product sections (New Arrivals, Best Sellers) — extra spacing */
#new-arrivals-heading,
#best-sellers-heading { scroll-margin-top: 2rem; }
.tj-section[aria-labelledby="new-arrivals-heading"] .tj-section-header,
.tj-section[aria-labelledby="best-sellers-heading"] .tj-section-header { margin-bottom: 2.25rem; }
.tj-section[aria-labelledby="new-arrivals-heading"] .tj-product-grid,
.tj-section[aria-labelledby="best-sellers-heading"] .tj-product-grid { gap: 1.75rem; }
@media (min-width: 992px) {
  .tj-section[aria-labelledby="new-arrivals-heading"] .tj-product-grid,
  .tj-section[aria-labelledby="best-sellers-heading"] .tj-product-grid { gap: 2rem; }
}

/* Contact block (reusable on Contact, About, Terms, Privacy, Locations) */
.tj-contact-block { margin-top: 0; }
.tj-contact-block-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.tj-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: opacity var(--tj-transition);
}
.tj-contact-item:hover { opacity: 0.92; }
.tj-contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--tj-radius);
  background: var(--tj-offwhite-warm);
  color: var(--tj-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.tj-contact-content { min-width: 0; }
.tj-contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tj-text-muted);
  margin-bottom: 0.25rem;
}
.tj-contact-link {
  color: var(--tj-black);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  border-bottom: 1px solid transparent;
  transition: color var(--tj-transition), border-color var(--tj-transition);
}
.tj-contact-link:hover {
  color: var(--tj-gold);
  border-bottom-color: var(--tj-gold);
}
.tj-contact-address { color: var(--tj-text); line-height: 1.5; }
.tj-contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.tj-contact-social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--tj-radius);
  background: var(--tj-offwhite-warm);
  color: var(--tj-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--tj-transition), color var(--tj-transition), transform 0.2s var(--tj-ease);
}
.tj-contact-social-link:hover {
  background: var(--tj-gold);
  color: var(--tj-white);
  transform: translateY(-2px);
}
.tj-contact-map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--tj-radius);
  overflow: hidden;
  box-shadow: var(--tj-shadow-card);
  background: var(--tj-offwhite);
}
.tj-contact-map {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
@media (min-width: 768px) {
  .tj-contact-map { height: 320px; }
}
.tj-contact-block--page .tj-contact-map-wrap { margin-top: 1.75rem; }
.tj-card--contact .tj-contact-block { margin-top: 0.5rem; }

.tj-card--elevated {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
  border-color: rgba(212,168,75,0.12);
}
.tj-feature-card {
  padding: 1.5rem 1rem;
  border-radius: var(--tj-radius);
  background: var(--tj-offwhite-warm);
  transition: background var(--tj-transition), transform var(--tj-transition);
}
.tj-feature-card:hover {
  background: rgba(212,168,75,0.08);
  transform: translateY(-2px);
}
.tj-feature-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: var(--tj-radius);
  background: var(--tj-white);
  color: var(--tj-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--tj-shadow);
}

/* RTL: contact block */
[dir="rtl"] .tj-contact-item { flex-direction: row-reverse; }
[dir="rtl"] .tj-contact-social-links { flex-direction: row-reverse; }

/* Hero — Homepage (Gissah-style full-width immersive banner) */
.tj-hero {
  background: linear-gradient(155deg, var(--tj-offwhite-warm) 0%, var(--tj-offwhite) 40%, rgba(248,246,243,0.97) 100%);
  padding: 5rem 0 6rem;
  min-height: 56vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 75% 35%, rgba(212,168,75,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.tj-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,75,0.2), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.tj-hero-inner { position: relative; z-index: 1; }
.tj-hero-title {
  font-family: var(--tj-font-heading);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 500;
  color: var(--tj-black);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.tj-hero-sub {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--tj-text-muted);
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.7;
}
.tj-hero .tj-btn-primary {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--tj-radius);
  box-shadow: var(--tj-shadow-hover), 0 3px 12px rgba(184, 134, 11, 0.25);
}
.tj-hero .tj-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35), 0 4px 8px rgba(184, 134, 11, 0.2);
}
.tj-hero-visual { position: relative; min-height: 280px; }
.tj-hero-visual .tj-hero-shape {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(4deg);
  width: 60%;
  max-width: 400px;
  height: 320px;
  background: linear-gradient(145deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  opacity: 0.14;
  border-radius: 30% 70% 60% 40% / 50% 50% 50% 50%;
  transition: opacity var(--tj-transition), transform var(--tj-transition-slow);
}
.tj-hero:hover .tj-hero-visual .tj-hero-shape { opacity: 0.2; transform: translateY(-50%) rotate(6deg) scale(1.02); }
[dir="rtl"] .tj-hero-visual .tj-hero-shape { right: auto; left: 0; }
.tj-hero-bg-shape {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212,168,75,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -140px;
  right: -140px;
}
[dir="rtl"] .tj-hero-bg-shape { right: auto; left: -140px; }
/* Hero banner variant (Gissah-style centered, immersive) */
.tj-hero-banner { text-align: center; }
.tj-hero-banner .tj-hero-inner { width: 100%; }
.tj-hero-banner .row { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: var(--tj-container-padding, 1.5rem); padding-right: var(--tj-container-padding, 1.5rem); }
.tj-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tj-gold-dark);
  margin-bottom: 0.75rem;
  opacity: 0.95;
}
.tj-hero-banner .tj-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.tj-hero-banner .tj-hero-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  max-width: 520px;
}
.tj-hero-banner .tj-btn-lg { padding: 0.95rem 2.5rem; font-size: 1.0625rem; }

/* ========== Responsive UI/UX — Tablet ========== */
@media (max-width: 991px) {
  .tj-section { padding: var(--tj-section-spacing-md) 0; }
  .tj-section-header { margin-bottom: 1.5rem; }
  .tj-hero {
    padding: 3.5rem 0 4rem;
    min-height: 48vh;
  }
  .tj-hero-banner .tj-hero-title { font-size: clamp(2rem, 5vw, 2.75rem); }
  .tj-hero-banner .tj-hero-sub { font-size: 1.15rem; margin-bottom: 1.5rem; }
  .tj-hero-banner .tj-btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
  .tj-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
  .tj-partners-strip { padding: 0.85rem 0 1rem; font-size: 0.8rem; }
  .tj-footer .row { --bs-gutter-y: 1.5rem; }
  .tj-footer-bottom { margin-top: 1rem; padding-top: 1.25rem; font-size: 0.85rem; }
  .tj-footer-credit-inner { flex-direction: column; gap: 0.5rem; }
  /* Toolbar: tablet — two lines: row1 = filters + results, row2 = view + sort */
  .tj-shop-toolbar {
    padding: 0.5rem 0.875rem;
    padding-inline: max(0.875rem, env(safe-area-inset-left)) max(0.875rem, env(safe-area-inset-right));
    gap: 0.35rem 0;
    margin-bottom: 0.75rem;
    border-radius: var(--tj-radius);
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: var(--tj-offwhite-warm);
    border: 1px solid var(--tj-border);
  }
  .tj-shop-toolbar::before { height: 2px; opacity: 0.7; }
  .tj-shop-toolbar .tj-shop-toolbar-end {
    flex: 1 1 100%;
    justify-content: flex-end;
    align-items: center;
    margin-left: 0;
    min-width: 0;
    gap: 0.5rem;
  }
  .tj-shop-toolbar .tj-sort-form-label { display: none; }
  .tj-shop-toolbar .tj-sort-form-inner {
    padding: 0.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 250, 240, 0.95) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  .tj-shop-toolbar .tj-sort-select { 
    max-width: 160px; 
    padding: 0.4rem 2rem 0.4rem 0.7rem; 
    font-size: 0.8125rem; 
    border-radius: 8px;
    border-width: 1.5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: right 0.6rem center;
  }
  .tj-shop-toolbar-divider { min-height: 20px; margin: 0 0.2rem; }
  .tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn { min-width: 34px; height: 32px; border-radius: 8px; font-size: 0.875rem; }
}

/* Toolbar: mobile (≤576px) — two lines, compact, unified controls, thumb-friendly */
@media (max-width: 576px) {
  .tj-shop-toolbar {
    flex-wrap: wrap;
    gap: 0 0;
    padding: 0.4rem max(0.65rem, env(safe-area-inset-right)) 0.4rem max(0.65rem, env(safe-area-inset-left));
    margin-bottom: 0.75rem;
    border-radius: 10px;
    align-items: center;
  }
  .tj-shop-toolbar::before { height: 2px; opacity: 0.6; }
  .tj-shop-toolbar .tj-shop-toolbar-end {
    flex: 1 1 100%;
    justify-content: flex-end;
    align-items: center;
    margin-left: 0;
    min-width: 0;
    gap: 0.5rem;
  }
  /* View toggle: neutral container, gold only for .active */
  .tj-shop-toolbar .tj-view-toggle {
    padding: 2px;
    background: var(--tj-white);
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    box-shadow: none;
  }
  .tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.9375rem;
    border-radius: 6px;
    background: transparent;
    color: var(--tj-text-muted);
  }
  .tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn:hover {
    color: var(--tj-text);
    background: var(--tj-offwhite-warm);
  }
  .tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn.active {
    background: linear-gradient(145deg, var(--tj-gold-light) 0%, var(--tj-gold) 50%, var(--tj-gold-dark) 100%);
    color: var(--tj-white);
    box-shadow: 0 1px 3px rgba(184, 134, 11, 0.3);
  }
  .tj-shop-toolbar-divider {
    display: none;
  }
  .tj-shop-toolbar .tj-sort-form-inner { 
    gap: 0.35rem;
    padding: 0.15rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.98) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .tj-shop-toolbar .tj-sort-select {
    min-height: 40px;
    height: 40px;
    max-width: 120px;
    padding: 0 2rem 0 0.7rem;
    font-size: 16px; /* prevents zoom on iOS focus */
    border-radius: 8px;
    border: 1.5px solid var(--tj-border);
    background: var(--tj-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
    background-size: 14px;
    font-weight: 600;
    color: var(--tj-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  .tj-shop-toolbar .tj-sort-select:hover {
    border-color: var(--tj-gold);
    background-color: var(--tj-offwhite-warm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.1);
  }
  .tj-shop-toolbar .tj-sort-select:focus {
    border-color: var(--tj-gold);
    background-color: var(--tj-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
  }
}

/* Toolbar: very small screens (≤480px) — tighter padding, same control sizes */
@media (max-width: 480px) {
  .tj-shop-toolbar {
    padding: 0.35rem max(0.5rem, env(safe-area-inset-right)) 0.35rem max(0.5rem, env(safe-area-inset-left));
    gap: 0.4rem;
  }
  .tj-shop-toolbar .tj-shop-toolbar-end {
    gap: 0.4rem;
  }
  .tj-shop-toolbar .tj-sort-select {
    max-width: 100px;
    padding: 0 1.75rem 0 0.6rem;
    font-size: 16px;
    background-position: right 0.6rem center;
  }
}

/* Toolbar: extra narrow (≤360px) */
@media (max-width: 360px) {
  .tj-shop-toolbar .tj-sort-select { 
    max-width: 90px;
    padding: 0 1.5rem 0 0.5rem;
    background-position: right 0.5rem center;
  }
  .tj-shop-toolbar .tj-sort-form-inner {
    padding: 0.1rem;
  }
}

/* ========== Mobile — distinct UI/UX (app-like, modern, different from web) ========== */
@media (max-width: 991px) {
  /* Mobile-only design tokens */
  :root {
    --tj-mob-radius: 20px;
    --tj-mob-radius-card: 16px;
    --tj-mob-shadow-card: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --tj-mob-gap: 1rem;
    --tj-mob-section-bg: var(--tj-white);
  }

  /* Global: tighter container, safe areas, subtle mobile background */
  body {
    background-color: #f6f4f0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .container {
    padding-left: max(var(--tj-mob-gap), env(safe-area-inset-left));
    padding-right: max(var(--tj-mob-gap), env(safe-area-inset-right));
  }

  /* Hero — mobile: compact, bold, single CTA (pill), no decorative clutter */
  .tj-hero,
  .tj-hero-banner {
    padding: 2.5rem 0 3rem;
    min-height: 42vh;
    background: linear-gradient(165deg, #faf8f5 0%, var(--tj-offwhite-warm) 50%, #f5f2ed 100%);
    border-radius: 0 0 var(--tj-mob-radius) var(--tj-mob-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  }
  .tj-hero::before {
    opacity: 0.6;
    background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(212,168,75,0.12) 0%, transparent 60%);
  }
  .tj-hero-banner .tj-hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
  }
  .tj-hero-banner .tj-hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }
  .tj-hero-banner .tj-hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    color: var(--tj-text-muted);
  }
  .tj-hero-banner .tj-btn,
  .tj-hero-banner .tj-btn-lg {
    width: 100%;
    max-width: 280px;
    min-height: 52px;
    border-radius: var(--tj-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 4px 16px rgba(184,134,11,0.3);
  }

  /* Sections — mobile: card-style blocks, clear separation from web */
  .tj-section {
    padding: 1.25rem 0;
  }
  .tj-section .container {
    background: var(--tj-mob-section-bg);
    border-radius: var(--tj-mob-radius-card);
    box-shadow: var(--tj-mob-shadow-card);
    padding: 1.25rem var(--tj-mob-gap);
    border: 1px solid rgba(232,228,222,0.6);
  }
  .tj-section-header {
    margin-bottom: 1.25rem;
    text-align: start;
  }
  .tj-section-title {
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .tj-section-title::after {
    display: none;
  }
  .tj-section-title::before {
    content: "";
    width: 4px;
    height: 1.25em;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--tj-gold) 0%, var(--tj-gold-dark) 100%);
    border-radius: 2px;
  }
  [dir="rtl"] .tj-section-title { flex-direction: row-reverse; }
  .tj-section-sub {
    font-size: 0.9rem;
    color: var(--tj-text-muted);
    margin-top: 0.25rem;
  }

  /* Product grid — mobile: 2-col, consistent gap */
  .tj-product-grid,
  .tj-product-grid-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tj-section .tj-product-grid .tj-card,
  .tj-section .tj-product-grid-featured .tj-card {
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(232,228,222,0.5);
    overflow: hidden;
  }
  .tj-section .tj-product-grid .tj-card:hover,
  .tj-section .tj-product-grid-featured .tj-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  }
  .tj-section .tj-product-grid .tj-card:active,
  .tj-section .tj-product-grid-featured .tj-card:active {
    transform: scale(0.98);
    opacity: 0.96;
  }

  /* Image area: no large overlay; only small quick-view icon in corner */
  .tj-card-gissah .tj-card-actions-overlay {
    bottom: auto;
    top: 8px;
    left: auto;
    right: 8px;
    padding: 0;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0;
  }
  .tj-card-gissah .tj-card-actions-overlay .tj-card-actions-form {
    display: none !important;
  }
  .tj-card-gissah .tj-card-actions-overlay .tj-quick-view-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--tj-black);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }
  .tj-card-gissah .tj-card-actions-overlay .tj-quick-view-btn:hover {
    background: var(--tj-white);
    color: var(--tj-gold-dark);
  }
  [dir="rtl"] .tj-card-gissah .tj-card-actions-overlay {
    right: auto;
    left: 8px;
    justify-content: flex-start;
  }

  /* Card body: title, price, then full-width buttons */
  .tj-card-body {
    padding: 12px 10px 14px;
    border-top: none;
    background: var(--tj-white);
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .tj-card-title {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    color: var(--tj-black);
  }
  .tj-card-price-wrap {
    margin-bottom: 10px;
  }
  .tj-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--tj-gold-dark);
  }
  .tj-card-compare-price {
    font-size: 12px;
  }

  /* Mobile-only actions: full-width buttons below price */
  .tj-card-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
  }
  .tj-card-actions-mobile .tj-card-mobile-form {
    width: 100%;
  }
  .tj-card-actions-mobile .tj-btn-mobile-block {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tj-card-actions-mobile .tj-btn-outline.tj-btn-mobile-block {
    background: var(--tj-white);
    border: 2px solid var(--tj-border);
    color: var(--tj-black);
  }
  .tj-card-actions-mobile .tj-btn-outline.tj-btn-mobile-block:hover {
    border-color: var(--tj-gold-light);
    color: var(--tj-gold-dark);
    background: var(--tj-offwhite);
  }

  /* Image: fixed aspect ratio, fully visible */
  .tj-card-img-wrap {
    aspect-ratio: 1;
    min-height: 0;
  }
  .tj-card-img-wrap img {
    padding: 4px;
    object-fit: contain;
    object-position: center;
  }
  .tj-section .text-center.mt-4 .tj-btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border-radius: var(--tj-radius-pill);
    font-weight: 600;
  }

  /* Buttons — mobile: pill, large touch targets */
  .tj-btn {
    min-height: 48px;
    border-radius: var(--tj-radius-pill);
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .tj-btn-sm {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: var(--tj-radius-pill);
  }
  .tj-btn-primary {
    box-shadow: 0 2px 12px rgba(184,134,11,0.25);
  }

  /* Partners strip — mobile: aligned, visible, no overlap */
  .tj-partners-strip {
    padding: 0.75rem 0 1rem;
    font-size: 0.7rem;
    background: var(--tj-black-soft);
    color: rgba(255,255,255,0.85);
    border-radius: 0 0 var(--tj-mob-radius) var(--tj-mob-radius);
    overflow: visible;
  }
  .tj-partners-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
    min-width: 0;
  }
  .tj-partners-title {
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 0;
  }
  .tj-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    opacity: 0.95;
    padding: 0 0.25rem;
    min-width: 0;
  }
  .tj-partners-link {
    padding: 0.4rem 0.5rem;
    margin: 0;
    white-space: nowrap;
  }
  .tj-partners-sep {
    flex-shrink: 0;
    margin: 0;
  }

  /* Categories — mobile: 2-col grid, large touch tiles */
  .tj-categories-grid .container,
  .tj-section-alt .container {
    background: var(--tj-mob-section-bg);
    border-radius: var(--tj-mob-radius-card);
    box-shadow: var(--tj-mob-shadow-card);
    padding: 1.25rem var(--tj-mob-gap);
  }
  .tj-categories-gissah .tj-cat-card-gissah {
    min-height: 160px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-label {
    font-size: 0.8rem;
    bottom: 2.25rem;
  }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-cta {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--tj-radius-pill);
  }
}

@media (max-width: 768px) {
  .tj-section { padding: var(--tj-section-spacing-sm) 0; }
  .tj-section-header { margin-bottom: 1.25rem; }
  .tj-section-title { font-size: clamp(1.35rem, 4vw, 1.6rem); }
  .tj-hero {
    padding: 2.5rem 0 3rem;
    min-height: 42vh;
  }
  .tj-hero-title { font-size: clamp(1.85rem, 5vw, 2.25rem); }
  .tj-hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .tj-hero-banner .tj-hero-title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .tj-hero-banner .tj-hero-sub { margin-bottom: 1.25rem; }
  .tj-partners-strip { padding: 0.75rem 0; font-size: 0.75rem; }
  .tj-product-grid { gap: 1rem; }
  .tj-footer-title { margin-bottom: 0.75rem; font-size: 0.8rem; }
}

/* ========== Responsive UI/UX — Web (desktop) ========== */
@media (min-width: 992px) {
  .tj-section-header { max-width: 560px; }
  .tj-product-grid .tj-card {
    transition: transform var(--tj-transition), box-shadow var(--tj-transition);
  }
  .tj-product-grid .tj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tj-shadow-hover);
  }
  .dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trusted partners strip (Gissah-style: brand trust line) */
.tj-partners-strip {
  background: var(--tj-black);
  color: var(--tj-white);
  padding: 1rem 0 1.25rem;
  margin: 0;
  position: relative;
}
.tj-partners-inner { position: relative; z-index: 1; }
.tj-partners-wave {
  display: block;
  width: 100%;
  height: 24px;
  fill: var(--tj-offwhite);
  position: absolute;
  bottom: -1px;
  left: 0;
  pointer-events: none;
}
.tj-partners-title {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.92;
  margin-bottom: 0.35rem;
  text-align: center;
}
.tj-partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.95;
}
.tj-partners-link {
  color: var(--tj-white);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  border-radius: var(--tj-radius);
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.tj-partners-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--tj-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.tj-partners-link:hover,
.tj-partners-link:focus-visible {
  color: var(--tj-gold-light);
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}
.tj-partners-link:hover::after,
.tj-partners-link:focus-visible::after {
  transform: scaleX(1);
}
.tj-partners-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.tj-partners-logos:has(a:hover) .tj-partners-sep { background: rgba(212,168,75,0.5); }

/* Customer service section */
.tj-services-heading {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--tj-black);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.tj-services-sub { font-size: 1rem; font-weight: 400; color: var(--tj-text-muted); margin-bottom: 2rem; max-width: 560px; line-height: 1.6; }

.tj-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.tj-service-item {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-soft);
  border: 1px solid rgba(232,228,222,0.6);
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition), transform var(--tj-transition);
}
.tj-service-item:hover {
  box-shadow: var(--tj-shadow-hover);
  border-color: rgba(212,168,75,0.2);
  transform: translateY(-3px);
}
.tj-service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,168,75,0.12) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--tj-gold-dark);
  border-radius: 50%;
  font-size: 1.25rem;
}
.tj-service-title { font-weight: 500; color: var(--tj-black); margin-bottom: 0.35rem; font-size: 1rem; }
.tj-service-text { font-size: 0.9rem; color: var(--tj-text-muted); line-height: 1.55; }

/* Category strip — homepage (modern card style) */
.tj-categories-strip { padding: 2rem 0; }
.tj-categories-strip .row { --bs-gutter-x: 1rem; }
.tj-cat-card {
  display: block;
  position: relative;
  border-radius: var(--tj-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--tj-black-soft);
  text-decoration: none;
  color: var(--tj-white);
  transition: transform var(--tj-transition), box-shadow var(--tj-transition), border-color var(--tj-transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.tj-cat-card:hover {
  transform: translateY(-6px);
  color: var(--tj-white);
  box-shadow: 0 20px 40px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.08);
  border-color: rgba(212,168,75,0.2);
}
.tj-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity var(--tj-transition-slow), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-cat-card:hover img { opacity: 1; transform: scale(1.07); }
.tj-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--tj-transition);
}
.tj-cat-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.85) 100%);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
[dir="rtl"] .tj-cat-card-label { left: 0; right: 0; }
/* Gissah-style category card with Discover CTA */
.tj-cat-card-gissah {
  display: block;
  text-align: center;
  min-height: 180px;
}
/* Ensure image fills the card and doesn't break layout (flex was causing sizing issues) */
.tj-cat-card-gissah > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tj-cat-card-gissah .tj-cat-card-label {
  position: absolute;
  bottom: 2.75rem;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0.5rem 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.tj-cat-card-cta {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tj-gold-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: var(--tj-radius-pill);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: color var(--tj-transition), background var(--tj-transition), transform var(--tj-transition);
}
.tj-cat-card-gissah:hover .tj-cat-card-cta {
  color: var(--tj-gold);
  background: rgba(255,255,255,0.2);
  transform: translateX(-50%) translateY(-2px);
}
[dir="rtl"] .tj-cat-card-cta { transform: translateX(50%); }
[dir="rtl"] .tj-cat-card-gissah:hover .tj-cat-card-cta { transform: translateX(50%) translateY(-2px); }
.tj-categories-grid .tj-categories-grid-inner { margin-top: 1.25rem; }
.tj-categories-grid .tj-section-header { margin-bottom: 2.25rem; }
/* Gissah-style category grid: consistent card heights */
.tj-categories-gissah .tj-cat-card-gissah {
  min-height: 200px;
  aspect-ratio: 1;
  width: 100%;
}
@media (min-width: 768px) {
  .tj-categories-gissah .tj-cat-card-gissah { min-height: 220px; }
}
@media (min-width: 992px) {
  .tj-categories-gissah .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
  .tj-categories-gissah .tj-cat-card-gissah {
    min-height: 0;
    aspect-ratio: 1;
    width: 100%;
  }
}

/* Filter pills (category tabs) — modern chip style, scrollable on mobile */
.tj-filter-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}
.tj-filter-pills::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .tj-filter-pills { flex-wrap: wrap; overflow-x: visible; gap: 0.6rem; }
}
.tj-pill {
  padding: 0.55rem 1.25rem;
  border-radius: var(--tj-radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--tj-white);
  color: var(--tj-text);
  border: 1px solid var(--tj-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.tj-pill:hover {
  background: rgba(212,168,75,0.06);
  color: var(--tj-gold-dark);
  border-color: rgba(212,168,75,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.12);
}
.tj-pill.active {
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  color: var(--tj-white);
  border-color: var(--tj-gold);
  box-shadow: 0 4px 14px rgba(184,134,11,0.3);
}
.tj-pill.active:hover {
  box-shadow: 0 6px 18px rgba(184,134,11,0.4);
  transform: translateY(-2px);
}
.tj-pill a { color: inherit; text-decoration: none; }

/* Quote block (Gissah-style testimonial) */
.tj-quote-block {
  padding: var(--tj-section-spacing) 0;
  background: var(--tj-offwhite);
}
.tj-quote-text {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--tj-text);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}
.tj-quote-text::before,
.tj-quote-text::after {
  content: '"';
  color: var(--tj-gold);
  opacity: 0.7;
}

/* Featured category highlight (Gissah-style single category showcase) */
.tj-featured-category {
  padding: var(--tj-section-spacing) 0;
}
.tj-featured-category-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.tj-featured-category-link {
  display: block;
  position: relative;
  border-radius: var(--tj-radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  min-height: 200px;
  max-height: 340px;
  background: var(--tj-black-soft);
  text-decoration: none;
}
.tj-featured-category-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity var(--tj-transition), transform var(--tj-transition-slow);
}
.tj-featured-category-link:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.tj-featured-category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tj-offwhite-warm) 0%, var(--tj-border) 100%);
  color: var(--tj-text-muted);
}
.tj-featured-category-cta {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1.5rem;
  background: var(--tj-white);
  color: var(--tj-black);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--tj-radius-pill);
  box-shadow: var(--tj-shadow);
  transition: background var(--tj-transition), color var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-featured-category-link:hover .tj-featured-category-cta {
  background: var(--tj-gold);
  color: var(--tj-white);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
}

/* Promo banner */
.tj-promo-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  min-height: 300px;
  border-radius: var(--tj-radius-lg);
  overflow: hidden;
  background: var(--tj-black-soft);
  color: var(--tj-white);
  box-shadow: var(--tj-shadow-hover);
  position: relative;
}
/* Hero banner responsive background image */
.tj-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.tj-banner-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.tj-promo-content,
.tj-banner-glow {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .tj-promo-banner { grid-template-columns: 1fr; min-height: 260px; } }
.tj-promo-content { padding: 2.5rem 2.75rem; display: flex; flex-direction: column; justify-content: center; }
.tj-promo-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.92;
  margin-bottom: 0.5rem;
  color: var(--tj-gold-light);
}
.tj-promo-title {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.tj-promo-text { opacity: 0.9; margin-bottom: 1.25rem; }
.tj-promo-img { background: var(--tj-offwhite-warm); min-height: 200px; }
.tj-btn-promo { background: var(--tj-white); color: var(--tj-black); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.tj-btn-promo:hover { background: var(--tj-offwhite); color: var(--tj-black); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* Promo banner section (now using container tj-hero-inner instead of tj-section) */
.container.tj-hero-inner[aria-label] {
  padding: var(--tj-section-spacing) 0;
}
@media (max-width: 991px) {
  .container.tj-hero-inner[aria-label] {
    padding: var(--tj-section-spacing-md) 0;
  }
}
@media (max-width: 767px) {
  .container.tj-hero-inner[aria-label] {
    padding: var(--tj-section-spacing-sm) 0;
  }
}

/* Hero banner wrapper: gives depth & subtle ambient glow */
.tj-banner-concept-wrap {
  position: relative;
  z-index: 1;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.tj-banner-concept-wrap::before {
  content: "";
  position: absolute;
  inset: -18px 0;
  border-radius: calc(var(--tj-radius-lg) * 1.15);
  background:
    radial-gradient(circle at 10% 0%, rgba(212,168,75,0.55) 0%, transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255,255,255,0.22) 0%, transparent 55%),
    linear-gradient(120deg, rgba(255,255,255,0.08), rgba(0,0,0,0.35));
  opacity: 0.75;
  filter: blur(26px);
  pointer-events: none;
  z-index: -1;
}
[data-banner-concept="split"].tj-banner-concept-wrap::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(212,168,75,0.55) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.38) 0%, transparent 55%),
    linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
}
[data-banner-concept="editorial"].tj-banner-concept-wrap::before {
  background:
    radial-gradient(circle at 5% 0%, rgba(255,255,255,0.22) 0%, transparent 55%),
    radial-gradient(circle at 95% 100%, rgba(212,168,75,0.45) 0%, transparent 55%),
    linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
  opacity: 0.9;
}
@media (max-width: 767px) {
  .tj-banner-concept-wrap::before {
    inset: -8px 0;
    filter: blur(18px);
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tj-banner-concept-wrap {
    perspective: none;
  }
  .tj-banner-concept-wrap::before {
    filter: blur(16px);
  }
}

/* Banner slider */
.tj-banner-slider {
  position: relative;
  border-radius: var(--tj-radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--tj-shadow-hover);
  transform:
    translateY(var(--tj-banner-translate-y, 0))
    scale(var(--tj-banner-scale, 1))
    rotateX(var(--tj-banner-tilt-x, 0))
    rotateY(var(--tj-banner-tilt-y, 0));
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (max-width: 767px) {
  .tj-banner-slider {
    min-height: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tj-banner-slider {
    transform: none !important;
    transition: none;
  }
}
.tj-banner-slides-wrap {
  position: relative;
  min-height: 320px;
}
[dir="rtl"] .tj-banner-slides-wrap {
  padding-bottom: 1.5rem;
}
@media (max-width: 767px) {
  [dir="rtl"] .tj-banner-slides-wrap {
    padding-bottom: 2rem;
  }
}
.tj-banner-slide {
  position: absolute;
  inset: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem;
  background-size: cover;
  background-position: center;
  background-color: var(--tj-black-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-size 0.6s ease;
  z-index: 0;
}
.tj-banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 60%);
  pointer-events: none;
  z-index: 0;
}
.tj-banner-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.tj-banner-slide.active:hover {
  background-size: 105% 105%;
}
.tj-banner-slide .tj-promo-content {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
.tj-banner-slide .tj-promo-title {
  opacity: 0;
  transform: translateY(14px);
}
.tj-banner-slide.active .tj-promo-title {
  animation: tj-banner-content-in 0.55s ease forwards;
}
.tj-banner-slide .tj-promo-content .tj-btn-primary {
  opacity: 0;
  transform: translateY(12px);
}
.tj-banner-slide.active .tj-promo-content .tj-btn-primary {
  animation: tj-banner-content-in 0.5s ease 0.12s forwards;
}
.tj-banner-slide .tj-promo-content .tj-btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tj-banner-slide .tj-promo-content .tj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,75,0.45);
}
.tj-banner-slide .tj-promo-content .tj-btn-primary:focus-visible {
  outline: 2px solid var(--tj-gold-light);
  outline-offset: 3px;
}
@keyframes tj-banner-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner wow: shine sweep (triggered on load + slide change) */
.tj-banner-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}
.tj-banner-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.03) 35%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.03) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: none;
}
.tj-banner-shine.run-shine {
  opacity: 1;
  animation: tj-banner-shine-sweep 1.1s ease-out forwards;
}
@keyframes tj-banner-shine-sweep {
  0% { opacity: 1; }
  100% {
    opacity: 0;
  }
}
.tj-banner-shine.run-shine::after {
  animation: tj-banner-shine-move 1.1s ease-out forwards;
}
@keyframes tj-banner-shine-move {
  0% { left: -80%; }
  100% { left: 120%; }
}
[dir="rtl"] .tj-banner-shine.run-shine::after {
  animation: tj-banner-shine-move 1.1s ease-out forwards;
  animation-direction: reverse;
}

/* Subtle ambient glows behind content */
.tj-banner-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.35;
}
.tj-banner-glow-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--tj-gold) 0%, transparent 70%);
  top: 20%;
  left: 5%;
  animation: tj-banner-glow-float 8s ease-in-out infinite;
}
.tj-banner-glow-2 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  bottom: 25%;
  right: 15%;
  animation: tj-banner-glow-float 6s ease-in-out infinite 1s;
}
@keyframes tj-banner-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(15px, -10px) scale(1.1); opacity: 0.5; }
}

/* Glassmorphism content card */
.tj-promo-content-glass {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--tj-radius-lg);
  padding: 1.75rem 2.25rem !important;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
@media (min-width: 769px) {
  .tj-promo-content-glass { max-width: 52%; padding: 2rem 2.5rem !important; }
}

/* CTA with animated arrow */
.tj-banner-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  overflow: hidden;
}
.tj-banner-cta-text { display: inline-block; }
.tj-banner-cta-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tj-banner-cta:hover .tj-banner-cta-icon,
.tj-banner-cta:focus-visible .tj-banner-cta-icon {
  transform: translateX(4px);
}
[dir="rtl"] .tj-banner-cta:hover .tj-banner-cta-icon,
[dir="rtl"] .tj-banner-cta:focus-visible .tj-banner-cta-icon {
  transform: translateX(-4px);
}
.tj-banner-cta .tj-banner-cta-icon i { font-size: 0.85em; }

/* Footer: dots + progress bar */
.tj-banner-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.tj-banner-dots {
  position: static;
  transform: none;
  flex-shrink: 0;
}
.tj-banner-progress {
  width: 100%;
  max-width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.tj-banner-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tj-gold), var(--tj-gold-light));
  border-radius: 2px;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .tj-banner-shine.run-shine,
  .tj-banner-shine.run-shine::after { animation: none; }
  .tj-banner-glow { animation: none; opacity: 0.2; }
  .tj-banner-cta:hover .tj-banner-cta-icon { transform: none; }
}

/* ========== Concept 2: Split Reveal ========== */
[data-banner-concept="split"] .tj-banner-shine,
[data-banner-concept="split"] .tj-banner-glow { display: none; }
[data-banner-concept="split"] .tj-promo-content-glass {
  background: rgba(26,26,26,0.88);
  backdrop-filter: none;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
[data-banner-concept="split"] .tj-promo-content-glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--tj-gold-dark), var(--tj-gold), var(--tj-gold-light), var(--tj-gold));
  background-size: 300% 300%;
  animation: tj-banner-border-flow 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes tj-banner-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
[data-banner-concept="split"] .tj-banner-slide .tj-promo-title {
  transform: translateX(-36px);
  opacity: 0;
}
[data-banner-concept="split"] .tj-banner-slide.active .tj-promo-title {
  animation: tj-banner-split-title-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
[data-banner-concept="split"] .tj-banner-slide .tj-promo-content .tj-btn-primary {
  transform: translateX(36px);
  opacity: 0;
}
[data-banner-concept="split"] .tj-banner-slide.active .tj-promo-content .tj-btn-primary {
  animation: tj-banner-split-cta-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
@keyframes tj-banner-split-title-in {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tj-banner-split-cta-in {
  to { opacity: 1; transform: translateX(0); }
}
[dir="rtl"] [data-banner-concept="split"] .tj-banner-slide .tj-promo-title { transform: translateX(36px); }
[dir="rtl"] [data-banner-concept="split"] .tj-banner-slide.active .tj-promo-title { animation: tj-banner-split-title-in-rtl 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
[dir="rtl"] [data-banner-concept="split"] .tj-banner-slide .tj-promo-content .tj-btn-primary { transform: translateX(-36px); }
[dir="rtl"] [data-banner-concept="split"] .tj-banner-slide.active .tj-promo-content .tj-btn-primary { animation: tj-banner-split-cta-in-rtl 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
@keyframes tj-banner-split-title-in-rtl { to { opacity: 1; transform: translateX(0); } }
@keyframes tj-banner-split-cta-in-rtl { to { opacity: 1; transform: translateX(0); } }

/* ========== Concept 3: Editorial Bold ========== */
[data-banner-concept="editorial"] .tj-banner-shine { display: none; }
[data-banner-concept="editorial"] .tj-banner-glow { opacity: 0.2; }
[data-banner-concept="editorial"] .tj-promo-content-glass {
  max-width: 95%;
  padding: 2rem 2.5rem !important;
  background: rgba(26,26,26,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,168,75,0.25);
}
@media (min-width: 769px) {
  [data-banner-concept="editorial"] .tj-promo-content-glass { max-width: 65%; padding: 2.5rem 3rem !important; }
}
.tj-promo-badge {
  display: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tj-gold-light);
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(-8px);
}
[data-banner-concept="editorial"] .tj-promo-badge {
  display: inline-block;
  animation: tj-banner-badge-in 0.5s ease 0.1s forwards;
}
@keyframes tj-banner-badge-in {
  to { opacity: 1; transform: translateY(0); }
}
[data-banner-concept="editorial"] .tj-promo-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}
[data-banner-concept="editorial"] .tj-promo-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--tj-gold), var(--tj-gold-light));
  border-radius: 2px;
  animation: tj-banner-line-draw 0.7s ease 0.4s forwards;
}
[dir="rtl"] [data-banner-concept="editorial"] .tj-promo-title::after { left: auto; right: 0; }
@keyframes tj-banner-line-draw {
  to { width: 60px; }
}
[data-banner-concept="editorial"] .tj-banner-slide .tj-promo-title {
  opacity: 0;
  transform: translateY(12px);
}
[data-banner-concept="editorial"] .tj-banner-slide.active .tj-promo-title {
  animation: tj-banner-content-in 0.5s ease forwards;
}
[data-banner-concept="editorial"] .tj-banner-slide.active .tj-promo-title::after {
  animation: tj-banner-line-draw 0.7s ease 0.5s forwards;
}
[data-banner-concept="editorial"] .tj-banner-cta {
  position: relative;
}
[data-banner-concept="editorial"] .tj-banner-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 2px;
  background: var(--tj-white);
  transition: left 0.35s ease, right 0.35s ease;
}
[data-banner-concept="editorial"] .tj-banner-cta:hover::after,
[data-banner-concept="editorial"] .tj-banner-cta:focus-visible::after {
  left: 0;
  right: 0;
}
@media (max-width: 768px) {
  [data-banner-concept="editorial"] .tj-promo-content-glass { padding: 1.5rem 1.75rem !important; }
  [data-banner-concept="editorial"] .tj-promo-title { font-size: clamp(1.35rem, 4vw, 1.75rem); }
}

.tj-banner-slider .tj-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--tj-black);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--tj-transition), color var(--tj-transition), box-shadow var(--tj-transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tj-banner-slider .tj-carousel-control:hover {
  background: var(--tj-white);
  color: var(--tj-gold-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.tj-banner-slider .tj-carousel-control.prev { left: 1rem; }
.tj-banner-slider .tj-carousel-control.next { right: 1rem; }
[dir="rtl"] .tj-banner-slider .tj-carousel-control.prev { left: auto; right: 1rem; }
[dir="rtl"] .tj-banner-slider .tj-carousel-control.next { right: auto; left: 1rem; }
.tj-banner-dots {
  display: flex;
  gap: 0.5rem;
}
.tj-banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
  transition: background var(--tj-transition), transform var(--tj-transition);
}
.tj-banner-dots button:hover { background: rgba(255,255,255,0.75); }
.tj-banner-dots button.active { background: var(--tj-white); transform: scale(1.25); box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }

/* Newsletter */
.tj-newsletter {
  background: linear-gradient(180deg, var(--tj-black) 0%, var(--tj-black-soft) 100%);
  color: var(--tj-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tj-newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,75,0.3), transparent);
  opacity: 0.6;
}
.tj-newsletter-title {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.tj-newsletter-text { opacity: 0.88; margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; font-weight: 400; }
.tj-newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.tj-newsletter-form input[type="email"],
.tj-newsletter-form .tj-form-control {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--tj-radius);
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  color: var(--tj-white);
  transition: border-color var(--tj-transition), background var(--tj-transition);
}
.tj-newsletter-form input[type="email"]::placeholder,
.tj-newsletter-form .tj-form-control::placeholder { color: rgba(255,255,255,0.52); }
.tj-newsletter-form input[type="email"]:focus,
.tj-newsletter-form .tj-form-control:focus {
  outline: none;
  border-color: var(--tj-gold-light);
  background: rgba(255,255,255,0.09);
}
.tj-newsletter-form .tj-btn { flex-shrink: 0; padding: 0.85rem 1.5rem; }
.tj-newsletter-privacy { font-size: 0.8rem; }

/* Unified Sticky Header — topbar + navbar stick together — Modern UI/UX */
.tj-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
  overflow: visible;
  isolation: isolate;
  background: var(--tj-white);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow var(--tj-transition), background var(--tj-transition);
}
.tj-header-wrapper > .tj-topbar {
  flex-shrink: 0;
}
.tj-header-wrapper > .tj-header-sticky {
  flex-shrink: 0;
}
@supports not (backdrop-filter: blur(1px)) {
  .tj-header-wrapper { background: var(--tj-white); }
}
@media (prefers-reduced-motion: reduce) {
  .tj-header-wrapper { transition: none; }
}
.tj-header-wrapper::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  top: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--tj-border) 20%, var(--tj-border) 80%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}
[dir="rtl"] .tj-header-wrapper::before {
  background: linear-gradient(270deg, transparent 0%, var(--tj-border) 20%, var(--tj-border) 80%, transparent 100%);
}
/* When pinned (scrolled): subtle elevation */
.tj-header-wrapper.is-pinned {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--tj-border), 0 4px 16px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.03);
}
.tj-header-wrapper.is-pinned .tj-header-sticky {
  box-shadow: none; /* wrapper handles shadow when pinned */
}
/* Header region: sticky navbar (tj-topbar-region is landmark class on the same element) */
.tj-header-sticky,
.tj-header-sticky.tj-topbar-region {
  display: block;
  width: 100%;
  overflow: visible;
  box-shadow: 0 1px 0 var(--tj-border), 0 2px 8px rgba(0, 0, 0, 0.03);
}
.tj-topbar-compact {
  background: linear-gradient(180deg, #252525 0%, var(--tj-black) 100%);
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.15);
}
/* .tj-navbar-main padding is in base .tj-navbar block below */
.tj-nav-shop-dropdown { position: static; }
.tj-nav-shop-dropdown .dropdown-menu {
  border: none;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: auto !important;
  min-width: 600px;
  max-width: 900px;
  margin-top: 0;
  padding: 0;
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--tj-border);
  border-top: 2px solid var(--tj-gold-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: tj-dropdown-slide-down 0.35s var(--tj-ease);
}
@keyframes tj-dropdown-slide-down {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
[dir="rtl"] .tj-nav-shop-dropdown .dropdown-menu {
  left: auto !important;
  right: 50% !important;
  transform: translateX(50%);
}
[dir="rtl"] .tj-nav-shop-dropdown .dropdown-menu {
  animation: tj-dropdown-slide-down-rtl 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tj-dropdown-slide-down-rtl {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}
.tj-mega-menu {
  padding: 2rem 0 !important;
  min-height: 100px;
  background: linear-gradient(to bottom, var(--tj-white) 0%, var(--tj-offwhite) 100%);
  backdrop-filter: blur(10px);
}
.tj-mega-menu .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Mega menu content structure */
.tj-mega-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tj-mega-menu-section {
  width: 100%;
}
.tj-mega-menu-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--tj-border);
  position: relative;
}
.tj-mega-menu-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--tj-gold-light), var(--tj-gold));
  border-radius: 2px;
}
[dir="rtl"] .tj-mega-menu-header::after {
  left: auto;
  right: 0;
}
.tj-mega-menu-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--tj-gold-dark) !important;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.5rem 0;
  position: relative;
}
.tj-mega-menu-all-icon {
  font-size: 1.1rem;
  color: var(--tj-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tj-mega-menu-all:hover {
  color: var(--tj-gold) !important;
  transform: translateX(3px);
}
[dir="rtl"] .tj-mega-menu-all:hover {
  transform: translateX(-3px);
}
.tj-mega-menu-all:hover .tj-mega-menu-all-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--tj-gold-light);
}
/* Categories grid - responsive and evenly spaced */
.tj-mega-menu-categories {
  padding: 0.75rem 0;
}
.tj-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  align-items: start;
}
/* Responsive dropdown width */
@media (max-width: 767px) {
  .tj-nav-shop-dropdown .dropdown-menu {
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    left: 50% !important;
    transform: translateX(-50%);
    border-radius: var(--tj-radius-lg);
  }
  [dir="rtl"] .tj-nav-shop-dropdown .dropdown-menu {
    right: 50% !important;
    transform: translateX(50%);
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .tj-nav-shop-dropdown .dropdown-menu {
    min-width: 500px;
    max-width: 700px;
  }
}
/* Responsive grid adjustments */
@media (min-width: 768px) {
  .tj-mega-menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 992px) {
  .tj-mega-menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}
/* RTL support for mega menu */
[dir="rtl"] .tj-mega-menu-content {
  direction: rtl;
}
[dir="rtl"] .tj-mega-menu-grid {
  direction: rtl;
}
[dir="rtl"] .tj-mega-menu-footer-links {
  direction: rtl;
}
/* Ensure proper spacing in RTL */
[dir="rtl"] .tj-mega-menu-link {
  text-align: right;
}
[dir="rtl"] .tj-mega-menu-footer-links .tj-mega-menu-link {
  text-align: right;
}
/* Individual category links - modern card style */
.tj-mega-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  color: var(--tj-text) !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--tj-radius);
  background: var(--tj-white);
  border: 1px solid var(--tj-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.tj-mega-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(184, 134, 11, 0.12), rgba(212, 168, 75, 0.08));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
[dir="rtl"] .tj-mega-menu-link::before {
  left: auto;
  right: 0;
}
.tj-mega-menu-link-text {
  position: relative;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tj-mega-menu-link-arrow {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--tj-text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .tj-mega-menu-link-arrow {
  transform: translateX(6px);
}
.tj-mega-menu-link:hover {
  color: var(--tj-gold-dark) !important;
  border-color: var(--tj-gold-light);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.18);
  transform: translateY(-3px) scale(1.01);
  padding-inline-start: 1rem;
}
[dir="rtl"] .tj-mega-menu-link:hover {
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}
.tj-mega-menu-link:hover::before {
  width: 100%;
}
.tj-mega-menu-link:hover .tj-mega-menu-link-text {
  color: var(--tj-gold-dark);
}
.tj-mega-menu-link:hover .tj-mega-menu-link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--tj-gold);
}
[dir="rtl"] .tj-mega-menu-link:hover .tj-mega-menu-link-arrow {
  transform: translateX(0);
}
/* Footer section with New Arrivals and Best Sellers */
.tj-mega-menu-footer {
  padding-top: 1rem;
  border-top: 2px solid var(--tj-border);
  position: relative;
}
.tj-mega-menu-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--tj-gold-light), var(--tj-gold));
  border-radius: 2px;
}
[dir="rtl"] .tj-mega-menu-footer::before {
  left: auto;
  right: 0;
}
.tj-mega-menu-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.tj-mega-menu-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tj-text) !important;
  text-decoration: none;
  border-radius: var(--tj-radius-pill);
  background: var(--tj-white);
  border: 2px solid var(--tj-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.tj-mega-menu-footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tj-gold-light), var(--tj-gold));
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.tj-mega-menu-footer-icon {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--tj-gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tj-mega-menu-footer-link span {
  position: relative;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tj-mega-menu-footer-link:hover {
  color: var(--tj-white) !important;
  border-color: var(--tj-gold);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.35);
  transform: translateY(-3px) scale(1.02);
}
.tj-mega-menu-footer-link:hover::before {
  left: 0;
}
.tj-mega-menu-footer-link:hover .tj-mega-menu-footer-icon {
  color: var(--tj-white);
  transform: scale(1.15) rotate(8deg);
}
.tj-mega-menu-footer-link:hover span {
  color: var(--tj-white);
}
.tj-nav-search-wrap {
  flex: 1;
  max-width: 320px;
  min-width: 180px;
  margin: 0;
  margin-inline: 1.5rem;
}
.tj-nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.tj-nav-search-input {
  width: 100%;
  padding-inline-start: 1rem;
  padding-inline-end: 2.75rem;
  padding-block: 0.5rem;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius-pill);
  font-size: 0.9rem;
  background: var(--tj-offwhite);
  color: var(--tj-text);
  transition: border-color var(--tj-transition), background var(--tj-transition);
}
.tj-nav-search-input:focus {
  outline: none;
  border-color: var(--tj-gold-light);
  background: var(--tj-white);
}
.tj-nav-search-input::placeholder { color: var(--tj-text-muted); }
.tj-nav-search-btn {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: var(--tj-gold);
  color: var(--tj-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tj-transition), transform var(--tj-transition);
}
.tj-nav-search-btn:hover { background: var(--tj-gold-dark); transform: translateY(-50%) scale(1.05); }
@media (max-width: 991px) {
  .tj-nav-search-wrap { margin: 0.75rem 0; max-width: 100%; order: -1; width: 100%; }
}

/* Top bar — Modern strip: region, country, cart, account, language (lighter weight so it doesn’t compete with hero) */
.tj-topbar {
  background: linear-gradient(165deg, #4a4a4a 0%, #3d3d3d 100%);
  color: var(--tj-white);
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-font-smoothing: antialiased;
}
.tj-topbar .container > .d-flex {
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
}
.tj-topbar-left {
  gap: 0.75rem;
  align-items: center;
}
.tj-topbar a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color var(--tj-transition), opacity var(--tj-transition);
}
.tj-topbar a:hover {
  color: var(--tj-gold-light);
  opacity: 1;
}
/* Site name in topbar (tj-topbar-region is on header for landmarks) */
.tj-topbar-site-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.98;
}
[dir="rtl"] .tj-topbar-left {
  text-align: right;
}
.tj-topbar-link {
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--tj-radius);
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-topbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tj-gold-light) !important;
}
/* Country dropdown — pill trigger, aligned with top bar */
.tj-topbar-country {
  display: inline-flex;
  align-items: center;
}
.tj-topbar-country-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--tj-radius-pill);
  transition: background var(--tj-transition), border-color var(--tj-transition), color var(--tj-transition);
  line-height: 1.3;
  min-height: 2rem;
}
.tj-topbar-country-btn:hover,
.tj-topbar-country.show .tj-topbar-country-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 168, 75, 0.35);
  color: var(--tj-white);
}
.tj-topbar-country-btn:focus-visible {
  outline: 2px solid var(--tj-gold-light);
  outline-offset: 2px;
}
.tj-topbar-country-btn::after {
  display: none;
}
.tj-topbar-country-btn .tj-country-flag,
.tj-topbar-country .dropdown-item .tj-country-flag {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  min-width: 1.35em;
  text-align: center;
  font-size: 1.15em;
  vertical-align: middle;
}
.tj-topbar-country-btn .tj-country-flag .tj-country-flag-img,
.tj-topbar-country .dropdown-item .tj-country-flag .tj-country-flag-img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}
.tj-topbar-country .dropdown-item .tj-country-flag {
  margin-inline-end: 0.75rem;
}
.tj-topbar-country .dropdown-item .tj-country-label {
  display: inline;
  font-size: 1em;
}
/* Prevent header from clipping dropdowns (fixes off-screen / cut-off on mobile) */
.tj-header-wrapper,
.tj-topbar,
.tj-topbar .container {
  overflow: visible;
}

/* Dropdown panel: subtle shadow, border, anchored to trigger with offset + z-index */
.tj-topbar-country .dropdown-menu,
.tj-topbar-lang .dropdown-menu {
  font-size: 0.9rem;
  border-radius: var(--tj-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--tj-border);
  padding: 0.4rem;
  background: var(--tj-white);
  margin-top: 0.5rem;
  z-index: 1070;
}
.tj-topbar-country .dropdown-menu {
  min-width: 180px;
}
.tj-topbar-country .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  color: var(--tj-text);
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-topbar-country .dropdown-item:hover,
.tj-topbar-country .dropdown-item:focus {
  background: rgba(212, 168, 75, 0.14);
  color: var(--tj-gold-dark);
  outline: none;
}
.tj-topbar-country .dropdown-item.active {
  background: rgba(212, 168, 75, 0.18);
  color: var(--tj-gold-dark);
  font-weight: 500;
}
/* Language dropdown — pill trigger */
.tj-topbar-lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--tj-radius-pill);
  transition: background var(--tj-transition), border-color var(--tj-transition), color var(--tj-transition);
}
.tj-topbar-lang-btn:hover,
.tj-topbar-lang.show .tj-topbar-lang-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 168, 75, 0.35);
  color: var(--tj-white);
}
.tj-topbar-lang-btn:focus-visible {
  outline: 2px solid var(--tj-gold-light);
  outline-offset: 2px;
}
.tj-topbar-lang-btn::after {
  margin-inline-start: 0.35rem;
  opacity: 0.8;
}
.tj-topbar-lang .dropdown-menu {
  min-width: 140px;
}
.tj-topbar-lang .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  color: var(--tj-text);
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-topbar-lang .dropdown-item .tj-lang-label {
  display: inline;
  font-size: 1em;
}
.tj-topbar-lang .dropdown-item:hover,
.tj-topbar-lang .dropdown-item:focus {
  background: rgba(212, 168, 75, 0.14);
  color: var(--tj-gold-dark);
  outline: none;
}
.tj-topbar-brand {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.tj-topbar-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 24px !important;
  max-width: 120px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.tj-topbar-utils .dropdown-toggle {
  color: var(--tj-white);
}
.tj-topbar-utils .dropdown-menu {
  font-size: 0.9rem;
  border-radius: var(--tj-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--tj-border);
  padding: 0.4rem;
  background-color: var(--tj-white);
}
.tj-topbar-utils .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-topbar-utils .dropdown-item:hover,
.tj-topbar-utils .dropdown-item:focus {
  background: rgba(212, 168, 75, 0.1);
  color: var(--tj-gold-dark);
}
/* Utils: subtle divider — logical properties for RTL/LTR */
.tj-topbar-utils {
  gap: 0.5rem;
  padding-inline-start: 1rem;
  margin-inline-start: 0.5rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}
.tj-topbar-utils .tj-topbar-cart {
  margin-inline-end: 0.25rem;
}
.tj-topbar-utils .tj-topbar-link + .tj-topbar-lang,
.tj-topbar-utils .tj-topbar-cart + .tj-topbar-link {
  margin-inline-start: 0.25rem;
}
/* Cart icon — modern pill + badge */
.tj-topbar-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--tj-radius);
  transition: background var(--tj-transition), color var(--tj-transition), transform var(--tj-transition);
}
.tj-topbar-cart:hover {
  color: var(--tj-gold-light) !important;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}
.tj-topbar-cart:focus-visible {
  outline: 2px solid var(--tj-gold-light);
  outline-offset: 2px;
}
.tj-cart-badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  background: linear-gradient(135deg, var(--tj-gold-light), var(--tj-gold));
  color: var(--tj-black);
  border-radius: var(--tj-radius-pill);
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--tj-transition);
}
.tj-topbar-cart:hover .tj-cart-badge {
  transform: scale(1.08);
}

/* ========== Navbar: .navbar.tj-navbar.tj-navbar-main — LTR + RTL (Arabic) ========== */
.tj-navbar,
.tj-navbar.tj-navbar-main {
  background: var(--tj-white) !important;
  box-shadow: 0 1px 0 var(--tj-border);
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.tj-navbar-main { padding: 0.5rem 0 !important; }

/* Center nav (Home, Shop, …) and right nav use logical margins for RTL */
.tj-nav-center {
  margin-inline-start: auto;
  margin-inline-end: auto;
}
.tj-nav-right {
  margin-inline-start: 0;
}

.tj-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--tj-gold) !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.tj-navbar-brand-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
[dir="rtl"] .tj-navbar-brand-inner {
  flex-direction: row-reverse;
}
.tj-navbar-brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--tj-gold);
  white-space: nowrap;
}
.tj-navbar-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 36px !important;
  max-width: 140px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.tj-navbar .nav-link {
  color: var(--tj-black) !important;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--tj-radius);
  text-align: inherit;
  transition: color var(--tj-transition), background var(--tj-transition);
}
.tj-navbar .nav-link:hover {
  color: var(--tj-gold) !important;
  background: rgba(184, 134, 11, 0.08);
}

.tj-navbar .navbar-toggler {
  border: none;
  background: transparent;
  box-shadow: none;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding: 0.5rem 0.75rem;
}
.tj-navbar .navbar-toggler:hover {
  background: rgba(184, 134, 11, 0.08);
}
.tj-navbar .navbar-toggler:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
}
.tj-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.tj-navbar .tj-btn-primary { padding: 0.5rem 1rem; font-size: 0.9rem; }
.tj-btn-get-started { font-weight: 600; }

/* Desktop (≥992px): layout — logo, collapse (nav + search + right), no overlap */
@media (min-width: 992px) {
  .tj-navbar .tj-navbar-container {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .tj-navbar .navbar-brand {
    flex-shrink: 0 !important;
    min-width: auto;
  }
  .tj-navbar .navbar-collapse {
    min-width: 0 !important;
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .tj-navbar .navbar-collapse .navbar-nav.tj-nav-center {
    flex-shrink: 1;
    min-width: 0;
  }
  .tj-navbar .tj-nav-search-wrap {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 280px;
  }
  .tj-navbar .tj-nav-right {
    flex-shrink: 0;
  }
  .tj-navbar .tj-btn-get-started {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.tj-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tj-nav-cart .tj-cart-badge {
  top: -4px;
  inset-inline-end: -6px;
}
.tj-nav-account {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.tj-nav-account i { font-size: 1rem; }
@media (min-width: 992px) {
  .tj-nav-account-text { display: inline; }
}
@media (max-width: 991px) {
  .tj-nav-account-text { display: none; }
  .tj-nav-center { margin-inline-start: 0; margin-inline-end: 0; }
}

/* Footer */
.tj-footer {
  background: var(--tj-black);
  color: var(--tj-white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.tj-footer a { color: rgba(255,255,255,0.85); }
.tj-footer a:hover { color: var(--tj-gold-light); }
.tj-footer-brand { font-weight: 700; font-size: 1.25rem; color: var(--tj-gold-light) !important; margin-bottom: 0.5rem; }
.tj-footer-title { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; opacity: 0.9; }
.tj-footer-contact-link { color: rgba(255,255,255,0.9); text-decoration: none; }
.tj-footer-contact-link:hover { color: var(--tj-gold-light); text-decoration: underline; }
.tj-footer-social { display: flex; gap: 0.75rem; }
.tj-footer-social a { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.tj-footer-social a:hover { color: var(--tj-gold-light); }
.tj-footer-links { list-style: none; padding: 0; margin: 0; }
.tj-footer-links li { margin-bottom: 0.5rem; }
.tj-footer-preferences {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
}
.tj-footer-pref-label { font-size: 0.85rem; opacity: 0.9; margin-inline-end: 0.5rem; }
.tj-footer-lang-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--tj-transition);
}
.tj-footer-lang-link:hover { color: var(--tj-gold-light); }
.tj-footer-lang-link.active { color: var(--tj-gold-light); font-weight: 600; }
.tj-footer-sep { opacity: 0.5; }

/* Footer credit — RD-apps (horizontal on desktop/tablet, vertical on small screens) */
.tj-footer-credit {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  text-align: center;
}
.tj-footer-credit-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  row-gap: 0.5rem;
}
.tj-footer-credit-logo {
  display: inline-flex;
  align-items: center;
}
.tj-footer-credit-logo a,
.tj-footer-credit-logo img {
  display: block;
}
.tj-footer-credit-img {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  vertical-align: middle;
}
.tj-footer-credit-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.tj-footer-credit-link,
.tj-footer-credit-name {
  color: var(--tj-gold-light);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tj-footer-credit-link:hover {
  color: var(--tj-white);
  text-decoration: underline;
}

.tj-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.25rem; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; opacity: 0.8; }

/* Form group — spacing between fields (design outline 4.2) */
.tj-form-group {
  margin-bottom: 1rem;
}
.tj-form-group:last-child { margin-bottom: 0; }

/* Empty state — centered icon + message + CTA (design outline 4.8) */
.tj-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.tj-empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--tj-gold);
}
[dir="rtl"] .tj-empty-state { text-align: center; }

/* Tables — cart/checkout/admin (design outline 4.4) */
.tj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tj-table th,
.tj-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--tj-border);
  vertical-align: middle;
}
.tj-table th { font-weight: 600; text-align: inherit; }
.tj-table .text-end { text-align: right; }
.tj-table .tj-btn,
.tj-table .btn {
  min-height: 44px;
  min-width: 44px;
}
@media (max-width: 767px) {
  .tj-table th, .tj-table td { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
}

/* Nav touch targets (design outline 5.4, 6.4) */
.tj-navbar .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Card add-to-cart visible on focus for mobile (design outline 6.4) */
.tj-card:focus-within .tj-card-cart-form,
.tj-card-img-wrap:focus-within .tj-card-cart-form {
  opacity: 1;
  visibility: visible;
}

/* Forms — clean, accessible */
.tj-form-label { font-weight: 500; color: var(--tj-black); margin-bottom: 0.35rem; font-size: 0.9375rem; }
.tj-form-control {
  padding: 0.75rem 1.125rem;
  border: 1.5px solid var(--tj-border);
  border-radius: var(--tj-radius);
  background: var(--tj-white);
  color: var(--tj-text);
  font-size: 0.9375rem;
  width: 100%;
  min-height: 44px;
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-form-control:focus {
  border-color: var(--tj-gold-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}
.tj-form-control:hover:not(:focus) {
  border-color: rgba(212, 168, 75, 0.45);
}
.tj-form-control::placeholder {
  color: var(--tj-text-muted);
  opacity: 0.65;
}
.tj-form-control:disabled {
  background: var(--tj-offwhite);
  opacity: 0.6;
  cursor: not-allowed;
}
.form-label {
  font-weight: 500;
  color: var(--tj-black);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.form-select {
  padding: 0.75rem 1.125rem;
  border: 1.5px solid var(--tj-border);
  border-radius: var(--tj-radius);
  background: var(--tj-white);
  color: var(--tj-text);
  font-size: 0.9375rem;
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition);
  min-height: 44px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235c5c5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
.form-select:focus {
  border-color: var(--tj-gold-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}
.form-select:hover:not(:focus) {
  border-color: rgba(212, 168, 75, 0.45);
}
textarea.tj-form-control {
  min-height: 120px;
  resize: vertical;
  font-family: var(--tj-font-body);
  line-height: 1.6;
}
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--tj-border);
  border-radius: 6px;
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition), background var(--tj-transition);
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--tj-gold);
  border-color: var(--tj-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}
.form-check-input:focus {
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
  outline: none;
}
.form-check-label {
  cursor: pointer;
  margin-left: 0.5rem;
  color: var(--tj-text);
  font-size: 0.95rem;
}

/* Alerts — soft, readable */
.tj-alert { 
  border-radius: var(--tj-radius-lg); 
  border: none; 
  padding: 1rem 1.25rem;
  box-shadow: var(--tj-shadow-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideInDown 0.35s var(--tj-ease);
  transition: box-shadow var(--tj-transition);
}
.tj-alert:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tj-alert-success { 
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.12) 0%, rgba(184, 134, 11, 0.08) 100%); 
  color: var(--tj-gold-dark); 
  border-left: 4px solid var(--tj-gold);
  border-left-width: 4px;
}
.tj-alert-danger { 
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.14) 0%, rgba(26, 26, 26, 0.08) 100%); 
  color: var(--tj-black-soft); 
  border-left: 4px solid var(--tj-black);
  border-left-width: 4px;
}
.tj-alert-warning { 
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.12) 0%, rgba(184, 134, 11, 0.08) 100%); 
  color: var(--tj-gold-dark); 
  border-left: 4px solid var(--tj-gold-dark);
  border-left-width: 4px;
}
.tj-alert-info { 
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.12) 0%, rgba(212, 168, 75, 0.08) 100%); 
  color: var(--tj-gold-dark); 
  border-left: 4px solid var(--tj-gold-light);
  border-left-width: 4px;
}
.tj-alert i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.tj-alert:hover i {
  transform: scale(1.1);
}
[dir="rtl"] .tj-alert i {
  margin-right: 0;
  margin-left: 0.5rem;
}
[dir="rtl"] .tj-alert-success,
[dir="rtl"] .tj-alert-danger,
[dir="rtl"] .tj-alert-warning,
[dir="rtl"] .tj-alert-info {
  border-left: none;
  border-right: 4px solid;
}
[dir="rtl"] .tj-alert-success { border-right-color: var(--tj-gold); }
[dir="rtl"] .tj-alert-danger { border-right-color: var(--tj-black); }
[dir="rtl"] .tj-alert-warning { border-right-color: var(--tj-gold-dark); }
[dir="rtl"] .tj-alert-info { border-right-color: var(--tj-gold-light); }

/* Product grid */
.tj-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.tj-product-grid .tj-card {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 576px) {
  .tj-product-grid { gap: 1.5rem; }
}
@media (min-width: 768px) {
  .tj-product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; }
}
@media (min-width: 992px) {
  .tj-product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
}
@media (min-width: 1200px) {
  .tj-product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 100%; gap: 2.25rem; }
}
/* Wishlist card actions - ensure horizontal layout */
.tj-product-grid .tj-wishlist-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tj-product-grid .tj-wishlist-actions .tj-btn {
  white-space: nowrap;
  min-width: fit-content;
}

/* List view */
.tj-product-grid.tj-product-list { grid-template-columns: 1fr; }
.tj-product-grid.tj-product-list .tj-card { display: flex; flex-direction: row; align-items: stretch; gap: 0; }
.tj-product-grid.tj-product-list .tj-card-img-wrap { flex: 0 0 220px; min-height: 220px; }
.tj-product-grid.tj-product-list .tj-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.tj-product-grid.tj-product-list .tj-card-title { margin-bottom: 0.5rem; }
.tj-product-grid.tj-product-list .tj-card-price { margin-bottom: 0.75rem; }
/* List view RTL (desktop/tablet): image on right, body on left; overridden to column on mobile */
[dir="rtl"] .tj-product-grid.tj-product-list .tj-card { flex-direction: row-reverse; }
[dir="rtl"] .tj-product-grid.tj-product-list .tj-card-body { text-align: right; }
/* ========== Shop page — modern catalog UI ========== */
.tj-page-shop .tj-section { padding-top: 2rem; }
.tj-shop-header { max-width: 560px; }
.tj-shop-header .tj-heading-1 { margin-bottom: 0.35rem; }
.tj-shop-subtitle { font-size: 0.95rem; }
.tj-shop-sidebar { position: relative; }
@media (min-width: 992px) {
  .tj-shop-sidebar { position: sticky; top: calc(var(--tj-section-spacing, 2rem) + 1rem); align-self: start; }
}
/* ——— Shop filters card: modern UI ——— */
.tj-shop-filters-card {
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--tj-radius-xl);
  border: 1px solid var(--tj-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--tj-white);
}
.tj-shop-filters-card:hover {
  border-color: rgba(212, 168, 75, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.tj-shop-filters-card.tj-card:hover {
  transform: none;
}
.tj-shop-filters-card .tj-card-body.tj-shop-filters-card-body {
  padding: 1.5rem 1.35rem;
}
.tj-shop-clear-filters {
  color: var(--tj-gold-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--tj-transition), opacity var(--tj-transition);
}
.tj-shop-clear-filters:hover { color: var(--tj-gold); opacity: 0.9; }

/* ========== Shop toolbar — modern, premium UI/UX (one line, EN/AR same layout) ========== */
.tj-shop-toolbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.5rem;
  padding-inline: clamp(1.125rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--tj-white) 0%, var(--tj-offwhite-warm) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-xl);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.03);
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition), transform var(--tj-transition);
  direction: ltr;
}
.tj-shop-toolbar:hover {
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 16px rgba(0, 0, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.04);
}
.tj-shop-toolbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tj-gold-dark) 0%, var(--tj-gold) 35%, var(--tj-gold-light) 70%, var(--tj-gold) 100%);
  background-size: 200% 100%;
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.tj-shop-toolbar .tj-shop-toolbar-end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-width: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* Results count — refined pill with accent; can shrink on narrow screens */
.tj-shop-results-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tj-text);
  background: var(--tj-white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--tj-radius-pill);
  border: 1px solid var(--tj-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background var(--tj-transition), box-shadow var(--tj-transition), border-color var(--tj-transition);
  min-width: 0; /* allow shrink so filters button keeps full "Categories" */
}
.tj-shop-results-count:hover {
  border-color: rgba(184, 134, 11, 0.25);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.08);
}
.tj-shop-results-count i {
  font-size: 0.8rem;
  opacity: 0.85;
  color: var(--tj-gold);
  transition: color var(--tj-transition);
}
.tj-shop-results-count-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tj-black);
  letter-spacing: 0.02em;
}
.tj-shop-results-count-label {
  color: var(--tj-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Filters toggle — clear CTA style; never shrink so "Categories" is never truncated */
.tj-shop-toolbar .tj-shop-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: var(--tj-radius);
  padding: 0.5rem 1rem;
  border: 1px solid var(--tj-border);
  background: var(--tj-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform var(--tj-transition), box-shadow var(--tj-transition), border-color var(--tj-transition), color var(--tj-transition);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: max-content;
}
.tj-shop-toolbar .tj-shop-filters-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--tj-gold-dark);
  color: var(--tj-gold-dark);
}
.tj-shop-toolbar .tj-shop-filters-toggle:active {
  transform: translateY(0);
}

/* View toggle — premium segmented control */
.tj-shop-toolbar .tj-view-toggle {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  background: var(--tj-white);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  padding: 4px;
  gap: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[dir="rtl"] .tj-shop-toolbar .tj-view-toggle.btn-group { flex-direction: row !important; }
.tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 0.6rem;
  border: none;
  border-radius: calc(var(--tj-radius) - 3px);
  background: transparent;
  color: var(--tj-text-muted);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn:hover {
  color: var(--tj-text);
  background: var(--tj-offwhite-warm);
}
.tj-shop-toolbar .tj-view-toggle .tj-view-toggle-btn.active {
  background: linear-gradient(145deg, var(--tj-gold-light) 0%, var(--tj-gold) 50%, var(--tj-gold-dark) 100%);
  color: var(--tj-white);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4), 0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
}
.tj-view-toggle .tj-view-toggle-btn:first-child {
  border-start-start-radius: calc(var(--tj-radius) - 3px);
  border-end-start-radius: calc(var(--tj-radius) - 3px);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.tj-view-toggle .tj-view-toggle-btn:last-child {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: calc(var(--tj-radius) - 3px);
  border-end-end-radius: calc(var(--tj-radius) - 3px);
}

/* Toolbar divider — subtle */
.tj-shop-toolbar-divider {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  background: linear-gradient(180deg, transparent 0%, var(--tj-border) 15%, var(--tj-border) 85%, transparent 100%);
  margin: 0 0.35rem;
  opacity: 0.9;
}

/* Sort form — modern premium dropdown */
.tj-shop-toolbar .tj-sort-form {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  position: relative;
}
.tj-shop-toolbar .tj-sort-form-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding: 0.25rem;
  border-radius: calc(var(--tj-radius) + 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.98) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(184, 134, 11, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-shop-toolbar .tj-sort-form-inner:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(184, 134, 11, 0.1) inset;
  transform: translateY(-1px);
}
.tj-shop-toolbar .tj-sort-form-inner:focus-within {
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.12), 0 0 0 1px rgba(184, 134, 11, 0.15) inset;
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 240, 1) 100%);
}
.tj-shop-toolbar .tj-sort-form-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tj-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.tj-shop-toolbar .tj-sort-form-label::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent 0%, var(--tj-border) 20%, var(--tj-border) 80%, transparent 100%);
  margin-left: 0.5rem;
  opacity: 0.6;
}
.tj-shop-toolbar .tj-sort-select {
  min-width: 0;
  max-width: 220px;
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border-radius: calc(var(--tj-radius) - 2px);
  border: 1.5px solid var(--tj-border);
  background: var(--tj-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tj-text);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.tj-shop-toolbar .tj-sort-select:hover {
  border-color: var(--tj-gold);
  background-color: var(--tj-offwhite-warm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.12), 0 0 0 1px rgba(184, 134, 11, 0.08) inset;
  transform: translateY(-1px);
}
.tj-shop-toolbar .tj-sort-select:focus {
  outline: none;
  border-color: var(--tj-gold);
  background-color: var(--tj-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15), 0 2px 8px rgba(184, 134, 11, 0.2);
  transform: translateY(-1px);
}
.tj-shop-toolbar .tj-sort-select:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.2);
}
.tj-shop-toolbar select.tj-form-control {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
/* Toolbar uses direction: ltr — same one-line layout for EN and AR; no RTL flip */
.tj-shop-empty { background: var(--tj-white); border-radius: var(--tj-radius-lg); box-shadow: var(--tj-shadow-soft); border: 1px solid var(--tj-border); padding: 3rem 1.5rem; }
.tj-shop-empty-icon { opacity: 0.4; color: var(--tj-gold); }
.tj-shop-empty .tj-heading-3 { margin-bottom: 0.5rem; }

/* Mobile: full-screen filters drawer with sticky header */
@media (max-width: 991px) {
  .tj-shop-filters-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    z-index: 1050;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s, box-shadow 0.3s;
    box-shadow: none;
    background: var(--tj-white);
  }
  .tj-shop-filters-card.tj-shop-filters-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12), 0 0 0 100vmax rgba(26, 26, 26, 0.35);
  }
  [dir="rtl"] .tj-shop-filters-card { transform: translateX(100%); }
  [dir="rtl"] .tj-shop-filters-card.tj-shop-filters-open { transform: translateX(0); box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12), 0 0 0 100vmax rgba(26, 26, 26, 0.35); }

  .tj-shop-filters-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    background: var(--tj-white);
    border-bottom: 1px solid var(--tj-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }
  .tj-shop-filters-card-title {
    font-family: var(--tj-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tj-black);
    margin: 0;
  }
  .tj-shop-filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: -0.5rem -0.5rem -0.5rem 0;
    font-size: 1.25rem;
    color: var(--tj-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--tj-radius);
    cursor: pointer;
    transition: color var(--tj-transition), background var(--tj-transition);
  }
  .tj-shop-filters-close:hover {
    color: var(--tj-gold-dark);
    background: var(--tj-offwhite);
  }
  .tj-shop-filters-close:focus-visible {
    outline: 2px solid var(--tj-gold);
    outline-offset: 2px;
  }
  [dir="rtl"] .tj-shop-filters-close { margin: -0.5rem 0 -0.5rem -0.5rem; }

  .tj-shop-filters-card .tj-card-body.tj-shop-filters-card-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* Tablet: drawer-style panel */
@media (min-width: 576px) and (max-width: 991px) {
  .tj-shop-filters-card {
    width: min(100%, 380px);
    max-width: 380px;
    border-radius: 0;
    border-right: 1px solid var(--tj-border);
  }
  [dir="rtl"] .tj-shop-filters-card { border-right: none; border-left: 1px solid var(--tj-border); }
  .tj-shop-filters-card .tj-card-body.tj-shop-filters-card-body {
    padding: 1.35rem 1.5rem;
  }
}

.tj-shop-filters-toggle { white-space: nowrap; }

/* Modern shop filter UI — pills, subcategories, collapsible groups */
.tj-filter-group {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--tj-border);
}
.tj-filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.tj-filter-group-title {
  font-family: var(--tj-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tj-text-muted);
  margin-bottom: 0.85rem;
}
.tj-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tj-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tj-text);
  background: var(--tj-offwhite);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-pill);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.tj-filter-pill:hover {
  background: rgba(212, 168, 75, 0.08);
  border-color: rgba(212, 168, 75, 0.4);
  color: var(--tj-gold-dark);
}
.tj-filter-pill:active {
  transform: scale(0.98);
}
.tj-filter-pill:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
}
.tj-filter-pill.active {
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 50%, var(--tj-gold-dark) 100%);
  border-color: var(--tj-gold-dark);
  color: var(--tj-white);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.tj-filter-pill.active:hover {
  background: linear-gradient(135deg, var(--tj-gold) 0%, var(--tj-gold-dark) 100%);
  color: var(--tj-white);
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.3);
}
/* Category tree: parent + nested children with expand/collapse */
.tj-filter-group-categories .tj-filter-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tj-filter-group-icon {
  font-size: 0.875rem;
  color: var(--tj-gold);
  opacity: 0.9;
}
.tj-filter-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tj-filter-pill-all {
  margin-bottom: 0.5rem;
}
.tj-filter-category-parent-wrap {
  border-radius: var(--tj-radius);
  transition: background 0.2s ease;
}
.tj-filter-category-parent-wrap:hover {
  background: rgba(248, 246, 243, 0.6);
}
.tj-filter-category-parent-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
}
.tj-filter-category-parent-link {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.6rem 0.5rem 0;
  padding-inline-start: 0;
  padding-inline-end: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tj-text);
  text-decoration: none;
  border-radius: var(--tj-radius);
  transition: color var(--tj-transition), background var(--tj-transition);
}
.tj-filter-category-parent-link:hover {
  color: var(--tj-gold-dark);
  background: transparent;
}
.tj-filter-category-parent-link.active {
  color: var(--tj-gold-dark);
  font-weight: 600;
}
.tj-filter-category-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  margin: 0;
  color: var(--tj-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--tj-radius);
  cursor: pointer;
  transition: color var(--tj-transition), transform var(--tj-transition), background var(--tj-transition);
}
.tj-filter-category-expand:hover {
  color: var(--tj-gold-dark);
  background: rgba(212, 168, 75, 0.08);
}
.tj-filter-category-expand:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
}
.tj-filter-category-parent-wrap.expanded .tj-filter-category-expand i {
  transform: rotate(180deg);
}
.tj-filter-category-expand i {
  font-size: 0.65rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-filter-category-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0 0.5rem 0.5rem;
  margin-left: 0.5rem;
  border-left: 2px solid var(--tj-border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.25s ease, margin 0.25s ease;
}
[dir="rtl"] .tj-filter-category-children {
  margin-left: 0;
  margin-right: 0.5rem;
  padding-left: 0;
  padding-right: 0.5rem;
  border-left: none;
  border-right: 2px solid var(--tj-border);
}
.tj-filter-category-parent-wrap.expanded .tj-filter-category-children {
  max-height: 320px;
  opacity: 1;
  padding: 0.5rem 0 0.5rem 0.5rem;
  margin-left: 0.5rem;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}
[dir="rtl"] .tj-filter-category-parent-wrap.expanded .tj-filter-category-children {
  margin-left: 0;
  margin-right: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0;
}
@keyframes tjFilterFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tj-filter-pill-sub {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  background: var(--tj-white);
}
.tj-filter-group-collapse .tj-filter-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.5rem 0.6rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tj-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--tj-transition), background var(--tj-transition);
  text-align: inherit;
  border-radius: var(--tj-radius);
}
.tj-filter-group-collapse .tj-filter-group-toggle:hover {
  color: var(--tj-gold-dark);
  background: rgba(248, 246, 243, 0.6);
}
.tj-filter-group-collapse .tj-filter-group-toggle:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
}
.tj-filter-group-collapse .tj-filter-group-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tj-filter-group-toggle-icon {
  font-size: 0.8rem;
  color: var(--tj-gold);
  opacity: 0.85;
  flex-shrink: 0;
}
.tj-filter-group-chevron {
  font-size: 0.7rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}
[dir="rtl"] .tj-filter-group-collapse .tj-filter-group-toggle .tj-filter-group-chevron { margin-inline-start: 0; margin-inline-end: 0.5rem; }
.tj-filter-group-collapse.collapsed .tj-filter-group-toggle .tj-filter-group-chevron { transform: rotate(-90deg); }
[dir="rtl"] .tj-filter-group-collapse.collapsed .tj-filter-group-toggle .tj-filter-group-chevron { transform: rotate(90deg); }
.tj-filter-group-collapse .tj-filter-group-content {
  overflow: hidden;
  max-height: 280px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.tj-filter-group-collapse.collapsed .tj-filter-group-content {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
}
.tj-form-control-select {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5c5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-form-control-select:focus {
  border-color: var(--tj-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
  outline: none;
}
.tj-filter-price-inputs {
  display: flex;
  gap: 0.5rem;
}
.tj-filter-price-inputs .tj-form-control { flex: 1; min-width: 0; }
[dir="rtl"] .tj-form-control-select {
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 2.25rem;
}

/* Touch-friendly filter controls on mobile/tablet */
@media (max-width: 991px) {
  .tj-shop-filters-card .tj-filter-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .tj-shop-filters-card .tj-filter-pill,
  .tj-shop-filters-card .tj-filter-pill-all {
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    align-items: center;
  }
  .tj-shop-filters-card .tj-filter-pill-sub {
    min-height: 40px;
    padding: 0.5rem 1rem;
  }
  .tj-shop-filters-card .tj-filter-category-parent-row {
    min-height: 48px;
  }
  .tj-shop-filters-card .tj-filter-category-parent-link {
    min-height: 44px;
    padding: 0.6rem 0.5rem;
  }
  .tj-shop-filters-card .tj-filter-category-expand {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .tj-shop-filters-card .tj-filter-group-collapse .tj-filter-group-toggle {
    min-height: 48px;
    padding: 0.75rem 0.5rem 0.75rem 0;
  }
  .tj-shop-filters-card .tj-filter-group-collapse .tj-filter-group-toggle .tj-filter-group-chevron {
    font-size: 0.75rem;
  }
  .tj-shop-filters-card .tj-form-control-select {
    min-height: 48px;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
  }
  .tj-shop-filters-card .tj-filter-price-inputs .tj-form-control {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  .tj-shop-filters-card .tj-filter-price-inputs {
    gap: 0.75rem;
  }
  .tj-shop-filters-card .tj-btn-sm.w-100.mt-2 {
    min-height: 48px;
    margin-top: 0.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tj-shop-filters-card,
  .tj-shop-filters-card.tj-shop-filters-open,
  .tj-filter-category-children,
  .tj-filter-category-parent-wrap.expanded .tj-filter-category-children,
  .tj-filter-category-expand i,
  .tj-filter-group-collapse .tj-filter-group-content,
  .tj-filter-group-chevron {
    transition-duration: 0.01ms !important;
  }
}

/* View toggle (shop) */
.tj-view-toggle .btn-primary { background-color: var(--tj-gold); border-color: var(--tj-gold); color: var(--tj-white); }
.tj-view-toggle .btn-outline-secondary:hover { border-color: var(--tj-gold); color: var(--tj-gold); }
.tj-load-more-wrap .tj-btn { min-width: 140px; }
.tj-infinite-sentinel { height: 1px; margin-top: -1px; }

/* Breadcrumb */
.tj-breadcrumb { font-size: 0.9rem; color: var(--tj-text-muted); margin-bottom: 1.5rem; }
.tj-breadcrumb a { color: var(--tj-text-muted); }
.tj-breadcrumb a:hover { color: var(--tj-gold); }
.tj-breadcrumb-product { 
  padding: 0.75rem 0 1rem; 
  margin-bottom: 1.5rem;
}
.tj-breadcrumb a {
  transition: color var(--tj-transition);
}
.tj-breadcrumb a:hover {
  color: var(--tj-gold);
  text-decoration: underline;
}
.tj-breadcrumb-current { color: var(--tj-black); font-weight: 500; }
.tj-product-price-block { 
  display: flex; 
  align-items: baseline; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}
.tj-product-customized-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.tj-product-customized-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--tj-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(212,168,75,0.2) 0%, rgba(184,134,11,0.12) 50%, rgba(26,26,26,0.06) 100%);
  color: var(--tj-gold-dark);
}
.tj-product-customized-note {
  font-size: 0.8rem;
  color: var(--tj-text-muted);
}
@media (max-width: 575.98px) {
  .tj-product-customized-note {
    font-size: 0.78rem;
  }
}
.tj-product-compare-price { 
  display: none !important;
}
.tj-product-price-block .tj-card-price { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
  font-weight: 700; 
  color: var(--tj-gold-dark);
  line-height: 1.2;
}
.tj-page-product .tj-card-body {
  padding: 2rem;
}
@media (max-width: 991px) {
  .tj-page-product .tj-card-body {
    padding: 1.5rem;
  }
}

/* ========== Product variants — Color swatches & Size pills (smooth, modern UI/UX) ========== */
.tj-variants-block {
  padding: 0.5rem 0;
  --tj-variant-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tj-variant-ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tj-variant-duration: 0.35s;
}
.tj-variant-group {
  margin-bottom: 1.25rem;
}
.tj-variant-group:last-child {
  margin-bottom: 0;
}
.tj-variant-label-row {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.tj-variant-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tj-text);
  letter-spacing: 0.02em;
}
.tj-variant-selected-name {
  font-size: 0.9375rem;
  color: var(--tj-text-muted);
  font-weight: 400;
  transition: color var(--tj-variant-duration) var(--tj-variant-ease), opacity var(--tj-variant-duration) var(--tj-variant-ease);
}
.tj-variant-selected-name.tj-variant-name-updated {
  color: var(--tj-gold-dark);
  opacity: 1;
}

/* Color swatches — smooth circular swatches with refined ring */
.tj-variant-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}
.tj-variant-swatch {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--tj-border);
  border-radius: 50%;
  background: var(--tj-white);
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  transition:
    border-color var(--tj-variant-duration) var(--tj-variant-ease),
    box-shadow var(--tj-variant-duration) var(--tj-variant-ease),
    transform var(--tj-variant-duration) var(--tj-variant-ease-out);
}
.tj-variant-swatch:hover {
  border-color: var(--tj-gold-light);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.18);
}
.tj-variant-swatch:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}
.tj-variant-swatch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tj-white), 0 0 0 5px var(--tj-gold), 0 4px 16px rgba(184, 134, 11, 0.25);
}
.tj-variant-swatch.selected,
.tj-variant-swatch[aria-pressed="true"] {
  border-color: var(--tj-black);
  border-width: 2px;
  box-shadow:
    0 0 0 2px var(--tj-white),
    0 0 0 4px var(--tj-black),
    0 4px 14px rgba(0, 0, 0, 0.12);
  transform: scale(1);
}
.tj-variant-swatch.selected:hover,
.tj-variant-swatch[aria-pressed="true"]:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px var(--tj-white),
    0 0 0 4px var(--tj-black),
    0 6px 18px rgba(0, 0, 0, 0.14);
}
.tj-variant-swatch-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  display: block;
  transition: inset var(--tj-variant-duration) var(--tj-variant-ease);
}
.tj-variant-swatch.selected .tj-variant-swatch-inner,
.tj-variant-swatch[aria-pressed="true"] .tj-variant-swatch-inner {
  inset: 5px;
}
.tj-variant-swatch-text {
  background: var(--tj-offwhite) !important;
  font-family: var(--tj-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tj-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-variant-hot {
  position: absolute;
  top: -5px;
  left: -2px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  color: var(--tj-white);
  z-index: 1;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.4);
  transition: transform var(--tj-variant-duration) var(--tj-variant-ease-out);
}
.tj-variant-swatch:hover .tj-variant-hot {
  transform: scale(1.05);
}

/* Size pills — smooth pill buttons with clear feedback */
.tj-variant-sizes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.tj-variant-size-btn {
  min-width: 50px;
  padding: 0.5625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tj-text);
  background: var(--tj-white);
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius-pill);
  cursor: pointer;
  transition:
    border-color var(--tj-variant-duration) var(--tj-variant-ease),
    background-color var(--tj-variant-duration) var(--tj-variant-ease),
    color var(--tj-variant-duration) var(--tj-variant-ease),
    transform var(--tj-variant-duration) var(--tj-variant-ease-out),
    box-shadow var(--tj-variant-duration) var(--tj-variant-ease);
}
.tj-variant-size-btn:hover {
  border-color: var(--tj-gold-light);
  background: var(--tj-offwhite-warm);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.12);
}
.tj-variant-size-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.12s;
}
.tj-variant-size-btn:focus-visible {
  outline: none;
  border-color: var(--tj-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}
.tj-variant-size-btn.selected,
.tj-variant-size-btn[aria-pressed="true"] {
  border-color: var(--tj-black);
  background: var(--tj-black);
  color: var(--tj-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.tj-variant-size-btn.selected:hover,
.tj-variant-size-btn[aria-pressed="true"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.tj-variant-type-btn {
  font-size: 0.8125rem;
  color: var(--tj-text-muted);
  background: var(--tj-offwhite-warm);
  border: 1px solid var(--tj-border) !important;
  border-radius: var(--tj-radius-pill);
  padding: 0.35rem 0.75rem;
  transition: border-color var(--tj-variant-duration) var(--tj-variant-ease), color var(--tj-variant-duration) var(--tj-variant-ease);
}
.tj-variant-type-btn:hover {
  border-color: var(--tj-gold-light) !important;
  color: var(--tj-text);
}
.tj-variant-type-dropdown .dropdown-menu {
  min-width: 140px;
  padding: 0.5rem;
  border-radius: var(--tj-radius);
  box-shadow: var(--tj-shadow);
  z-index: 1050;
}
/* Size section: clear vertical stack so "Type" and size buttons never overlap */
.tj-variant-sizes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tj-variant-sizes .tj-variant-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0;
}
.tj-variant-sizes .tj-variant-sizes-row {
  margin-top: 0;
}
.tj-variant-type-dropdown {
  flex-shrink: 0;
}
.tj-variant-type-btn {
  white-space: nowrap;
}
.tj-variants-block #variant-sku {
  margin-top: 0.75rem;
  transition: opacity var(--tj-variant-duration) var(--tj-variant-ease);
}

@media (max-width: 575px) {
  .tj-variant-swatch {
    width: 38px;
    height: 38px;
  }
  .tj-variant-swatch-inner {
    inset: 3px;
  }
  .tj-variant-swatch.selected .tj-variant-swatch-inner,
  .tj-variant-swatch[aria-pressed="true"] .tj-variant-swatch-inner {
    inset: 4px;
  }
  .tj-variant-size-btn {
    min-width: 46px;
    padding: 0.5rem 0.95rem;
    font-size: 0.875rem;
  }
  /* Size section: label row on one line, size buttons on next — no overlap */
  .tj-variant-sizes .tj-variant-label-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .tj-variant-sizes .tj-variant-sizes-row {
    width: 100%;
    margin-top: 0.25rem;
  }
  .tj-variant-type-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tj-variants-block .tj-variant-swatch,
  .tj-variants-block .tj-variant-size-btn,
  .tj-variants-block .tj-variant-selected-name,
  .tj-variants-block .tj-variant-swatch-inner,
  .tj-variants-block .tj-variant-hot {
    transition-duration: 0.01ms !important;
  }
  .tj-variants-block .tj-variant-swatch:hover,
  .tj-variants-block .tj-variant-size-btn:hover {
    transform: none;
  }
}

/* ========== Product page — modern options card & all views ========== */
.tj-product-options-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, var(--tj-offwhite-warm) 100%);
  border: 1px solid rgba(232, 228, 222, 0.8);
  border-radius: var(--tj-radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: visible;
}
.tj-product-options-card > * {
  position: relative;
  z-index: 1;
}
.tj-product-options-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tj-gold-light), var(--tj-gold), transparent);
  opacity: 0.35;
  pointer-events: none;
  border-radius: var(--tj-radius-lg) var(--tj-radius-lg) 0 0;
}
.tj-product-options-card .tj-variant-group {
  margin-bottom: 1.5rem;
}
.tj-product-options-card .tj-variant-group:last-of-type {
  margin-bottom: 0;
}
.tj-product-options-card .tj-variant-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.tj-product-options-card .tj-variant-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tj-text-muted);
}
.tj-product-options-card .tj-variant-selected-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tj-black);
  padding: 0.2rem 0.6rem;
  background: rgba(184, 134, 11, 0.08);
  border-radius: var(--tj-radius-pill);
  border: 1px solid rgba(184, 134, 11, 0.2);
}
.tj-product-options-card .tj-variant-swatches {
  gap: 0.75rem;
}
.tj-product-options-card .tj-variant-sizes-row {
  gap: 0.5rem;
}
.tj-size-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tj-gold-dark);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--tj-variant-duration) var(--tj-variant-ease), gap var(--tj-variant-duration) var(--tj-variant-ease);
  font-family: inherit;
}
.tj-size-guide-link i {
  font-size: 1rem;
  opacity: 0.9;
  transition: transform var(--tj-variant-duration) var(--tj-variant-ease);
}
.tj-size-guide-link:hover {
  color: var(--tj-gold);
}
.tj-size-guide-link:hover i {
  transform: scale(1.08);
}
.tj-size-guide-link:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
[dir="rtl"] .tj-size-guide-link {
  flex-direction: row-reverse;
}
.tj-variant-sku-hint {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--tj-border);
}

/* Product page — breadcrumb & layout */
.tj-page-product .tj-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.tj-page-product .tj-breadcrumb-product {
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.tj-page-product .tj-breadcrumb a,
.tj-page-product .tj-breadcrumb-current {
  padding: 0.15rem 0;
}

/* Product page — price block */
.tj-page-product .tj-product-price-block {
  padding: 0.5rem 0 1rem;
  margin-bottom: 0.75rem;
}
.tj-page-product .tj-product-price-block .tj-card-price {
  letter-spacing: -0.02em;
}

/* Product page — purchase block (quantity, stock, total) */
.tj-page-product .tj-product-purchase-block {
  background: var(--tj-offwhite-warm);
  border-radius: var(--tj-radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(232, 228, 222, 0.6);
  margin-bottom: 1.5rem;
}
.tj-page-product .tj-product-purchase-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tj-text-muted);
  margin-bottom: 0.75rem;
}
.tj-page-product .tj-order-total-block {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
}
.tj-page-product .tj-order-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tj-text-muted);
  display: block;
  margin-bottom: 0.2rem;
}
.tj-page-product .tj-order-total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tj-gold-dark);
}

/* Product page — action buttons row */
.tj-page-product .tj-product-actions-row {
  gap: 0.75rem;
}
.tj-page-product .tj-product-actions-row .tj-btn {
  flex: 1;
  min-width: 140px;
}
.tj-page-product .tj-btn-add-cart {
  flex: 1.5;
  min-width: 180px;
}

/* Product page — sticky add-to-cart bar */
.tj-sticky-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--tj-white) 0%, var(--tj-offwhite-warm) 100%);
  border-top: 1px solid var(--tj-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tj-sticky-cart .tj-sticky-cart-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tj-gold-dark);
}
.tj-sticky-cart .tj-btn {
  min-width: 160px;
}

/* Product page — reviews section */
.tj-page-product .reviews-list .tj-card {
  border-radius: var(--tj-radius-lg);
  border: 1px solid rgba(232, 228, 222, 0.6);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition);
}
.tj-page-product .reviews-list .tj-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(184, 134, 11, 0.15);
}
.tj-page-product .tj-review-stars .tj-star-filled {
  color: var(--tj-gold);
}
.tj-page-product .tj-review-stars .tj-star-empty {
  color: var(--tj-border);
}

/* Product page — reviews section (modern UI) */
.tj-product-reviews-section {
  border-top: 1px solid var(--tj-border);
  padding-top: 2.5rem;
  margin-top: 0.5rem;
}
.tj-reviews-section-title {
  position: relative;
  padding-bottom: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tj-black);
}
.tj-reviews-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--tj-gold-light), var(--tj-gold));
  border-radius: var(--tj-radius-pill);
}
[dir="rtl"] .tj-reviews-section-title::after {
  left: auto;
  right: 0;
}

/* Review summary card */
.tj-review-summary-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, var(--tj-offwhite-warm) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tj-review-summary-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.tj-review-summary-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tj-black);
  font-family: var(--tj-font-heading);
  letter-spacing: -0.03em;
}
.tj-review-summary-stars {
  font-size: 1rem;
  gap: 0.15rem;
}
.tj-review-summary-meta {
  text-align: right;
}
[dir="rtl"] .tj-review-summary-meta {
  text-align: left;
}
.tj-review-summary-count {
  font-size: 0.9375rem;
  color: var(--tj-text-muted);
  font-weight: 500;
}

/* Reviews list */
.tj-page-product .reviews-list,
.tj-page-product .tj-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.25rem 0.5rem 0.25rem 0;
  margin-bottom: 1.5rem;
}
[dir="rtl"] .tj-page-product .reviews-list,
[dir="rtl"] .tj-page-product .tj-reviews-list {
  padding: 0.25rem 0 0.25rem 0.5rem;
}

/* Single review card */
.tj-review-card {
  padding: 1.25rem 1.5rem;
  background: var(--tj-white);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition), transform var(--tj-transition);
}
.tj-review-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(184, 134, 11, 0.2);
}
.tj-review-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.tj-review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tj-gold-light), var(--tj-gold));
  color: var(--tj-white);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--tj-font-heading);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.tj-review-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.tj-review-card-stars {
  width: 100%;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.tj-review-card-author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tj-black);
}
.tj-review-card-date {
  font-size: 0.8125rem;
  color: var(--tj-text-muted);
}
.tj-review-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--tj-black);
  line-height: 1.35;
}
.tj-review-card-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tj-text);
  margin: 0;
}

/* Empty state */
.tj-reviews-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--tj-offwhite-warm);
  border: 1px dashed var(--tj-border);
  border-radius: var(--tj-radius-lg);
}
.tj-reviews-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.12);
  color: var(--tj-gold);
  font-size: 1.25rem;
}
.tj-reviews-empty-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tj-text-muted);
}

/* Write review card */
.tj-write-review-card {
  padding: 1.5rem 1.5rem;
  margin-top: 1.5rem;
  background: linear-gradient(145deg, var(--tj-white) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tj-write-review-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  color: var(--tj-black);
  font-family: var(--tj-font-heading);
}
.tj-write-review-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tj-write-review-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tj-write-review-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tj-black);
}
.tj-write-review-rating .tj-write-review-stars {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
}
.tj-write-review-star-option {
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.25rem;
}
.tj-write-review-star-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.tj-write-review-star-icon {
  font-size: 1.75rem;
  color: var(--tj-border);
  transition: color var(--tj-transition), transform var(--tj-transition);
}
.tj-write-review-star-option:hover .tj-write-review-star-icon,
.tj-write-review-star-option:focus-within .tj-write-review-star-icon {
  color: var(--tj-gold-light);
  transform: scale(1.1);
}
/* Fill this star and all stars before it when user selects this or a later rating */
.tj-write-review-stars:has(.tj-write-review-star-input[value="1"]:checked) .tj-write-review-star-option:nth-child(1) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="2"]:checked) .tj-write-review-star-option:nth-child(1) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="3"]:checked) .tj-write-review-star-option:nth-child(1) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="4"]:checked) .tj-write-review-star-option:nth-child(1) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="5"]:checked) .tj-write-review-star-option:nth-child(1) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="2"]:checked) .tj-write-review-star-option:nth-child(2) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="3"]:checked) .tj-write-review-star-option:nth-child(2) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="4"]:checked) .tj-write-review-star-option:nth-child(2) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="5"]:checked) .tj-write-review-star-option:nth-child(2) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="3"]:checked) .tj-write-review-star-option:nth-child(3) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="4"]:checked) .tj-write-review-star-option:nth-child(3) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="5"]:checked) .tj-write-review-star-option:nth-child(3) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="4"]:checked) .tj-write-review-star-option:nth-child(4) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="5"]:checked) .tj-write-review-star-option:nth-child(4) .tj-write-review-star-icon,
.tj-write-review-stars:has(.tj-write-review-star-input[value="5"]:checked) .tj-write-review-star-option:nth-child(5) .tj-write-review-star-icon {
  color: var(--tj-gold);
}
/* On hover, dim stars after the hovered one so selection is clear */
.tj-write-review-stars .tj-write-review-star-option:hover ~ .tj-write-review-star-option .tj-write-review-star-icon {
  color: var(--tj-border);
  transform: scale(1);
}
.tj-write-review-input,
.tj-write-review-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  font-size: 0.9375rem;
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-write-review-input:focus,
.tj-write-review-textarea:focus {
  outline: none;
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}
.tj-write-review-textarea {
  min-height: 120px;
  resize: vertical;
}
.tj-write-review-submit {
  align-self: flex-start;
}

/* Product page — size guide modal */
#sizeGuideModal .modal-content {
  border-radius: var(--tj-radius-lg);
  border: 1px solid var(--tj-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
#sizeGuideModal .modal-header {
  border-bottom: 1px solid var(--tj-border);
  padding: 1.25rem 1.5rem;
}
/* Restore visible close (X) icon — theme’s .btn-close overrides Bootstrap’s background-image */
#sizeGuideModal .modal-header .btn-close::before {
  content: "×";
  font-size: 1.75rem;
  line-height: 1;
  color: var(--tj-black);
  font-weight: 300;
}
#sizeGuideModal .modal-body {
  padding: 1.5rem;
}
#sizeGuideModal .table {
  font-size: 0.9375rem;
}
#sizeGuideModal .table th {
  font-weight: 600;
  color: var(--tj-black);
  background: var(--tj-offwhite-warm);
}

@media (max-width: 767px) {
  .tj-product-options-card {
    padding: 1.25rem 1.25rem 1rem;
  }
  .tj-page-product .tj-product-purchase-block {
    padding: 1rem 1.25rem;
  }
  .tj-page-product .tj-product-actions-row .tj-btn {
    min-width: 120px;
  }
  .tj-page-product .tj-btn-add-cart {
    min-width: 140px;
  }
}

/* ========== Profile pages — modern account UI ========== */
.tj-section-profile .container { max-width: 960px; }
.tj-profile-wrap {
  max-width: 100%;
  margin: 0 auto;
}
.tj-profile-hero {
  background: linear-gradient(155deg, var(--tj-offwhite-warm) 0%, var(--tj-offwhite) 45%, rgba(248,246,243,0.98) 100%);
  border-radius: var(--tj-radius-xl);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232,228,222,0.7);
  box-shadow: var(--tj-shadow-soft), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.tj-profile-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 70%;
  height: 160%;
  background: radial-gradient(ellipse 70% 50% at 70% 40%, rgba(212,168,75,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.tj-profile-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}
.tj-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 50%, var(--tj-gold-dark) 100%);
  color: var(--tj-white);
  font-family: var(--tj-font-heading);
  font-size: 1.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(184,134,11,0.35), 0 0 0 4px rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  transition: transform var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-profile-avatar-img {
  object-fit: cover;
  display: block;
}
.tj-profile-hero:hover .tj-profile-avatar {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(184,134,11,0.4), 0 0 0 4px rgba(255,255,255,0.5);
}
.tj-profile-hero-text {
  flex: 1;
  min-width: 200px;
}
.tj-profile-hero-title {
  font-family: var(--tj-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--tj-black);
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.tj-profile-hero-sub {
  font-size: 0.95rem;
  color: var(--tj-text-muted);
  margin: 0;
}
.tj-profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.tj-profile-hero-actions .tj-btn-primary {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}
.tj-profile-card {
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid rgba(232,228,222,0.5);
  overflow: hidden;
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition), transform var(--tj-transition);
}
.tj-profile-card:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.07);
  border-color: rgba(212,168,75,0.15);
}
.tj-profile-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--tj-border);
  font-weight: 600;
  color: var(--tj-black);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.tj-profile-card-body {
  padding: 1.5rem 1.5rem;
}
.tj-profile-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tj-profile-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--tj-border);
}
.tj-profile-info-row:last-child { border-bottom: none; }
.tj-profile-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tj-text-muted);
  min-width: 90px;
}
.tj-profile-info-value {
  font-size: 1rem;
  color: var(--tj-black);
}
.tj-profile-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}
.tj-profile-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.35rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  border: 1px solid rgba(232,228,222,0.6);
  text-decoration: none;
  color: var(--tj-text);
  transition: all var(--tj-transition);
  box-shadow: var(--tj-shadow-soft);
}
.tj-profile-action-card:hover {
  color: var(--tj-gold-dark);
  border-color: rgba(212,168,75,0.28);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.tj-profile-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--tj-radius);
  background: linear-gradient(135deg, rgba(212,168,75,0.14) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--tj-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-profile-action-card:hover .tj-profile-action-icon {
  background: linear-gradient(135deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  color: var(--tj-white);
}
.tj-profile-action-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.tj-profile-action-desc {
  font-size: 0.82rem;
  color: var(--tj-text-muted);
}
/* Profile edit form */
.tj-profile-form-card {
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid rgba(232,228,222,0.5);
  overflow: hidden;
  max-width: 540px;
  margin: 0 auto;
}
.tj-profile-form-card .tj-card-body {
  padding: 2rem 1.75rem;
}
.tj-profile-form .tj-form-group {
  margin-bottom: 1.4rem;
}
.tj-profile-form .tj-form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tj-black);
}
.tj-profile-form .tj-form-control {
  padding: 0.8rem 1rem;
  border-radius: var(--tj-radius);
  font-size: 1rem;
  border: 1px solid var(--tj-border);
  transition: border-color var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-profile-form .tj-form-control:focus {
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.15);
  outline: none;
}
.tj-profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tj-border);
}
.tj-profile-form-actions .tj-btn-primary { min-width: 120px; }
.tj-profile-form-card.tj-card:hover { transform: none; }
/* Profile alerts (inline) */
.tj-section-profile .tj-alert { border-radius: var(--tj-radius); }
.tj-section-profile .tj-alert-success { border-left: 4px solid var(--tj-gold); }
.tj-section-profile .tj-alert-danger { border-left: 4px solid var(--tj-black); }
[dir="rtl"] .tj-profile-hero::before { right: auto; left: -15%; background: radial-gradient(ellipse 70% 50% at 30% 40%, rgba(212,168,75,0.12) 0%, transparent 55%); }
[dir="rtl"] .tj-profile-info-label { text-align: right; }
[dir="rtl"] .tj-section-profile .tj-alert-success { border-left: none; border-right: 4px solid var(--tj-gold); }
[dir="rtl"] .tj-section-profile .tj-alert-danger { border-left: none; border-right: 4px solid var(--tj-black); }

/* Product gallery zoom & lightbox - Ultra Modern Premium */
.tj-product-zoom-wrap { 
  overflow: hidden; 
  border-radius: var(--tj-radius-xl);
  background: linear-gradient(135deg, var(--tj-white) 0%, var(--tj-offwhite-warm) 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.tj-product-zoom-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.tj-product-zoom-wrap:hover {
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.tj-product-zoom-wrap:hover::before {
  opacity: 1;
}
.tj-zoom-img { 
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  cursor: zoom-in;
  transform-origin: center center;
  will-change: transform;
  filter: brightness(1) contrast(1) saturate(1);
  position: relative;
  z-index: 0;
}
.tj-product-zoom-wrap[data-zoom-enabled="true"]:hover .tj-zoom-img {
  cursor: move;
  filter: brightness(1.03) contrast(1.06) saturate(1.05);
}
.tj-product-zoom-wrap[data-zoom-enabled="true"] .tj-zoom-img {
  transition: transform 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}
#product-main-img {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  animation: fadeInImage 0.6s ease-out;
}
/* Animate opacity only so zoom script's transform is not overridden */
@keyframes fadeInImage {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Product navigation — modern, RTL-aware */
.tj-product-navigation.tj-product-navigation-modern {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  position: relative;
}
.tj-product-navigation-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.tj-product-navigation::before {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--tj-gold-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tj-product-navigation:hover::before {
  opacity: 1;
}
[dir="rtl"] .tj-product-navigation::before {
  background: linear-gradient(to left, transparent, var(--tj-gold-light), transparent);
}
.tj-product-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.625rem 1rem;
  color: var(--tj-text);
  text-decoration: none;
  border-radius: var(--tj-radius);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--tj-border);
  background: var(--tj-white);
  position: relative;
  overflow: hidden;
  flex: 0 1 auto;
  max-width: min(100%, 280px);
}
.tj-product-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(184, 134, 11, 0.08), transparent);
  transition: transform 0.4s ease;
  transform: translateX(-100%);
  pointer-events: none;
}
.tj-product-nav-btn:hover:not(.disabled)::before {
  transform: translateX(100%);
}
[dir="rtl"] .tj-product-nav-btn::before {
  transform: translateX(100%);
}
[dir="rtl"] .tj-product-nav-btn:hover:not(.disabled)::before {
  transform: translateX(-100%);
}
.tj-product-nav-btn:hover:not(.disabled) {
  color: var(--tj-gold-dark);
  border-color: var(--tj-gold-light);
  background: rgba(212, 168, 75, 0.06);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.12);
}
.tj-product-nav-btn:active:not(.disabled) {
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.08);
}
.tj-product-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.04);
}
.tj-product-nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  transition: transform 0.25s ease;
}
.tj-product-nav-btn:hover:not(.disabled) .tj-product-nav-icon {
  transform: scale(1.15);
}
.tj-product-nav-label {
  min-width: 0;
}
.tj-product-nav-label.text-truncate {
  max-width: 100%;
}
.tj-product-nav-prev {
  margin-inline-end: auto;
}
.tj-product-nav-prev:hover:not(.disabled) .tj-product-nav-icon {
  transform: scale(1.15) translateX(-2px);
}
.tj-product-nav-next {
  margin-inline-start: auto;
}
.tj-product-nav-next:hover:not(.disabled) .tj-product-nav-icon {
  transform: scale(1.15) translateX(2px);
}
[dir="rtl"] .tj-product-nav-prev:hover:not(.disabled) .tj-product-nav-icon {
  transform: scale(1.15) translateX(2px);
}
[dir="rtl"] .tj-product-nav-next:hover:not(.disabled) .tj-product-nav-icon {
  transform: scale(1.15) translateX(-2px);
}
[dir="rtl"] .tj-product-nav-icon i {
  transform: scaleX(-1);
}
.tj-product-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: var(--tj-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--tj-radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.tj-product-nav-back:hover {
  color: var(--tj-gold-dark);
  background: rgba(184, 134, 11, 0.06);
}
.tj-product-nav-back i {
  font-size: 1rem;
}
/* Product image navigation arrows overlay — edge-aligned, always visible on touch */
.tj-product-image-nav {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
  pointer-events: none;
  transform: translateY(-50%) scale(0.95);
  left: 0;
  right: 0;
}
.tj-product-zoom-wrap:hover .tj-product-image-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.tj-product-image-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: var(--tj-black);
  text-decoration: none;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.tj-product-image-nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.2) 0%, rgba(184, 134, 11, 0.05) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-product-image-nav-btn:hover:not(.disabled)::before {
  width: 140px;
  height: 140px;
}
.tj-product-image-nav-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 246, 243, 0.98) 100%);
  color: var(--tj-gold-dark);
  transform: scale(1.2) translateY(-3px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(184, 134, 11, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(184, 134, 11, 0.5);
}
.tj-product-image-nav-btn:active:not(.disabled) {
  transform: scale(1.1) translateY(-1px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.tj-product-image-nav-btn.disabled,
.tj-product-image-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0.9);
}
.tj-product-image-nav-btn i {
  font-size: 1.15rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  font-weight: 600;
}
.tj-product-image-nav-prev:hover:not(.disabled) i {
  transform: translateX(-3px) scale(1.1);
}
.tj-product-image-nav-next:hover:not(.disabled) i {
  transform: translateX(3px) scale(1.1);
}
/* Smooth page transitions for product navigation */
.tj-page-product {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Loading state for product images */
.tj-product-zoom-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.tj-product-zoom-wrap img.loading::after {
  opacity: 1;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* Modern Modal Styles - Glassmorphism & Smooth Animations */
.modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop {
  background-color: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-backdrop.show {
  opacity: 1;
}
.modal.fade .modal-dialog {
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-content {
  background: var(--tj-white);
  border: none;
  border-radius: var(--tj-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.modal-content:hover {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--tj-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 243, 0.9) 100%);
  border-radius: var(--tj-radius-xl) var(--tj-radius-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--tj-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tj-black);
  margin: 0;
  letter-spacing: 0.01em;
}
.modal-body {
  padding: 1.75rem;
  color: var(--tj-text);
  line-height: 1.7;
}
.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--tj-border);
  background: linear-gradient(180deg, rgba(248, 246, 243, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 0 0 var(--tj-radius-xl) var(--tj-radius-xl);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.modal-footer .btn {
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  border-radius: var(--tj-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-footer .btn-primary {
  background: linear-gradient(180deg, var(--tj-gold-light) 0%, var(--tj-gold) 100%);
  border: none;
  color: var(--tj-white);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.25);
}
.modal-footer .btn-primary:hover {
  background: linear-gradient(180deg, var(--tj-gold) 0%, var(--tj-gold-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.modal-footer .btn-secondary {
  background: var(--tj-offwhite);
  border: 1px solid var(--tj-border);
  color: var(--tj-text);
}
.modal-footer .btn-secondary:hover {
  background: var(--tj-white);
  border-color: var(--tj-gold-light);
  color: var(--tj-black);
  transform: translateY(-1px);
}
.btn-close {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg) scale(1.1);
}
.btn-close:focus {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.25);
  outline: none;
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3rem);
}
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
  background: var(--tj-offwhite);
  border-radius: var(--tj-radius);
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
  background: var(--tj-border);
  border-radius: var(--tj-radius);
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--tj-gold-light);
}

/* Product Lightbox Modal - Enhanced */
#productLightbox .modal-content { 
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#productLightbox .modal-body { 
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#productLightbox .btn-close { 
  filter: brightness(0) invert(1); 
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#productLightbox .btn-close:hover { 
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}
#productLightbox img { 
  max-height: 85vh; 
  width: auto; 
  object-fit: contain; 
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
#productLightbox img:hover {
  transform: scale(1.02);
}

/* Review stars */
.tj-review-stars { 
  display: inline-flex; 
  gap: 0.2rem; 
  align-items: center;
}
.tj-review-stars .tj-star-filled { 
  color: var(--tj-gold); 
  font-size: 1.1em;
}
.tj-review-stars .tj-star-empty { 
  color: var(--tj-border); 
  opacity: 0.5;
}
.tj-page-product .tj-card.tj-card-body {
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-soft);
  border: 1px solid var(--tj-border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow var(--tj-transition);
}
.tj-page-product .tj-card {
  background: linear-gradient(135deg, var(--tj-white) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tj-page-product .tj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tj-gold-light), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.tj-page-product .tj-card:hover::before {
  opacity: 0.6;
}
.tj-page-product .tj-card:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.tj-page-product .tj-card.tj-card-body:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Share buttons */
.tj-product-share { 
  display: inline-flex; 
  gap: 0.5rem; 
  align-items: center;
  flex-wrap: wrap;
}
.tj-product-share .tj-share-btn { 
  padding: 0.5rem 0.75rem; 
  border-radius: var(--tj-radius);
  transition: all var(--tj-transition);
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tj-product-share .tj-share-btn:hover {
  background: var(--tj-gold-light);
  color: var(--tj-white);
  transform: translateY(-2px);
  box-shadow: var(--tj-shadow-soft);
}

/* RTL — Arabic layout — Comprehensive fixes */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Ensure no horizontal overflow in RTL */
html[dir="rtl"],
html[dir="rtl"] body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* RTL containers: keep centered layout, use logical padding */
html[dir="rtl"] .container,
html[dir="rtl"] .container-sm,
html[dir="rtl"] .container-md,
html[dir="rtl"] .container-lg,
html[dir="rtl"] .container-xl,
html[dir="rtl"] .container-xxl {
  margin-right: auto;
  margin-left: auto;
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}

/* Ensure sections and main content respect RTL flow */
html[dir="rtl"] .tj-section,
html[dir="rtl"] .tj-hero,
html[dir="rtl"] .tj-topbar,
html[dir="rtl"] .tj-navbar,
html[dir="rtl"] main,
html[dir="rtl"] section {
  width: 100%;
  max-width: 100%;
}

/* Bootstrap RTL overrides */
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir="rtl"] .ps-1 { padding-right: 0.25rem !important; padding-left: 0 !important; }
[dir="rtl"] .ps-2 { padding-right: 0.5rem !important; padding-left: 0 !important; }
[dir="rtl"] .pe-1 { padding-left: 0.25rem !important; padding-right: 0 !important; }
[dir="rtl"] .pe-2 { padding-left: 0.5rem !important; padding-right: 0 !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .float-end { float: left !important; }

/* Typography and text alignment */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] div,
[dir="rtl"] span,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  text-align: right;
}
[dir="rtl"] .tj-section-title::after { order: -1; margin-right: 0.5rem; margin-left: 0; }
[dir="rtl"] .tj-card-price,
[dir="rtl"] .tj-card-title,
[dir="rtl"] .tj-heading,
[dir="rtl"] .tj-heading-1,
[dir="rtl"] .tj-heading-2,
[dir="rtl"] .tj-heading-3 {
  text-align: right;
}

/* Navigation — Arabic/RTL: navbar row and alignment */
[dir="rtl"] .tj-navbar {
  flex-direction: row-reverse;
}
[dir="rtl"] .tj-nav-center {
  margin-inline-start: auto;
  margin-inline-end: auto;
}
[dir="rtl"] .tj-nav-right {
  margin-inline-start: auto;
  margin-inline-end: 0;
}
[dir="rtl"] .tj-navbar .navbar-brand {
  margin-inline-start: auto;
  margin-inline-end: 0;
}
[dir="rtl"] .tj-navbar .navbar-toggler {
  order: -1;
}
[dir="rtl"] .navbar-nav {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
[dir="rtl"] .navbar-nav .nav-link {
  margin-inline-start: 0.9rem;
  margin-inline-end: 0;
  text-align: right;
  justify-content: flex-end;
}
@media (min-width: 992px) {
  [dir="rtl"] .tj-navbar .tj-navbar-container {
    gap: 1rem;
    flex-direction: row-reverse;
  }
  [dir="rtl"] .tj-navbar .navbar-brand {
    margin-inline-end: 0.75rem;
    margin-inline-start: 0;
  }
  [dir="rtl"] .tj-navbar .navbar-collapse {
    padding-inline-start: 1rem;
    padding-inline-end: 0;
    flex: 1 1 auto;
    min-width: 0 !important;
  }
  [dir="rtl"] .tj-navbar .tj-nav-search-wrap {
    max-width: 280px;
    min-width: 0 !important;
  }
  [dir="rtl"] .tj-navbar .tj-nav-search-input {
    min-width: 0;
    text-align: right;
    direction: rtl;
  }
}

/* Dropdowns and menus */
[dir="rtl"] .dropdown-menu { left: auto !important; right: 0 !important; text-align: right; }
[dir="rtl"] .dropdown-menu-end { left: auto !important; right: auto !important; }
[dir="rtl"] .dropdown-toggle::after { margin-right: 0.5em; margin-left: 0; }

/* Forms */
[dir="rtl"] .tj-form-control,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .form-label { text-align: right; }
[dir="rtl"] .form-check { padding-right: 1.5em; padding-left: 0; }
[dir="rtl"] .form-check-input { margin-right: -1.5em; margin-left: 0; float: right; }
[dir="rtl"] .form-check-label { padding-right: 0.5em; padding-left: 0; }

/* Buttons */
[dir="rtl"] .tj-btn { text-align: center; }
[dir="rtl"] .btn-group { flex-direction: row-reverse; }

/* Cards and product grid */
[dir="rtl"] .tj-product-grid.tj-product-list .tj-card-body { text-align: right; }
[dir="rtl"] .tj-card-body { text-align: right; }
[dir="rtl"] .tj-card-title { text-align: right; }

/* Breadcrumbs */
[dir="rtl"] .tj-breadcrumb { text-align: right; }
[dir="rtl"] .tj-breadcrumb span[aria-hidden="true"] { transform: scaleX(-1); }
[dir="rtl"] .tj-breadcrumb a { margin-left: 0.5rem; margin-right: 0; }

/* Pagination */
[dir="rtl"] .pagination { flex-direction: row-reverse; }
[dir="rtl"] .page-item:first-child .page-link { border-top-left-radius: 0; border-top-right-radius: var(--bs-pagination-border-radius); border-bottom-left-radius: 0; border-bottom-right-radius: var(--bs-pagination-border-radius); }
[dir="rtl"] .page-item:last-child .page-link { border-top-right-radius: 0; border-top-left-radius: var(--bs-pagination-border-radius); border-bottom-right-radius: 0; border-bottom-left-radius: var(--bs-pagination-border-radius); }

/* Footer */
[dir="rtl"] .tj-footer-links { padding-right: 0; padding-left: 0; text-align: right; }
[dir="rtl"] .tj-footer { text-align: right; }
[dir="rtl"] .tj-footer-social { flex-direction: row; }

/* Modals */
[dir="rtl"] .modal-header .btn-close { margin-right: auto; margin-left: 0; }
[dir="rtl"] .modal-header { flex-direction: row-reverse; }
[dir="rtl"] .modal-footer { flex-direction: row-reverse; }

/* Alerts */
[dir="rtl"] .alert { text-align: right; }
[dir="rtl"] .alert-dismissible .btn-close { right: auto; left: 0; }

/* Lists — Arabic/RTL: space for bullet/numbers on the right */
html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-inline-start: 1.5rem;
  padding-inline-end: 0;
  text-align: right;
}

/* Tables */
[dir="rtl"] table { direction: rtl; }
[dir="rtl"] th,
[dir="rtl"] td {
  text-align: right;
}

/* Flexbox utilities */
/* Fix for d-flex align-items-center gap-2 - ensures proper spacing and alignment */
.d-flex.align-items-center.gap-2,
.d-flex.gap-2.align-items-center,
.d-flex.flex-wrap.align-items-center.gap-2,
.d-flex.flex-wrap.gap-2.align-items-center,
.d-flex.align-items-center.flex-wrap.gap-2,
.d-flex.gap-2.flex-wrap.align-items-center {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
/* RTL support for gap-2 */
[dir="rtl"] .d-flex.gap-2,
[dir="rtl"] .d-flex.align-items-center.gap-2,
[dir="rtl"] .d-flex.gap-2.align-items-center,
[dir="rtl"] .d-flex.flex-wrap.align-items-center.gap-2,
[dir="rtl"] .d-flex.flex-wrap.gap-2.align-items-center,
[dir="rtl"] .d-flex.align-items-center.flex-wrap.gap-2,
[dir="rtl"] .d-flex.gap-2.flex-wrap.align-items-center {
  gap: 0.5rem !important;
}
/* Responsive gap adjustments for mobile */
@media (max-width: 576px) {
  /* Non-flex-wrap containers: prevent wrapping on mobile for inline actions */
  .d-flex.align-items-center.gap-2:not(.flex-wrap),
  .d-flex.gap-2.align-items-center:not(.flex-wrap) {
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  /* Flex-wrap containers: allow wrapping and adjust gap for mobile */
  .d-flex.flex-wrap.align-items-center.gap-2,
  .d-flex.flex-wrap.gap-2.align-items-center,
  .d-flex.align-items-center.flex-wrap.gap-2,
  .d-flex.gap-2.flex-wrap.align-items-center {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  /* Product card form specific mobile fixes */
  .tj-product-card-form .d-flex.align-items-center.gap-2,
  .tj-product-card-form .d-flex.gap-2.align-items-center,
  .tj-product-card-form .d-flex.flex-wrap.align-items-center.gap-2,
  .tj-product-card-form .d-flex.flex-wrap.gap-2.align-items-center {
    gap: 0.5rem !important;
    width: 100%;
  }
  /* Ensure buttons in gap-2 containers are touch-friendly on mobile */
  .d-flex.align-items-center.gap-2 .tj-btn,
  .d-flex.gap-2.align-items-center .tj-btn,
  .d-flex.flex-wrap.align-items-center.gap-2 .tj-btn,
  .d-flex.flex-wrap.gap-2.align-items-center .tj-btn {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  /* Alert messages mobile optimization */
  .alert .d-flex.align-items-center.gap-2,
  .alert .d-flex.gap-2.align-items-center,
  .alert .d-flex.flex-wrap.align-items-center.gap-2,
  .alert .d-flex.flex-wrap.gap-2.align-items-center {
    gap: 0.5rem !important;
    flex-wrap: wrap;
  }
  /* RTL mobile support for flex-wrap gap-2 */
  [dir="rtl"] .d-flex.flex-wrap.align-items-center.gap-2,
  [dir="rtl"] .d-flex.flex-wrap.gap-2.align-items-center,
  [dir="rtl"] .d-flex.align-items-center.flex-wrap.gap-2,
  [dir="rtl"] .d-flex.gap-2.flex-wrap.align-items-center {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }
}
[dir="rtl"] .justify-content-start { justify-content: flex-end !important; }
[dir="rtl"] .justify-content-end { justify-content: flex-start !important; }

/* Service items */
[dir="rtl"] .tj-service-item { text-align: center; }

/* Newsletter */
[dir="rtl"] .tj-newsletter-form { flex-direction: row; }
[dir="rtl"] .tj-newsletter-text { margin-right: auto; margin-left: auto; }

/* Cart */
[dir="rtl"] .tj-cart-item-details { padding-left: 0.5rem; padding-right: 0; }
[dir="rtl"] .tj-cart-summary { text-align: right; }
[dir="rtl"] .tj-cart-summary-row { flex-direction: row-reverse; }

/* Checkout */
[dir="rtl"] .tj-checkout-form-wrap { text-align: right; }
[dir="rtl"] .tj-checkout-address-card-inner { text-align: right; }
[dir="rtl"] .tj-checkout-summary { text-align: right; }

/* Profile */
[dir="rtl"] .tj-profile-hero-text { text-align: right; }
[dir="rtl"] .tj-profile-info-row { flex-direction: row-reverse; }

/* Shop filters — RTL */
[dir="rtl"] .tj-shop-filters-card { text-align: right; }
[dir="rtl"] .tj-filter-pills { flex-direction: row; }
[dir="rtl"] .tj-filter-group-title { flex-direction: row-reverse; }
[dir="rtl"] .tj-filter-group-collapse .tj-filter-group-toggle span { flex-direction: row-reverse; }
[dir="rtl"] .tj-filter-category-parent-row { flex-direction: row-reverse; }

/* Shop toolbar — RTL (ar/en): works with html[lang="ar"]/dir="rtl"; justify-content-between places first block at start (right), second at end (left) */

/* Arabic / RTL: use Noto Sans Arabic for all text (body + headings) */
html[lang="ar"],
html[dir="rtl"] {
  --tj-font-heading: var(--tj-font-heading-ar);
  --tj-font-body: var(--tj-font-body-ar);
}

/* Apply Arabic fonts to all text (body + UI) when RTL */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] div,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] label,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .tj-heading,
html[dir="rtl"] .tj-heading-1,
html[dir="rtl"] .tj-heading-2,
html[dir="rtl"] .tj-heading-3,
html[dir="rtl"] .tj-card-title,
html[dir="rtl"] .tj-card-price,
html[dir="rtl"] .tj-btn,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .navbar-brand,
html[dir="rtl"] .tj-topbar,
html[dir="rtl"] .tj-footer,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .dropdown-item,
html[dir="rtl"] .modal-content,
html[dir="rtl"] .modal-title,
html[dir="rtl"] .alert {
  font-family: var(--tj-font-body-ar);
}

html[dir="rtl"] .tj-heading,
html[dir="rtl"] .tj-heading-1,
html[dir="rtl"] .tj-heading-2,
html[dir="rtl"] .tj-heading-3,
html[dir="rtl"] .tj-section-title,
html[dir="rtl"] .tj-hero-title {
  font-family: var(--tj-font-heading-ar);
}

/* Pagination */
.pagination .page-link { color: var(--tj-black); border-color: var(--tj-border); }
.pagination .page-link:hover { background: var(--tj-offwhite-warm); border-color: var(--tj-gold); color: var(--tj-gold); }
.pagination .page-item.active .page-link { background: var(--tj-gold); border-color: var(--tj-gold); color: var(--tj-white); }

/* ========== Mobile navigation — slide-in sidebar (drawer) + backdrop ========== */
/* Collapse element: <div class="collapse navbar-collapse" id="nav"> — Bootstrap toggles .show; backdrop/close use #nav.show */
@media (max-width: 991px) {
  /* Sidebar: fixed panel; display:flex !important overrides Bootstrap .collapse default so transform can slide it */
  .tj-navbar .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(320px, 88vw) !important;
    max-width: 320px;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    z-index: 1040;
    padding: 4rem 1.25rem 1.5rem;
    padding-top: max(4rem, calc(env(safe-area-inset-top) + 3rem));
    padding-inline-start: max(1.25rem, env(safe-area-inset-left));
    padding-inline-end: 1.25rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--tj-offwhite-warm);
    border-right: 3px solid var(--tj-gold);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12), 2px 0 8px rgba(0, 0, 0, 0.08);
    flex: none !important;
    order: unset;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    visibility: visible;
    pointer-events: none;
  }
  .tj-navbar .navbar-collapse.show {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15), 2px 0 12px rgba(0, 0, 0, 0.1);
  }
  /* Backdrop: real element (not ::before) so it’s not affected by sidebar transform — full viewport, covers bottom */
  .tj-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100%;
    z-index: 1039;
    background: var(--tj-black-soft);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .tj-header-wrapper:has(#nav.show) .tj-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
    background: var(--tj-black);
  }
  /* Hide main and footer when menu is open so the bottom is not visible */
  body:has(#nav.show) main,
  body:has(#nav.show) .tj-footer {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .tj-navbar .navbar-collapse:not(.show) {
    visibility: visible;
  }
  /* Close button row at top of sidebar (mobile only) */
  .tj-nav-close-row {
    order: -1;
    flex: 0 0 auto;
    border-bottom-color: var(--tj-border) !important;
  }
  .tj-nav-close-btn {
    color: var(--tj-text) !important;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tj-radius);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .tj-nav-close-btn:hover {
    background: var(--tj-info-bg);
    color: var(--tj-gold-dark) !important;
  }
  .tj-nav-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--tj-gold-light);
  }
  /* Open state: content order + spacing + hierarchy */
  .tj-navbar .navbar-collapse.show {
    gap: 0;
    justify-content: flex-start;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-wrap {
    order: 0;
    margin: 0 0 1.25rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tj-border);
  }
  .tj-navbar .navbar-collapse.show .tj-nav-center {
    order: 1;
    margin: 0;
    padding: 0;
    flex: 1 1 auto !important;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-right {
    order: 2;
    margin: 1.25rem 0 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tj-border);
    flex: 0 0 auto;
  }
  /* Search in open menu: full width, touch-friendly */
  .tj-navbar .navbar-collapse.show .tj-nav-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-form {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-input {
    width: 100% !important;
    min-height: 48px;
    padding: 0.75rem 3.25rem 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--tj-radius-pill);
    background: var(--tj-white);
    border: 2px solid var(--tj-border);
    color: var(--tj-text);
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-input::placeholder {
    color: var(--tj-text-muted);
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-input:focus {
    border-color: var(--tj-gold);
    background: var(--tj-white);
    outline: none;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-btn {
    width: 44px;
    height: 44px;
    inset-inline-end: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tj-gold);
    color: var(--tj-white);
  }
  .tj-navbar .navbar-collapse.show .tj-nav-search-btn:hover {
    background: var(--tj-gold-dark);
    color: var(--tj-white);
  }
  /* Nav links: website colors (black text, gold hover) */
  .tj-navbar .navbar-collapse.show .nav-item {
    border-bottom: 1px solid var(--tj-border);
  }
  .tj-navbar .navbar-collapse.show .nav-item:last-child {
    border-bottom: none;
  }
  .tj-navbar .navbar-collapse.show .nav-link {
    padding: 1rem 1rem !important;
    min-height: 52px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--tj-text) !important;
    display: flex;
    align-items: center;
    border-radius: var(--tj-radius);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .tj-navbar .navbar-collapse.show .nav-link:hover,
  .tj-navbar .navbar-collapse.show .nav-link:focus {
    background: var(--tj-info-bg);
    color: var(--tj-gold-dark) !important;
  }
  .tj-navbar .navbar-collapse.show .nav-link:active {
    background: rgba(184, 134, 11, 0.18);
  }
  /* Shop dropdown: theme colors */
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .nav-link {
    width: 100%;
    justify-content: space-between;
    color: var(--tj-black) !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 0.25rem !important;
    margin-inline-start: 0 !important;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    box-shadow: var(--tj-shadow-card);
    padding: 0.5rem;
    background: var(--tj-white);
  }
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-item,
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--tj-text) !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-item:hover,
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link:hover {
    background: var(--tj-info-bg);
    color: var(--tj-gold-dark) !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-menu .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  /* Mobile: Mega menu content */
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    border-radius: var(--tj-radius);
  }
  /* Ensure shop tree (categories, links) is visible when dropdown is open in mobile sidebar */
  .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  [dir="rtl"] .tj-navbar .navbar-collapse.show .tj-nav-shop-dropdown .dropdown-menu {
    transform: none !important;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu {
    padding: 1.25rem 0 !important;
    background: var(--tj-white);
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-content {
    gap: 1rem;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    border-bottom-width: 1px;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-header::after {
    display: none;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-all {
    display: flex;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--tj-gold-dark) !important;
    border-bottom: 1px solid var(--tj-border);
    margin-bottom: 0;
    width: 100%;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-all:hover {
    transform: none;
  }
  /* Mobile: Categories grid - single column */
  .tj-navbar .navbar-collapse.show .tj-mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-categories {
    padding: 0.5rem 0;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link {
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link:hover {
    transform: translateY(-1px);
    padding-inline-start: 1rem;
    padding-inline-end: 1rem;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link-arrow {
    opacity: 0.5;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-link:hover .tj-mega-menu-link-arrow {
    opacity: 1;
  }
  /* Mobile: Footer links - stacked */
  .tj-navbar .navbar-collapse.show .tj-mega-menu-footer {
    padding-top: 0.75rem;
    margin-top: 0;
    border-top-width: 1px;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-footer::before {
    display: none;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-footer-link {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  .tj-navbar .navbar-collapse.show .tj-mega-menu-footer-link:hover {
    transform: translateY(-1px);
  }
  [dir="rtl"] .tj-navbar .navbar-collapse.show .tj-mega-menu-footer-link {
    text-align: center;
  }
  /* Get Started: primary gold button (website brand) */
  .tj-navbar .navbar-collapse.show .tj-btn-get-started {
    width: 100%;
    margin-top: 0;
    min-height: 52px;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--tj-radius-pill);
    justify-content: center;
    background: var(--tj-gold) !important;
    border-color: var(--tj-gold) !important;
    color: var(--tj-white) !important;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
  }
  .tj-navbar .navbar-collapse.show .tj-btn-get-started:hover {
    background: var(--tj-gold-dark) !important;
    border-color: var(--tj-gold-dark) !important;
    color: var(--tj-white) !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-right .nav-item {
    border-bottom: none;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-right .nav-link {
    min-height: 48px;
    color: var(--tj-text) !important;
  }
  .tj-navbar .navbar-collapse.show .tj-nav-right .nav-link:hover {
    color: var(--tj-gold-dark) !important;
  }
  /* Inner content: full width */
  .tj-navbar .navbar-collapse .navbar-nav,
  .tj-navbar .navbar-collapse .tj-nav-center,
  .tj-navbar .navbar-collapse .tj-nav-right,
  .tj-navbar .navbar-collapse .tj-nav-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
  .tj-navbar .navbar-collapse .tj-nav-search-form {
    width: 100% !important;
    max-width: 100% !important;
  }
  .tj-navbar .navbar-collapse .tj-nav-search-input {
    width: 100% !important;
  }
  /* Lock scroll so page bottom doesn’t show when menu is open */
  html:has(.tj-navbar .navbar-collapse.show),
  body:has(.tj-navbar .navbar-collapse.show) {
    overflow: hidden !important;
    touch-action: none;
    height: 100%;
    overscroll-behavior: none;
  }
  /* When mobile menu is open, hide logo and hamburger (close via X or backdrop) */
  .tj-navbar:has(.navbar-collapse.show) .navbar-brand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .tj-navbar:has(.navbar-collapse.show) .navbar-toggler,
  .tj-navbar:has(.navbar-collapse.show) .navbar-toggler.tj-navbar-toggler-order {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  /* When mobile menu is open, hide topbar country/lang toggles */
  .tj-header-wrapper:has(.navbar-collapse.show) .tj-topbar-country-btn,
  .tj-header-wrapper:has(.navbar-collapse.show) .tj-topbar-lang-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* When language or country dropdown is open on mobile, hide logo and hamburger */
  .tj-header-wrapper:has(.tj-topbar-lang.show) .tj-navbar .navbar-brand,
  .tj-header-wrapper:has(.tj-topbar-lang.show) .tj-navbar .navbar-toggler,
  .tj-header-wrapper:has(.tj-topbar-country.show) .tj-navbar .navbar-brand,
  .tj-header-wrapper:has(.tj-topbar-country.show) .tj-navbar .navbar-toggler {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .tj-navbar .tj-nav-center,
  .tj-navbar .tj-nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .tj-navbar .nav-item {
    border-bottom: 1px solid var(--tj-border);
  }
  .tj-navbar .nav-link {
    display: block;
    padding: 1rem 0.75rem !important;
    font-size: 1.05rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .tj-navbar .tj-btn-get-started {
    margin-top: 0.5rem;
    justify-content: center;
    min-height: 48px;
  }
  /* Mobile header row: [☰] [Logo] [Cart] — flex, aligned center */
  .tj-navbar .tj-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .tj-navbar .navbar-toggler {
    padding: 0.5rem 0.75rem;
    min-width: 48px;
    min-height: 48px;
    z-index: 1050;
    position: relative;
    order: 1;
    flex: 0 0 auto;
  }
  .tj-navbar .tj-navbar-brand-center {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin: 0 0.5rem;
    min-width: 0;
  }
  .tj-navbar .tj-navbar-cart-mob {
    order: 3;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
  }
  /* Navbar collapse is position:fixed overlay above — no flex row */
  .tj-navbar .navbar-brand {
    z-index: 1050;
    position: relative;
  }
  /* Priority layout: Row 1 = menu + logo + cart; Row 2 = lang + country only */
  .tj-header-wrapper {
    display: flex;
    flex-direction: column;
  }
  .tj-topbar .tj-topbar-site-name,
  .tj-topbar .tj-topbar-cart {
    display: none !important;
  }
  .tj-topbar {
    padding: 0.35rem 0;
  }
  .tj-topbar .container > .d-flex {
    justify-content: center;
    gap: 0.75rem;
    min-height: 2rem;
  }
  .tj-topbar-left {
    flex: 0 0 auto;
  }
  .tj-topbar-utils {
    border-inline-start: none;
    margin-inline-start: 0;
    padding-inline-start: 0;
  }
  /* Navbar row: toggler + logo + cart (cart is .tj-navbar-cart-mob) */
  .tj-navbar-cart-mob {
    color: var(--tj-black) !important;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tj-radius);
    transition: background var(--tj-transition), color var(--tj-transition);
  }
  .tj-navbar-cart-mob:hover { background: rgba(184, 134, 11, 0.1); color: var(--tj-gold) !important; }
  .tj-navbar-cart-mob .tj-cart-badge {
    top: 2px;
    inset-inline-end: 2px;
  }
  /* Third-party translate widget: move to fixed bottom corner or hide on mobile */
  #google_translate_element,
  .skiptranslate,
  .goog-te-banner-frame,
  body > div[class*="goog-te"],
  iframe.skiptranslate {
    display: none !important;
  }
  body .goog-te-banner-frame.skiptranslate {
    display: none !important;
  }
}
/* RTL (Arabic): sidebar slides from the right, gold accent on leading edge — mobile only */
@media (max-width: 991px) {
  [dir="rtl"] .tj-navbar .navbar-collapse {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%);
    border-right: none;
    border-left: 3px solid var(--tj-gold);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12), -2px 0 8px rgba(0, 0, 0, 0.08);
    padding-inline-start: max(1.25rem, env(safe-area-inset-right));
    padding-inline-end: 1.25rem;
  }
  [dir="rtl"] .tj-navbar .navbar-collapse.show {
    transform: translateX(0);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15), -2px 0 12px rgba(0, 0, 0, 0.1);
  }
  [dir="rtl"] .tj-navbar .nav-link {
    text-align: right;
    justify-content: flex-end;
  }
}

/* Sticky add-to-cart bar (product page, mobile) — modern, no overlap */
.tj-sticky-cart {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12), 0 -1px 0 rgba(0,0,0,0.06);
  z-index: 1030;
  padding: 0.875rem 1.25rem;
  padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg) var(--tj-radius-lg) 0 0;
}
.tj-sticky-cart .tj-sticky-cart-price {
  font-weight: 700;
  color: var(--tj-gold-dark);
  font-size: 1.25rem;
  white-space: nowrap;
  font-family: var(--tj-font-heading);
}
.tj-sticky-cart .tj-btn {
  flex: 1;
  min-height: 48px;
  min-width: 120px;
  font-size: 1rem;
  font-weight: 600;
}

/* Touch-friendly product gallery - Ultra Modern Premium */
.tj-product-thumb {
  width: 100%;
  aspect-ratio: 1;
  min-width: 80px;
  min-height: 80px;
  touch-action: manipulation;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--tj-white) 0%, var(--tj-offwhite-warm) 100%);
  border: 2.5px solid var(--tj-border) !important;
  position: relative;
  border-radius: var(--tj-radius);
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 0;
  margin: 0;
}
.tj-product-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.02) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.tj-product-thumb::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2.5px solid var(--tj-gold);
  border-radius: var(--tj-radius);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(184, 134, 11, 0);
}
.tj-product-thumb:hover {
  border-color: var(--tj-gold-light) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(184, 134, 11, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tj-product-thumb:hover::before {
  opacity: 1;
}
.tj-product-thumb:hover::after {
  opacity: 0.3;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}
.tj-product-thumb:active {
  transform: translateY(-1px) scale(1);
}
.tj-product-thumb.active,
.tj-product-thumb[aria-selected="true"] {
  border-color: var(--tj-gold) !important;
  box-shadow: 
    0 0 0 3px rgba(184, 134, 11, 0.25),
    0 6px 20px rgba(184, 134, 11, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 243, 0.98) 100%);
}
.tj-product-thumb.active::after,
.tj-product-thumb[aria-selected="true"]::after {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.3);
}
.tj-product-thumb.active::before,
.tj-product-thumb[aria-selected="true"]::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.12) 0%, rgba(184, 134, 11, 0.04) 50%, transparent 100%);
}
.tj-product-thumb img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease, opacity 0.3s ease;
  filter: brightness(1) contrast(1) saturate(1);
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tj-product-thumb:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.05) saturate(1.03);
}
.tj-product-thumb.active img,
.tj-product-thumb[aria-selected="true"] img {
  filter: brightness(1.08) contrast(1.08) saturate(1.05);
  transform: scale(1.02);
}
/* Product image placeholder — compact icon, no overlap when used as fallback */
.tj-product-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--tj-offwhite-warm) 0%, var(--tj-offwhite) 100%);
  z-index: 0;
}
.tj-product-img-placeholder i {
  font-size: 2.5rem;
  opacity: 0.35;
}
@media (min-width: 576px) {
  .tj-product-img-placeholder i { font-size: 3rem; }
}
.tj-product-gallery {
  margin-bottom: 2rem;
  position: relative;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-product-gallery-no-images .tj-card-img-wrap {
  display: none;
}
/* Gallery column stays on top so nav arrows are never covered by content card */
.tj-page-product .row.g-4 > .col-lg-6:first-child {
  position: relative;
  z-index: 2;
}
.tj-page-product .row.g-4 > .col-lg-6:last-child {
  position: relative;
  z-index: 1;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Modern thumbnail grid layout - Ultra Premium */
.tj-product-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  max-width: 100%;
  position: relative;
}
.tj-product-thumbnails-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tj-border), transparent);
}
@media (min-width: 576px) {
  .tj-product-thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 992px) {
  .tj-product-thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.125rem;
  }
}
/* RTL support for product gallery thumbnails */
[dir="rtl"] .tj-product-gallery .d-flex.flex-wrap.gap-2 {
  gap: 0.75rem !important;
}
/* Mobile support for product gallery thumbnails */
@media (max-width: 576px) {
  .tj-product-gallery .d-flex.flex-wrap.gap-2 {
    gap: 0.5rem !important;
    margin-top: 0.75rem;
  }
  [dir="rtl"] .tj-product-gallery .d-flex.flex-wrap.gap-2 {
    gap: 0.5rem !important;
  }
  .tj-page-product .tj-product-purchase-block {
    padding: 1rem 1.25rem;
  }
  .tj-page-product .tj-product-purchase-row {
    gap: 0.75rem 1rem;
  }
  .tj-page-product .tj-order-total-block {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.25rem;
    align-items: flex-end;
  }
  [dir="rtl"] .tj-page-product .tj-order-total-block {
    align-items: flex-end;
  }
  .tj-page-product .tj-card-body {
    padding: 1rem 1.25rem;
  }
  .tj-page-product .tj-qty-stepper-modern .tj-qty-btn,
  .tj-page-product .tj-qty-stepper-modern .tj-qty-input {
    min-height: 44px;
  }
  .tj-page-product .tj-qty-stepper-modern .tj-qty-btn {
    width: 44px;
  }
  .tj-page-product .tj-qty-stepper-modern .tj-qty-input {
    width: 52px;
  }
}
/* Tablet: product page card and purchase block */
@media (min-width: 576px) and (max-width: 991px) {
  .tj-page-product .tj-card-body {
    padding: 1.25rem 1.5rem;
  }
  .tj-page-product .tj-product-purchase-block {
    padding: 1.125rem 1.35rem;
  }
  .tj-page-product .tj-product-purchase-row {
    gap: 0.875rem 1.25rem;
  }
}
/* Responsive enhancements */
@media (max-width: 768px) {
  .tj-product-navigation.tj-product-navigation-modern {
    padding: 0.75rem 0;
    margin-bottom: 1.25rem;
  }
  .tj-product-navigation-inner {
    gap: 0.5rem;
  }
  .tj-product-nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    max-width: none;
  }
  .tj-product-nav-back span.d-sm-inline {
    display: none !important;
  }
  .tj-product-image-nav-btn {
    width: 44px;
    height: 44px;
  }
  .tj-product-image-nav-btn i {
    font-size: 0.95rem;
  }
  .tj-product-thumb {
    min-width: 64px;
    min-height: 64px;
  }
}
@media (pointer: coarse) {
  .tj-product-zoom-wrap[data-zoom-enabled="true"]:hover .tj-zoom-img { transform: none; }
  .tj-product-zoom-wrap .tj-zoom-img { cursor: pointer; }
  .tj-product-thumb:hover { transform: none; }
  .tj-product-thumb:hover img { transform: scale(1); filter: none; }
  .tj-product-image-nav { opacity: 1 !important; }
}
/* Accessibility improvements */
.tj-product-nav-btn:focus-visible,
.tj-product-image-nav-btn:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.2);
}
.tj-product-thumb:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
}

/* Mobile checkout */
.tj-checkout-order-summary {
  position: relative;
}
@media (max-width: 991px) {
  .tj-checkout-order-summary {
    order: -1;
    margin-bottom: 1rem;
  }
  .tj-checkout-form .tj-form-control,
  .tj-checkout-form .form-check-label {
    font-size: 16px; /* prevents zoom on focus on iOS */
  }
  .tj-checkout-form .form-check {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
  }
  .tj-checkout-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
  }
  .tj-checkout-form .tj-btn[type="submit"] {
    min-height: 52px;
    width: 100%;
    font-size: 1.05rem;
  }
  .tj-checkout-form label.d-flex.p-3 {
    min-height: 48px;
    align-items: center;
  }
  .tj-checkout-form label.d-flex input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
  }
}
@media (max-width: 576px) {
  .tj-checkout-form .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .tj-hero { padding: 2.5rem 0 3rem; }
  .tj-section { padding: 2.5rem 0; --tj-section-spacing: 2.5rem; }
  .tj-promo-content { padding: 1.5rem; }
  .tj-banner-slide { padding: 2rem 1.5rem; min-height: 280px; }
  .tj-banner-slider { min-height: 280px; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  
  /* Tablet and mobile navigation improvements */
  .tj-navbar .navbar-collapse.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* Tablet product grid (overridden in main mobile block for 2-col + icon-only overlay) */
  .tj-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
  
  /* Category grid tablet & mobile */
  .tj-cat-card-gissah { min-height: 160px; }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-label { bottom: 2.25rem; padding: 0.4rem 0.75rem; font-size: 0.875rem; }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-cta { bottom: 0.6rem; font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  
  /* Tablet forms */
  .tj-form-control { font-size: 16px; } /* Prevents zoom on iOS */
}
/* RTL responsive fixes */
@media (max-width: 991px) {
  [dir="rtl"] .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  [dir="rtl"] .tj-navbar .navbar-collapse { padding: 4rem 1rem 1rem; }
  [dir="rtl"] .tj-navbar .nav-link { text-align: right !important; justify-content: flex-end !important; }
  [dir="rtl"] .tj-navbar .tj-nav-center,
  [dir="rtl"] .tj-navbar .tj-nav-right { align-items: stretch; }
}

/* RTL mobile fixes (576px and below) */
@media (max-width: 576px) {
  [dir="rtl"] .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  [dir="rtl"] .tj-topbar .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex-direction: row-reverse; 
    padding-right: 1rem; 
    padding-left: 0.5rem; 
  }
  [dir="rtl"] .tj-topbar-utils { flex-direction: row-reverse; }
  [dir="rtl"] .tj-topbar-cart { margin-left: 0.75rem; margin-right: 0; }
  [dir="rtl"] .tj-hero .row { flex-direction: column-reverse; }
  [dir="rtl"] .tj-hero .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem; 
    padding-left: 0.5rem; 
  }
  [dir="rtl"] .tj-product-grid { direction: rtl; justify-content: flex-start; }
  [dir="rtl"] .tj-product-grid .tj-card { text-align: right; }
  [dir="rtl"] .tj-card-body { text-align: right; padding-right: 0.75rem; padding-left: 0.5rem; }
  [dir="rtl"] .tj-card-title { text-align: right; }
  [dir="rtl"] .tj-card-price { text-align: right; }
  [dir="rtl"] .tj-card-price-wrap { justify-content: flex-end; }
  [dir="rtl"] .tj-card-cart-btn { right: auto; left: 0.75rem; }
  [dir="rtl"] .tj-sale-badge { left: auto; right: 8px; }
  [dir="rtl"] .tj-filter-pills { flex-direction: row; }
  [dir="rtl"] .tj-newsletter-form { flex-direction: column; }
  [dir="rtl"] .tj-footer .row { flex-direction: column-reverse; }
  [dir="rtl"] .tj-cart-item { text-align: right; }
  [dir="rtl"] .tj-cart-item-details { padding-right: 0.5rem; padding-left: 0; }
  [dir="rtl"] .tj-checkout-form-wrap { text-align: right; }
  [dir="rtl"] .modal-header { flex-direction: row-reverse; }
  [dir="rtl"] .modal-footer { flex-direction: row-reverse; }
  [dir="rtl"] .alert { text-align: right; }
  [dir="rtl"] .pagination { flex-direction: row-reverse; }
  [dir="rtl"] .tj-categories-strip .row { direction: rtl; }
}
/* Product page specific enhancements */
.tj-page-product .tj-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.tj-page-product .row.g-4 {
  margin-bottom: 2rem;
}
.tj-page-product .tj-form-control {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--tj-radius);
  border: 2px solid var(--tj-border);
  transition: all var(--tj-transition);
}
.tj-page-product .tj-form-control:focus {
  border-color: var(--tj-gold);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}
/* Product page — purchase block (quantity, stock, order total) */
.tj-page-product .tj-product-purchase-block {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, var(--tj-offwhite-warm) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tj-page-product .tj-product-purchase-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tj-text-muted);
  margin-bottom: 0.75rem;
}
.tj-page-product .tj-product-purchase-row {
  align-items: center;
  gap: 1rem 1.5rem;
}
.tj-page-product .tj-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--tj-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-page-product .tj-stock-badge-icon {
  font-size: 0.9375rem;
}
.tj-page-product .tj-stock-badge-in {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.tj-page-product .tj-stock-badge-in .tj-stock-badge-icon {
  color: #16a34a;
}
.tj-page-product .tj-stock-badge-out {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.tj-page-product .tj-stock-badge-out .tj-stock-badge-icon {
  color: #dc2626;
}
.tj-page-product .tj-order-total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.5rem 1rem;
  background: rgba(184, 134, 11, 0.08);
  border-radius: var(--tj-radius);
  border: 1px solid rgba(184, 134, 11, 0.2);
}
.tj-page-product .tj-order-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tj-text-muted);
  margin-bottom: 0.15rem;
}
.tj-page-product .tj-order-total-amount {
  font-family: var(--tj-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--tj-gold-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  min-height: 1.5em;
}
.tj-page-product #product-total-wrap {
  min-width: 0;
}
/* Product actions — single row, modern toolbar */
.tj-page-product #product-actions-inline,
.tj-page-product .tj-product-actions {
  margin-top: 1.5rem;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}
@media (min-width: 576px) {
  .tj-page-product .tj-product-actions-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
/* Two-column layout (lg): allow wrap so all buttons fit in col-lg-6 without overflow */
@media (min-width: 992px) {
  .tj-page-product .tj-product-actions-row {
    flex-wrap: wrap;
  }
}
/* Tablet: single line with comfortable touch targets */
@media (min-width: 576px) and (max-width: 991px) {
  .tj-page-product .tj-product-actions-row {
    gap: 0.5rem;
  }
  .tj-page-product .tj-product-actions .tj-btn {
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }
  .tj-page-product .tj-product-actions .tj-btn-add-cart {
    padding: 0.75rem 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .tj-page-product .tj-product-actions .tj-btn .tj-btn-text {
    display: inline;
  }
}
/* Mobile: Add to Cart full width, secondary actions on second row */
@media (max-width: 576px) {
  .tj-page-product .tj-product-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .tj-page-product .tj-product-actions .tj-btn-add-cart {
    flex: none;
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    order: 0;
  }
  .tj-page-product .tj-product-actions .tj-btn-wishlist {
    order: 1;
  }
  .tj-page-product .tj-product-actions .tj-btn-share,
  .tj-page-product .tj-product-actions .tj-btn-learn-more {
    order: 2;
  }
  .tj-page-product .tj-product-actions .tj-btn:not(.tj-btn-add-cart) {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  /* Secondary actions in one row on mobile */
  .tj-page-product .tj-product-actions-row .tj-btn-wishlist,
  .tj-page-product .tj-product-actions-row .tj-btn-share,
  .tj-page-product .tj-product-actions-row .tj-btn-learn-more {
    flex: 1 1 0%;
  }
}
.tj-page-product #product-actions-inline .tj-btn,
.tj-page-product .tj-product-actions .tj-btn {
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--tj-radius);
  transition: transform var(--tj-transition), box-shadow var(--tj-transition), background var(--tj-transition), border-color var(--tj-transition);
  white-space: nowrap;
  flex: 0 0 auto;
}
.tj-page-product .tj-product-actions .tj-btn .tj-btn-icon {
  margin-right: 0.5rem;
}
[dir="rtl"] .tj-page-product .tj-product-actions .tj-btn .tj-btn-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}
.tj-page-product #product-actions-inline .tj-btn-primary,
.tj-page-product .tj-product-actions .tj-btn-add-cart {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.8rem 1.5rem;
  border-radius: var(--tj-radius);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.3), 0 1px 3px rgba(184, 134, 11, 0.15);
}
@media (min-width: 576px) {
  .tj-page-product #product-actions-inline .tj-btn-primary,
  .tj-page-product .tj-product-actions .tj-btn-add-cart {
    min-width: 10rem;
  }
}
.tj-page-product #product-actions-inline .tj-btn-primary:hover,
.tj-page-product .tj-product-actions .tj-btn-add-cart:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35), 0 2px 6px rgba(184, 134, 11, 0.2);
  transform: translateY(-1px);
}
/* Outline / icon-style secondary actions (Share, Learn More) — same row */
.tj-page-product .tj-btn-icon-outline {
  background: var(--tj-white);
  border: 1.5px solid var(--tj-border);
  color: var(--tj-text);
  padding: 0.65rem 1rem;
}
.tj-page-product .tj-btn-icon-outline:hover {
  background: var(--tj-offwhite-warm);
  border-color: var(--tj-border);
  color: var(--tj-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.tj-page-product .tj-btn-share {
  border-color: var(--tj-border);
  color: var(--tj-text-muted);
}
.tj-page-product .tj-btn-share:hover {
  border-color: var(--tj-gold-light);
  color: var(--tj-gold-dark);
  background: rgba(212, 168, 75, 0.06);
}
.tj-page-product .tj-btn-learn-more {
  border-color: rgba(37, 211, 102, 0.45);
  color: #0d9488;
}
.tj-page-product .tj-btn-learn-more:hover {
  border-color: #14b8a6;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.06);
}
.tj-page-product .tj-btn-wishlist {
  border-color: var(--tj-border);
  color: var(--tj-text);
}
.tj-page-product .tj-btn-wishlist:hover {
  border-color: var(--tj-gold-light);
  color: var(--tj-gold-dark);
  background: rgba(212, 168, 75, 0.06);
}
.tj-page-product .badge {
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  border-radius: var(--tj-radius);
  transition: all var(--tj-transition);
}
.tj-page-product .badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--tj-shadow-soft);
}
.tj-page-product .mb-4 {
  line-height: 1.75;
  font-size: 1rem;
  color: var(--tj-text);
}
.tj-page-product .tj-product-description-wrap {
  position: relative;
}
.tj-page-product .tj-product-description,
.tj-page-product .product-description {
  color: var(--tj-text);
  line-height: 1.75;
  font-size: 1rem;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.tj-page-product .tj-product-description-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-height: 8.75em; /* 5 lines × line-height 1.75 */
  transition: max-height 0.35s ease;
}
.tj-page-product .tj-product-description-wrap.expanded .tj-product-description-clamped {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: 2000px; /* large enough for any description */
}
.tj-page-product .tj-product-description-toggle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tj-accent, #b8860b);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.tj-page-product .tj-product-description-toggle:hover {
  color: var(--tj-gold-dark, #8b6914);
}
.tj-page-product .tj-product-description-toggle .tj-product-description-toggle-icon {
  transition: transform 0.25s ease;
  font-size: 0.7em;
  vertical-align: 0.05em;
}
.tj-page-product .tj-product-description-wrap.expanded .tj-product-description-toggle .tj-product-description-toggle-icon {
  transform: rotate(180deg);
}
[dir="rtl"] .tj-page-product .tj-product-description-toggle .tj-product-description-toggle-icon {
  transform: rotate(180deg);
}
[dir="rtl"] .tj-page-product .tj-product-description-wrap.expanded .tj-product-description-toggle .tj-product-description-toggle-icon {
  transform: rotate(0deg);
}
[dir="rtl"] .tj-page-product .tj-order-total-block {
  align-items: flex-start;
}

/* ========== Product page — modern web view (desktop) ========== */
@media (min-width: 992px) {
  .tj-page-product-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
  .tj-page-product-section .container {
    max-width: 1200px;
  }
  .tj-breadcrumb-modern {
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    padding: 0.5rem 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(232, 228, 222, 0.6);
  }
  .tj-breadcrumb-modern a {
    color: var(--tj-text-muted);
    padding: 0.25rem 0;
    border-radius: 4px;
    transition: color var(--tj-transition), background var(--tj-transition);
  }
  .tj-breadcrumb-modern a:hover {
    color: var(--tj-gold-dark);
    background: rgba(184, 134, 11, 0.06);
  }
  .tj-breadcrumb-modern .tj-breadcrumb-current {
    color: var(--tj-black);
    font-weight: 600;
  }
  /* Same row: gallery + info side by side, no white space in gallery column */
  .tj-product-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem !important;
    align-items: flex-start;
  }
  .tj-product-layout > .tj-product-col-gallery,
  .tj-product-layout > .tj-product-col-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }
  .tj-product-layout > .tj-product-col-gallery {
    min-width: 0;
    align-self: flex-start;
  }
  .tj-product-layout > .tj-product-col-info {
    min-width: 0;
  }
  .tj-product-gallery-card,
  .tj-product-info-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .tj-product-gallery-card {
    border-radius: var(--tj-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(232, 228, 222, 0.6);
    transition: box-shadow var(--tj-transition), border-color var(--tj-transition);
  }
  .tj-product-gallery-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 134, 11, 0.15);
  }
  .tj-product-gallery-in-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
  }
  .tj-product-gallery-in-row .tj-product-zoom-wrap {
    flex: 0 0 auto;
    min-height: 280px;
  }
  .tj-product-gallery-in-row .tj-product-thumbnails-grid {
    flex-shrink: 0;
    margin-top: 1.25rem;
  }
  .tj-product-info-card {
    border-radius: var(--tj-radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(232, 228, 222, 0.6);
    transition: box-shadow var(--tj-transition), border-color var(--tj-transition);
  }
  .tj-product-info-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
    border-color: rgba(232, 228, 222, 0.9);
  }
  .tj-product-info-card .tj-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .tj-product-info-body {
    padding: 2rem 2.25rem !important;
  }
  .tj-page-product .tj-product-info-body .tj-heading-2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  .tj-page-product .tj-product-price-block {
    padding: 0.75rem 0 1.25rem;
    margin-bottom: 1rem;
  }
  .tj-page-product .tj-product-price-block .tj-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  .tj-page-product .tj-product-compare-price {
    font-size: 0.9375rem;
    margin-right: 0.5rem;
  }
  .tj-page-product .tj-product-info-body .badge {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--tj-radius-pill);
    background: var(--tj-offwhite-warm) !important;
    color: var(--tj-text) !important;
    border: 1px solid var(--tj-border);
    transition: border-color var(--tj-transition), color var(--tj-transition), transform var(--tj-transition);
  }
  .tj-page-product .tj-product-info-body .badge:hover {
    border-color: var(--tj-gold-light);
    color: var(--tj-gold-dark) !important;
    transform: translateY(-1px);
  }
  .tj-page-product .tj-product-options-card {
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: var(--tj-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  .tj-page-product .tj-product-purchase-block {
    padding: 1.5rem 1.75rem;
    border-radius: var(--tj-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .tj-page-product #product-actions-inline,
  .tj-page-product .tj-product-actions {
    margin-top: 1.75rem;
    gap: 0.625rem 0.875rem;
  }
  .tj-page-product .tj-product-actions .tj-btn {
    padding: 0.8rem 1.35rem;
    font-size: 0.9375rem;
    border-radius: var(--tj-radius);
  }
  .tj-page-product .tj-product-actions .tj-btn-add-cart {
    padding: 0.9rem 1.75rem;
  }
  .tj-product-reviews-section {
    padding-top: 3rem;
  }
  .tj-reviews-section-title {
    font-size: 1.375rem;
  }
  .tj-reviews-section-title::after {
    width: 48px;
  }
  .tj-review-summary-card {
    padding: 1.5rem 2rem;
    margin-bottom: 1.75rem;
  }
  .tj-review-summary-value {
    font-size: 2.25rem;
  }
  .tj-review-summary-stars {
    font-size: 1.1rem;
  }
  .tj-page-product .tj-reviews-list {
    max-height: 560px;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .tj-review-card {
    padding: 1.5rem 1.75rem;
  }
  .tj-review-avatar {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  .tj-write-review-card {
    padding: 1.75rem 2rem;
    margin-top: 1.75rem;
  }
  .tj-write-review-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
  }
  .tj-write-review-form {
    gap: 1.5rem;
  }
  .tj-write-review-star-icon {
    font-size: 1.75rem;
  }
  .tj-related-section {
    border-top: 1px solid rgba(232, 228, 222, 0.6);
    padding-top: 3rem;
  }
  .tj-related-section .tj-section-title {
    position: relative;
    padding-bottom: 0.75rem;
  }
  .tj-related-section .tj-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--tj-gold-light), var(--tj-gold));
    border-radius: var(--tj-radius-pill);
  }
  [dir="rtl"] .tj-related-section .tj-section-title::after {
    left: auto;
    right: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 992px) {
    .tj-product-layout .tj-product-gallery-card.tj-animate-in,
    .tj-product-layout .tj-product-info-card.tj-animate-in {
      animation: tj-fade-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    .tj-product-layout .tj-product-gallery-card.tj-animate-in {
      animation-delay: 0.06s;
    }
    .tj-product-layout .tj-product-info-card.tj-animate-in {
      animation-delay: 0.12s;
    }
  }
}

.tj-page-product .reviews-list::-webkit-scrollbar,
.tj-page-product .tj-reviews-list::-webkit-scrollbar {
  width: 6px;
}
.tj-page-product .reviews-list::-webkit-scrollbar-track,
.tj-page-product .tj-reviews-list::-webkit-scrollbar-track {
  background: var(--tj-offwhite);
  border-radius: var(--tj-radius);
}
.tj-page-product .reviews-list::-webkit-scrollbar-thumb,
.tj-page-product .tj-reviews-list::-webkit-scrollbar-thumb {
  background: var(--tj-border);
  border-radius: var(--tj-radius);
}
.tj-page-product .reviews-list::-webkit-scrollbar-thumb:hover,
.tj-page-product .tj-reviews-list::-webkit-scrollbar-thumb:hover {
  background: var(--tj-gold-light);
}
.cursor-pointer {
  cursor: pointer;
}

/* Tablet: topbar slightly more compact before navbar collapses */
@media (max-width: 991px) {
  .tj-topbar { padding: 0.45rem 0; }
  .tj-topbar .container > .d-flex { min-height: 2.15rem; }
  .tj-topbar-utils {
    padding-inline-start: 0.75rem;
    margin-inline-start: 0.5rem;
  }
  .tj-topbar-country-btn,
  .tj-topbar-lang-btn { padding: 0.32rem 0.65rem; font-size: 0.8rem; }
  .tj-topbar-cart { width: 2.1rem; height: 2.1rem; }
  .tj-topbar-site-name { font-size: 0.8rem; }
}

@media (max-width: 576px) {
  /* Enhanced font scaling for very small screens */
  .tj-heading-1 { font-size: clamp(1.5rem, 5vw, 1.75rem) !important; }
  .tj-heading-2 { font-size: clamp(1.2rem, 4vw, 1.35rem) !important; }
  .tj-heading-3 { font-size: 1.1rem; }
  .tj-hero-title { font-size: clamp(1.75rem, 6vw, 2rem) !important; }
  .tj-section-title { font-size: clamp(1.25rem, 4.5vw, 1.5rem) !important; }
  .tj-card-title { font-size: 0.9rem; line-height: 1.35; }
  .tj-card-price { font-size: 0.95rem; }
  .tj-promo-title { font-size: clamp(1.15rem, 4vw, 1.35rem) !important; }
  .tj-newsletter-title { font-size: clamp(1.25rem, 5vw, 1.5rem) !important; }
  
  /* Layout adjustments */
  .tj-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tj-product-grid.tj-product-list { grid-template-columns: 1fr; }
  .tj-product-grid.tj-product-list .tj-card { flex-direction: column; }
  .tj-product-grid.tj-product-list .tj-card-img-wrap { flex: none; min-height: 200px; aspect-ratio: 1; }
  .tj-card { min-height: auto; max-width: 100%; }
  .tj-card-body { padding: 0.75rem 0.6rem; }
  .tj-card-img-wrap { aspect-ratio: 1; min-height: 0; }
  .tj-card-img-wrap img { padding: 0.25rem; object-fit: contain; object-position: center; }
  .tj-card-title { font-size: 0.8125rem; margin-bottom: 0.4rem; }
  .tj-card-price { font-size: 0.875rem; }
  .tj-card-price-wrap { margin-bottom: 0; }
  .tj-card-cart-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; bottom: 0.75rem; right: 0.75rem; font-size: 0.85rem; }
  .tj-btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
  .tj-section { padding: 1.5rem 0; }
  .tj-page-product main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0)); } /* space for sticky cart */
  .tj-page-product .tj-card-body { padding: 1.25rem; }
  .tj-page-product .row.g-4 { margin-bottom: 1.5rem; }
  /* Reviews section — mobile */
  .tj-product-reviews-section { padding-top: 1.75rem; margin-top: 0.25rem; }
  .tj-reviews-section-title { font-size: 1.2rem; margin-bottom: 1rem; }
  .tj-reviews-section-title::after { width: 32px; height: 2px; }
  .tj-review-summary-card { padding: 1rem 1.25rem; gap: 0.75rem 1rem; margin-bottom: 1.25rem; flex-direction: column; align-items: stretch; text-align: center; }
  .tj-review-summary-score { align-items: center; }
  .tj-review-summary-value { font-size: 1.75rem; }
  .tj-review-summary-meta { text-align: center; }
  .tj-page-product .tj-reviews-list { max-height: 400px; gap: 0.875rem; margin-bottom: 1.25rem; padding: 0.2rem 0.35rem 0.2rem 0; }
  [dir="rtl"] .tj-page-product .tj-reviews-list { padding: 0.2rem 0 0.2rem 0.35rem; }
  .tj-review-card { padding: 1rem 1.25rem; }
  .tj-review-card-header { gap: 0.75rem; margin-bottom: 0.5rem; }
  .tj-review-avatar { width: 40px; height: 40px; font-size: 0.875rem; }
  .tj-review-card-title { font-size: 0.9375rem; }
  .tj-review-card-body { font-size: 0.875rem; }
  .tj-reviews-empty { padding: 1.5rem 1rem; margin-bottom: 1.25rem; }
  .tj-reviews-empty-icon { width: 2.5rem; height: 2.5rem; font-size: 1rem; margin-bottom: 0.5rem; }
  .tj-reviews-empty-text { font-size: 0.875rem; }
  .tj-write-review-card { padding: 1.25rem 1.25rem; margin-top: 1.25rem; }
  .tj-write-review-title { font-size: 1.15rem; margin-bottom: 1rem; }
  .tj-write-review-form { gap: 1rem; }
  .tj-write-review-star-option { min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
  .tj-write-review-star-icon { font-size: 1.5rem; }
  .tj-write-review-submit { width: 100%; justify-content: center; align-self: stretch; }
  
  /* Improved spacing for small screens */
  .tj-hero-sub { font-size: 1rem; }
  .tj-section-sub { font-size: 0.9rem; }
  .tj-service-text { font-size: 0.85rem; }
  
  /* Mobile-specific fixes */
  .container { padding-left: 1rem; padding-right: 1rem; }
  
  /* Topbar — mobile view: single row, touch-friendly, safe areas */
  .tj-topbar {
    padding: 0.5rem 0;
    padding-inline-start: max(1rem, env(safe-area-inset-left));
    padding-inline-end: max(1rem, env(safe-area-inset-right));
    font-size: 0.8125rem;
  }
  [dir="rtl"] .tj-topbar {
    padding-inline-start: max(1rem, env(safe-area-inset-right));
    padding-inline-end: max(1rem, env(safe-area-inset-left));
  }
  .tj-topbar .container {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-inline-start: 0;
    padding-inline-end: 0;
    max-width: 100%;
  }
  .tj-topbar .container > .d-flex {
    min-height: 2.5rem;
    flex-wrap: nowrap;
    width: 100%;
  }
  .tj-topbar-left {
    gap: 0.5rem !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  .tj-topbar-site-name {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  .tj-topbar-utils {
    flex-shrink: 0;
    gap: 0.25rem !important;
    padding-inline-start: 0.5rem;
    margin-inline-start: 0.35rem;
    border-inline-start-width: 1px;
  }
  /* Touch targets ≥44px where possible */
  .tj-topbar-country-btn,
  .tj-topbar-lang-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
  }
  .tj-topbar-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .tj-topbar-cart {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
    -webkit-tap-highlight-color: transparent;
  }
  .tj-cart-badge {
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0.625rem;
    top: 2px;
    inset-inline-end: 2px;
  }
  /* Topbar dropdowns: stay inside viewport, align with trigger, no cut-off */
  .tj-topbar-dropdown-menu,
  .tj-topbar-country .dropdown-menu,
  .tj-topbar-lang .dropdown-menu {
    padding: 0.5rem;
    min-width: 140px;
    max-width: min(280px, calc(100vw - 2rem));
    margin-top: 0.5rem;
    max-height: min(70vh, 320px);
    overflow-y: auto;
    z-index: 1070;
    /* Keep dropdown fully visible; Popper uses data-bs-boundary="viewport" + data-bs-strategy="fixed" */
  }
  .tj-topbar-country .dropdown-item,
  .tj-topbar-lang .dropdown-item {
    padding: 0.6rem 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .tj-topbar-country .dropdown-item .tj-country-label,
  .tj-topbar-lang .dropdown-item .tj-lang-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tj-section { padding: 1.5rem 0; }
  .tj-section-header { margin-bottom: 1rem; }
  .tj-navbar { padding: 0.5rem 0; }
  .tj-navbar .navbar-brand { font-size: 1.1rem; }
  .tj-hero { padding: 2rem 0 2.5rem; min-height: 38vh; }
  .tj-hero .container { padding-left: 1rem; padding-right: 1rem; }
  .tj-partners-strip { padding: 0.875rem 0 1rem; font-size: 0.7rem; }
  .tj-partners-logos { font-size: 0.8125rem; gap: 0.4rem 0.6rem; }
  .tj-partners-title { font-size: 0.6875rem; }
  .tj-services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tj-service-item { padding: 1.5rem 1rem; }
  .tj-categories-strip .row { --bs-gutter-x: 0.75rem; }
  /* Prevent iOS zoom and improve touch */
  .form-select { font-size: 16px !important; min-height: 44px; }
  .tj-btn, .btn, .navbar-toggler, .dropdown-toggle { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  /* Shop Categories cards: compact label/CTA on very small screens */
  .tj-categories-gissah .tj-cat-card-gissah { min-height: 140px; aspect-ratio: 1; }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-label { bottom: 1.85rem; padding: 0.35rem 0.5rem; font-size: 0.8125rem; }
  .tj-categories-gissah .tj-cat-card-gissah .tj-cat-card-cta { bottom: 0.5rem; font-size: 0.6875rem; padding: 0.25rem 0.5rem; }
  .tj-categories-gissah.row { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
  .tj-filter-pills { gap: 0.4rem; padding-bottom: 0.5rem; }
  .tj-pill { padding: 0.45rem 1rem; font-size: 0.8rem; }
  .tj-newsletter { padding: 2.5rem 0; }
  .tj-newsletter-form { flex-direction: column; width: 100%; }
  .tj-newsletter-form input[type="email"] { width: 100%; min-width: 100%; }
  .tj-footer { padding: 2rem 0 calc(1rem + env(safe-area-inset-bottom, 0)); }
  .tj-footer .row { --bs-gutter-y: 1.5rem; }
  
  /* Small mobile: keep icon-only overlay + body buttons (no overlay buttons) */
  .tj-product-grid,
  .tj-product-grid-featured { gap: 10px; }
  .tj-card-actions-mobile .tj-btn-mobile-block { min-height: 44px; font-size: 14px; }
  
  /* Mobile cart fixes */
  .tj-cart-item { grid-template-columns: 80px 1fr; gap: 0.75rem; padding: 1rem; }
  .tj-cart-item-img { width: 80px; height: 80px; }
  .tj-cart-item-title { font-size: 0.95rem; }
  .tj-cart-summary { padding: 1.25rem; }
  
  /* Mobile checkout fixes */
  .tj-checkout-steps { flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; }
  .tj-checkout-step { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .tj-checkout-option-cards { flex-direction: column; }
  .tj-checkout-option-card { flex: 1 1 100%; }
  
  /* Mobile quote and featured category */
  .tj-quote-block { padding: 1.5rem 0; }
  .tj-quote-text { font-size: 1rem; padding: 0 0.5rem; }
  .tj-featured-category-link { min-height: 160px; aspect-ratio: 16/9; }
  .tj-featured-category-cta { padding: 0.5rem 1.25rem; font-size: 0.85rem; bottom: 1rem; }
  
  /* Mobile product page */
  .tj-product-gallery { margin-bottom: 1rem; }
  .tj-product-thumb { min-width: 56px; min-height: 56px; }
  .tj-product-price-block .tj-card-price { font-size: clamp(1.25rem, 5vw, 1.5rem); }
  
  /* Mobile forms */
  .tj-form-control { font-size: 16px; } /* Prevents zoom on iOS */
  .tj-form-label { font-size: 0.9rem; margin-bottom: 0.4rem; }
  
  /* Mobile buttons */
  .tj-btn-primary { min-height: 44px; }
  .tj-qty-btn { width: 36px; height: 36px; font-size: 1rem; }
  .tj-qty-input { width: 48px; height: 36px; }
  
  /* Mobile sticky cart */
  .tj-sticky-cart { padding: 0.75rem; gap: 0.75rem; }
  .tj-sticky-cart-price { font-size: 1.1rem; }
  .tj-sticky-cart .tj-btn { font-size: 0.95rem; padding: 0.65rem 1rem; }
  
  /* Mobile modals - Modern & Touch-Friendly */
  .modal-dialog { 
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  .modal-content { 
    border-radius: var(--tj-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
  .modal-header { 
    padding: 1.25rem 1rem;
    border-radius: var(--tj-radius-lg) var(--tj-radius-lg) 0 0;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-body { 
    padding: 1.25rem 1rem;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
  }
  .modal-footer { 
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-radius: 0 0 var(--tj-radius-lg) var(--tj-radius-lg);
  }
  .modal-footer .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    min-height: 44px;
  }
  .btn-close {
    width: 36px;
    height: 36px;
  }
  
  /* Mobile tables */
  .table-responsive { font-size: 0.85rem; }
  .table th, .table td { padding: 0.5rem 0.4rem; }
  
  /* Mobile breadcrumbs */
  .tj-breadcrumb { font-size: 0.8rem; margin-bottom: 1rem; }
  
  /* Mobile alerts */
  .alert { padding: 0.75rem 1rem; font-size: 0.9rem; }
  
  /* Mobile pagination */
  .pagination { font-size: 0.85rem; }
  .page-link { padding: 0.4rem 0.65rem; }
}

/* ========== RTL Mobile View Fixes (Arabic) ========== */
/* Comprehensive RTL support for mobile views (≤576px) */
@media (max-width: 576px) {
  /* Container and layout - Reduce left padding, increase right padding for RTL */
  [dir="rtl"] .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  [dir="rtl"] .tj-hero .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  [dir="rtl"] .tj-hero .tj-hero-inner { padding-right: 0; padding-left: 0; }
  
  /* Topbar RTL */
  [dir="rtl"] .tj-topbar .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex-direction: row-reverse !important; 
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  [dir="rtl"] .tj-topbar-utils { flex-direction: row-reverse; }
  [dir="rtl"] .tj-topbar-cart { margin-left: 0.75rem; margin-right: 0; }
  
  /* Navbar RTL (Arabic): order + padding already in main RTL block; only breakpoint-specific tweaks */
  [dir="rtl"] .tj-navbar .navbar-collapse { padding-inline: 1rem !important; }
  [dir="rtl"] .tj-navbar .nav-link { padding-inline: 0.75rem !important; }
  
  /* Hero section RTL - Reduce left padding */
  [dir="rtl"] .tj-hero { text-align: right; padding-right: 0; padding-left: 0; }
  [dir="rtl"] .tj-hero-title { text-align: right !important; margin-right: 0; margin-left: 0; }
  [dir="rtl"] .tj-hero-sub { text-align: right !important; margin-right: 0; margin-left: 0; }
  [dir="rtl"] .tj-hero .row { flex-direction: column-reverse; margin-right: 0; margin-left: 0; }
  [dir="rtl"] .tj-hero .row > * { padding-right: 0; padding-left: 0; }
  
  /* Product grid RTL - Start from right */
  [dir="rtl"] .tj-product-grid { direction: rtl !important; justify-content: flex-start !important; }
  [dir="rtl"] .tj-product-grid .tj-card { text-align: right !important; direction: rtl !important; }
  [dir="rtl"] .tj-product-grid.tj-product-list .tj-card { flex-direction: column; }
  [dir="rtl"] .tj-card-body { text-align: right !important; padding-right: 0.75rem !important; padding-left: 0.5rem !important; direction: rtl !important; }
  [dir="rtl"] .tj-card-title { text-align: right !important; }
  [dir="rtl"] .tj-card-price { text-align: right !important; }
  [dir="rtl"] .tj-card-price-wrap { justify-content: flex-end !important; flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-card-compare-price { text-align: right !important; }
  [dir="rtl"] .tj-card-cart-btn { right: auto !important; left: 0.75rem !important; }
  [dir="rtl"] .tj-sale-badge { left: auto !important; right: 8px !important; }
  
  /* Section titles RTL */
  [dir="rtl"] .tj-section-title { text-align: right !important; }
  [dir="rtl"] .tj-section-sub { text-align: right !important; }
  [dir="rtl"] .tj-heading-1, 
  [dir="rtl"] .tj-heading-2, 
  [dir="rtl"] .tj-heading-3 { text-align: right !important; }
  
  /* Services grid RTL */
  [dir="rtl"] .tj-service-item { text-align: center; }
  [dir="rtl"] .tj-service-text { text-align: center; }
  
  /* Filter pills RTL */
  [dir="rtl"] .tj-filter-pills { flex-direction: row !important; justify-content: flex-end !important; }
  [dir="rtl"] .tj-pill { text-align: center; }
  
  /* Newsletter RTL */
  [dir="rtl"] .tj-newsletter { text-align: right; }
  [dir="rtl"] .tj-newsletter-title { text-align: right !important; }
  [dir="rtl"] .tj-newsletter-form { flex-direction: column; }
  [dir="rtl"] .tj-newsletter-form input[type="email"] { text-align: right !important; direction: rtl !important; }
  
  /* Footer RTL */
  [dir="rtl"] .tj-footer { text-align: right; }
  [dir="rtl"] .tj-footer .row { flex-direction: column-reverse; }
  [dir="rtl"] .tj-footer-links { text-align: right; }
  
  /* Cart RTL */
  [dir="rtl"] .tj-cart-item { text-align: right !important; direction: rtl !important; }
  [dir="rtl"] .tj-cart-item-details { padding-right: 0.5rem !important; padding-left: 0 !important; text-align: right !important; }
  [dir="rtl"] .tj-cart-item-title { text-align: right !important; }
  [dir="rtl"] .tj-cart-summary { text-align: right !important; padding-right: 1.25rem !important; padding-left: 1.25rem !important; }
  [dir="rtl"] .tj-cart-summary-row { flex-direction: row-reverse !important; }
  
  /* Sticky cart RTL */
  [dir="rtl"] .tj-sticky-cart { flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-sticky-cart-price { text-align: right !important; }
  
  /* Checkout RTL */
  [dir="rtl"] .tj-checkout-form-wrap { text-align: right !important; }
  [dir="rtl"] .tj-checkout-form .tj-form-control { text-align: right !important; direction: rtl !important; }
  [dir="rtl"] .tj-checkout-form .form-label { text-align: right !important; }
  [dir="rtl"] .tj-checkout-form .form-check { padding-right: 2rem !important; padding-left: 0 !important; }
  [dir="rtl"] .tj-checkout-form .form-check-input { margin-right: -2rem !important; margin-left: 0 !important; float: right !important; }
  [dir="rtl"] .tj-checkout-form .form-check-label { padding-right: 0.5em !important; padding-left: 0 !important; text-align: right !important; }
  [dir="rtl"] .tj-checkout-steps { flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-checkout-option-cards { flex-direction: column; }
  [dir="rtl"] .tj-checkout-option-card { text-align: right !important; }
  [dir="rtl"] .tj-checkout-address-card-inner { text-align: right !important; }
  [dir="rtl"] .tj-checkout-summary { text-align: right !important; }
  
  /* Product page RTL */
  [dir="rtl"] .tj-page-product .tj-card-body { text-align: right !important; padding-right: 1.25rem !important; padding-left: 1.25rem !important; }
  [dir="rtl"] .tj-product-price-block { text-align: right !important; }
  [dir="rtl"] .tj-product-price-block .tj-card-price { text-align: right !important; }
  [dir="rtl"] .tj-product-gallery { direction: rtl !important; }
  [dir="rtl"] .tj-product-thumb { margin-left: 0.75rem !important; margin-right: 0 !important; }
  
  /* Forms RTL */
  [dir="rtl"] .tj-form-control { text-align: right !important; direction: rtl !important; }
  [dir="rtl"] .tj-form-label { text-align: right !important; }
  [dir="rtl"] .form-label { text-align: right !important; }
  [dir="rtl"] input, 
  [dir="rtl"] textarea, 
  [dir="rtl"] select { text-align: right !important; direction: rtl !important; }
  
  /* Buttons RTL */
  [dir="rtl"] .tj-btn { text-align: center; }
  [dir="rtl"] .btn-group { flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-shop-toolbar .tj-view-toggle.btn-group { flex-direction: row !important; }

  /* Quantity controls RTL */
  [dir="rtl"] .tj-qty-controls { flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-qty-input { text-align: center; }
  
  /* Modals RTL */
  [dir="rtl"] .modal-dialog { direction: rtl !important; }
  [dir="rtl"] .modal-content { direction: rtl !important; text-align: right !important; }
  [dir="rtl"] .modal-header { flex-direction: row-reverse !important; padding-right: 1rem !important; padding-left: 1rem !important; }
  [dir="rtl"] .modal-header .btn-close { margin-right: auto !important; margin-left: 0 !important; }
  [dir="rtl"] .modal-body { text-align: right !important; padding-right: 1rem !important; padding-left: 1rem !important; }
  [dir="rtl"] .modal-footer { flex-direction: row-reverse !important; padding-right: 1rem !important; padding-left: 1rem !important; }
  
  /* Tables RTL */
  [dir="rtl"] .table-responsive { direction: rtl !important; }
  [dir="rtl"] .table { direction: rtl !important; }
  [dir="rtl"] .table th, 
  [dir="rtl"] .table td { text-align: right !important; }
  
  /* Breadcrumbs RTL */
  [dir="rtl"] .tj-breadcrumb { text-align: right !important; flex-direction: row-reverse !important; }
  [dir="rtl"] .tj-breadcrumb span[aria-hidden="true"] { transform: scaleX(-1); }
  [dir="rtl"] .tj-breadcrumb a { margin-left: 0.5rem; margin-right: 0; }
  
  /* Alerts RTL */
  [dir="rtl"] .alert { text-align: right !important; padding-right: 1rem !important; padding-left: 1rem !important; }
  [dir="rtl"] .alert-dismissible .btn-close { right: auto !important; left: 0 !important; }
  
  /* Pagination RTL */
  [dir="rtl"] .pagination { flex-direction: row-reverse !important; }
  [dir="rtl"] .page-link { text-align: center; }
  
  /* Partners strip RTL */
  [dir="rtl"] .tj-partners-strip { text-align: right; }
  [dir="rtl"] .tj-partners-link::after { left: auto; right: 0.5rem; transform-origin: center; }
  
  /* Categories strip RTL - Start from right */
  [dir="rtl"] .tj-categories-strip { direction: rtl !important; }
  [dir="rtl"] .tj-categories-strip .row { direction: rtl !important; }
  [dir="rtl"] .tj-categories-strip .row > * { direction: rtl !important; }
  
  /* Promo banner RTL */
  [dir="rtl"] .tj-promo-title { text-align: right !important; }
  [dir="rtl"] .tj-promo-content { text-align: right !important; }
  [dir="rtl"] .tj-banner-slide { text-align: right !important; }
  
  /* Additional mobile-specific RTL fixes */
  /* Override general mobile padding rules for RTL */
  [dir="rtl"] .tj-topbar .container { flex-wrap: wrap; gap: 0.5rem; }
  [dir="rtl"] .tj-cart-item-img { width: 80px; height: 80px; }
  [dir="rtl"] .tj-cart-item-title { font-size: 0.95rem; }
  [dir="rtl"] .tj-checkout-steps { flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; }
  [dir="rtl"] .tj-checkout-step { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  [dir="rtl"] .tj-checkout-option-card { flex: 1 1 100%; }
  [dir="rtl"] .tj-product-thumb { min-width: 56px; min-height: 56px; }
  [dir="rtl"] .tj-product-price-block .tj-card-price { font-size: clamp(1.25rem, 5vw, 1.5rem); }
  [dir="rtl"] .tj-form-label { font-size: 0.9rem; margin-bottom: 0.4rem; }
  [dir="rtl"] .tj-btn-primary { min-height: 44px; }
  [dir="rtl"] .tj-qty-btn { width: 36px; height: 36px; font-size: 1rem; }
  [dir="rtl"] .tj-qty-input { width: 48px; height: 36px; }
  [dir="rtl"] .tj-sticky-cart { padding: 0.75rem; gap: 0.75rem; }
  [dir="rtl"] .tj-sticky-cart-price { font-size: 1.1rem; }
  [dir="rtl"] .tj-sticky-cart .tj-btn { font-size: 0.95rem; padding: 0.65rem 1rem; }
  [dir="rtl"] .modal-dialog { margin: 0.5rem; }
  [dir="rtl"] .modal-content { border-radius: var(--tj-radius-lg); }
  [dir="rtl"] .table-responsive { font-size: 0.85rem; }
  [dir="rtl"] .table th, 
  [dir="rtl"] .table td { padding: 0.5rem 0.4rem; }
  [dir="rtl"] .tj-breadcrumb { font-size: 0.8rem; margin-bottom: 1rem; }
  [dir="rtl"] .pagination { font-size: 0.85rem; }
  [dir="rtl"] .page-link { padding: 0.4rem 0.65rem; }
}

/* RTL Tablet and Mobile (≤991px) */
@media (max-width: 991px) {
  [dir="rtl"] .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  [dir="rtl"] .tj-navbar .navbar-collapse { padding-inline-end: 1rem !important; padding-inline-start: 0.5rem !important; }
  [dir="rtl"] .tj-navbar .nav-link { text-align: right !important; justify-content: flex-end !important; }
  [dir="rtl"] .tj-product-grid { direction: rtl !important; justify-content: flex-start !important; }
  [dir="rtl"] .tj-product-grid .tj-card { text-align: right !important; }
  [dir="rtl"] .tj-checkout-order-summary { direction: rtl !important; text-align: right !important; }
  [dir="rtl"] .tj-hero .container { 
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 1rem !important; 
    padding-left: 0.5rem !important; 
  }
  /* Checkout form RTL for tablet/mobile */
  [dir="rtl"] .tj-checkout-form .form-check { padding-right: 2rem !important; padding-left: 0 !important; }
  [dir="rtl"] .tj-checkout-form .form-check-input { margin-right: -2rem !important; margin-left: 0 !important; float: right !important; }
  [dir="rtl"] .tj-checkout-form .form-check-label { padding-right: 0.5em !important; padding-left: 0 !important; text-align: right !important; }
}

/* RTL Large Mobile/Tablet (≤767px) */
@media (max-width: 767px) {
  /* Cart page RTL */
  [dir="rtl"] .tj-cart-header { text-align: right !important; }
  [dir="rtl"] .tj-cart-empty { text-align: right !important; }
  [dir="rtl"] .tj-cart-item { direction: rtl !important; text-align: right !important; }
  [dir="rtl"] .tj-cart-item-details { text-align: right !important; min-width: 0 !important; overflow: hidden !important; }
  [dir="rtl"] .tj-cart-item-title { text-align: right !important; }
  [dir="rtl"] .tj-cart-item-qty { direction: rtl !important; min-width: 0 !important; justify-self: end !important; }
  [dir="rtl"] .tj-cart-item-total { text-align: left !important; min-width: 0 !important; overflow: hidden !important; }
  [dir="rtl"] .tj-cart-item-total .tj-card-price { overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; }
  
  /* Checkout RTL */
  [dir="rtl"] .tj-checkout-option-cards { flex-direction: column; }
  [dir="rtl"] .tj-checkout-option-card { text-align: right !important; }
  [dir="rtl"] .tj-checkout-success-actions { flex-direction: column; }
  [dir="rtl"] .tj-checkout-success-actions .tj-btn { width: 100%; }
}

/* Show sticky cart only on product page and small screens — reserve space so content is never covered */
@media (max-width: 991px) {
  .tj-page-product .tj-sticky-cart { display: flex; }
  .tj-page-product .tj-section { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0)); }
  .tj-page-product main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0)); }
}
@media (min-width: 992px) {
  .tj-sticky-cart { display: none !important; }
}

/* Entrance animations — home sections */
@keyframes tj-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.tj-animate-in {
  animation: tj-fade-up 0.6s ease forwards;
}
.tj-hero .tj-hero-inner > .row > *:first-child { animation: tj-fade-up 0.7s ease 0.1s both; }
.tj-hero .tj-hero-inner > .row > *:last-child { animation: tj-fade-up 0.7s ease 0.2s both; }
.tj-partners-strip .tj-partners-inner { animation: tj-fade-up 0.5s ease 0.15s both; }
.tj-section .tj-section-header { animation: tj-fade-up 0.5s ease both; }
.tj-section .tj-product-grid .tj-card { animation: tj-fade-up 0.5s ease both; }
.tj-section .tj-product-grid .tj-card:nth-child(1) { animation-delay: 0.05s; }
.tj-section .tj-product-grid .tj-card:nth-child(2) { animation-delay: 0.1s; }
.tj-section .tj-product-grid .tj-card:nth-child(3) { animation-delay: 0.15s; }
.tj-section .tj-product-grid .tj-card:nth-child(4) { animation-delay: 0.2s; }
.tj-section .tj-product-grid .tj-card:nth-child(5) { animation-delay: 0.25s; }
.tj-section .tj-product-grid .tj-card:nth-child(6) { animation-delay: 0.3s; }
.tj-section .tj-product-grid .tj-card:nth-child(7) { animation-delay: 0.35s; }
.tj-section .tj-product-grid .tj-card:nth-child(8) { animation-delay: 0.4s; }

/* Focus & accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Performance optimizations */
img[loading="lazy"] {
  content-visibility: auto;
}
img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}
img[data-lazy] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Smooth scroll behavior optimization */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Reduce animations on low-end devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .tj-card:hover {
    transform: translateY(-2px); /* Reduced from -4px */
  }
  .tj-service-item:hover {
    transform: translateY(-2px); /* Reduced from -3px */
  }
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--tj-gold);
  color: var(--tj-white);
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 var(--tj-radius) 0;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: top var(--tj-transition), box-shadow var(--tj-transition);
  z-index: 100;
}
.skip-link:focus {
  top: 0;
  box-shadow: var(--tj-shadow-soft);
}
[dir="rtl"] .skip-link { left: auto; right: 0; }

/* ========== Orders (frontend) — modern UI/UX ========== */
.tj-orders-section {
  padding: var(--tj-section-spacing) 0;
}
.tj-orders-header {
  margin-bottom: 2rem;
}
.tj-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tj-order-card {
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid rgba(232, 228, 222, 0.6);
  overflow: hidden;
  transition: box-shadow var(--tj-transition), border-color var(--tj-transition), transform var(--tj-transition);
}
.tj-order-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 168, 75, 0.2);
  transform: translateY(-2px);
}
.tj-order-card-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.tj-order-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.tj-order-card-number {
  font-weight: 600;
  font-size: 1rem;
  color: var(--tj-black);
  font-family: var(--tj-font-mono);
}
.tj-order-card-date {
  font-size: 0.9rem;
  color: var(--tj-text-muted);
}
.tj-order-card-total {
  font-weight: 700;
  color: var(--tj-gold-dark);
  font-size: 1.1rem;
}
.tj-order-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tj-order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.tj-order-status-pending { background: rgba(212, 168, 75, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-paid { background: rgba(184, 134, 11, 0.12); color: var(--tj-gold-dark); }
.tj-order-status-processing { background: rgba(139, 105, 20, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-shipped { background: rgba(212, 168, 75, 0.12); color: var(--tj-gold); }
.tj-order-status-delivered { background: rgba(139, 105, 20, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-cancelled { background: rgba(92, 92, 92, 0.2); color: var(--tj-text-muted); }

.tj-order-detail-page .tj-card {
  border-radius: var(--tj-radius-lg);
  overflow: hidden;
}
.tj-order-detail-summary {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, var(--tj-offwhite-warm) 0%, var(--tj-white) 100%);
  border-radius: var(--tj-radius-lg);
  border: 1px solid var(--tj-border);
}
.tj-order-detail-summary .tj-order-detail-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tj-gold-dark);
  margin-top: 0.5rem;
}
.tj-order-detail-items .table {
  margin: 0;
  border-collapse: collapse;
}
.tj-order-detail-items .table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tj-text-muted);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--tj-border);
}
.tj-order-detail-items .table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--tj-border);
  vertical-align: middle;
}
.tj-order-detail-items .table .tj-card-price {
  font-weight: 600;
  color: var(--tj-gold-dark);
}

/* Order detail page — scoped for specificity over Bootstrap */
.tj-order-detail-page .tj-order-detail-block-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tj-black);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
}
.tj-order-detail-page .tj-order-detail-block-title i {
  color: var(--tj-gold-dark);
  opacity: 0.9;
}
.tj-order-detail-page .tj-order-detail-meta {
  display: grid;
  gap: 0.75rem;
}
.tj-order-detail-page .tj-order-detail-meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tj-order-detail-page .tj-order-detail-meta-label {
  font-size: 0.875rem;
  color: var(--tj-text-muted);
  min-width: 120px;
}
.tj-order-detail-page .tj-order-detail-address p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.tj-order-detail-page .tj-order-detail-address p:last-child {
  margin-bottom: 0;
}
.tj-order-detail-page .tj-order-detail-notes {
  font-size: 0.95rem;
  color: var(--tj-text-muted);
  line-height: 1.6;
}
.tj-order-detail-page .tj-order-coupon {
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  background: var(--tj-offwhite-warm);
  border-radius: 6px;
  font-weight: 500;
}
.tj-order-detail-page .tj-order-detail-totals-card {
  background: linear-gradient(180deg, var(--tj-offwhite-warm) 0%, var(--tj-white) 100%);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-lg);
  padding: 1.35rem;
  position: sticky;
  top: 1.5rem;
}
@media (max-width: 991px) {
  .tj-order-detail-page .tj-order-detail-totals-card {
    position: static;
  }
}
.tj-order-detail-page .tj-order-detail-totals {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tj-order-detail-page .tj-order-detail-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tj-order-detail-page .tj-order-detail-totals-row:last-child {
  border-bottom: none;
}
.tj-order-detail-page .tj-order-detail-totals-discount span:last-child {
  color: var(--tj-gold-dark);
  font-weight: 500;
}
.tj-order-detail-page .tj-order-detail-totals-final {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--tj-border);
  font-size: 1.15rem;
  font-weight: 700;
}
.tj-order-detail-page .tj-order-detail-totals-final span:last-child {
  color: var(--tj-gold-dark);
}

.tj-orders-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid var(--tj-border);
}
.tj-orders-empty-icon {
  font-size: 3.5rem;
  color: var(--tj-gold);
  opacity: 0.4;
  margin-bottom: 1.25rem;
}
.tj-orders-empty h2 {
  font-family: var(--tj-font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--tj-black);
  margin: 0 0 0.5rem;
}
.tj-orders-empty p {
  color: var(--tj-text-muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

/* ========== Cart page — modern card layout, sticky summary ========== */
.tj-cart-page .container { max-width: var(--tj-container-narrow); }
.tj-cart-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--tj-border);
}
.tj-cart-header .tj-heading-1 { margin-bottom: 0; }
.tj-cart-count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--tj-text-muted);
  margin: 0;
  padding: 0.35rem 0.85rem;
  background: var(--tj-offwhite-warm);
  border-radius: var(--tj-radius-pill);
}
.tj-cart-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid var(--tj-border);
  max-width: 520px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tj-cart-empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,168,75,0.15) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--tj-gold);
  border-radius: 50%;
  font-size: 2.5rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.tj-cart-empty h2 { 
  margin: 0 0 0.75rem; 
  font-size: 1.5rem;
  color: var(--tj-black);
}
.tj-cart-empty-text {
  color: var(--tj-text-muted);
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.tj-btn-lg { 
  padding: 0.95rem 2.25rem; 
  font-size: 1.0625rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tj-btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,168,75,0.25);
}
.tj-cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 991px) {
  .tj-cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.tj-cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tj-cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-soft);
  border: 1px solid var(--tj-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tj-cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tj-gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.tj-cart-item:hover {
  box-shadow: var(--tj-shadow-card);
  border-color: rgba(212,168,75,0.2);
  transform: translateY(-2px);
}
.tj-cart-item:hover::before {
  transform: scaleY(1);
}
@media (max-width: 767px) {
  .tj-cart-header {
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
  }
  .tj-cart-empty {
    padding: 3.5rem 1.5rem;
  }
  .tj-cart-empty-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  .tj-cart-item {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem 1.25rem;
    padding: 1.25rem;
  }
  .tj-cart-item-img {
    width: 100px;
    height: 100px;
  }
  /* Keep quantity stepper always on top (LTR and RTL) so total never overlaps +/- buttons */
  .tj-cart-item-qty { 
    grid-column: 1; 
    grid-row: 2; 
    min-width: 0;
    justify-self: start;
    position: relative;
    z-index: 2;
    isolation: isolate;
  }
  .tj-cart-item-total { 
    grid-column: 2; 
    grid-row: 2; 
    align-self: center; 
    text-align: end;
    min-width: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    isolation: isolate;
  }
  .tj-cart-item-total .tj-card-price {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
  }
  .tj-cart-item-details {
    min-width: 0;
    overflow: hidden;
  }
  .tj-cart-item-unit {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tj-cart-item-remove { 
    grid-column: 1 / -1; 
    grid-row: 3; 
    justify-self: end; 
    margin-top: 0.5rem;
  }
  .tj-cart-summary {
    padding: 1.5rem;
  }
  .tj-cart-coupon-form {
    flex-direction: column;
  }
  .tj-cart-coupon-input {
    width: 100%;
  }
  .tj-cart-coupon-btn {
    width: 100%;
  }
}
.tj-cart-item-img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: var(--tj-radius);
  overflow: hidden;
  background: var(--tj-offwhite-warm);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.tj-cart-item:hover .tj-cart-item-img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.tj-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tj-cart-item:hover .tj-cart-item-img img { 
  transform: scale(1.08); 
}
.tj-cart-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tj-text-muted);
  font-size: 1.5rem;
  opacity: 0.5;
}
.tj-cart-item-details { 
  min-width: 0; 
  padding-right: 0.5rem;
}
.tj-cart-item-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.tj-cart-item-title a {
  color: var(--tj-black);
  text-decoration: none;
  transition: color 0.2s ease;
}
.tj-cart-item-title a:hover { 
  color: var(--tj-gold-dark); 
}
.tj-cart-item-variant,
.tj-cart-item-sku {
  font-size: 0.875rem;
  color: var(--tj-text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}
.tj-cart-item-customized .badge {
  border-radius: var(--tj-radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(212,168,75,0.12);
  color: var(--tj-gold-dark);
}
.tj-cart-customized-info {
  margin-top: 0.35rem;
}
.tj-cart-item-unit {
  font-size: 0.9375rem;
  color: var(--tj-gold-dark);
  font-weight: 600;
  margin: 0.75rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.tj-cart-item-unit::before {
  content: '•';
  color: var(--tj-gold);
  font-size: 1.2rem;
  line-height: 1;
}
.tj-cart-qty-form { margin: 0; }
.tj-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius);
  background: var(--tj-white);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tj-qty-stepper:focus-within {
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.1);
}
/* Modern quantity stepper variant — pill-style, softer look */
.tj-qty-stepper-modern {
  border-radius: var(--tj-radius-pill);
  border-color: var(--tj-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  background: linear-gradient(180deg, var(--tj-white) 0%, var(--tj-offwhite-warm) 100%);
}
.tj-qty-stepper-modern:focus-within {
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 4px rgba(212,168,75,0.12), 0 2px 8px rgba(0,0,0,0.04);
}
.tj-qty-stepper-modern .tj-qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--tj-text);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: background var(--tj-transition), color var(--tj-transition), transform 0.2s ease;
}
.tj-qty-stepper-modern .tj-qty-btn:hover {
  background: rgba(212,168,75,0.12);
  color: var(--tj-gold-dark);
  transform: scale(1.08);
}
.tj-qty-stepper-modern .tj-qty-btn:active {
  transform: scale(0.95);
  background: rgba(212,168,75,0.2);
}
.tj-qty-stepper-modern .tj-qty-input {
  width: 56px;
  height: 40px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tj-black);
  letter-spacing: -0.02em;
}
.tj-qty-stepper-modern .tj-qty-input:focus {
  color: var(--tj-gold-dark);
}
.tj-qty-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--tj-offwhite-warm);
  color: var(--tj-text);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  overflow: hidden;
}
/* Ensure +/- symbols are always visible (prevent overlap from adjacent content) */
.tj-qty-btn span {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.tj-qty-btn[data-action="plus"] { font-variant-numeric: normal; }
.tj-qty-btn[data-action="minus"] { font-variant-numeric: normal; }
.tj-qty-btn:hover {
  background: rgba(212,168,75,0.15);
  color: var(--tj-gold-dark);
  transform: scale(1.05);
}
.tj-qty-btn:active {
  transform: scale(0.95);
}
.tj-qty-input {
  width: 52px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--tj-black);
  -moz-appearance: textfield;
  transition: color 0.2s ease;
}
.tj-qty-input:focus {
  outline: none;
  color: var(--tj-gold-dark);
}
.tj-qty-input::-webkit-outer-spin-button,
.tj-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tj-product-card-form {
  margin-top: 0.75rem;
}
.tj-product-card-form .tj-qty-stepper {
  flex-shrink: 0;
}
/* Mobile optimizations for product card form */
@media (max-width: 576px) {
  .tj-product-card-form {
    margin-top: 0.5rem;
  }
  .tj-product-card-form .d-flex.align-items-center.gap-2 {
    width: 100%;
    gap: 0.5rem !important;
  }
  .tj-product-card-form .tj-qty-stepper {
    flex-shrink: 0;
    min-width: auto;
  }
  .tj-product-card-form .flex-grow-1 {
    flex: 1 1 auto;
    min-width: 0;
  }
}
.tj-cart-item-total .tj-card-price { 
  font-size: 1.1875rem; 
  white-space: nowrap;
  font-weight: 700;
  color: var(--tj-black);
}
.tj-cart-remove-form { margin: 0; }
.tj-cart-remove-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--tj-radius);
  background: transparent;
  color: var(--tj-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.tj-cart-remove-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--tj-radius);
  background: rgba(45, 45, 45, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tj-cart-remove-btn:hover {
  color: var(--tj-black);
  transform: scale(1.1);
}
.tj-cart-remove-btn:hover::before {
  opacity: 1;
}
.tj-cart-remove-btn:active {
  transform: scale(0.95);
}
.tj-cart-remove-btn i {
  position: relative;
  z-index: 1;
}
.tj-cart-summary-wrap {
  position: sticky;
  top: 2rem;
}
@media (max-width: 991px) {
  .tj-cart-summary-wrap { position: static; }
}
.tj-cart-summary {
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-card);
  border: 1px solid var(--tj-border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.tj-cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tj-gold) 0%, rgba(212,168,75,0.5) 100%);
}
.tj-cart-summary-title {
  font-family: var(--tj-font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--tj-black);
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--tj-border);
}
.tj-cart-coupon-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tj-cart-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1.125rem;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius);
  font-size: 0.9375rem;
  font-family: var(--tj-font-body);
  transition: all 0.2s ease;
  background: var(--tj-white);
}
.tj-cart-coupon-input:focus {
  outline: none;
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.1);
}
.tj-cart-coupon-btn { 
  flex-shrink: 0; 
  padding: 0.75rem 1.5rem; 
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.tj-cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.12) 0%, rgba(184, 134, 11, 0.08) 100%);
  border: 2px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--tj-radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--tj-gold-dark);
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.tj-cart-coupon-applied i { 
  margin-right: 0.5rem; 
  font-size: 1rem;
}
.tj-cart-coupon-remove {
  background: none;
  border: none;
  color: var(--tj-gold-dark);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}
.tj-cart-coupon-remove:hover { 
  color: var(--tj-gold); 
  text-decoration: none;
}
.tj-cart-summary-rows {
  margin: 0 0 1.5rem;
  padding: 0;
  min-height: 1px;
}
.tj-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  transition: padding 0.2s ease;
  gap: 0.75rem;
  min-width: 0;
}
.tj-cart-summary-row dt,
.tj-cart-summary-row dd {
  min-width: 0;
}
.tj-cart-summary-row:hover {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.tj-cart-summary-row dt { 
  margin: 0; 
  font-weight: 500; 
  color: var(--tj-text); 
}
.tj-cart-summary-row dd { 
  margin: 0; 
  font-weight: 600;
  color: var(--tj-black);
}
.tj-cart-summary-row-discount dd { 
  color: var(--tj-gold-dark); 
  font-weight: 700;
  font-size: 1rem;
}
.tj-cart-summary-note {
  padding: 0.5rem 0;
  margin: 0.5rem 0 0;
  border-top: 1px dashed var(--tj-border);
}
.tj-cart-summary-note small { 
  color: var(--tj-text-muted); 
  font-size: 0.8125rem;
  line-height: 1.5;
  display: block;
}
.tj-cart-summary-row-total {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--tj-gold-light);
  font-size: 1.1875rem;
  font-weight: 700;
}
.tj-cart-summary-row-total dt { 
  font-weight: 700;
  color: var(--tj-black);
  font-size: 1.1875rem;
}
.tj-cart-summary-row-total dd {
  font-size: 1.375rem;
  color: var(--tj-gold-dark);
}
.tj-cart-checkout-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--tj-radius);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tj-cart-checkout-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.tj-cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,75,0.3);
}
.tj-cart-checkout-btn:hover::before {
  width: 300px;
  height: 300px;
}
.tj-cart-checkout-btn:active {
  transform: translateY(0);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Checkout — modern UI (multilingual + RTL) ========== */
.tj-checkout-section {
  padding: var(--tj-section-spacing) 0;
  background: linear-gradient(180deg, var(--tj-offwhite-warm) 0%, var(--tj-offwhite) 100%);
}
.tj-checkout-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.tj-checkout-header .tj-heading-1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tj-checkout-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.tj-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--tj-white);
  border-radius: var(--tj-radius-lg);
  box-shadow: var(--tj-shadow-soft);
  border: 1px solid var(--tj-border);
  transition: box-shadow var(--tj-transition);
}
.tj-checkout-steps:hover {
  box-shadow: var(--tj-shadow-card);
}
.tj-checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--tj-radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tj-text-muted);
  cursor: pointer;
  transition: color var(--tj-transition), background var(--tj-transition);
}
.tj-checkout-step:focus-visible {
  outline: 2px solid var(--tj-gold-light);
  outline-offset: 2px;
}
.tj-checkout-step-active {
  color: var(--tj-gold-dark);
  background: rgba(212,168,75,0.14);
}
.tj-checkout-step-completed {
  color: var(--tj-gold-dark);
}
.tj-checkout-step-completed:hover {
  background: rgba(212,168,75,0.08);
}
.tj-checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--tj-border);
  color: var(--tj-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--tj-transition), color var(--tj-transition);
}
.tj-checkout-step-active .tj-checkout-step-num {
  background: var(--tj-gold);
  color: var(--tj-white);
}
.tj-checkout-step-completed .tj-checkout-step-num {
  background: var(--tj-gold-dark);
  color: var(--tj-white);
}
.tj-checkout-step-line {
  width: 28px;
  height: 2px;
  background: var(--tj-border);
  border-radius: 1px;
  flex-shrink: 0;
}
[dir="rtl"] .tj-checkout-steps {
  flex-direction: row-reverse;
}
[dir="rtl"] .tj-checkout-step-line {
  transform: scaleX(-1);
}
[dir="rtl"] .tj-checkout-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.tj-checkout-step-panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--tj-transition), transform var(--tj-transition);
}
.tj-checkout-has-steps .tj-checkout-step-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}
.tj-checkout-has-steps .tj-checkout-step-panel.tj-checkout-step-panel-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.tj-checkout-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
[dir="rtl"] .tj-checkout-step-actions {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.tj-checkout-block {
  margin-bottom: 1.75rem;
}
.tj-checkout-block-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
[dir="rtl"] .tj-checkout-block-header {
  flex-direction: row-reverse;
  text-align: right;
}
.tj-checkout-block-header .tj-heading-3 {
  font-weight: 600;
  color: var(--tj-black);
}
.tj-checkout-block-subtitle {
  font-size: 0.875rem;
  line-height: 1.45;
}
.tj-checkout-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--tj-radius);
  background: linear-gradient(135deg, rgba(212,168,75,0.15) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--tj-gold-dark);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.tj-checkout-address-list { display: flex; flex-direction: column; gap: 0.75rem; }
.tj-checkout-address-card {
  display: block;
  cursor: pointer;
  margin: 0;
}
.tj-checkout-address-card input { position: absolute; opacity: 0; pointer-events: none; }
.tj-checkout-address-card-inner {
  display: block;
  padding: 1rem 1.25rem;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius);
  transition: border-color var(--tj-transition), background var(--tj-transition), box-shadow var(--tj-transition);
}
.tj-checkout-address-card-inner strong { font-size: 0.95rem; }
.tj-checkout-address-card-inner small { font-size: 0.8125rem; }
.tj-checkout-address-card:hover .tj-checkout-address-card-inner { border-color: rgba(212,168,75,0.4); }
.tj-checkout-address-card input:checked + .tj-checkout-address-card-inner {
  border-color: var(--tj-gold);
  background: rgba(212,168,75,0.06);
  box-shadow: 0 0 0 1px var(--tj-gold);
}
.tj-checkout-add-address {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tj-gold-dark);
}
.tj-checkout-add-address:hover { color: var(--tj-gold); }
.tj-form-hint { display: block; margin-top: 0.35rem; font-size: 0.8125rem; }

.tj-checkout-option-cards { display: flex; flex-wrap: wrap; gap: 1rem; }
.tj-checkout-option-card {
  flex: 1 1 200px;
  min-width: 0;
  cursor: pointer;
  margin: 0;
}
.tj-checkout-option-card-single { flex: 1 1 100%; max-width: 280px; }
.tj-checkout-option-card input { position: absolute; opacity: 0; pointer-events: none; }
.tj-checkout-option-card-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius);
  transition: border-color var(--tj-transition), background var(--tj-transition);
}
.tj-checkout-option-card-inner .tj-checkout-option-price {
  margin-inline-start: auto;
  font-weight: 600;
  color: var(--tj-gold-dark);
}
.tj-checkout-option-title { font-weight: 600; width: 100%; font-size: 0.95rem; }
.tj-checkout-option-desc { font-size: 0.8125rem; color: var(--tj-text-muted); }
.tj-checkout-option-icon { font-size: 1.25rem; color: var(--tj-gold-dark); }
.tj-checkout-option-card:hover .tj-checkout-option-card-inner { border-color: rgba(212,168,75,0.4); }
.tj-checkout-option-card input:checked + .tj-checkout-option-card-inner {
  border-color: var(--tj-gold);
  background: rgba(212,168,75,0.06);
}
.tj-checkout-payment-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--tj-radius);
  font-size: 0.875rem;
  line-height: 1.55;
}
[dir="rtl"] .tj-checkout-payment-note {
  flex-direction: row-reverse;
  text-align: right;
}
.tj-checkout-payment-note-info {
  background: var(--tj-info-bg);
  color: var(--tj-text);
}
.tj-checkout-payment-note-card-next {
  background: var(--tj-info-bg, rgba(0,0,0,0.04));
  color: var(--tj-text);
}

/* Payment method step: two clear options (Online pay + Cash on delivery) */
.tj-checkout-step-payment .tj-checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 575px) {
  .tj-checkout-step-payment .tj-checkout-payment-methods {
    grid-template-columns: 1fr;
  }
}
.tj-checkout-payment-method-card {
  cursor: pointer;
  margin: 0;
  display: block;
}
.tj-checkout-payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tj-checkout-payment-method-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--tj-border);
  border-radius: var(--tj-radius);
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 120px;
}
.tj-checkout-payment-method-card:hover .tj-checkout-payment-method-inner {
  border-color: rgba(212, 168, 75, 0.5);
}
.tj-checkout-payment-method-card input:checked + .tj-checkout-payment-method-inner {
  border-color: var(--tj-gold);
  background: rgba(212, 168, 75, 0.08);
  box-shadow: 0 0 0 1px var(--tj-gold);
}
.tj-checkout-payment-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--tj-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.tj-checkout-payment-method-icon-online {
  background: rgba(212, 168, 75, 0.15);
  color: var(--tj-gold-dark);
}
.tj-checkout-payment-method-icon-cod {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.tj-checkout-payment-method-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--tj-text);
  line-height: 1.3;
}
.tj-checkout-payment-method-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tj-checkout-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: 6px;
  background: #f8f9fa;
  color: #1f2937;
  font-size: 1rem;
}
.tj-checkout-payment-badge i {
  font-size: 1.1rem;
}
.tj-checkout-payment-method-desc {
  font-size: 0.8125rem;
  color: var(--tj-text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}
[dir="rtl"] .tj-checkout-payment-method-inner {
  align-items: flex-end;
  text-align: right;
}

.tj-payment-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
}

.tj-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #111827;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.tj-payment-badge i {
  font-size: 1rem;
}

.tj-product-payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tj-checkout-submit-wrap { margin-top: 0.5rem; }
.tj-checkout-submit-sticky {
  position: sticky;
  bottom: 1.5rem;
  z-index: 10;
  background: var(--tj-white);
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: var(--tj-radius-lg);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.tj-checkout-submit-btn { padding: 0.85rem 2rem; font-size: 1rem; min-height: 52px; }
.tj-checkout-trust { font-size: 0.8125rem; }
.tj-checkout-summary-sticky { position: sticky; top: calc(var(--tj-section-spacing, 2rem) + 1rem); }
.tj-checkout-summary-items { list-style: none; padding: 0; margin: 0 0 1rem 0; border-bottom: 1px solid var(--tj-border); padding-bottom: 1rem; }
.tj-checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}
.tj-checkout-summary-item-name em { font-style: normal; color: var(--tj-text-muted); font-weight: 400; }
.tj-checkout-summary-item-price { font-weight: 600; color: var(--tj-gold-dark); flex-shrink: 0; }
.tj-checkout-summary-totals { display: flex; flex-direction: column; gap: 0.5rem; }
.tj-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}
.tj-checkout-summary-row .tj-card-price { font-weight: 600; }
.tj-checkout-summary-discount .tj-card-price { color: var(--tj-gold-dark); }
.tj-checkout-summary-total { font-size: 1.0625rem; font-weight: 600; padding-top: 0.75rem; margin-top: 0.25rem; border-top: 2px solid var(--tj-border); }
.tj-checkout-summary-total .tj-card-price { font-size: 1.15rem; color: var(--tj-gold-dark); }
.tj-checkout-order-summary .tj-card-body { border-radius: var(--tj-radius-lg); }
.tj-checkout-form-wrap .tj-form-control {
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  transition: border-color var(--tj-transition);
}
.tj-checkout-form-wrap .tj-form-control:focus {
  outline: none;
  border-color: var(--tj-gold-light);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.15);
}
.tj-checkout-form-wrap .form-check-input:focus { box-shadow: 0 0 0 2px rgba(212,168,75,0.35); }
.tj-checkout-form-wrap label.cursor-pointer,
.tj-checkout-form-wrap .form-check-label { cursor: pointer; }
.tj-checkout-submit-btn-mobile { min-height: 52px; font-size: 1rem; }
.tj-checkout-submit-sticky,
.tj-checkout-submit-btn-mobile {
  transition: opacity var(--tj-transition), transform var(--tj-transition), visibility var(--tj-transition);
}
.tj-checkout-has-steps .tj-checkout-submit-sticky:not(.tj-checkout-submit-visible),
.tj-checkout-has-steps .tj-checkout-submit-btn-mobile:not(.tj-checkout-submit-visible) {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 991px) {
  .tj-checkout-summary-sticky { position: static; }
  .tj-checkout-submit-sticky { position: static; box-shadow: none; margin-left: 0; margin-right: 0; }
  .tj-checkout-form .tj-form-control { font-size: 16px; }
}

/* Checkout success page */
.tj-checkout-success-section {
  padding: var(--tj-section-spacing) 0;
  background: linear-gradient(180deg, var(--tj-offwhite-warm) 0%, var(--tj-offwhite) 100%);
}
.tj-checkout-success-container { max-width: 720px; margin: 0 auto; }
.tj-checkout-success-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
[dir="rtl"] .tj-checkout-success-hero {
  text-align: center;
}
.tj-checkout-success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
  color: var(--tj-gold-dark);
  font-size: 1.75rem;
  animation: tj-checkout-success-pulse 0.6s var(--tj-ease-out);
}
@keyframes tj-checkout-success-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.tj-checkout-success-message {
  font-size: 1.0625rem;
  color: var(--tj-text-muted);
  line-height: 1.5;
}
.tj-checkout-success-order-card .tj-card-body { border-radius: var(--tj-radius-lg); }
.tj-checkout-success-order-label { font-size: 0.85rem; font-weight: 500; color: var(--tj-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tj-checkout-success-order-number { font-size: 1.1rem; font-weight: 600; padding: 0.25rem 0.5rem; background: var(--tj-offwhite-warm); border-radius: var(--tj-radius); }
.tj-checkout-success-order-total { font-size: 1.35rem; font-weight: 700; color: var(--tj-gold-dark); }
.tj-checkout-success-date { font-size: 0.875rem; }
.tj-checkout-success-block .tj-checkout-block-icon {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.9rem;
}
.tj-checkout-success-block-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.tj-checkout-success-dl { margin: 0; }
.tj-checkout-success-dl dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tj-text-muted); margin-top: 0.75rem; margin-bottom: 0.2rem; }
.tj-checkout-success-dl dt:first-child { margin-top: 0; }
.tj-checkout-success-dl dd { margin: 0; font-size: 0.95rem; }
[dir="rtl"] .tj-checkout-success-block-header {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .tj-checkout-success-items-header,
[dir="rtl"] .tj-checkout-success-item {
  text-align: right;
}
.tj-checkout-success-items-header {
  padding: 1rem 1.25rem;
  background: var(--tj-offwhite-warm);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--tj-border);
}
.tj-checkout-success-items-list { list-style: none; padding: 0; margin: 0; }
.tj-checkout-success-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tj-border);
  font-size: 0.9375rem;
}
.tj-checkout-success-item:last-child { border-bottom: none; }
.tj-checkout-success-item-name { flex: 1; min-width: 0; }
.tj-checkout-success-item-qty { color: var(--tj-text-muted); }
.tj-checkout-success-item-price { font-weight: 600; color: var(--tj-gold-dark); flex-shrink: 0; }
.tj-checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.tj-checkout-success-info-box {
  margin-top: 1.5rem;
}
[dir="rtl"] .tj-checkout-success-info-box .d-flex {
  flex-direction: row-reverse;
  text-align: right;
}
.tj-checkout-success-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--tj-radius);
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(212, 168, 75, 0.1) 100%);
  color: var(--tj-gold-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tj-order-status-pending { background: rgba(212, 168, 75, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-paid { background: rgba(184, 134, 11, 0.12); color: var(--tj-gold-dark); }
.tj-order-status-processing { background: rgba(139, 105, 20, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-shipped { background: rgba(212, 168, 75, 0.12); color: var(--tj-gold); }
.tj-order-status-delivered { background: rgba(139, 105, 20, 0.15); color: var(--tj-gold-dark); }
.tj-order-status-cancelled { background: rgba(92, 92, 92, 0.2); color: var(--tj-text-muted); }

/* Form validation improvements */
.tj-checkout-form-wrap .tj-form-control.is-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23b91c1c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23b91c1c' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.25rem;
}
[dir="rtl"] .tj-checkout-form-wrap .tj-form-control.is-invalid {
  background-position: left 1rem center;
  padding-inline-end: 1rem;
  padding-inline-start: 2.25rem;
}
.tj-checkout-form-wrap .tj-form-control.is-invalid:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
}
.tj-checkout-form-wrap .invalid-feedback {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  color: #b91c1c;
}

/* Improved shipping option cards */
.tj-checkout-option-card-inner {
  position: relative;
}
.tj-checkout-option-card input:checked + .tj-checkout-option-card-inner::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--tj-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-checkout-option-card input:checked + .tj-checkout-option-card-inner::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tj-white);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

/* Loading state for submit button */
.tj-checkout-submit-btn:disabled,
.tj-checkout-submit-btn-mobile:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Better spacing and typography */
.tj-checkout-form-wrap .tj-form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--tj-text);
}
.tj-checkout-form-wrap .tj-form-label .text-danger {
  margin-left: 0.25rem;
}

/* Improved address cards */
.tj-checkout-address-card input:checked + .tj-checkout-address-card-inner::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--tj-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-checkout-address-card input:checked + .tj-checkout-address-card-inner::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tj-white);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}
.tj-checkout-address-card-inner {
  position: relative;
}

/* Checkout review block (step 4) */
.tj-checkout-review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tj-checkout-review-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tj-border);
}
.tj-checkout-review-row:last-child { border-bottom: none; }
.tj-checkout-review-label {
  font-weight: 500;
  color: var(--tj-text-muted);
  font-size: 0.875rem;
}
.tj-checkout-review-value {
  text-align: end;
  font-size: 0.9375rem;
}
[dir="rtl"] .tj-checkout-review-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .tj-checkout-review-value {
  text-align: start;
}

/* Responsive improvements */
@media (max-width: 991px) {
  .tj-checkout-header { margin-bottom: 2rem; }
  .tj-checkout-step { padding: 0.4rem 0.65rem; font-size: 0.8125rem; }
  .tj-checkout-step-num { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
}
@media (max-width: 767px) {
  .tj-checkout-option-cards {
    flex-direction: column;
  }
  .tj-checkout-option-card {
    flex: 1 1 100%;
  }
  .tj-checkout-success-actions {
    flex-direction: column;
  }
  .tj-checkout-success-actions .tj-btn {
    width: 100%;
  }
  .tj-checkout-step-actions {
    flex-direction: column;
    width: 100%;
  }
  .tj-checkout-step-actions .tj-btn {
    width: 100%;
  }
  [dir="rtl"] .tj-checkout-step-actions {
    flex-direction: column;
  }
}
@media (max-width: 575px) {
  .tj-checkout-steps { padding: 0.75rem 0.5rem; gap: 0.35rem; }
  .tj-checkout-step-label { display: none; }
  .tj-checkout-step-num { width: 1.75rem; height: 1.75rem; }
}

/* ========== Auth Pages — Modern Login/Register UI ========== */
.tj-auth-form {
  max-width: 100%;
}
/* RTL-safe form icons (inset-inline-end auto-flips in RTL) */
.tj-form-icon-end {
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tj-text-muted);
  pointer-events: none;
}
.tj-form-icon-btn {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--tj-text-muted);
  text-decoration: none;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem;
}
.tj-form-icon-btn:hover {
  color: var(--tj-gold-dark);
}
.tj-form-icon-btn:focus-visible {
  outline: 2px solid var(--tj-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.tj-form-icon-btn:focus:not(:focus-visible) {
  outline: none;
}
.tj-caps-lock-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tj-gold-dark, #a67c00);
  padding: 0.5rem 0.75rem;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tj-caps-lock-warning[hidden] {
  display: none !important;
}
.tj-auth-form .tj-form-control {
  padding-inline-end: 3rem;
  transition: all var(--tj-transition);
}
.tj-auth-form .position-relative .fas.fa-envelope,
.tj-auth-form .position-relative .fas.fa-user {
  transition: color var(--tj-transition);
}
.tj-auth-form .tj-form-control:focus ~ .fas {
  color: var(--tj-gold);
}
.tj-auth-form .btn-link {
  transition: color var(--tj-transition);
}
.tj-auth-form .btn-link:hover {
  color: var(--tj-gold-dark);
}
.tj-auth-form .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--tj-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--tj-transition);
}
.tj-auth-form .form-check-input:checked {
  background-color: var(--tj-gold);
  border-color: var(--tj-gold);
}
.tj-auth-form .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
  border-color: var(--tj-gold);
}
.tj-auth-form .form-check-label {
  cursor: pointer;
  user-select: none;
  font-size: 0.9375rem;
  color: var(--tj-text);
  transition: color var(--tj-transition);
}
.tj-auth-form .form-check:hover .form-check-label {
  color: var(--tj-gold-dark);
}
.tj-auth-form .alert {
  padding: 0.875rem 1rem;
  border-left: 3px solid;
  animation: slideInDown 0.3s ease-out;
}
.tj-auth-form .alert-danger {
  border-left-color: var(--tj-black);
}
.tj-auth-form .alert-info {
  border-left-color: var(--tj-gold-light);
}
.tj-auth-form .alert-success {
  border-left-color: var(--tj-gold);
}
.tj-auth-form .alert-warning {
  border-left-color: var(--tj-gold-dark);
}
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tj-section .tj-card {
  max-width: 480px;
  margin: 0 auto;
}
.tj-section .tj-card-body {
  padding: 2.5rem;
}
@media (max-width: 576px) {
  .tj-section .tj-card-body {
    padding: 1.75rem 1.5rem;
  }
}
/* Auth pages (login/register): ensure bottom section visible on mobile — no clipping, enough padding */
@media (max-width: 991px) {
  .tj-section:has(.tj-auth-form) {
    padding-bottom: 2.5rem;
  }
  .tj-section:has(.tj-auth-form) .tj-card {
    overflow: visible;
  }
}
@media (max-width: 576px) {
  .tj-section:has(.tj-auth-form) {
    padding-bottom: 3rem;
  }
}
.tj-auth-form .form-text {
  color: var(--tj-text-muted);
  line-height: 1.5;
}
.tj-auth-form .form-text.text-muted {
  opacity: 0.85;
}
[dir="rtl"] .tj-auth-form .alert {
  border-left: none;
  border-right: 3px solid;
}

/* Content styling for CMS pages */
.tj-content {
  line-height: 1.75;
  color: var(--tj-text);
}
.tj-content h2,
.tj-content h3,
.tj-content h4 {
  font-family: var(--tj-font-heading);
  color: var(--tj-black);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.tj-content h2 { font-size: 1.5rem; }
.tj-content h3 { font-size: 1.25rem; }
.tj-content h4 { font-size: 1.1rem; }
.tj-content p {
  margin-bottom: 1rem;
}
.tj-content ul,
.tj-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
[dir="rtl"] .tj-content ul,
[dir="rtl"] .tj-content ol {
  padding-left: 0;
  padding-right: 1.5rem;
}
.tj-content a {
  color: var(--tj-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tj-content a:hover {
  color: var(--tj-gold);
}

/* Icon circle for contact page */
.tj-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,168,75,0.12) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--tj-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   TJH Loader — Cute logo-style (F-loop + gold needle)
   ========================================================================== */
.tj-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(45, 45, 45, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}
.tj-loader-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.tj-loader-overlay.is-visible .tj-loader-content {
  opacity: 1;
  transform: scale(1);
}
.tj-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff 0%, var(--tj-offwhite-warm) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(184, 134, 11, 0.06);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.tj-loader-spinner {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(184, 134, 11, 0.12));
}
.tj-loader-overlay .tj-loader-spinner {
  width: 88px;
  height: 88px;
}
.tj-loader-spinner svg,
.tj-loader-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Softer circle, warm ring, gentle loop & needle */
.tj-loader-logo-bg {
  fill: var(--tj-black-soft);
}
.tj-loader-logo-ring {
  stroke: rgba(212, 168, 75, 0.4);
  stroke-width: 1.5;
}
.tj-loader-logo-loop {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.8;
  stroke-linecap: round;
}
.tj-loader-needle-eye,
.tj-loader-needle-body {
  fill: var(--tj-gold-light);
  filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.2));
}
.tj-loader-needle {
  transform-origin: 40px 40px;
  animation: tj-loader-needle-spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes tj-loader-needle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.tj-loader-label {
  margin: 1.15rem 0 0;
  font-family: var(--tj-font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--tj-text-muted);
  letter-spacing: 0.06em;
}
.tj-loader-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  min-height: 140px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--tj-offwhite) 0%, var(--tj-offwhite-warm) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.tj-loader-inline .tj-loader-spinner {
  width: 56px;
  height: 56px;
}
.tj-loader-inline .tj-loader-label {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
@media (prefers-reduced-motion: reduce) {
  .tj-loader-overlay,
  .tj-loader-overlay .tj-loader-content {
    transition-duration: 0.2s;
  }
  .tj-loader-needle {
    animation-duration: 2.2s;
  }
}

/* ==========================================================================
   Birthday Landing Animation — Elegant & Smooth Design
   Premium UI/UX with fluid animations
   ========================================================================== */
.tj-landing-animation {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              visibility 0.8s ease;
  will-change: opacity;
  overflow: hidden;
}
.tj-landing-animation.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tj-landing-animation.is-exiting {
  opacity: 0;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Elegant black background with subtle gradients */
.tj-landing-animation-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 150% 120% at 50% -10%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 50%),
    radial-gradient(ellipse 120% 100% at 50% 110%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 1) 50%);
}
.tj-landing-bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, 
      rgba(0, 0, 0, 1) 0%,
      rgba(5, 5, 5, 0.98) 25%,
      rgba(0, 0, 0, 0.97) 50%,
      rgba(8, 8, 8, 0.98) 75%,
      rgba(0, 0, 0, 1) 100%
    ),
    radial-gradient(ellipse at 20% 30%, rgba(212, 168, 75, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(184, 134, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at center, rgba(212, 168, 75, 0.05) 0%, transparent 60%);
  background-size: 100% 200%, 100% 100%, 100% 100%, 100% 100%;
  animation: tj-landing-gradient-shift 20s ease-in-out infinite;
  will-change: background-position;
}
@keyframes tj-landing-gradient-shift {
  0%, 100% { 
    background-position: 0% 0%, 20% 30%, 80% 70%, center; 
  }
  50% { 
    background-position: 0% 100%, 30% 40%, 70% 60%, center; 
  }
}

/* Elegant light rays */
.tj-landing-light-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease 0.5s;
}
.tj-landing-animation.is-active .tj-landing-light-rays {
  opacity: 1;
}
.tj-landing-ray {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(212, 168, 75, 0.4) 20%,
    rgba(255, 220, 120, 0.6) 50%,
    rgba(212, 168, 75, 0.4) 80%,
    transparent 100%
  );
  transform-origin: center;
  animation: tj-landing-ray-rotate 25s linear infinite;
  box-shadow: 0 0 10px rgba(212, 168, 75, 0.3);
}
.tj-landing-ray-1 {
  left: 20%;
  animation-delay: 0s;
}
.tj-landing-ray-2 {
  left: 50%;
  width: 3px;
  animation-delay: -8s;
  animation-duration: 30s;
}
.tj-landing-ray-3 {
  left: 80%;
  animation-delay: -16s;
}
@keyframes tj-landing-ray-rotate {
  0% { transform: rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { transform: rotate(360deg); opacity: 0.3; }
}

/* Floating orbs for depth */
.tj-landing-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.tj-landing-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.3) 0%, rgba(184, 134, 11, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  opacity: 0;
  animation: tj-landing-orb-float 12s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(212, 168, 75, 0.2);
}
.tj-landing-orb-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.tj-landing-orb-2 {
  width: 250px;
  height: 250px;
  bottom: 15%;
  right: 15%;
  animation-delay: -4s;
  animation-duration: 15s;
}
.tj-landing-orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
  animation-duration: 18s;
}
.tj-landing-animation.is-active .tj-landing-orb {
  opacity: 1;
}
@keyframes tj-landing-orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Particle canvas with modern effects */
.tj-landing-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-in 0.5s;
  will-change: opacity;
}
.tj-landing-animation.is-active .tj-landing-particles {
  opacity: 0.7;
}

/* Fireworks canvas */
.tj-landing-fireworks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tj-landing-animation.is-active .tj-landing-fireworks {
  opacity: 1;
  transition-delay: 0.1s;
}

/* Elegant skip button */
.tj-landing-skip {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--tj-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.tj-landing-skip:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1) rotate(0deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 168, 75, 0.3);
}
.tj-landing-skip:active {
  transform: scale(1) rotate(0deg);
}
.tj-landing-skip svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.tj-landing-skip:hover svg {
  transform: rotate(90deg);
}
.tj-landing-animation.is-active .tj-landing-skip {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.6s;
}

/* Elegant content container */
.tj-landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 3rem;
  max-width: 95vw;
  width: 100%;
  opacity: 0;
  transform: scale(0.9) translateY(50px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
  will-change: opacity, transform;
}
.tj-landing-animation.is-active .tj-landing-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Elegant text container */
.tj-landing-text-container {
  margin-bottom: 6rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4rem 3rem;
  width: 100%;
  max-width: 1000px;
}
.tj-landing-text-reveal {
  position: relative;
  z-index: 2;
  width: 100%;
}
.tj-landing-text-decoration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 168, 75, 0.5) 20%,
    rgba(255, 220, 120, 0.8) 50%,
    rgba(212, 168, 75, 0.5) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 1s ease 1.5s, width 1s ease 1.5s;
  box-shadow: 0 0 10px rgba(212, 168, 75, 0.5);
}
.tj-landing-animation.is-active .tj-landing-text-decoration {
  opacity: 1;
  width: 300px;
}
.tj-landing-text {
  font-family: var(--tj-font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--tj-gold-dark);
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px) scale(0.88);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s, 
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
  will-change: opacity, transform;
}
.tj-landing-animation.is-active .tj-landing-text {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tj-landing-text-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(212, 168, 75, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  filter: blur(40px);
  z-index: -1;
  animation: tj-landing-text-glow-pulse 3s ease-in-out infinite;
  transition: opacity 1s ease 0.8s;
}
.tj-landing-animation.is-active .tj-landing-text-glow {
  opacity: 1;
}
@keyframes tj-landing-text-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}
/* Gradient text effect - applied only when supported */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .tj-landing-text {
    background: linear-gradient(135deg, 
      var(--tj-gold-dark) 0%, 
      var(--tj-gold) 50%, 
      var(--tj-gold-dark) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tj-landing-text-gradient 3s ease infinite;
  }
}
@keyframes tj-landing-text-gradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.tj-landing-text-line {
  display: inline-block;
  position: relative;
  color: var(--tj-gold-dark);
}
/* Gradient text effect - ensure child inherits gradient */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .tj-landing-text-line {
    background: linear-gradient(135deg, 
      var(--tj-gold-dark) 0%, 
      var(--tj-gold) 50%, 
      var(--tj-gold-dark) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tj-landing-text-gradient 3s ease infinite;
  }
}
.tj-landing-text-line::after {
  content: '|';
  display: inline-block;
  margin-left: 0.2em;
  opacity: 1;
  animation: tj-landing-cursor-blink 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  color: var(--tj-gold);
  font-weight: 400;
  vertical-align: baseline;
}
.tj-landing-animation.is-complete .tj-landing-text-line::after {
  display: none;
}
@keyframes tj-landing-cursor-blink {
  0%, 45% { opacity: 1; transform: scaleY(1); }
  50%, 95% { opacity: 0.3; transform: scaleY(0.8); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* Elegant logo reveal */
.tj-landing-logo-container {
  margin-top: 5rem;
  position: relative;
  opacity: 0;
  transform: scale(0.75) translateY(60px);
  transition: opacity 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s,
              transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s;
  will-change: opacity, transform;
  z-index: 3;
}
.tj-landing-animation.is-active .tj-landing-logo-container {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.tj-landing-logo-ring {
  position: absolute;
  inset: -50px;
  border: 2px solid rgba(212, 168, 75, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  animation: tj-landing-logo-ring-expand 2s ease-out infinite;
  transition: opacity 0.8s ease 1.8s;
}
.tj-landing-animation.is-active .tj-landing-logo-ring {
  opacity: 1;
}
@keyframes tj-landing-logo-ring-expand {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
.tj-landing-logo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  filter: blur(30px);
  animation: tj-landing-logo-glow-pulse 4s ease-in-out infinite;
  z-index: -1;
  transition: opacity 1s ease 1.8s;
}
.tj-landing-animation.is-active .tj-landing-logo-glow {
  opacity: 1;
}
@keyframes tj-landing-logo-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.6; }
}
.tj-landing-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--tj-gold) 20%, transparent)) 
          drop-shadow(0 4px 12px color-mix(in srgb, var(--tj-gold-light) 15%, transparent));
  animation: tj-landing-logo-glow 3s ease-in-out infinite,
              tj-landing-logo-float 4s ease-in-out infinite;
  will-change: filter, transform;
  transition: transform 0.3s ease;
}
.tj-landing-logo-img:hover {
  transform: scale(1.05);
}
.tj-landing-logo-text {
  font-family: var(--tj-font-heading);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--tj-gold-dark) 0%, var(--tj-gold) 50%, var(--tj-gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 20px color-mix(in srgb, var(--tj-gold) 30%, transparent);
  animation: tj-landing-logo-text-shine 4s ease-in-out infinite;
  will-change: background-position;
}
@keyframes tj-landing-logo-glow {
  0%, 100% { 
    filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--tj-gold) 20%, transparent)) 
            drop-shadow(0 4px 12px color-mix(in srgb, var(--tj-gold-light) 15%, transparent)); 
  }
  50% { 
    filter: drop-shadow(0 16px 50px color-mix(in srgb, var(--tj-gold) 30%, transparent)) 
            drop-shadow(0 6px 18px color-mix(in srgb, var(--tj-gold-light) 25%, transparent)); 
  }
}
@keyframes tj-landing-logo-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes tj-landing-logo-text-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Enhanced confetti/sparkle effects */
.tj-landing-logo-container::before,
.tj-landing-logo-container::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, var(--tj-gold-light) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: tj-landing-sparkle 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 16px color-mix(in srgb, var(--tj-gold-light) 70%, transparent);
}
.tj-landing-logo-container::before {
  top: -40px;
  left: 20%;
  animation-delay: 2s;
}
.tj-landing-logo-container::after {
  top: -40px;
  right: 20%;
  animation-delay: 2.3s;
}
@keyframes tj-landing-sparkle {
  0% {
    opacity: 0;
    transform: scale(0) translateY(0) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: scale(1.3) translateY(-20px) rotate(180deg);
  }
  70% {
    opacity: 0.9;
    transform: scale(0.9) translateY(-40px) rotate(360deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.4) translateY(-60px) rotate(540deg);
  }
}

/* Elegant footer message */
.tj-landing-footer-message {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3s,
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3s;
  pointer-events: none;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 4;
}
.tj-landing-animation.is-active .tj-landing-footer-message {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tj-landing-footer-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 168, 75, 0.6) 30%,
    rgba(255, 220, 120, 0.8) 50%,
    rgba(212, 168, 75, 0.6) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.8s ease 3.5s, transform 0.8s ease 3.5s;
  box-shadow: 0 0 8px rgba(212, 168, 75, 0.4);
}
.tj-landing-animation.is-active .tj-landing-footer-line {
  opacity: 1;
  transform: scaleX(1);
}
.tj-landing-footer-text {
  font-family: var(--tj-font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--tj-text);
  margin: 0;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tj-landing-skip {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }
  .tj-landing-skip svg {
    width: 16px;
    height: 16px;
  }
  .tj-landing-content {
    padding: 4rem 2rem;
  }
  .tj-landing-text {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .tj-landing-text-container {
    min-height: 160px;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
  }
  .tj-landing-text-decoration {
    width: 150px;
  }
  .tj-landing-animation.is-active .tj-landing-text-decoration {
    width: 200px;
  }
  .tj-landing-logo-img {
    max-width: 280px;
  }
  .tj-landing-logo-text {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  .tj-landing-logo-container {
    margin-top: 3rem;
  }
  .tj-landing-footer-message {
    bottom: 3rem;
    padding: 1.25rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tj-landing-footer-line {
    width: 40px;
  }
  .tj-landing-footer-text {
    font-size: clamp(0.9375rem, 3vw, 1.125rem);
  }
  .tj-landing-orb-1,
  .tj-landing-orb-2,
  .tj-landing-orb-3 {
    filter: blur(30px);
  }
  .tj-landing-orb-1 {
    width: 200px;
    height: 200px;
  }
  .tj-landing-orb-2 {
    width: 180px;
    height: 180px;
  }
  .tj-landing-orb-3 {
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 480px) {
  .tj-landing-text-container {
    padding: 2rem 1.5rem;
  }
  .tj-landing-logo-img {
    max-width: 220px;
  }
  .tj-landing-footer-message {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .tj-landing-footer-line {
    width: 30px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tj-landing-bg-gradient {
    animation: none;
  }
  .tj-landing-text,
  .tj-landing-logo-container,
  .tj-landing-footer-message,
  .tj-landing-text-container::before {
    transition-duration: 0.3s;
  }
  .tj-landing-logo-img,
  .tj-landing-logo-glow,
  .tj-landing-logo-ring,
  .tj-landing-text-glow,
  .tj-landing-ray,
  .tj-landing-orb {
    animation: none;
  }
  .tj-landing-text-decoration,
  .tj-landing-footer-line {
    transition-duration: 0.3s;
  }
  .tj-landing-logo-container::before,
  .tj-landing-logo-container::after {
    animation: none;
    display: none;
  }
}
