/* Custom styles for Azad Islam Scale & Iron Store */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --brand-primary: #8B1E1E;
  --brand-primary-dark: #6E1414;
  --brand-primary-light: #B83232;
  --brand-gold: #C29B38;
  --brand-gold-dark: #9E7D28;
  --brand-gold-light: #DFB84E;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #1EBE5D;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Urdu Language Mode Typography - Crisp, Connected, Highly Legible */
body.lang-ur, 
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Noto Nastaliq Urdu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, Arial, sans-serif;
  line-height: 1.9;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-align: right;
}

/* Headings in Urdu: High breathing room to prevent ascender collisions */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Noto Sans Arabic', 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

[dir="rtl"] p {
  line-height: 1.85 !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* Buttons, Badges, Search Chips & Navigation in RTL: Crisp, Modern, Highly Readable */
[dir="rtl"] nav a,
[dir="rtl"] button,
[dir="rtl"] .lang-toggle-btn,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] .badge,
[dir="rtl"] .touch-target {
  font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, sans-serif;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  line-height: 1.5;
}

.font-urdu {
  font-family: 'Noto Sans Arabic', 'Noto Nastaliq Urdu', Tahoma, sans-serif;
  direction: rtl;
  line-height: 1.85;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* RTL Helpers */
[dir="rtl"] .text-left {
  text-align: right !important;
}
[dir="rtl"] .text-right {
  text-align: left !important;
}

/* Product Card Strict Alignment & Polish */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
  border-color: #CBD5E1;
}

.product-card-img-container {
  height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(circle, #FFFFFF 60%, #F1F5F9 100%);
  position: relative;
  overflow: hidden;
}

.product-card-img {
  max-height: 10.5rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Touch Friendly Mobile Targets */
@media (max-width: 640px) {
  .product-card-img-container {
    height: 11.5rem;
  }
  .product-card-img {
    max-height: 9.5rem;
  }
  .touch-target {
    min-height: 44px;
  }
}

/* Hide scrollbar for clean horizontal ribbons */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Web Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Line clamps */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast notification */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Continuous Flowing Marquee Ticker */
@keyframes marquee-flow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-ticker-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: marquee-flow 32s linear infinite;
}

.marquee-ticker-container:hover .marquee-ticker-track,
.marquee-ticker-container:active .marquee-ticker-track,
.marquee-ticker-track:hover,
.marquee-ticker-track:active {
  animation-play-state: paused;
}

