/* =========================================================
   GHAR TAK V6 — PROFESSIONAL Q-COMMERCE DESIGN (TALABAT / INSTASHOP STYLE)
   ========================================================= */

:root {
  --primary: #FF5A36;
  --primary-dark: #E04824;
  --primary-deep: #1E293B;
  --accent: #FF9F0A;
  --accent-dark: #E68A00;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --soft-primary: #FFF1EE;
  --soft-amber: #FFFBEB;
  --danger: #DC2626;
  --soft-danger: #FEF2F2;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 40px rgba(255, 90, 54, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, "Noto Nastaliq Urdu", sans-serif;
  line-height: 1.65;
}

/* TOP TICKER */
.top-ticker {
  background: var(--primary-deep);
  color: #FDE68A;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  letter-spacing: 0.3px;
}

html[lang="ur"] .top-ticker {
  font-size: 14px;
  line-height: 1.9;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft-primary);
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.2);
  transition: transform 0.2s;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-area:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text h1 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.header-search-bar {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 16px;
  transition: all 0.2s;
}

.header-search-bar:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}

.search-mini-icon {
  color: var(--muted);
  font-size: 20px;
  margin-inline-end: 8px;
}

.header-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--soft-primary);
  color: var(--primary-dark);
  border: 1px solid #FFDCD4;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s;
}

.cart-pill:hover {
  transform: translateY(-1px);
}

.lang-switcher {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.lang-btn.active {
  background: #FFFFFF;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

/* HERO EXPRESS */
.hero-express {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 56px 20px 64px;
  position: relative;
  overflow: hidden;
}

.hero-express::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 90, 54, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero-express-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-block;
  background: rgba(255, 90, 54, 0.2);
  border: 1px solid rgba(255, 90, 54, 0.4);
  color: #FF8A70;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-express h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.35;
  color: #FFFFFF;
}

.hero-express p {
  color: #94A3B8;
  font-size: 16px;
  margin: 0 auto 28px;
  max-width: 640px;
}

.hero-search-box {
  max-width: 580px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px 18px;
  box-shadow: var(--shadow-lg);
}

.hero-search-box span {
  color: var(--primary);
  font-size: 26px;
  margin-inline-end: 10px;
}

.hero-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 16px;
  padding: 10px 4px;
  color: var(--text);
}

.hero-trust-badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: #CBD5E1;
  font-size: 13px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge-item strong {
  color: #FFFFFF;
}

/* MAIN CONTAINER */
.main-container {
  max-width: 1240px;
  margin: -32px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* PROMO SLIDER */
.promo-slider-wrap {
  position: relative;
  margin-bottom: 36px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.promo-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 56px;
  min-height: 230px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  animation: slideFade 0.4s ease;
}

.promo-slide.active {
  display: flex;
}

@keyframes slideFade {
  from { opacity: 0.4; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.promo-slide.theme-emerald,
.promo-slide.theme-coral {
  background: linear-gradient(135deg, #1E293B 0%, #334155 55%, #FF5A36 100%);
}

.promo-slide.theme-amber,
.promo-slide.theme-orange {
  background: linear-gradient(135deg, #C2410C 0%, #EA580C 55%, #F97316 100%);
}

.promo-slide.theme-teal {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 55%, #14B8A6 100%);
}

.promo-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FDE68A;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.promo-slide-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0 8px;
  color: #FFFFFF;
}

html[lang="ur"] .promo-slide-content h3 {
  font-size: 30px;
  line-height: 1.9;
}

.promo-slide-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

html[lang="ur"] .promo-slide-content p {
  font-size: 17px;
  line-height: 2.1;
}

.promo-cta {
  background: #FFFFFF;
  color: var(--primary-deep);
  border: none;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s, background 0.2s;
}

.promo-cta:hover {
  background: #FEF3C7;
  transform: translateY(-2px);
}

.promo-visual {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-circle-1 {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.promo-circle-2 {
  position: absolute;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.promo-emblem {
  position: relative;
  font-size: 52px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border: none;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.45);
}

.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  width: 26px;
  background: #FDE68A;
}

/* SECTION HEADER */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-header-row h2 {
  color: var(--primary-deep);
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0;
}

.section-tag {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.delivery-badge-pill {
  background: #FFFFFF;
  color: var(--primary-deep);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* CATEGORY PILLS */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cat-pill {
  background: #FFFFFF;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--soft-primary);
}

.cat-pill.active {
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
  box-shadow: var(--shadow-md);
}

/* PRODUCTS GRID & CARD */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.product-card.sold-out { opacity: 0.72; }

.product-media {
  position: relative;
  width: 100%;
  height: 180px;
  background: #F1F5F9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.badge-category {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-featured {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #FF9F0A, #E68A00);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 159, 10, 0.35);
}

.badge-stock {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}

.badge-stock.ok {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-stock.low {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-stock.out {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

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

.product-title {
  color: var(--primary-deep);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 2px;
  line-height: 1.4;
}

.product-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
}

.add-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.25);
  transition: transform 0.15s, background 0.15s;
}

.add-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.add-btn:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  box-shadow: none;
}

/* QUANTITY STEPPER */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--soft-primary);
  border: 1px solid #FFDCD4;
  border-radius: 12px;
  overflow: hidden;
}

.qty-stepper button {
  background: transparent;
  color: var(--primary-dark);
  border: none;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: #FFDCD4;
}

.qty-stepper span {
  padding: 0 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary-deep);
  font-family: "Inter", sans-serif;
}

/* PANELS & CART */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-md);
}

.cart-panel {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cart-big-icon {
  font-size: 28px;
}

#cart {
  color: var(--text);
  padding: 8px 0;
}

.empty-cart-msg {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
  font-size: 15px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-row-info {
  display: flex;
  flex-direction: column;
}

.cart-row-info strong {
  font-size: 16px;
  color: var(--primary-deep);
}

.cart-row-info small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
}

.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-line-total {
  font-weight: 800;
  color: var(--primary);
  font-family: "Inter", sans-serif;
}

/* FREE DELIVERY PROGRESS METER */
.free-ship-box {
  background: var(--soft-amber);
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.free-ship-text {
  font-size: 14px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 8px;
}

html[lang="ur"] .free-ship-text {
  font-size: 15px;
  line-height: 1.9;
}

.free-ship-track {
  width: 100%;
  height: 9px;
  background: #FEF3C7;
  border-radius: 999px;
  overflow: hidden;
}

.free-ship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.bill-breakdown {
  margin-top: 16px;
  padding: 12px 4px 4px;
  border-top: 1px dashed var(--border);
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--muted);
  padding: 5px 0;
}

.bill-row strong {
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft-primary);
  border: 1px solid #FFDCD4;
  color: var(--primary-deep);
  padding: 16px 20px;
  border-radius: 14px;
  margin-top: 16px;
  font-size: 18px;
}

.total-bar strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  font-family: "Inter", sans-serif;
}

.checkout-title-box {
  margin: 28px 0 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.input-group {
  margin: 10px 0;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

input, textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.primary-checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 14px;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 90, 54, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 90, 54, 0.4);
}

#message {
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
}

.error-text { color: var(--danger); }
.success-text { color: #065F46; font-size: 16px; }

/* FLOATING STICKY CART BAR */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 540px;
  background: var(--primary-deep);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.4);
  z-index: 100;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
}

.floating-cart-info span {
  font-size: 12px;
  color: #94A3B8;
}

.floating-cart-info strong {
  font-size: 19px;
  font-family: "Inter", sans-serif;
  color: #FFFFFF;
}

.floating-cart-cta {
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.4);
}

/* FOOTER */
.site-footer {
  background: var(--primary-deep);
  color: #FFFFFF;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
}

.footer-brand strong {
  font-size: 18px;
  color: #FFFFFF;
}

.footer-brand p {
  color: #94A3B8;
  margin: 2px 0 0;
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #CBD5E1;
  font-size: 13.5px;
  font-weight: 600;
}

/* =========================================================
   REFINED URDU NASTALIQ TYPOGRAPHY & RTL POLISH
   ========================================================= */

html[lang="ur"] body {
  font-family: "Noto Nastaliq Urdu", "Gulzar", "Inter", serif;
  line-height: 2.1;
  word-spacing: 1.5px;
}

html[lang="ur"] input,
html[lang="ur"] textarea,
html[lang="ur"] select,
html[lang="ur"] button {
  font-family: "Noto Nastaliq Urdu", "Gulzar", "Inter", sans-serif;
}

html[lang="ur"] .brand-text h1 {
  font-family: "Noto Nastaliq Urdu", "Gulzar", serif;
  font-size: 26px;
  line-height: 1.8;
  padding-top: 2px;
}

html[lang="ur"] .brand-text small {
  font-family: "Noto Nastaliq Urdu", "Gulzar", serif;
  font-size: 12.5px;
  line-height: 1.8;
}

html[lang="ur"] .hero-pill {
  font-size: 14px;
  line-height: 2;
  padding: 5px 18px;
}

html[lang="ur"] .hero-express h2 {
  font-size: 40px;
  line-height: 1.95;
  margin: 14px 0 12px;
}

html[lang="ur"] .hero-express p {
  font-size: 18px;
  line-height: 2.1;
}

html[lang="ur"] .section-header-row h2 {
  font-size: 28px;
  line-height: 1.9;
}

html[lang="ur"] .delivery-badge-pill {
  font-size: 13.5px;
  line-height: 2;
}

html[lang="ur"] .cat-pill {
  font-size: 14.5px;
  line-height: 1.95;
  padding: 7px 18px;
}

html[lang="ur"] .product-title {
  font-family: "Noto Nastaliq Urdu", "Gulzar", serif;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.95;
  margin-bottom: 4px;
}

html[lang="ur"] .product-subtitle {
  font-family: "Inter", sans-serif;
  direction: ltr;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.4;
}

/* Keep numbers, currency, and badges crisp in Inter */
html[lang="ur"] .product-price,
html[lang="ur"] .cart-line-total,
html[lang="ur"] .total-bar strong,
html[lang="ur"] #cartCount,
html[lang="ur"] .qty-stepper span,
html[lang="ur"] .badge-category,
html[lang="ur"] input[type="tel"],
html[lang="ur"] .lang-btn {
  font-family: "Inter", sans-serif;
}

html[lang="ur"] .badge-stock {
  font-size: 11.5px;
  line-height: 1.85;
  padding: 2px 10px;
}

html[lang="ur"] .add-btn {
  font-size: 14px;
  line-height: 1.9;
  padding: 6px 16px;
}

html[lang="ur"] .cart-row-info strong {
  font-size: 16.5px;
  line-height: 1.95;
}

html[lang="ur"] .primary-checkout-btn {
  font-size: 18px;
  line-height: 2;
  padding: 14px 18px;
}

html[lang="ur"] .footer-brand strong {
  font-size: 19px;
  line-height: 1.9;
}

html[lang="ur"] .footer-brand p {
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 768px) {
  .header-search-bar { display: none; }
  .hero-express h2 { font-size: 28px; }
  .promo-slide { padding: 28px 22px; flex-direction: column; text-align: center; }
  .promo-visual { display: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { height: 135px; }
  .product-body { padding: 12px; }
  .product-title { font-size: 15px; }
  .panel { padding: 20px; }
}


/* FOOTER LOGO IMAGE */
.footer-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ADMIN PANEL LAYOUT STYLES */
.nav-link-btn {
  text-decoration: none;
  background: var(--soft-primary);
  color: var(--primary-dark);
  border: 1px solid #FFDCD4;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
}

.ghost-btn {
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn {
  background: var(--primary-deep);
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.danger-btn {
  background: var(--soft-danger);
  color: var(--danger);
  border: 1px solid #FECACA;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mini-btn {
  background: var(--soft-primary);
  color: var(--primary-dark);
  border: 1px solid #FFDCD4;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}

.auth-panel {
  max-width: 460px;
  margin: 60px auto;
}

.auth-links {
  margin-top: 14px;
  text-align: center;
}

.primary {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-weight: 800;
  margin-top: 12px;
  cursor: pointer;
}

select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 28px 0 18px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0 4px;
  color: var(--primary-deep);
}

.kpi-value.emerald { color: #059669; }
.kpi-value.amber { color: var(--primary); }

.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-actions button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.report-actions button.secondary-btn { background: var(--primary-deep); }

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: var(--background);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.filter-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.filter-btn-wrap { display: flex; align-items: flex-end; }

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.analytics-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: #FFFFFF;
}

.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-product-card {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #FFFFFF;
  align-items: center;
}

.admin-product-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #F1F5F9;
}

.admin-product-info { flex: 1; min-width: 0; }
.admin-product-info small { display: block; color: var(--muted); font-size: 12px; }
.admin-product-meta { display: flex; gap: 8px; margin: 6px 0; font-size: 13px; font-weight: 700; }
.admin-product-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.admin-banner-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.admin-banner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  flex-wrap: wrap;
}
.admin-banner-item.inactive { opacity: 0.55; background: #F8FAFC; }

.order-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: #FFFFFF;
}
.order-top, .order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.source-badge { background: var(--soft-primary); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.order-items { background: var(--background); padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 8px 0; }
.order-controls { display: flex; gap: 8px; align-items: center; }
.order-controls select { width: auto; padding: 8px 12px; }

.upload-row { display: flex; align-items: center; gap: 14px; margin: 12px 0 16px; flex-wrap: wrap; }
.file-upload-label {
  display: inline-block;
  background: var(--soft-amber);
  color: #92400E;
  border: 1px dashed #F59E0B;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.file-upload-label input { display: none; }
.img-preview { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.checkbox-label input { width: auto; }
.status-msg.error { color: var(--danger); font-weight: 700; }
.status-msg.success { color: #059669; font-weight: 700; }
[hidden] { display: none !important; }

/* WHATSAPP ORDER BUTTON & PWA INSTALL BUTTON */
.install-app-btn {
  background: var(--primary-deep);
  color: #FDE68A;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.checkout-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.checkout-btn-group .primary-checkout-btn {
  margin-top: 0;
}

.whatsapp-checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.38);
}

html[lang="ur"] .whatsapp-checkout-btn {
  font-size: 18px;
  line-height: 2;
  padding: 14px 18px;
}

@media (max-width: 640px) {
  .checkout-btn-group {
    grid-template-columns: 1fr;
  }
}

/* STORE STATUS BANNER (OPEN / CLOSED SCHEDULE) */
.store-status-banner {
  padding: 10px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.store-status-banner.open {
  background: #ECFDF5;
  color: #065F46;
}

.store-status-banner.closed {
  background: #FEF2F2;
  color: #991B1B;
}

.store-status-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.store-status-banner.open .status-dot {
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.store-status-banner.closed .status-dot {
  background: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.status-schedule {
  font-weight: 600;
  font-size: 13px;
}

html[lang="ur"] .store-status-banner {
  font-size: 14.5px;
  line-height: 1.95;
}

/* ORDER ETA RECEIPT CARD */
.order-eta-card {
  margin-top: 20px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #10B981;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.16);
  animation: slideFade 0.35s ease;
}

.eta-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.eta-details strong {
  display: block;
  font-size: 18px;
  color: #065F46;
  margin-bottom: 4px;
}

.eta-details p {
  margin: 0 0 10px;
  color: #047857;
  font-size: 14.5px;
}

.eta-pill {
  display: inline-block;
  background: #065F46;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

html[lang="ur"] .eta-details strong {
  font-size: 20px;
  line-height: 1.9;
}

html[lang="ur"] .eta-details p {
  font-size: 16px;
  line-height: 2;
}

html[lang="ur"] .eta-pill {
  font-size: 14px;
  line-height: 1.9;
}

/* ADMIN STORE OPERATIONS PANEL */
.store-ops-panel {
  border: 2px solid #FFDCD4;
  background: #FFFFFF;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-status-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.admin-status-pill.open {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.admin-status-pill.closed {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.store-toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.small-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 5px;
}

/* =========================================================
   MOBILE-FIRST UX & TOUCH ERGONOMICS AUDIT (V11)
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button, a.cart-pill, a.floating-cart-cta, input, select, textarea {
  touch-action: manipulation;
}

/* Add bottom safe padding so floating cart bar never blocks content */
body {
  padding-bottom: 84px;
}

@media (max-width: 768px) {
  .top-ticker {
    font-size: 12px;
    padding: 7px 12px;
  }
  html[lang="ur"] .top-ticker {
    font-size: 13px;
    line-height: 1.85;
  }

  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-text h1 {
    font-size: 19px;
  }
  html[lang="ur"] .brand-text h1 {
    font-size: 21px;
    line-height: 1.7;
  }
  .brand-text small {
    font-size: 10.5px;
  }

  .header-actions {
    gap: 6px;
  }

  .install-app-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .cart-pill {
    padding: 6px 11px;
    font-size: 13px;
  }

  .lang-btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }

  .store-status-banner {
    padding: 9px 14px;
    font-size: 12.5px;
  }
  .store-status-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .status-schedule {
    font-size: 12px;
  }

  .hero-express {
    padding: 32px 16px 46px;
  }
  .hero-pill {
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .hero-express h2 {
    font-size: 24px;
    line-height: 1.35;
  }
  html[lang="ur"] .hero-express h2 {
    font-size: 27px;
    line-height: 1.85;
  }
  .hero-express p {
    font-size: 14px;
    margin-bottom: 18px;
  }
  html[lang="ur"] .hero-express p {
    font-size: 15px;
    line-height: 1.95;
  }

  .hero-search-box {
    padding: 4px 14px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .hero-search-box input {
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    padding: 9px 4px;
  }

  .hero-trust-badges {
    gap: 12px;
    font-size: 12px;
  }

  .main-container {
    margin-top: -22px;
    padding: 0 14px;
  }

  .promo-slider-wrap {
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .promo-slide {
    padding: 24px 18px 34px;
    min-height: 185px;
  }
  .promo-slide-content h3 {
    font-size: 20px;
  }
  html[lang="ur"] .promo-slide-content h3 {
    font-size: 22px;
    line-height: 1.8;
  }
  .promo-slide-content p {
    font-size: 13.5px;
    margin-bottom: 14px;
  }
  html[lang="ur"] .promo-slide-content p {
    font-size: 14.5px;
    line-height: 1.95;
  }
  .slider-nav {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .slider-nav.prev { left: 8px; }
  .slider-nav.next { right: 8px; }

  .section-header-row h2 {
    font-size: 21px;
  }
  html[lang="ur"] .section-header-row h2 {
    font-size: 23px;
    line-height: 1.85;
  }
  .delivery-badge-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Smooth horizontal swipeable category pills on mobile */
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 18px;
    gap: 8px;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    flex: 0 0 auto;
    padding: 8px 15px;
    font-size: 13px;
  }

  /* Crisp 2-column mobile product cards */
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    border-radius: 16px;
  }
  .product-media {
    height: 128px;
  }
  .badge-category, .badge-featured, .badge-stock {
    font-size: 10px;
    padding: 2px 7px;
  }
  .product-body {
    padding: 11px 12px 13px;
  }
  .product-title {
    font-size: 14.5px;
    line-height: 1.35;
  }
  html[lang="ur"] .product-title {
    font-size: 16px;
    line-height: 1.85;
  }
  .product-subtitle {
    font-size: 11.5px;
    margin-bottom: 10px;
  }
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }
  .product-price {
    font-size: 16.5px;
  }
  .add-btn {
    width: 100%;
    text-align: center;
    padding: 9px 10px;
    font-size: 13px;
  }
  .qty-stepper {
    width: 100%;
    justify-content: space-between;
  }
  .qty-stepper button {
    padding: 7px 14px;
  }

  /* Cart & Checkout Mobile Polish */
  .panel {
    padding: 18px 15px;
    border-radius: 18px;
    margin: 24px 0;
  }
  .cart-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cart-row-actions {
    justify-content: space-between;
  }
  .cart-row-actions .qty-stepper {
    width: auto;
  }
  .total-bar {
    padding: 14px 16px;
    font-size: 16px;
  }
  .total-bar strong {
    font-size: 20px;
  }

  /* Prevent iOS auto-zoom on form fields */
  input, select, textarea {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  .primary-checkout-btn, .whatsapp-checkout-btn {
    padding: 14px 16px;
    font-size: 15.5px;
  }
  html[lang="ur"] .primary-checkout-btn,
  html[lang="ur"] .whatsapp-checkout-btn {
    font-size: 16.5px;
    line-height: 1.9;
  }

  .order-eta-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .floating-cart-bar {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 11px 16px;
    border-radius: 16px;
  }
  .floating-cart-info strong {
    font-size: 17px;
  }
  .floating-cart-cta {
    padding: 9px 15px;
    font-size: 13px;
  }

  .site-footer {
    padding: 28px 16px;
    margin-top: 36px;
  }
  .footer-links {
    gap: 12px;
    font-size: 12.5px;
  }

  /* Admin Panel Mobile Ergonomics */
  .store-toggle-card {
    flex-direction: column;
    align-items: stretch;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
  }
  .kpi-value {
    font-size: 20px;
  }
}

@media (max-width: 375px) {
  .products {
    grid-template-columns: 1fr;
  }
  .product-media {
    height: 165px;
  }
}




/* =========================================================
   GHAR TAK V37 — CANONICAL DESIGN & URDU TYPE SYSTEM
   ========================================================= */
:root {
  --font-urdu-ui: "Noto Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif;
  --font-urdu-display: "Noto Nastaliq Urdu", "Gulzar", serif;
  --font-latin-ui: "Inter", Arial, sans-serif;
}
html[lang="ur"] body {
  font-family: var(--font-urdu-ui);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0;
  word-spacing: 0;
  text-rendering: optimizeLegibility;
}
html[lang="ur"] :is(p, label, small, .top-ticker, .store-status-banner,
  .hero-express p, .hero-pill, .trust-badge-item, .cat-pill,
  .product-title, .product-subtitle, .cart-row-info, .footer-links,
  .footer-brand p, .badge-stock, .section-label, .muted-text) {
  font-family: var(--font-urdu-ui);
  line-height: 1.85;
}
html[lang="ur"] :is(.brand-text h1, .hero-express h2,
  .section-header-row h2, .footer-brand strong) {
  font-family: var(--font-urdu-display);
  font-weight: 600;
  line-height: 2.15;
  letter-spacing: 0;
}
html[lang="ur"] .brand-text h1 { font-size: 24px; }
html[lang="ur"] .hero-express h2 { font-size: clamp(27px, 4vw, 38px); }
html[lang="ur"] .section-header-row h2 { font-size: 23px; }
html[lang="ur"] .product-title { font-size: 16px; font-weight: 700; line-height: 1.8; }
html[lang="ur"] :is(button, input, textarea, select, .nav-link-btn,
  .section-label, .status-msg, .add-btn, .primary-checkout-btn,
  .whatsapp-checkout-btn) {
  font-family: var(--font-urdu-ui);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}
html[lang="ur"] :is(input, textarea, select) { text-align: right; }
html[lang="ur"] ::placeholder { font-family: var(--font-urdu-ui); opacity: .68; }
html[lang="ur"] :is(.product-price, .cart-line-total, .total-bar strong,
  #cartCount, .qty-stepper span, .badge-category, input[type="tel"], .lang-btn) {
  font-family: var(--font-latin-ui);
  line-height: 1.45;
  word-spacing: normal;
}
html[lang="ur"] .product-card {
  overflow: visible;
}
html[lang="ur"] .product-card :is(.product-info, .product-details) { min-width: 0; }
html[lang="ur"] .add-btn, html[lang="ur"] .primary-checkout-btn,
html[lang="ur"] .whatsapp-checkout-btn { font-weight: 700; }

/* Shared polished controls and keyboard accessibility. */
:where(button, input, textarea, select, a):focus-visible {
  outline: 3px solid rgba(255, 90, 54, .28);
  outline-offset: 2px;
}
:where(input, textarea, select) {
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
:where(input, textarea, select):focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, .10);
}
.panel { border-radius: 20px; }
@media (max-width: 600px) {
  html[lang="ur"] body { font-size: 14px; line-height: 1.8; }
  html[lang="ur"] .product-title { font-size: 15px; }
  html[lang="ur"] .hero-express h2 { line-height: 2.05; }
  .panel { padding: 18px; border-radius: 16px; }
}


/* V38: scheduled-order and customer delivery updates */
.order-eta-card .secondary-btn { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fff; color: var(--primary-deep); font-weight: 700; cursor: pointer; }
.order-eta-card .secondary-btn[hidden] { display: none; }
.order-controls select:has(option:first-child) { min-width: 150px; }
.scheduled-order-note { color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 7px 10px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.password-row{display:flex;align-items:stretch;gap:8px;width:100%;margin:8px 0}.password-row input{flex:1;min-width:0}.eye-btn{padding:0 14px;min-width:65px;border:1px solid #d0d7de;border-radius:8px;background:#f6f8fa;color:#273444;font-weight:600;cursor:pointer}.eye-btn:hover{background:#e9eef3}

/* V42: consistent teal action color only */
:root { --ghartak-action: #16A085; }
.primary-checkout-btn, .add-to-cart-btn, button.primary, .primary-btn, .checkout-btn, #orderBtn { background-color: var(--ghartak-action) !important; border-color: var(--ghartak-action) !important; }
.primary-checkout-btn:hover, .add-to-cart-btn:hover, button.primary:hover, .primary-btn:hover, .checkout-btn:hover, #orderBtn:hover { filter: brightness(.92); }

/* V51 launch polish: small-screen usability and safe touch targets */
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  button, .cat-pill, .add-btn, .floating-cart-cta, .nav-link-btn { min-height: 44px; }
  .site-header { position: sticky; top: 0; z-index: 30; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .main-container { width: 100%; max-width: 100%; }
  .product-card, .panel, .cart-panel, .checkout-panel { min-width: 0; }
  .product-title, .product-subtitle { overflow-wrap: anywhere; }
  .checkout-btn-group { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .floating-cart-bar { z-index: 40; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  body:has(.floating-cart-bar:not([hidden])) { padding-bottom: 92px; }
  .auth-panel { width: calc(100% - 24px); max-width: 460px; margin: 18px auto; }
  .auth-panel input, .auth-panel button { width: 100%; box-sizing: border-box; }
  .password-row .eye-btn { width: auto; min-width: 70px; }
}
@media (max-width: 360px) {
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .product-media { height: 112px; }
  .product-body { padding: 9px; }
  .product-title { font-size: 13px; }
  .add-btn { padding: 8px 6px; }
  .header-actions .nav-link-btn { font-size: 11px; padding: 6px 8px; }
}

/* V53 mobile fixes: keep Urdu add-to-cart buttons inside narrow product cards. */
@media (max-width: 600px) {
  .product-card, .product-body, .product-footer { box-sizing: border-box; min-width: 0; max-width: 100%; }
  html[lang="ur"] .add-btn { font-size: 12.5px; padding-inline: 4px; line-height: 1.5; }
  .install-app-btn { box-sizing: border-box; min-height: 40px; }
}
