/* DESIGN SYSTEM & CORE VARIABLES */
:root {
  --primary-color: #8B5A2B;
  --primary-hover: #704720;
  --secondary-color: #D4AF37;
  --secondary-hover: #C5A059;
  --bg-color: #FCFBF7;
  --surface-color: #FFFDF8;
  --card-bg: #FFFFFF;
  --text-main: #2B1B17;
  --text-muted: #6E5F5A;
  --border-color: #E6DCD2;
  --input-bg: #FDFDFB;
  --header-bg: rgba(253, 251, 247, 0.96);
  --success-color: #4E8A5E;
  --danger-color: #C0392B;
  --whatsapp-color: #25D366;
  --focus-ring: rgba(139, 90, 43, 0.22);
  --shadow-sm: 0 2px 5px rgba(43, 27, 23, 0.05);
  --shadow-md: 0 8px 24px rgba(43, 27, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 27, 23, 0.12);
  --border-radius: 14px;
  --border-radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  --font-en: 'Outfit', 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

/* BASE RESETS & SCROLLBAR */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

html[dir="rtl"] {
  font-family: var(--font-ar);
}

html[dir="ltr"] {
  font-family: var(--font-en);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* UTILITY LAYOUTS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.p-3 { padding: 1rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-gold { color: var(--secondary-color); }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.block { display: block; }
.hidden { display: none !important; }
.max-w-xl { max-width: 800px; }
.max-w-md { max-width: 550px; }
.max-w-sm { max-width: 450px; }
.max-w-xs { max-width: 380px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* DYNAMIC COLOR THEMING SUPPORT */
.bg-warm {
  background-color: rgba(238, 220, 130, 0.08);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* OR SEPARATOR */
.or-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.or-separator::before,
.or-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.or-separator:not(:empty)::before {
  margin-right: 15px;
}

.or-separator:not(:empty)::after {
  margin-left: 15px;
}

html[dir="rtl"] .or-separator:not(:empty)::before {
  margin-right: 0;
  margin-left: 15px;
}

html[dir="rtl"] .or-separator:not(:empty)::after {
  margin-left: 0;
  margin-right: 15px;
}

/* BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1.05rem;
}

.btn-full {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139, 90, 43, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-main);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  border-color: var(--whatsapp-color);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* CARDS */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* FIXED HEADER SYSTEM */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

/* LANGUAGE & REVERSIBILITY (FLEX ORDER) */
.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language and Alignment Swapping */
html[dir="rtl"] .header-left { order: 1; justify-content: flex-start; width: 25%; }
html[dir="rtl"] .header-center { order: 2; justify-content: center; width: 50%; }
html[dir="rtl"] .header-right { order: 3; justify-content: flex-end; width: 25%; }

html[dir="ltr"] .header-left { order: 3; justify-content: flex-end; width: 25%; }
html[dir="ltr"] .header-center { order: 2; justify-content: center; width: 50%; }
html[dir="ltr"] .header-right { order: 1; justify-content: flex-start; width: 25%; }

/* Navigation Styling */
.main-nav {
  display: flex;
  gap: 20px;
}

.nav-item {
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

/* Cart badge indicator */
.cart-nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge {
  background-color: var(--secondary-color);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgeBounce 0.3s ease-out;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.btn-lang {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-lang:hover {
  background-color: var(--border-color);
}

/* LOGO CUSTOM SVG STYLE */
.logo-link {
  display: flex;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* FIXED HEADER SCROLL SPACE */
main#app-view-container {
  margin-top: 80px;
  flex: 1 0 auto;
}

/* MOBILE TOGGLE & DRAWER */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html[dir="rtl"] .mobile-menu {
  right: 0;
  transform: translateX(100%);
}

html[dir="ltr"] .mobile-menu {
  left: 0;
  transform: translateX(-100%);
}

html[dir="rtl"] .mobile-menu.open { transform: translateX(0); }
html[dir="ltr"] .mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: auto;
}

.mobile-nav-item {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.99);
  border-radius: 6px;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 27, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* RESPONSIVE HEADER MEDIA */
@media (max-width: 992px) {
  .btn-header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .container { padding: 0 16px; }
  .hero-layout { gap: 24px; }
  .card, .product-card, .trust-section { border-radius: 16px; }
  .btn { min-height: 46px; }
  .product-card .product-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product-card-actions { width: 100%; justify-content: flex-end; }
  .section-title { font-size: 1.7rem; }
  .section-header { margin-bottom: 28px; }
  .mobile-menu-toggle {
    display: block;
  }
  html[dir="rtl"] .header-right { width: 40%; }
  html[dir="rtl"] .header-left { width: 10%; }
  html[dir="rtl"] .header-center { width: 50%; }
  html[dir="ltr"] .header-right { width: 10%; }
  html[dir="ltr"] .header-left { width: 40%; }
  html[dir="ltr"] .header-center { width: 50%; }
}

@media (max-width: 359px) {
  #products-grid, #best-sellers-grid { grid-template-columns: 1fr !important; }
}

/* HERO SECTION */
.hero-cta-section {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98) 0%, rgba(250, 242, 224, 0.92) 100%);
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 22px;
  line-height: 1.8;
}

.hero-supporting-text {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-supporting-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-media-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(139, 90, 43, 0.16);
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.hero-media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(43, 27, 23, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-section {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.trust-section-header {
  margin-bottom: 16px;
}

.trust-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.trust-section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.trust-items-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-item-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

.trust-item-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--primary-color);
  flex-shrink: 0;
}

.trust-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.trust-item-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-visual { order: -1; }
}

@media (max-width: 768px) {
  .hero-cta-section { padding: 56px 0 38px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .trust-items-grid { grid-template-columns: 1fr 1fr; }
  .hero-media-card img { min-height: 260px; }
}

@media (max-width: 420px) {
  .trust-items-grid { grid-template-columns: 1fr; }
}

/* SECTIONS HEADERS */
.section-header {
  margin-bottom: 40px;
}

.section-tag {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 4px;
}

/* VIDEO GALLERY & YOUTUBE PLAYER */
.main-video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--primary-color);
}

.youtube-player-ratio {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.youtube-player-ratio iframe,
#youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay-details {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(43, 27, 23, 0.7);
  padding: 6px 12px;
  border-radius: 20px;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  pointer-events: none;
}

html[dir="rtl"] .video-overlay-details {
  left: auto;
  right: 15px;
}

.live-tag i {
  color: #E74C3C;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* VALUE CARDS & STORY */
.value-card {
  text-align: center;
  padding: 35px 25px;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* PRODUCT CARD & CATALOG */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  user-select: none;
  min-height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.product-card:active {
  transform: scale(0.98);
}

.btn-card-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  z-index: 5;
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 100%; /* square ratio */
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-custom-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .product-custom-badge {
  right: auto;
  left: 15px;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.product-card-prices {
  display: flex;
  flex-direction: column;
}

.card-price-jod {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.card-price-usd {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.btn-card-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* REVIEWS */
.review-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars {
  color: var(--secondary-color);
  letter-spacing: 0.08em;
}

.review-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.review-author {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-muted);
  text-align: center;
}

/* BEFORE & AFTER SLIDER STYLE */
.before-after-slider-container {
  max-width: 800px;
  margin: 0 auto;
}

.ba-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ba-images-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  height: 380px;
}

@media (max-width: 768px) {
  .ba-images-container { grid-template-columns: 1fr; height: 500px; }
}

.ba-image {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  bottom: 15px;
  background-color: rgba(43, 27, 23, 0.8);
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
}

.before-badge { left: 15px; }
html[dir="rtl"] .before-badge { left: auto; right: 15px; }

.after-badge { right: 15px; background-color: var(--primary-color); }
html[dir="rtl"] .after-badge { right: auto; left: 15px; }

.ba-content {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.ba-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.ba-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CUSTOMER REVIEWS CAROUSEL */
.review-card {
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-author::before {
  content: '';
  width: 15px;
  height: 2px;
  background-color: var(--secondary-color);
  display: inline-block;
}

/* PRODUCTS PAGE FILTER SYSTEM */
.filters-container {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  left: 15px;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 15px;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

html[dir="rtl"] .search-wrapper input {
  padding: 12px 45px 12px 15px;
}

.search-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

.filter-wrapper {
  position: relative;
  min-width: 220px;
}

.filter-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  left: 15px;
  pointer-events: none;
}

html[dir="rtl"] .filter-icon {
  left: auto;
  right: 15px;
}

.filter-wrapper select {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

html[dir="rtl"] .filter-wrapper select {
  padding: 12px 40px 12px 15px;
}

.filter-wrapper select:focus {
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .filters-container { flex-direction: column; }
  .filter-wrapper { min-width: 100%; }
}

/* PRODUCT DETAILS PAGE */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.icon-rtl {
  transition: var(--transition-fast);
}

html[dir="rtl"] .icon-rtl {
  transform: rotate(0deg);
}

html[dir="ltr"] .icon-rtl {
  transform: rotate(180deg);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 992px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  position: relative;
}

.main-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbnail-item {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background-color: #FFFFFF;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-item.active {
  border-color: var(--primary-color);
}

/* Info Panel Details */
.product-category-tag {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.product-title-large {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
}

.product-price-box {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 20px;
}

.price-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 5px;
}

.usd-price {
  opacity: 0.7;
}

.usd-price .price-val { font-size: 1.25rem; }
.usd-price .price-currency { font-size: 0.85rem; }

.product-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(139, 90, 43, 0.08);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.product-delivery-badge i {
  color: var(--primary-color);
}

.product-description-long {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.customization-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 90, 43, 0.2);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(255, 247, 216, 0.9));
  color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.08);
}

.customization-notice.warning {
  border-color: rgba(212, 175, 55, 0.3);
}

.customization-notice.error {
  border-color: rgba(192, 57, 43, 0.25);
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.12), rgba(255, 240, 239, 0.95));
}

.customization-notice i {
  font-size: 1.15rem;
  color: var(--primary-color);
}

.customization-notice.error i {
  color: var(--danger-color);
}

/* DYNAMIC ORDER FORM STYLE */
.order-card-form {
  border: 2px solid var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

.form-row {
  display: flex;
  gap: 15px;
}

.col-4 { width: 33.33%; }
.col-8 { width: 66.66%; }

.error-msg {
  color: var(--danger-color);
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.coupon-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.coupon-input-row input {
  flex: 1;
}

.coupon-input-row .btn {
  white-space: nowrap;
  padding: 0.75rem 0.95rem;
}

.coupon-feedback {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.coupon-feedback.text-success {
  color: var(--success-color, #2f855a);
}

.coupon-feedback.text-danger {
  color: var(--danger-color, #c0392b);
}

.coupon-summary-box {
  margin-top: 0.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(139, 90, 43, 0.18);
  border-radius: 0.8rem;
  background: rgba(212, 175, 55, 0.08);
}

.summary-inline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.summary-inline + .summary-inline {
  margin-top: 0.35rem;
}

/* CUSTOM UPLOAD COMPONENT */
.custom-file-upload {
  position: relative;
  height: 55px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--input-bg);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.custom-file-upload:hover {
  border-color: var(--primary-color);
}

.custom-file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.file-upload-placeholder i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.file-name-display {
  display: block;
  font-size: 0.85rem;
  color: var(--success-color);
  font-weight: 600;
  margin-top: 6px;
}

/* CUSTOM DESIGN PAGE LAYOUT */
.custom-design-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .custom-design-layout { grid-template-columns: 1fr; }
}

.inspiration-sidebar {
  background-color: rgba(139, 90, 43, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
}

.inspiration-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspiration-list li {
  display: flex;
  gap: 15px;
  align-items: start;
}

.inspiration-list li i {
  font-size: 1.25rem;
  margin-top: 3px;
}

.inspiration-list li strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.inspiration-list li p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CART PAGE STYLES */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-items-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  align-items: center;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-custom-notes {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.cart-item-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-val {
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-remove-cart {
  background: none;
  border: none;
  color: var(--danger-color);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-fast);
}

.btn-remove-cart:hover {
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .cart-item { flex-direction: column; align-items: flex-start; gap: 15px; }
  .cart-item-actions { width: 100%; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 12px; }
  .cart-item-img { width: 100%; height: 180px; }
}

/* Totals Box & Confirmation Form */
.summary-card {
  border-top: 4px solid var(--secondary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

.total-row {
  border-bottom: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 20px;
}

.cart-checkout-form {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* APP FOOTER SYSTEM */
.main-footer {
  background-color: #2B1B17; /* Espresso Dark */
  color: #FCFBF7;            /* Light Ivory text */
  margin-top: auto;
  border-top: 4px solid var(--primary-color);
  flex-shrink: 0;
}

.footer-newsletter {
  padding: 50px 0;
  background-color: #1E110B; /* Deepest Espresso */
  border-bottom: 1px solid rgba(230, 220, 210, 0.08);
}

.newsletter-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.newsletter-desc {
  color: rgba(252, 251, 247, 0.7);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto 25px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(252, 251, 247, 0.2);
  background-color: rgba(252, 251, 247, 0.05);
  color: #FFFFFF;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--secondary-color);
}

.newsletter-form .btn {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .newsletter-form { flex-direction: column; }
}

.footer-bottom {
  padding: 30px 0;
  font-size: 0.9rem;
}

.copyright {
  opacity: 0.7;
}

.footer-links a {
  color: rgba(252, 251, 247, 0.8);
  margin: 0 5px;
}

.footer-links a:hover, .admin-link:hover {
  color: var(--secondary-color);
}

/* MODAL BOXES */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 27, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 680px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(-30px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

/* ADMIN PANEL SPECIFICS */
.admin-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 12px 15px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="ltr"] .admin-tab-btn {
  text-align: left;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.admin-content-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  min-height: 450px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-table th, .admin-table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: right;
  font-size: 0.9rem;
}

html[dir="ltr"] .admin-table th, html[dir="ltr"] .admin-table td {
  text-align: left;
}

.admin-table th {
  background-color: rgba(139, 90, 43, 0.05);
  font-weight: 700;
}

.admin-table tbody tr:hover {
  background-color: rgba(139, 90, 43, 0.02);
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.badge-success { background-color: rgba(78, 138, 94, 0.15); color: var(--success-color); border: 1px solid var(--success-color); }
.badge-warning { background-color: rgba(212, 175, 55, 0.15); color: #B38600; border: 1px solid var(--secondary-color); }
.badge-danger { background-color: rgba(192, 57, 43, 0.15); color: var(--danger-color); border: 1px solid var(--danger-color); }

.admin-table .badge {
  width: auto;
  height: auto;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-block;
}

/* Color Picker Row */
.color-picker-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.color-picker-wrapper input[type="color"] {
  border: none;
  width: 50px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
}

/* SPA VIEW ROUTER MANAGEMENTS */
.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

/* TOAST MESSAGE ALERT */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[dir="rtl"] .toast-container {
  left: auto;
  right: 25px;
}

.toast {
  background: var(--text-main);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  animation: slideInToast 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-left: 4px solid var(--secondary-color);
}

html[dir="rtl"] .toast {
  border-left: none;
  border-right: 4px solid var(--secondary-color);
}

.toast.toast-success { border-color: var(--success-color); }
.toast.toast-error { border-color: var(--danger-color); }

@keyframes slideInToast {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* MICRO CHECKBOX CUSTOM ELEMENT */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
}

html[dir="rtl"] .checkbox-container {
  padding-left: 0;
  padding-right: 30px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

html[dir="rtl"] .checkmark {
  left: auto;
  right: 0;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #eee;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

html[dir="rtl"] .checkbox-container .checkmark:after {
  left: auto;
  right: 7px;
}
