:root {
  --red: #D72638;
  --red-dark: #A81C27;
  --red-light: #FFF0F1;
  --green: #1A7A4A;
  --green-light: #E8F5EE;
  --gold: #F5A623;
  --gold-light: #FFF8EC;
  --dark: #1A1A2E;
  --gray: #6B7280;
  --light: #F8F8F8;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --fd: 'Baloo 2', cursive;
  --fb: 'Nunito', sans-serif;
  --r: 12px;
  --rs: 8px;
}

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

body {
  font-family: var(--fb);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.topbar {
  background: var(--red);
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  color: white;
  letter-spacing: .02em;
}

.topbar span {
  margin: 0 14px;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.logo .dot {
  color: var(--green);
}

.logo-wrap {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .08em;
  font-family: var(--fb);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dealer {
  background: var(--red);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.btn-dealer:hover {
  background: var(--red-dark);
}

.cart-btn {
  position: relative;
  background: var(--light);
  border: none;
  border-radius: var(--rs);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s;
}

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

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background: var(--red-light);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(215, 38, 56, .06);
  right: -100px;
  top: -100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.hero h1 {
  font-family: var(--fd);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 13px 26px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

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

.btn-outline {
  background: white;
  color: var(--red);
  padding: 13px 26px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all .2s;
}

.btn-outline:hover {
  background: var(--red);
  color: white;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-card {
  background: white;
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s;
}

.hero-card:hover {
  transform: translateY(-3px);
}

.hero-card .em {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.hero-card strong {
  font-size: 13px;
  font-weight: 700;
  display: block;
  color: var(--dark);
}

.hero-card span {
  font-size: 11px;
  color: var(--gray);
}

.hero-card.feat {
  background: var(--red);
  border-color: var(--red);
}

.hero-card.feat strong,
.hero-card.feat span {
  color: white;
}

.trust-bar {
  background: var(--dark);
  padding: 13px 5%;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.brand-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  height: 110px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand-inner {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-logo-img {
  height: 60px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.04));
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.brand-logo-img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.brand-name {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 800;
  color: var(--gray);
  opacity: .55;
  white-space: nowrap;
  transition: opacity .3s, transform .3s;
}

.brand-name:hover {
  opacity: 1;
  color: var(--red);
  transform: scale(1.08);
}

.section {
  padding: 60px 5%;
}

.section-alt {
  background: var(--light);
}

.sec-head {
  text-align: center;
  margin-bottom: 38px;
}

.sec-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.sec-title {
  font-family: var(--fd);
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.sec-sub {
  font-size: 15px;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cat-card {
  background: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .3s;
}

.cat-card.active {
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(215, 38, 56, 0.18);
  transform: translateY(-6px);
}

.cat-card.active::after {
  transform: scaleX(1);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.cat-card:hover::after {
  transform: scaleX(1);
}

.cat-icon {
  font-size: 52px;
  display: block;
  text-align: center;
  padding: 30px 20px 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-img {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 8px;
  overflow: hidden;
}

.cat-icon-img img {
  max-width: 85%;
  max-height: 130px;
  object-fit: contain;
  transition: transform .3s;
}

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

.cat-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 20px 4px;
  margin: 0;
}

.cat-card span {
  font-size: 11px;
  color: var(--gray);
  padding: 0 20px 16px;
  display: block;
}

/* Flavor dropdown on product cards */
.flavor-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--dark);
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
  appearance: auto;
}

.flavor-select:focus {
  border-color: var(--red);
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.prod-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .2s;
  position: relative;
}

.prod-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.prod-img {
  height: 170px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 68px;
  position: relative;
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-new {
  background: var(--green);
  color: white;
}

.badge-sale {
  background: var(--red);
  color: white;
}

.badge-hot {
  background: var(--gold);
  color: #6B3D00;
}

.halal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.prod-body {
  padding: 13px 15px;
}

.prod-brand {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.prod-weight {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 10px;
}

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prod-price {
  font-family: var(--fd);
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
}

.prod-price .old {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 3px;
}

.add-btn {
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--rs);
  padding: 7px 13px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.add-btn:hover {
  background: var(--red-dark);
}

.track-section {
  background: var(--dark);
  padding: 56px 5%;
  color: white;
}

.track-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.track-container .sec-title {
  color: white;
}

.track-form {
  display: flex;
  gap: 10px;
  margin: 26px 0;
}

.track-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--rs);
  border: 2px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: white;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  outline: none;
}

.track-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.track-input:focus {
  border-color: var(--gold);
}

.track-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 13px 26px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.order-status-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: 22px;
  text-align: left;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.order-meta-item label {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 3px;
}

.order-meta-item strong {
  font-size: 14px;
  color: white;
  font-weight: 700;
}

.status-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 6px;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, .1);
}

.status-progress {
  position: absolute;
  top: 15px;
  left: 8%;
  height: 2px;
  background: var(--green);
  width: 0%;
  transition: width 0.4s ease;
}

.step-item {
  text-align: center;
  position: relative;
  flex: 1;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 auto 7px;
  border: 2px solid rgba(255, 255, 255, .15);
  background: var(--dark);
  color: rgba(255, 255, 255, .3);
  position: relative;
  z-index: 1;
}

.step-dot.done {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.step-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  font-weight: 600;
}

.step-label.done {
  color: rgba(255, 255, 255, .8);
}

.step-label.active {
  color: var(--gold);
}

.dealer-section {
  background: #0D5C37;
  padding: 60px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.dealer-content {
  color: white;
}

.dealer-content .sec-eyebrow {
  color: var(--gold);
}

.dealer-content .sec-title {
  color: white;
  text-align: left;
}

.dealer-content p {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 24px;
}

.dealer-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.dealer-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.perk-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-gold {
  background: var(--gold);
  color: #5A3A00;
  padding: 13px 26px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-gold:hover {
  background: #e8961f;
  transform: translateY(-1px);
}

.dealer-form-card {
  background: white;
  border-radius: var(--r);
  padding: 26px;
}

.dealer-form-card h3 {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
}

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

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 14px;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
}

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

.form-select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 14px;
  color: var(--dark);
  outline: none;
  background: white;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.deal-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

.deal-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #D72638;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(215, 38, 56, 0.35);
  z-index: 2;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.deal-img-container {
  width: 100%;
  height: 125px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.deal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.deal-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.deal-desc {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 8px;
  flex-grow: 1;
  line-height: 1.4;
}

.deal-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  border-radius: 8px;
  padding: 4px 8px;
  margin-bottom: 10px;
}

.timer-num {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #FBBF24;
}

.timer-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
}

.deal-price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  padding-top: 8px;
}

.deal-old-price {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--gray);
  opacity: 0.8;
}

.deal-wholesale-price {
  font-size: 15px;
  font-weight: 800;
  color: #16A34A;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
}

.cart-overlay.open {
  display: block;
}

.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  bottom: 0;
  width: 375px;
  background: white;
  z-index: 201;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 800;
}

.close-btn {
  background: var(--light);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--rs);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
}

.cart-item {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 54px;
  height: 54px;
  background: var(--light);
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-info span {
  font-size: 11px;
  color: var(--gray);
}

.cart-item-price {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

.qty-num {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total span {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.cart-total strong {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.checkout-btn {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 9px;
  transition: background .2s;
}

.checkout-btn:hover {
  background: var(--red-dark);
}

.wa-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.wa-btn:hover {
  background: #1ebe5a;
}

/* Auth Screens styling */
.auth-page {
  background: #12121E;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #1E2235;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 400px;
  padding: 30px;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-family: var(--fd);
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-header p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.alert-error {
  background: rgba(215,38,56,0.15);
  border: 1px solid var(--red);
  color: #ff858d;
}

.alert-success {
  background: rgba(26,122,74,0.15);
  border: 1px solid var(--green);
  color: #8bf2bb;
}

.auth-group {
  margin-bottom: 16px;
}

.auth-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 11px 14px;
  border-radius: var(--rs);
  color: white;
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
}

.auth-input:focus {
  border-color: var(--red);
}

.auth-btn {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--rs);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.auth-btn:hover {
  background: var(--red-dark);
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.auth-footer a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

/* Admin Dashboard styles */
.admin-page {
  background: #12121E;
  min-height: 100vh;
  color: white;
}

.admin-header {
  background: #1E2235;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-info span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.btn-logout {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.admin-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  background: #181B2B;
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 20px 0;
}

.admin-nav-item {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  border-left: 3px solid transparent;
}

.admin-nav-item.active {
  background: rgba(215, 38, 56, .1);
  color: white;
  border-left-color: var(--red);
}

.admin-nav-item:hover:not(.active) {
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .02);
}

.admin-main {
  padding: 30px;
  overflow-y: auto;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: #1E2235;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r);
  padding: 20px;
}

.stat-card .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-card .val {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.stat-card .chg {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}

.admin-card {
  background: #1E2235;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-card-header h3 {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 800;
}

.orders-table, .products-table, .dealers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table-head {
  background: rgba(255,255,255,0.03);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
}

.table-head th, .table-row td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-row {
  font-size: 13px;
  transition: background .2s;
}

.table-row:hover {
  background: rgba(255,255,255,0.02);
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  text-align: center;
}

.s-pending {
  background: rgba(245,166,35,0.15);
  color: #ffc25c;
  border: 1px solid rgba(245,166,35,0.3);
}

.s-processing, .s-packing {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}

.s-dispatched {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.3);
}

.s-delivered, .s-approved {
  background: rgba(26,122,74,0.15);
  color: #8bf2bb;
  border: 1px solid rgba(26,122,74,0.3);
}

.s-rejected {
  background: rgba(215,38,56,0.15);
  color: #ff858d;
  border: 1px solid rgba(215,38,56,0.3);
}

.status-select {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
  font-size: 12px;
  font-family: var(--fb);
  cursor: pointer;
}

.status-select option {
  background: #1E2235;
  color: white;
}

.btn-action {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fb);
  transition: all 0.2s;
  margin-right: 4px;
}

.btn-edit {
  background: rgba(245,166,35,0.12);
  color: var(--gold);
  border: 1px solid rgba(245,166,35,0.3);
}

.btn-edit:hover {
  background: var(--gold);
  color: #3b2500;
}

.btn-delete {
  background: rgba(215,38,56,0.12);
  color: var(--red);
  border: 1px solid rgba(215,38,56,0.3);
}

.btn-delete:hover {
  background: var(--red);
  color: white;
}

.btn-approve {
  background: rgba(26,122,74,0.15);
  color: var(--green);
  border: 1px solid rgba(26,122,74,0.3);
}

.btn-approve:hover {
  background: var(--green);
  color: white;
}

.btn-reject {
  background: rgba(215,38,56,0.15);
  color: var(--red);
  border: 1px solid rgba(215,38,56,0.3);
}

.btn-reject:hover {
  background: var(--red);
  color: white;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}



.modal.open {
  display: flex;
}

.modal-content {
  background: #1E2235;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 500px;
  padding: 24px;
  color: white;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-header h3 {
  font-family: var(--fd);
  font-size: 20px;
}

.modal-body {
  margin-bottom: 18px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 10px 18px;
  border-radius: var(--rs);
  cursor: pointer;
  font-weight: 600;
}

.btn-cancel:hover {
  background: rgba(255,255,255,0.1);
}

footer {
  background: var(--dark);
  color: white;
  padding: 44px 5% 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.7;
  max-width: 230px;
  margin-top: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
}

.halal-cert {
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 4px;
  letter-spacing: .05em;
  display: inline-block;
  margin-top: 13px;
}

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 11px 18px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .38);
  transition: all .2s;
  text-decoration: none;
}

.wa-float:hover {
  transform: translateY(-2px);
}

@media(max-width:768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 5%;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-visual {
    display: none;
  }
  .dealer-section {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .admin-body {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
  .admin-nav-item {
    padding: 10px 15px;
    font-size: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .trust-bar {
    gap: 16px;
  }
}


/* Phase 2 Additions */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 20px;
  flex: 1;
  max-width: 250px;
}
.search-bar input {
  width: 100%;
  padding: 8px 12px;
  padding-right: 32px;
  border-radius: var(--rs);
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--dark);
  font-family: var(--fb);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.search-bar input:focus {
  border-color: var(--red);
  background: white;
}
.search-icon {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.btn-lang {
  font-weight: 800;
  font-family: inherit;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--rs);
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 10px;
}
.btn-lang:hover {
  background: var(--border);
}

.btn-install-nav {
  font-weight: 800;
  font-family: inherit;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--rs);
  border: 1px solid var(--red);
  background: var(--red-light);
  color: var(--red);
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 10px;
}
.btn-install-nav:hover {
  background: var(--red);
  color: white;
}

.wishlist-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 15px;
}
.wishlist-btn:hover {
  transform: scale(1.1);
}
.wishlist-btn.active {
  border-color: var(--red);
}

/* Urdu RTL overrides */
html[dir="rtl"] {
  font-family: 'Noto Nastaliq Urdu', 'Nunito', sans-serif;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .navbar,
html[dir="rtl"] .hero,
html[dir="rtl"] .prod-footer,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
  margin-right: auto;
  margin-left: 0;
}
html[dir="rtl"] .search-bar {
  flex-direction: row-reverse;
}
html[dir="rtl"] .search-bar input {
  padding-right: 12px;
  padding-left: 32px;
}
html[dir="rtl"] .search-icon {
  right: auto;
  left: 10px;
}
html[dir="rtl"] .btn-lang {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .btn-install-nav {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .cart-btn {
  margin-right: 0;
}
html[dir="rtl"] .logo-wrap {
  text-align: right;
}
html[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-btns {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-visual {
  direction: ltr;
}
html[dir="rtl"] .wishlist-btn {
  right: auto;
  left: 10px;
}
html[dir="rtl"] .cart-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .cart-item-price {
  text-align: left;
}
html[dir="rtl"] .qty-control {
  flex-direction: row-reverse;
}
html[dir="rtl"] .order-meta {
  flex-direction: row-reverse;
}
html[dir="rtl"] .status-steps {
  flex-direction: row-reverse;
}
html[dir="rtl"] .dealer-section {
  flex-direction: row-reverse;
}
html[dir="rtl"] .dealer-perks li {
  text-align: right;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 8px;
}
html[dir="rtl"] .dealer-perks li svg {
  margin: 0;
}

/* ==========================================================================
   ADMIN MANUAL ORDER BUILDER STYLES
   ========================================================================== */
.search-dropdown-results {
  max-height: 180px;
  overflow-y: auto;
  background: #24293e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.search-dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
  text-align: left;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: rgba(245, 166, 35, 0.18);
  color: #fff;
}

.search-dropdown-no-results {
  padding: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* PWA Installation Prompt Banner (Apple/Stripe inspired) */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 150%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.pwa-install-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* PWA Banner iOS mode display toggle */
.pwa-install-banner.ios-mode .pwa-standard-view {
  display: none !important;
}
.pwa-install-banner.ios-mode .pwa-ios-view {
  display: block !important;
}

.pwa-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pwa-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pwa-title {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.pwa-desc {
  color: #4b5563;
  font-size: 12px;
}

.pwa-btn-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-btn-dismiss {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.pwa-btn-dismiss:hover {
  background: #f3f4f6;
  color: #374151;
}

.pwa-btn-install {
  background: #D72638;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(215, 38, 56, 0.2);
  transition: background 0.2s, transform 0.1s;
}

.pwa-btn-install:hover {
  background: #be1c2e;
}

.pwa-btn-install:active {
  transform: scale(0.97);
}

/* Responsive & RTL overrides */
@media (max-width: 520px) {
  .pwa-install-banner {
    bottom: 16px;
    padding: 14px 16px;
  }
  .pwa-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pwa-btn-wrap {
    justify-content: flex-end;
  }
}

html[dir="rtl"] .pwa-content {
  flex-direction: row-reverse;
}
html[dir="rtl"] .pwa-text-wrap {
  text-align: right;
}
html[dir="rtl"] .pwa-btn-wrap {
  flex-direction: row-reverse;
}

@media (max-width: 520px) {
  html[dir="rtl"] .pwa-content {
    flex-direction: column;
  }
}

/* ==========================================================================
   FINAL COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES (Defined last to take priority)
   ========================================================================== */
@media(max-width:768px) {
  /* Navigation & Header Layout Stacking */
  .navbar {
    height: auto !important;
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  html[dir="rtl"] .navbar {
    flex-direction: column !important;
  }
  .logo {
    align-self: center !important;
    margin-bottom: 2px !important;
    font-size: 22px !important;
  }
  .search-bar {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    order: 2 !important;
  }
  .nav-actions {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    order: 3 !important;
  }
  #dealerSessionInfo {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  #dealerSessionInfo span {
    font-size: 12px !important;
  }
  #dealerSessionInfo button {
    padding: 5px 10px !important;
    font-size: 10px !important;
  }
  .btn-dealer {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  .btn-lang {
    padding: 7px 10px !important;
    font-size: 12px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .cart-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  /* Hero Section scaling */
  .hero {
    grid-template-columns: 1fr !important;
    padding: 30px 16px !important;
    min-height: auto !important;
  }
  .hero h1 {
    font-size: 30px !important;
  }
  .hero p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
  .hero-visual {
    display: none !important;
  }

  /* Trust Bar compact layout */
  .trust-bar {
    gap: 12px 20px !important;
    padding: 12px 16px !important;
    justify-content: center !important;
  }
  .trust-item {
    font-size: 12px !important;
  }

  /* Brand Logos swipe-scrolling */
  .brand-strip {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 0 !important;
    height: auto !important;
    scrollbar-width: none !important; /* Firefox */
  }
  .brand-strip::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
  }
  .brand-inner {
    animation: none !important;
    transform: none !important;
    padding: 0 16px !important;
    gap: 28px !important;
    width: max-content !important;
  }
  .brand-logo-img {
    height: 48px !important;
    max-height: 48px !important;
  }
  .brand-name {
    font-size: 22px !important;
  }

  /* Responsive 2-column product & deals grids */
  .cat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .cat-card {
    min-height: 140px !important;
  }
  .cat-icon-img img {
    max-height: 80px !important;
  }
  .cat-card h3 {
    font-size: 13px !important;
    padding: 0 12px 2px !important;
  }
  .cat-card span {
    font-size: 10px !important;
    padding: 0 12px 10px !important;
  }

  .prod-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .prod-card {
    border-radius: 12px !important;
  }
  .prod-img {
    height: 140px !important;
    font-size: 48px !important;
  }
  .prod-body {
    padding: 10px !important;
  }
  .prod-name {
    font-size: 13px !important;
  }
  .prod-price {
    font-size: 16px !important;
  }
  .add-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .deal-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .deal-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .deal-img-container {
    height: 100px !important;
    margin-bottom: 8px !important;
  }
  .deal-title {
    font-size: 13px !important;
  }
  .deal-desc {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }
  .deal-timer {
    padding: 3px 6px !important;
    margin-bottom: 8px !important;
  }
  .timer-num {
    font-size: 11px !important;
  }
  .timer-label {
    font-size: 8px !important;
  }
  .deal-price-container {
    padding-top: 6px !important;
    gap: 4px !important;
  }
  .deal-wholesale-price {
    font-size: 14px !important;
  }
  .deal-old-price {
    font-size: 10px !important;
  }

  /* Padding & Text Scaling adjustments */
  .section {
    padding: 36px 16px !important;
  }
  .sec-head {
    margin-bottom: 24px !important;
  }
  .sec-title {
    font-size: 26px !important;
  }
  .sec-sub {
    font-size: 13px !important;
  }

  /* Dealer Section mobile spacing */
  .dealer-section {
    grid-template-columns: 1fr !important;
    padding: 36px 16px !important;
    gap: 32px !important;
  }
  .dealer-content .sec-title {
    font-size: 26px !important;
  }
  .dealer-content p {
    font-size: 14px !important;
    margin: 10px 0 16px !important;
  }
  .dealer-form-card {
    padding: 18px !important;
  }

  /* Modals sizing */
  .modal {
    padding: 10px !important;
  }
  .modal-content {
    padding: 16px !important;
    max-height: 95vh !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
  
  /* Cart Sidebar mobile size lock */
  .cart-sidebar {
    width: 100% !important;
    right: -100% !important;
  }
  .cart-sidebar.open {
    right: 0 !important;
  }
}

@media(max-width:480px) {
  /* Extra mobile optimization for very narrow screens */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
  .track-form {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .track-btn {
    width: 100% !important;
  }
}

/* Search Highlight Pulsing Effect */
.prod-card.search-highlight {
  animation: searchPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: var(--red) !important;
  box-shadow: 0 0 0 5px rgba(215, 38, 56, 0.35), 0 12px 32px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-8px) scale(1.03) !important;
  z-index: 10;
}

@keyframes searchPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(215, 38, 56, 0.7);
  }
  15% {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.3);
  }
  30% {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 0 rgba(215, 38, 56, 0.7);
  }
  45% {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.3);
  }
  60% {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 0 rgba(215, 38, 56, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
}
