/* ============================================
   PIZZA HUT QATAR — 1:1 CLONE STYLES
============================================ */

:root {
  --red: #c8102e;
  --red-dark: #a70e26;
  --red-hero: #7a0e1e;
  --red-hero-dark: #4d0812;
  --ink: #231f20;
  --ink-soft: #333;
  --grey-1: #f5f5f5;
  --grey-2: #e5e5e5;
  --grey-3: #999;
  --grey-4: #666;
  --white: #ffffff;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.header-top {
  background: var(--white);
}
.header-top > .header-container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
}
.mode-tabs {
  display: flex;
  gap: 0;
  margin-left: 20px;
}
.mode-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px 18px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: color .2s;
}
.mode-tab .mode-icon {
  display: inline-flex;
  align-items: center;
}
.mode-tab.active {
  color: var(--ink);
}
.mode-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
}
.mode-tab:hover {
  color: var(--red);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-btn, .cart-btn {
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.cart-btn .cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cart-btn .cart-count[hidden] { display: none !important; }
.login-btn {
  background: var(--red);
  color: var(--white);
  padding: 10px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}
.login-btn:hover { background: var(--red-dark); }

.header-bottom {
  background: var(--white);
  border-bottom: 1px solid var(--grey-2);
}
.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
}
.header-left-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 2px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.menu-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: color .15s;
}
.menu-link:hover { color: var(--red); }
.find-restaurant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.find-restaurant img { height: 26px; width: auto; }
.find-restaurant:hover { color: var(--red); }

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--red-hero-dark);
}
.hero-track {
  display: flex;
  transition: transform .5s ease;
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}
.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(0,0,0,.6); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 9px;
  height: 9px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  transition: all .2s;
}
.hero-dot.active {
  background: var(--red);
  width: 22px;
  border-radius: 6px;
}

/* ============ REORDER STRIP ============ */
.reorder-strip {
  background: var(--white);
  padding: 18px 32px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--grey-2);
}
.reorder-btn {
  background: var(--red-hero);
  color: var(--white);
  padding: 12px 60px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  opacity: .5;
  cursor: not-allowed;
  transition: opacity .2s;
}
.reorder-btn:hover { opacity: .65; }

/* ============ SECTIONS ============ */
.section {
  padding: 30px 0 20px;
}
.section-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.section-title.underlined {
  margin-bottom: 20px;
}
.view-all {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.view-all:hover { color: var(--red-dark); }

/* ============ CATEGORY CAROUSEL ============ */
.categories-section {
  padding-top: 30px;
}
.cat-carousel {
  position: relative;
}
.cat-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 220px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ebebeb;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
  display: block;
  scroll-snap-align: start;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  border-color: var(--red);
}
.cat-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card h3 {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  padding: 12px 14px;
  margin: 0;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.cat-track { scroll-snap-type: x mandatory; }
.cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: all .2s;
}
.cat-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}
.cat-arrow:hover svg { stroke: #fff; }
.cat-arrow.prev { left: -14px; }
.cat-arrow.next { right: -14px; }

/* ============ PRODUCTS ============ */
.products-section {
  padding: 30px 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.deals-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .products-grid, .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .products-grid, .deals-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease, border-color .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.09);
  transform: translateY(-2px);
  border-color: #dedede;
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active svg { fill: var(--red); }

.product-image {
  aspect-ratio: 408/200;  /* matches source thumbnail — no crop, no stretch */
  background: #ffffff;
  display: block;
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
  image-rendering: auto;
}
.product-card:hover .product-image img {
  transform: scale(1.06);
}
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
  transition: transform .15s;
}
.fav-btn svg { width: 14px; height: 14px; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.active svg { fill: var(--red); animation: heartBeat .6s ease; }
.product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.product-name {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.25;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 2px;
}
.product-desc {
  color: var(--grey-4);
  font-size: 11.5px;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.product-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.select-wrap {
  position: relative;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .15s;
}
.select-wrap:hover { border-color: var(--red); }
.select-wrap select {
  width: 100%;
  padding: 6px 20px 6px 8px;
  border: 0;
  appearance: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  outline: none;
  cursor: pointer;
  line-height: 1.4;
}
.select-wrap svg {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.product-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 2px 4px;
  height: 30px;
}
.qty-btn {
  color: var(--red);
  font-weight: 900;
  font-size: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .15s;
  line-height: 1;
}
.qty-btn:hover { background: rgba(200,16,46,.12); }
.qty-btn:active { transform: scale(.9); }
.qty-val {
  font-weight: 700;
  font-size: 12px;
  min-width: 16px;
  text-align: center;
}
.add-btn {
  background: var(--red);
  color: var(--white);
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  transition: background .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  letter-spacing: .02em;
}
.add-btn::before {
  content: '+';
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}
.add-btn:hover { background: var(--red-dark); }
.add-btn:active { transform: scale(.97); }
.add-btn.full {
  width: 100%;
  padding: 10px 14px;
  height: 36px;
  font-size: 13px;
  margin-top: auto;
}

/* Deal cards */
.deal-card .product-image {
  aspect-ratio: 1.3;
}
.deal-card .product-body {
  padding: 14px 16px 16px;
}

.view-all-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}
.view-all-btn {
  background: var(--red);
  color: var(--white);
  padding: 12px 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}
.view-all-btn:hover { background: var(--red-dark); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-2);
  margin-top: 40px;
}
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 32px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-col h5 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--grey-4);
  font-size: 13px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--red); }

.store-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.store-badges a { padding: 0; }
.store-badges img {
  height: 40px;
  width: auto;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a { padding: 0; }
.socials img {
  height: 26px;
  width: 26px;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid var(--grey-2);
  padding: 16px 32px;
}
.footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--grey-4);
}
.powered-by {
  color: var(--red);
}
.powered-by b {
  font-weight: 700;
}

@media (max-width: 780px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============ MODAL: DELIVERY OR PICKUP ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  z-index: 500;
  padding: 20px;
  opacity: 1;
  transition: opacity .3s;
}
.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 40px 0;
  width: 100%;
  max-width: 440px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background .15s;
}
.modal-close:hover { background: var(--red-dark); }
.modal-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
}
.modal-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.modal-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.modal-sub b {
  color: var(--red);
  font-weight: 800;
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  border-top: 1px dashed #ccc;
}
.pizza-slice {
  width: 32px;
  height: 32px;
  background:
    radial-gradient(circle at 50% 10%, transparent 0 4px, #d92a17 5px 8px, transparent 9px),
    radial-gradient(circle at 30% 60%, #4caf50 3px, transparent 4px),
    radial-gradient(circle at 70% 55%, #1a1a1a 3px, transparent 4px),
    linear-gradient(180deg, #ffd970 0%, #ffb300 100%);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
.modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.modal-opt {
  background: var(--white);
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  padding: 20px 12px;
  position: relative;
  transition: all .2s;
  text-align: center;
}
.modal-opt.active {
  border-color: var(--red);
  border-width: 2px;
}
.modal-opt:hover { border-color: var(--red); }
.modal-opt img {
  height: 56px;
  width: auto;
  margin: 0 auto 8px;
}
.modal-opt h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: .04em;
}
.modal-opt p {
  font-size: 11px;
  color: var(--grey-4);
  line-height: 1.3;
  margin: 0;
}
.opt-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.modal-safe {
  padding: 12px 0;
  background: var(--grey-1);
  margin: 20px -40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-4);
  letter-spacing: .05em;
}

/* ============ CART DRAWER ============ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -6px 0 30px rgba(0,0,0,.15);
  z-index: 200;
  transition: right .35s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--grey-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h4 {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}
.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grey-1);
  font-size: 22px;
  line-height: 1;
  transition: all .15s;
}
.cart-close:hover { background: var(--red); color: var(--white); }
.cart-empty {
  flex: 1;
  padding: 40px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.cart-empty img {
  width: 160px;
  height: auto;
  margin-bottom: 8px;
}
.cart-empty-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0;
}
.cart-empty-sub {
  font-size: 13px;
  color: var(--grey-4);
  margin: 0;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.cart-drawer.has-items .cart-items { display: flex; }
.cart-drawer.has-items .cart-empty { display: none; }
.cart-drawer:not(.has-items) .cart-summary { display: none; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--grey-2);
  gap: 10px;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cart-item-price {
  font-size: 12px;
  color: var(--grey-4);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--grey-1);
  padding: 4px 10px;
  border-radius: 999px;
}
.cart-item-qty button {
  width: 22px;
  height: 22px;
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
}
.cart-summary {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--grey-2);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}
.cart-row.total {
  font-weight: 800;
  font-size: 17px;
  padding: 10px 0 14px;
}
.checkout-btn {
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  transition: background .15s;
}
.checkout-btn:hover { background: var(--red-dark); }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  transition: opacity .3s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 400;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 780px) {
  .header-top > .header-container { flex-wrap: wrap; }
  .mode-tabs { order: 3; width: 100%; margin: 0; justify-content: center; }
  .header-bottom-inner { padding: 10px 16px; }
  .header-right { gap: 10px; }
  .login-btn { padding: 8px 18px; font-size: 13px; }
  .section-container { padding: 0 16px; }
  .cat-card { flex: 0 0 200px; }
  .cat-card img { height: 130px; }
  .cat-arrow { display: none; }
}

/* ============================================
   SITE ANIMATIONS
============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(.9); }
  75% { transform: scale(1.1); }
}
@keyframes toastPop {
  0% { transform: translateX(-50%) translateY(30px) scale(.9); opacity: 0; }
  60% { transform: translateX(-50%) translateY(-6px) scale(1.03); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes addPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,16,46,.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(200,16,46,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
.add-btn.pulse { animation: addPulse .45s ease; }

/* Apply to sections */
.hero-slide.active { animation: fadeIn .6s ease; }
.cat-card { animation: fadeInUp .5s ease backwards; }
.cat-card:nth-child(2) { animation-delay: .05s; }
.cat-card:nth-child(3) { animation-delay: .1s; }
.cat-card:nth-child(4) { animation-delay: .15s; }
.cat-card:nth-child(5) { animation-delay: .2s; }
.cat-card:nth-child(6) { animation-delay: .25s; }
.product-card { animation: fadeInUp .45s ease backwards; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .1s; }
.product-card:nth-child(4) { animation-delay: .15s; }
.product-card:nth-child(5) { animation-delay: .2s; }
.product-card:nth-child(6) { animation-delay: .25s; }

.fav-btn.active svg {
  fill: #c8102e;
  animation: heartBeat .6s ease;
}

.toast.show { animation: toastPop .35s cubic-bezier(.34,1.56,.64,1); }

/* Modal fade-in */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop.visible .modal-card {
  animation: fadeInScale .4s cubic-bezier(.34,1.56,.64,1);
}

/* Button hover ripple */
.btn-primary, .btn-secondary, .add-btn, .login-btn, .checkout-btn, .view-all-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, .add-btn::after, .login-btn::after, .checkout-btn::after, .view-all-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform .5s, opacity .5s;
  opacity: 0;
  z-index: -1;
}
.btn-primary:active::after, .add-btn:active::after, .login-btn:active::after, .checkout-btn:active::after, .view-all-btn:active::after {
  transform: translate(-50%, -50%) scale(15);
  opacity: 1;
  transition: 0s;
}

/* Sticky header shadow */
.site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* ============================================
   PRIMARY / SECONDARY BUTTONS (missing before)
============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8102e;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn-primary:hover { background: #a70e26; }
.btn-primary:active { transform: scale(.98); }
.btn-primary.block { width: 100%; }
.btn-primary[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #c8102e;
  border: 1.5px solid #c8102e;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
}
.btn-secondary:hover { background: #c8102e; color: #fff; }
.btn-secondary.block { width: 100%; }

/* ============================================
   TAGS (bestseller/new/spicy/veg)
============================================ */
.tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: #666;
}
.tag-best { background: #ffcc00; color: #231f20; }
.tag-new { background: #231f20; color: #ffcc00; }
.tag-hot, .tag-spicy { background: #c8102e; }
.tag-veg { background: #2d8f2d; }
.tag-vegan { background: #66bb6a; color: #231f20; }
.tag-halal { background: #009e60; }

/* ============================================
   SIDEBAR DRAWER (hamburger nav)
============================================ */
.sidebar-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  max-width: 88vw;
  height: 100vh;
  background: #fff;
  z-index: 250;
  transition: left .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,.2);
}
.sidebar-drawer.open { left: 0; }
.sidebar-head {
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-head img { height: 40px; }
.sidebar-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 22px;
  line-height: 1;
  color: #231f20;
  transition: all .15s;
}
.sidebar-close:hover { background: #c8102e; color: #fff; }
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  color: #231f20;
  font-weight: 600;
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-nav a:hover {
  background: #f8f8f8;
  border-left-color: #c8102e;
  color: #c8102e;
}
.sidebar-foot {
  padding: 20px;
  border-top: 1px solid #e5e5e5;
}
.sidebar-langs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.lang-pill {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  background: #f5f5f5;
  font-weight: 700;
  font-size: 13px;
  transition: all .15s;
}
.lang-pill.active { background: #c8102e; color: #fff; }
.sidebar-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.sidebar-socials a { padding: 0; }
.sidebar-socials img { height: 24px; width: 24px; }
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============================================
   MENU PAGE (menu.html)
============================================ */
.page-menu, .page-category { background: #fafafa; }

.menu-page, .cat-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 30px;
  min-height: 80vh;
}
@media (max-width: 900px) {
  .menu-page, .cat-page { grid-template-columns: 1fr; padding: 0 16px; }
  .menu-sidebar { display: none; }
}

.menu-sidebar {
  position: sticky;
  top: 130px;
  align-self: flex-start;
  padding: 20px 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-title {
  font-weight: 800;
  font-size: 14px;
  color: #231f20;
  padding: 0 12px 10px;
  border-bottom: 2px solid #c8102e;
  margin-bottom: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .15s;
  font-size: 13px;
  font-weight: 600;
  color: #231f20;
}
.sidebar-cat-link img {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-cat-link span { flex: 1; }
.sidebar-cat-link em {
  font-style: normal;
  font-size: 11px;
  color: #999;
  font-weight: 700;
}
.sidebar-cat-link:hover { background: #f5f5f5; }
.sidebar-cat-link.active {
  background: rgba(200,16,46,.08);
  color: #c8102e;
  border-left: 3px solid #c8102e;
  padding-left: 9px;
}

.menu-main { padding: 30px 0 60px; }
.menu-hero {
  background: linear-gradient(135deg, #c8102e 0%, #7a0e1e 100%);
  color: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.menu-hero::before {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,204,0,.2), transparent 70%);
  border-radius: 50%;
}
.menu-hero-inner { position: relative; z-index: 2; }
.menu-hero h1 {
  font-family: 'Sansita', 'Open Sans', sans-serif;
  font-weight: 900;
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.menu-hero p { margin: 0; opacity: .9; font-size: 15px; max-width: 520px; }

.menu-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color .15s;
}
.search-wrap:focus-within { border-color: #c8102e; }
.search-wrap input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  padding: 10px 16px;
}
.sort-wrap label { font-weight: 600; font-size: 13px; color: #666; }
.sort-wrap select {
  border: 0; outline: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.menu-group {
  margin-bottom: 40px;
  animation: fadeInUp .5s ease;
}
.menu-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 2px solid #c8102e;
  margin-bottom: 20px;
}
.menu-group-head h2 {
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  color: #231f20;
}
.menu-group-count {
  color: #999;
  font-size: 13px;
  font-weight: 600;
}
.menu-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.menu-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
  font-weight: 600;
}

/* ============================================
   CATEGORY HERO
============================================ */
.cat-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  margin-bottom: 30px;
}
.cat-hero-inner { position: relative; width: 100%; height: 100%; }
.cat-hero-inner > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7));
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}
.cat-hero-overlay h1 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 48px;
  margin: 8px 0 4px;
  letter-spacing: -.02em;
}
.cat-hero-overlay p { margin: 0; opacity: .9; }
.back-link {
  display: inline-block;
  color: #fff;
  opacity: .85;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .15s;
}
.back-link:hover { opacity: 1; }

/* ============================================
   PRODUCT DETAIL (product.html)
============================================ */
.page-product { background: #fafafa; }
.product-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 32px 80px;
}
.product-crumbs {
  padding: 16px 0;
  font-size: 13px;
  color: #666;
}
.product-crumbs a { color: #666; }
.product-crumbs a:hover { color: #c8102e; }
.product-crumbs .sep { margin: 0 6px; color: #ccc; }
.product-crumbs b { color: #231f20; font-weight: 700; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
}
.pd-gallery { position: sticky; top: 130px; align-self: flex-start; }
.pd-image-main {
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInScale .4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.pd-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pd-image-main:hover img { transform: scale(1.05); }
.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pd-thumb {
  width: 70px; height: 70px;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s;
}
.pd-thumb.active { border-color: #c8102e; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-right { padding-top: 8px; }
.pd-cat {
  color: #c8102e;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pd-name {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 36px;
  margin: 8px 0 16px;
  letter-spacing: -.01em;
}
.pd-price {
  font-size: 26px;
  font-weight: 800;
  color: #c8102e;
  margin: 0 0 16px;
}
.pd-desc {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.pd-option-group {
  margin-bottom: 20px;
}
.pd-option-group h4 {
  font-size: 13px;
  font-weight: 800;
  color: #231f20;
  margin: 0 0 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pd-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-choice {
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.pd-choice.active {
  border-color: #c8102e;
  background: rgba(200,16,46,.05);
}
.pd-choice:hover { border-color: #c8102e; }
.ch-label { font-weight: 700; font-size: 14px; color: #231f20; }
.ch-price, .ch-sub { font-size: 12px; color: #666; }
.pd-choice.active .ch-price { color: #c8102e; font-weight: 700; }

.pd-qty {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  padding: 4px 20px;
}
.pd-qty button {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #c8102e;
  font-weight: 900;
  font-size: 20px;
  transition: background .15s;
}
.pd-qty button:hover { background: rgba(200,16,46,.1); }
.pd-qty span { font-weight: 800; font-size: 17px; min-width: 30px; text-align: center; }

.pd-cta {
  display: flex;
  gap: 12px;
  margin: 24px 0 20px;
}
.pd-add-btn {
  flex: 1;
  background: #c8102e;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  transition: all .2s;
}
.pd-add-btn:hover { background: #a70e26; transform: translateY(-2px); }
.pd-fav {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.pd-fav:hover { border-color: #c8102e; transform: scale(1.05); }
.pd-fav.active svg { fill: #c8102e; animation: heartBeat .6s ease; }
.pd-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.product-related {
  margin-top: 40px;
}

/* ============================================
   AUTH / LOGIN PAGE (login.html)
============================================ */
.page-auth { background: #fafafa; }
.auth-page {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
@media (max-width: 800px) {
  .auth-container { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
.auth-visual {
  background: linear-gradient(135deg, #c8102e 0%, #7a0e1e 100%);
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,204,0,.25), transparent 70%);
  border-radius: 50%;
}
.auth-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.auth-visual h2 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 32px;
  margin: 0 0 12px;
  position: relative;
  z-index: 2;
}
.auth-visual p {
  opacity: .9;
  font-size: 15px;
  margin: 0 0 20px;
  position: relative;
  z-index: 2;
}
.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.auth-benefits svg { background: #fff; padding: 4px; border-radius: 50%; }

.auth-form-card { padding: 36px 40px; }
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 24px;
}
.auth-tab {
  padding: 12px 4px;
  font-weight: 700;
  font-size: 15px;
  color: #999;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  flex: 1;
  text-align: center;
}
.auth-tab.active {
  color: #c8102e;
  border-bottom-color: #c8102e;
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 14px;
  gap: 10px;
  transition: border-color .15s;
}
.input-group:focus-within { border-color: #c8102e; }
.input-group input {
  flex: 1;
  border: 0; outline: 0;
  font-family: inherit;
  font-size: 15px;
  background: transparent;
}
.country-code {
  font-weight: 700;
  color: #666;
  padding-right: 10px;
  border-right: 1px solid #e5e5e5;
}
.pw-toggle {
  padding: 4px;
  color: #999;
  transition: color .15s;
}
.pw-toggle:hover { color: #c8102e; }
.pw-toggle:hover svg { stroke: #c8102e; }

.auth-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 20px;
  font-size: 13px;
}
.remember { display: inline-flex; align-items: center; gap: 6px; color: #666; }
.forgot { color: #c8102e; font-weight: 600; }

.auth-submit {
  width: 100%;
  background: #c8102e;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  transition: background .15s;
}
.auth-submit:hover { background: #a70e26; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #999;
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}
.auth-oauth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  transition: all .15s;
  font-size: 13px;
  font-weight: 600;
}
.oauth-btn:hover { border-color: #c8102e; }
.auth-terms {
  margin-top: 20px;
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.5;
}
.auth-terms a { color: #c8102e; }

/* ============================================
   STORES PAGE
============================================ */
.page-stores { background: #fafafa; }
.stores-page { min-height: 80vh; }
.stores-header {
  background: linear-gradient(135deg, #c8102e 0%, #7a0e1e 100%);
  color: #fff;
  padding: 40px 0 30px;
}
.stores-header h1 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 40px;
  margin: 0 0 8px;
}
.stores-header p { opacity: .9; margin: 0 0 20px; font-size: 15px; }
.stores-search {
  display: flex;
  gap: 12px;
  max-width: 620px;
  flex-wrap: wrap;
}
.stores-search .search-wrap { min-width: 260px; }
.stores-search select {
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.stores-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  gap: 30px;
  padding: 30px 32px 80px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .stores-layout { grid-template-columns: 1fr; padding: 20px 16px 60px; }
}

.stores-count {
  color: #999;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 13px;
}
.stores-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 8px;
}
.store-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1.5px solid #e5e5e5;
  transition: all .15s;
  animation: fadeInUp .35s ease backwards;
}
.store-card:hover { border-color: #c8102e; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.store-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: #231f20; }
.store-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}
.store-badge.halal { background: #009e60; color: #fff; }
.store-city {
  color: #c8102e;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.store-address, .store-phone, .store-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}
.store-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.store-action {
  flex: 1;
  padding: 8px 12px;
  background: #c8102e;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  transition: background .15s;
}
.store-action.outline {
  background: transparent;
  color: #c8102e;
  border: 1px solid #c8102e;
}
.store-action:hover { background: #a70e26; color: #fff; }
.store-action.outline:hover { background: #c8102e; }

.stores-map {
  position: sticky;
  top: 130px;
  align-self: flex-start;
}
.map-inner {
  aspect-ratio: 1;
  background:
    linear-gradient(45deg, #d9e8d9 25%, transparent 25%),
    linear-gradient(-45deg, #d9e8d9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d9e8d9 75%),
    linear-gradient(-45deg, transparent 75%, #d9e8d9 75%),
    #edf5ed;
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0;
  border-radius: 12px;
  border: 1.5px solid #cfe0cf;
  position: relative;
  overflow: hidden;
}
.map-pin-cluster { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  width: 28px; height: 28px;
  background: #c8102e;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  animation: fadeInScale .4s ease backwards;
}
.map-pin::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
}
.map-pin.p1 { top: 30%; left: 40%; animation-delay: 0s; }
.map-pin.p2 { top: 45%; left: 55%; animation-delay: .1s; }
.map-pin.p3 { top: 25%; left: 60%; animation-delay: .2s; }
.map-pin.p4 { top: 60%; left: 35%; animation-delay: .3s; }
.map-pin.p5 { top: 55%; left: 65%; animation-delay: .4s; }
.map-overlay {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

/* ============================================
   CART PAGE / CHECKOUT
============================================ */
.page-cart, .page-checkout { background: #fafafa; }
.cart-page, .checkout-page { min-height: 80vh; padding-bottom: 80px; }
.cart-crumbs {
  padding: 24px 0 16px;
  font-size: 13px;
  color: #666;
}
.cart-crumbs a { color: #666; }
.cart-crumbs a:hover { color: #c8102e; }
.cart-crumbs b { color: #231f20; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}
.cart-items-col h1 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 32px;
  margin: 0 0 20px;
}
.cart-page-items { display: flex; flex-direction: column; gap: 12px; }
.cart-page-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
  transition: box-shadow .15s;
  animation: fadeInUp .3s ease backwards;
}
.cart-page-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.cart-page-item img {
  width: 90px; height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #f0f0f0;
}
.cpi-body h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.cpi-variant { margin: 0 0 4px; font-size: 12px; color: #999; }
.cpi-unit { margin: 0; font-size: 13px; color: #666; }
.cpi-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 4px 12px;
}
.cpi-qty button {
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #c8102e;
  font-weight: 900;
  font-size: 16px;
  transition: background .15s;
}
.cpi-qty button:hover { background: rgba(200,16,46,.1); }
.cpi-qty span { font-weight: 800; min-width: 20px; text-align: center; }
.cpi-line { font-weight: 800; font-size: 16px; color: #c8102e; min-width: 90px; text-align: right; }
.cpi-remove {
  padding: 6px;
  transition: transform .15s;
}
.cpi-remove:hover { transform: scale(1.1); }
@media (max-width: 600px) {
  .cart-page-item { grid-template-columns: 60px 1fr; grid-template-areas: 'img body' 'img body' 'qty line' 'rm rm'; }
  .cart-page-item img { grid-area: img; width: 60px; height: 60px; }
  .cpi-body { grid-area: body; }
  .cpi-qty { grid-area: qty; }
  .cpi-line { grid-area: line; }
  .cpi-remove { grid-area: rm; justify-self: end; }
}

.cart-summary-col, .checkout-summary {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
  padding: 24px;
  position: sticky;
  top: 130px;
  align-self: flex-start;
}
.cart-summary-col h3, .checkout-summary h3 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.cs-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #666;
}
.cs-row.total {
  font-weight: 800;
  font-size: 18px;
  color: #231f20;
  padding: 12px 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 8px;
}
.cs-promo {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.cs-promo input {
  flex: 1;
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}
.cs-promo button {
  padding: 10px 18px;
  background: #231f20;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  transition: background .15s;
}
.cs-promo button:hover { background: #c8102e; }
.cart-empty-page {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  animation: fadeInUp .5s ease;
}
.cart-empty-page img { width: 220px; margin: 0 auto 20px; }
.cart-empty-page h2 { font-size: 24px; margin: 0 0 8px; }
.cart-empty-page p { color: #666; margin: 0 0 20px; }

/* ============ CHECKOUT SPECIFIC ============ */
.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 30px;
  max-width: 500px;
}
.step { display: flex; align-items: center; gap: 8px; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #666;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  transition: all .3s;
}
.step.done .step-dot { background: #c8102e; color: #fff; }
.step.active .step-dot { background: #c8102e; color: #fff; box-shadow: 0 0 0 4px rgba(200,16,46,.2); }
.step-label { font-size: 13px; font-weight: 700; color: #666; }
.step.active .step-label, .step.done .step-label { color: #231f20; }
.step-line {
  flex: 1;
  height: 2px;
  background: #e5e5e5;
  transition: background .3s;
}
.step-line.active { background: #c8102e; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-forms { display: flex; flex-direction: column; gap: 20px; }
.checkout-card {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
  padding: 24px;
}
.checkout-card h3 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 16px;
}
.addr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .addr-cards { grid-template-columns: 1fr; } }
.addr-card {
  padding: 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.addr-card:hover { border-color: #c8102e; }
.addr-card.active { border-color: #c8102e; background: rgba(200,16,46,.03); }
.addr-tag {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.addr-card.active .addr-tag { background: #c8102e; color: #fff; }
.addr-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.addr-card p { margin: 0; font-size: 12px; color: #666; }
.addr-card.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-style: dashed;
  color: #c8102e;
  font-weight: 700;
  font-size: 13px;
  min-height: 88px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 500px) { .time-slots { grid-template-columns: 1fr 1fr; } }
.time-slot {
  padding: 12px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.time-slot.active { border-color: #c8102e; background: rgba(200,16,46,.03); }
.time-slot:hover { border-color: #c8102e; }
.ts-label { font-weight: 800; font-size: 14px; color: #231f20; }
.ts-sub { font-size: 11px; color: #666; }

.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.pay-method:hover { border-color: #c8102e; }
.pay-method.active { border-color: #c8102e; background: rgba(200,16,46,.03); }
.pay-method input { display: none; }
.pm-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pm-body b { display: block; font-size: 14px; }
.pm-body span:not(b) { color: #999; font-size: 12px; }
.pm-check {
  color: #c8102e;
  font-weight: 900;
  font-size: 18px;
  opacity: 0;
  transition: opacity .15s;
}
.pay-method.active .pm-check { opacity: 1; }

.card-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp .3s ease;
}
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 12px; font-weight: 700; color: #666; }
.field-row input {
  padding: 12px 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.field-row input:focus { border-color: #c8102e; outline: 0; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-card textarea {
  width: 100%;
  min-height: 80px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.checkout-card textarea:focus { border-color: #c8102e; outline: 0; }

.cs-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-height: 200px; overflow-y: auto; padding-right: 4px; }
.cs-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.cs-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.cs-item-body p { margin: 0; }
.cs-item-variant { font-size: 11px; color: #999; }
.cs-item-price { font-weight: 800; color: #c8102e; }
.cs-empty { text-align: center; color: #999; padding: 20px 0; }
.cs-empty a { color: #c8102e; font-weight: 700; }
.cs-secure {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ============================================
   CART DRAWER — cart-item thumb
============================================ */
.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 6px;
}
.cart-item-thumb {
  width: 50px; height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #f0f0f0;
}
.cart-item-variant {
  font-size: 11px;
  color: #999;
  margin: 0 0 2px;
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================
   RTL (ARABIC) SUPPORT
============================================ */
[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Open Sans', sans-serif;
}
[dir="rtl"] .header-right {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .mode-tabs {
  margin-left: 0;
  margin-right: 20px;
}
[dir="rtl"] .header-left-nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .sidebar-drawer {
  left: auto;
  right: -320px;
}
[dir="rtl"] .sidebar-drawer.open {
  left: auto;
  right: 0;
}
[dir="rtl"] .sidebar-drawer {
  box-shadow: -4px 0 30px rgba(0,0,0,.2);
}
[dir="rtl"] .sidebar-nav a {
  border-left: 0;
  border-right: 3px solid transparent;
}
[dir="rtl"] .sidebar-nav a:hover,
[dir="rtl"] .sidebar-cat-link.active {
  border-left: 0;
  border-right: 3px solid #c8102e;
  padding-left: 12px;
  padding-right: 9px;
}
[dir="rtl"] .cart-drawer {
  right: auto;
  left: -420px;
  box-shadow: 6px 0 30px rgba(0,0,0,.15);
}
[dir="rtl"] .cart-drawer.open {
  right: auto;
  left: 0;
}
[dir="rtl"] .fav-btn {
  right: auto;
  left: 8px;
}
[dir="rtl"] .tags {
  left: auto;
  right: 8px;
}
[dir="rtl"] .hero-arrow.prev,
[dir="rtl"] .cat-arrow.prev {
  left: auto;
  right: 20px;
  transform: translateY(-50%) scaleX(-1);
}
[dir="rtl"] .hero-arrow.next,
[dir="rtl"] .cat-arrow.next {
  right: auto;
  left: 20px;
  transform: translateY(-50%) scaleX(-1);
}
[dir="rtl"] .cat-arrow.prev { right: -14px; }
[dir="rtl"] .cat-arrow.next { left: -14px; }
[dir="rtl"] .product-card *,
[dir="rtl"] .cart-item *,
[dir="rtl"] .cart-page-item * {
  text-align: right;
}
[dir="rtl"] .add-btn::before {
  order: 2;
  margin-inline-start: 3px;
}
[dir="rtl"] .cat-track {
  direction: rtl;
}
[dir="rtl"] .menu-page,
[dir="rtl"] .cat-page {
  direction: rtl;
}
[dir="rtl"] .sidebar-cat-link em {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .footer-container * {
  text-align: right;
}
[dir="rtl"] .search-wrap svg,
[dir="rtl"] .menu-search svg {
  order: 2;
}
[dir="rtl"] .checkout-stepper { flex-direction: row-reverse; }
[dir="rtl"] .cs-item { grid-template-columns: auto 1fr 40px; direction: rtl; }
[dir="rtl"] .breadcrumbs, [dir="rtl"] .product-crumbs { direction: rtl; }
[dir="rtl"] .cart-item-qty { direction: ltr; }
[dir="rtl"] .qty-control { direction: ltr; }

/* ============================================
   MOBILE BREAKPOINTS — < 640px
============================================ */
@media (max-width: 640px) {
  /* Header: hamburger LEFT, mode tabs CENTER, logo RIGHT — matches original pizzahutqatar.com mobile.
     lang/bag/Login are HIDDEN on mobile (they move into the hamburger drawer).
     Hamburger is relocated via JS into .header-top on mobile (`body.mobile-header-relocated`). */
  .header-top > .header-container {
    padding: 10px 12px;
    gap: 8px;
    align-items: center;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'left tabs brand';
  }
  .logo { grid-area: brand; justify-self: end; }
  .logo img { height: 32px; }
  .mode-tabs { grid-area: tabs; width: auto; justify-content: center; margin: 0; gap: 12px; }
  .mode-tab { padding: 8px 6px 10px; font-size: 12px; gap: 4px; }
  .mode-tab .mode-icon svg { width: 22px; height: 14px; }
  /* Hide right-side icons on mobile — original has ONLY hamburger + tabs + logo */
  .header-right { display: none !important; }
  /* Hide the bottom row entirely (hamburger has been relocated to top by JS) */
  .header-bottom { display: none; }
  /* Hamburger button placed in the left grid area */
  .header-top #hamburgerBtn { grid-area: left; justify-self: start; }
  .find-restaurant span { display: none; }
  .find-restaurant img { height: 22px; }

  /* Hero */
  .hero-arrow { width: 32px; height: 32px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .hero-dots { bottom: 8px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 16px; }

  /* Sections */
  .section { padding: 24px 0 12px; }
  .section-container { padding: 0 12px; }
  .section-title { font-size: 20px; }
  .cat-track { gap: 10px; padding: 4px 0; }
  .cat-card { flex: 0 0 160px; }
  .cat-card img { height: 100px; }
  .cat-card h3 { font-size: 11px; padding: 8px 10px; }
  .cat-arrow { display: none; }

  /* Product grid */
  .products-grid, .deals-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-image { aspect-ratio: 1; }
  .product-body { padding: 10px 10px 12px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 12px; }
  .product-desc { font-size: 10.5px; min-height: 28px; }
  .product-options { grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
  .select-wrap select { padding: 5px 16px 5px 6px; font-size: 10.5px; }
  .qty-control { padding: 2px; height: 26px; }
  .qty-btn { width: 18px; height: 18px; font-size: 13px; }
  .qty-val { font-size: 11px; }
  .add-btn { padding: 0 8px; height: 26px; font-size: 11px; }
  .add-btn::before { font-size: 12px; }

  /* Menu page: sidebar becomes horizontal chips */
  .menu-page, .cat-page { grid-template-columns: 1fr; gap: 12px; padding: 0 12px; }
  .menu-sidebar {
    position: sticky;
    top: 110px;
    background: #fff;
    z-index: 15;
    padding: 8px 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #eee;
    margin: 0 -12px;
    padding-left: 12px; padding-right: 12px;
  }
  .sidebar-title { display: none; }
  .sidebar-cat-list {
    flex-direction: row;
    gap: 6px;
    padding-bottom: 4px;
  }
  .sidebar-cat-link {
    flex-direction: row;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar-cat-link img { width: 22px; height: 22px; }
  .sidebar-cat-link em { display: none; }
  .sidebar-cat-link.active {
    background: #c8102e !important;
    color: #fff !important;
    border: 0 !important;
    padding: 8px 12px !important;
  }
  .sidebar-cat-link.active img { display: none; }

  /* Menu hero */
  .menu-hero { padding: 22px 20px; margin-bottom: 16px; }
  .menu-hero h1 { font-size: 26px; }
  .menu-hero p { font-size: 13px; }
  .menu-search-bar { flex-direction: column; }
  .search-wrap, .sort-wrap { min-width: 0; width: 100%; }
  .menu-group-head h2 { font-size: 18px; }

  /* Category hero */
  .cat-hero { height: 200px; margin-bottom: 20px; }
  .cat-hero-overlay h1 { font-size: 30px; }

  /* Product detail */
  .product-page { padding: 12px 12px 60px; }
  .product-crumbs { padding: 10px 0; font-size: 11px; }
  .product-detail { gap: 20px; }
  .pd-gallery { position: static; }
  .pd-name { font-size: 26px; }
  .pd-price { font-size: 22px; }
  .pd-desc { font-size: 13px; }
  .pd-choice { min-width: 80px; padding: 10px 12px; }
  .pd-cta { flex-direction: column; }
  .pd-fav { width: 100%; }

  /* Cart drawer full width */
  .cart-drawer { width: 100vw; max-width: 100vw; right: -100vw; }
  [dir="rtl"] .cart-drawer { left: -100vw; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; padding: 24px 16px 12px; gap: 22px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }

  /* Stores */
  .stores-header { padding: 24px 0 16px; }
  .stores-header h1 { font-size: 24px; }
  .stores-layout { grid-template-columns: 1fr; padding: 16px 12px 60px; gap: 16px; }
  .stores-map { position: static; }

  /* Login */
  .auth-form-card { padding: 24px 20px; }
  .auth-oauth { grid-template-columns: 1fr; }
  .auth-visual h2 { font-size: 24px; }

  /* Checkout */
  .checkout-layout { gap: 16px; }
  .checkout-stepper { flex-wrap: wrap; }
  .checkout-card { padding: 18px; }
  .addr-cards { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: 1fr 1fr; }
  .cart-summary-col, .checkout-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; }

  /* Utility bar */
  .util-inner { flex-direction: column; gap: 6px; text-align: center; }

  /* Reorder */
  .reorder-strip { padding: 12px 16px; }
  .reorder-btn { padding: 10px 40px; font-size: 13px; }

  /* Rewards / promise / app cta if any */
  .promise-inner, .rewards-inner, .app-inner { grid-template-columns: 1fr !important; padding: 24px; gap: 20px; }

  /* Bottom sticky cart bar (mobile only) */
  body.has-cart-mobile { padding-bottom: 70px; }
}

/* ============================================
   MOBILE STICKY CART BAR (< 640px, always mounted)
============================================ */
.mobile-cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #c8102e;
  color: #fff;
  padding: 12px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .3s ease;
  animation: slideInUp .3s ease forwards;
}
@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mobile-cart-bar.visible { display: flex; }
.mobile-cart-bar .mcb-left {
  display: flex; align-items: center; gap: 10px;
}
.mobile-cart-bar .mcb-count {
  background: #ffcc00;
  color: #231f20;
  min-width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  padding: 0 6px;
}
.mobile-cart-bar .mcb-label {
  font-weight: 700; font-size: 14px;
}
.mobile-cart-bar .mcb-total {
  font-weight: 800; font-size: 15px;
}
.mobile-cart-bar .mcb-btn {
  background: #ffcc00;
  color: #231f20;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .1s;
}
.mobile-cart-bar .mcb-btn:active { transform: scale(.95); }
@media (min-width: 641px) {
  .mobile-cart-bar { display: none !important; }
}

/* ============================================
   PAYMENT — SINGLE TRUSTED CARD (checkout)
============================================ */
.pay-card { padding: 0; overflow: hidden; }
.pay-card h3 { padding: 22px 24px 0; margin-bottom: 18px; }

.pay-hero {
  padding: 0 24px 24px;
}
.pay-hero-inner {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f6 0%, #fef8e7 100%);
  border: 1.5px solid #f5c8c8;
  border-radius: 10px;
  margin-bottom: 18px;
}
.pay-hero-lock {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid #c8102e;
}
.pay-hero-copy b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #231f20;
  margin-bottom: 2px;
}
.pay-hero-copy span {
  display: block;
  font-size: 12.5px;
  color: #666;
  line-height: 1.4;
}
.pay-hero-badge {
  background: #c8102e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-brands, .pay-brand { display: none; }
.pay-brands-strip {
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pay-brands-strip img {
  max-width: 100%;
  height: 30px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.02);
}
@media (max-width: 500px) {
  .pay-brands-strip img { height: 22px; }
}

.pay-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .pay-trust { grid-template-columns: 1fr; }
  .pay-hero-inner { grid-template-columns: 40px 1fr; }
  .pay-hero-badge { grid-column: 2; justify-self: start; margin-top: 6px; }
}
.pay-trust-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}
.pay-trust-row > svg {
  margin-top: 2px;
  flex-shrink: 0;
}
.pay-trust-row b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #231f20;
  margin-bottom: 1px;
}
.pay-trust-row span {
  display: block;
  font-size: 11px;
  color: #888;
  line-height: 1.35;
}

.pay-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 11.5px;
  color: #666;
  line-height: 1.5;
}
.pay-note svg { flex-shrink: 0; margin-top: 2px; }

/* Powered by strip inside checkout summary */
.cs-powered {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 10.5px;
  color: #999;
  letter-spacing: .04em;
}
.cs-powered b { color: #c8102e; font-weight: 800; }

/* ============================================
   PICKUP PICKER BUTTON (checkout)
============================================ */
.pickup-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: #fafafa;
  border: 1.5px dashed #c8102e;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
}
.pickup-picker:hover {
  background: #fff5f6;
  border-style: solid;
}
.pp-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1.5px solid #c8102e;
  flex-shrink: 0;
}
.pp-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-body b { font-size: 14px; font-weight: 800; color: #231f20; }
.pp-body span { font-size: 12px; color: #666; }
.pp-cta {
  color: #c8102e;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  padding-left: 10px;
}
[dir="rtl"] .pickup-picker { text-align: right; }
[dir="rtl"] .pp-cta { padding-left: 0; padding-right: 10px; }

/* ============================================
   STORE-PICKER MODAL (checkout)
============================================ */
.store-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.store-picker-modal.visible { opacity: 1; pointer-events: auto; }
.store-picker-card {
  background: #fff;
  width: 100%;
  max-width: 960px;
  height: 78vh;
  max-height: 720px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: fadeInScale .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.spc-head {
  padding: 16px 22px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spc-head h3 {
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin: 0;
}
.spc-head .spc-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 20px;
  line-height: 1;
  transition: all .15s;
}
.spc-head .spc-close:hover { background: #c8102e; color: #fff; }

.spc-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}
@media (max-width: 700px) {
  .spc-body { grid-template-columns: 1fr; grid-template-rows: 1fr 260px; }
  .store-picker-card { height: 90vh; }
}
.spc-list {
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[dir="rtl"] .spc-list { border-right: 0; border-left: 1px solid #eee; }
.spc-search {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 8px 4px 12px;
  margin-bottom: 4px;
}
.spc-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  outline: 0;
  font-family: inherit;
  font-size: 13px;
  transition: border-color .15s;
}
.spc-search input:focus { border-color: #c8102e; }

.spc-store {
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border: 1.5px solid transparent;
  background: #fafafa;
}
.spc-store:hover { background: #f0f0f0; border-color: #ccc; }
.spc-store.active { background: rgba(200,16,46,.06); border-color: #c8102e; }
.spc-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.spc-store h4 { margin: 0; font-size: 14px; font-weight: 800; color: #231f20; }
.spc-store-city { font-size: 11px; color: #c8102e; font-weight: 700; letter-spacing: .04em; margin-top: 2px; }
.spc-store-dist { font-size: 11px; color: #999; font-weight: 700; }
.spc-store-hours { font-size: 11px; color: #666; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.spc-store-badges { display: flex; gap: 4px; margin-top: 6px; }
.spc-store .spc-mini-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: .05em;
}
.spc-store .spc-mini-badge.open { background: #d4edda; color: #155724; }
.spc-store .spc-mini-badge.closed { background: #f8d7da; color: #721c24; }
.spc-store .spc-mini-badge.halal { background: #009e60; color: #fff; }

.spc-map {
  position: relative;
  background:
    linear-gradient(45deg, #d9e8d9 25%, transparent 25%),
    linear-gradient(-45deg, #d9e8d9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d9e8d9 75%),
    linear-gradient(-45deg, transparent 75%, #d9e8d9 75%),
    #edf5ed;
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0;
  overflow: hidden;
}
.spc-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(78,144,255,.15), transparent 30%),
    radial-gradient(circle at 65% 55%, rgba(78,144,255,.15), transparent 30%);
}
.spc-map-labels {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.9);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  z-index: 3;
}
.spc-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #c8102e;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 2;
  transition: transform .2s, background .2s;
  animation: pinDrop .5s ease backwards;
}
.spc-pin::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
}
.spc-pin:hover, .spc-pin.active {
  background: #ffcc00;
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.2);
}
.spc-pin:hover::before, .spc-pin.active::before { background: #c8102e; }
@keyframes pinDrop {
  from { transform: translate(-50%, -200%) rotate(-45deg); opacity: 0; }
  to { transform: translate(-50%, -100%) rotate(-45deg); opacity: 1; }
}
.spc-pin-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  background: #231f20;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.spc-pin:hover .spc-pin-tip { opacity: 1; }

.spc-foot {
  padding: 14px 22px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.spc-selected {
  font-size: 13px;
  color: #666;
}
.spc-selected b { color: #231f20; font-weight: 800; }
.spc-confirm {
  background: #c8102e;
  color: #fff;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  transition: background .15s;
}
.spc-confirm:hover { background: #a70e26; }
.spc-confirm[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================================
   PROMO BAR — sticky top bar with countdown
============================================ */
.promo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(90deg, #c8102e 0%, #7a0e1e 100%);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  animation: promoBarSlideDown .4s ease;
}
@keyframes promoBarSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.promo-bar-icon {
  display: inline-flex; width: 26px; height: 26px;
  background: #ffcc00; border-radius: 50%;
  align-items: center; justify-content: center;
  color: #231f20; font-weight: 900; font-size: 14px;
  animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,204,0,.6); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255,204,0,0); }
}
.promo-bar-msg { flex: 0 1 auto; }
.promo-bar-msg b { color: #ffcc00; }
.promo-bar-timer {
  background: rgba(0,0,0,.28);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  letter-spacing: .8px;
  font-variant-numeric: tabular-nums;
  min-width: 88px;
  text-align: center;
  color: #ffcc00;
}
.promo-bar-close {
  background: transparent; border: none; color: #fff; opacity: .7;
  font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1;
}
.promo-bar-close:hover { opacity: 1; }
/* Push header down when promo bar visible */
body.has-promo .site-header { top: 46px; }
body.has-promo { padding-top: 46px; }
@media (max-width: 640px) {
  .promo-bar { font-size: 11px; gap: 10px; padding: 8px 12px; }
  .promo-bar-msg { display: none; }
  .promo-bar-mobile { display: inline; }
  body.has-promo { padding-top: 40px; }
  body.has-promo .site-header { top: 40px; }
}
.promo-bar-mobile { display: none; font-weight: 700; }

/* ============================================
   PRODUCT CARD — promo pricing
============================================ */
.product-card.promo-active .product-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.product-card .price-orig {
  color: #999; text-decoration: line-through; text-decoration-color: #c8102e;
  font-size: 13px; font-weight: 500;
}
.product-card .price-now {
  color: #c8102e; font-weight: 800; font-size: 18px;
}
.product-card .price-badge {
  background: #ffcc00; color: #231f20;
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 900; letter-spacing: .4px;
  vertical-align: middle;
}
.product-card.promo-active {
  position: relative;
  overflow: visible;
}
.product-card.promo-active::before {
  content: attr(data-promo-badge);
  position: absolute;
  /* top-LEFT corner — was top-right, which collided with .fav-btn (heart icon
     at top:8px; right:8px). Left corner is empty real estate + reads better
     because it's the first thing eyes scan on a Western product card. */
  top: -8px; left: -8px;
  background: linear-gradient(135deg, #ffcc00, #ffb400);
  color: #231f20;
  font-family: 'Sansita', sans-serif;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255,204,0,.5);
  transform: rotate(-6deg);      /* mirrored tilt to match top-left placement */
  z-index: 4;                     /* above fav-btn (3) — safety in case of re-layout */
  letter-spacing: .3px;
  pointer-events: none;
}

/* ============================================
   CART / CHECKOUT — discount line
============================================ */
.cart-summary .cs-row.cs-discount,
.oc-row.oc-discount,
.summary-row.discount {
  color: #2d8f2d;
  font-weight: 700;
}
.cart-summary .cs-row.cs-discount span:last-child { color: #2d8f2d; }
.promo-active-line {
  background: linear-gradient(90deg, #fff8e0 0%, #fff 100%);
  border: 1px dashed #ffcc00;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
  color: #666;
  display: flex; gap: 8px; align-items: center;
}
.promo-active-line b { color: #c8102e; }
.promo-active-line svg { flex-shrink: 0; color: #ffcc00; }


/* ============================================
   PAYMENT METHODS + INLINE CARD FORM
============================================ */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-method {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
  background: #fff;
  position: relative;
}
.pay-method:hover { border-color: #c8102e; }
.pay-method.active {
  border-color: #c8102e;
  background: #fef8f9;
  box-shadow: 0 0 0 3px rgba(200,16,46,.06);
}
.pay-method input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pm-radio {
  width: 20px; height: 20px; border: 2px solid #bbb; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .18s;
}
.pm-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: #c8102e; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s;
}
.pay-method.active .pm-radio { border-color: #c8102e; }
.pay-method.active .pm-radio::after { opacity: 1; transform: scale(1); }
.pm-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-body b { color: #231f20; font-size: 15px; font-weight: 700; }
.pm-body span { color: #666; font-size: 12px; }
.pm-brands { height: 18px; opacity: .85; }
@media (max-width: 640px) { .pm-brands { display: none; } }

/* Disabled payment method (COD temporarily off) */
.pay-method.disabled {
  cursor: not-allowed;
  background: #fafafa;
  border-color: #eaeaea;
  opacity: .78;
  position: relative;
}
.pay-method.disabled:hover { border-color: #eaeaea; }
.pay-method.disabled .pm-body b { color: #7a7a7a; }
.pay-method.disabled .pm-body span { color: #999; }
.pay-method.disabled .pm-radio { border-color: #d5d5d5; background: #f4f4f4; }
.pay-method.disabled .pm-radio::after { display: none; }
.pay-method.disabled .pm-icon { filter: grayscale(1); }
.pm-lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px;
  color: #8a8a8a; vertical-align: -3px;
}
.pm-soon-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a5a00;
  background: linear-gradient(135deg, #fff4d2 0%, #ffe89a 100%);
  border: 1px solid #f0d888;
  padding: 4px 8px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 3px rgba(138,90,0,.08);
}
@media (max-width: 640px) {
  .pm-soon-badge { font-size: 9px; padding: 3px 6px; }
}

.card-form {
  display: none;
  margin-top: 8px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
}
.card-form.visible { display: block; animation: cfFadeIn .25s ease; }
@keyframes cfFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cf-row-1 { margin-bottom: 14px; }
.cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cf-field label { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #666; font-weight: 700; margin-bottom: 6px; }
.cf-input-wrap { position: relative; }
.cf-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  box-sizing: border-box;
}
.cf-field input:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.cf-field input.error {
  border-color: #c8102e; background: #fef5f5;
  animation: cfShake .4s;
}
@keyframes cfShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.cf-brand {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 26px; display: none;
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
.cf-brand.visa,
.cf-brand.mastercard,
.cf-brand.amex { display: block; }
.cf-brand.visa       { background-color: #142688; border-radius: 4px; }
.cf-brand.mastercard { background: linear-gradient(90deg, #eb001b 45%, #f79e1b 55%); border-radius: 4px; }
.cf-brand.amex       { background-color: #006fcf; border-radius: 4px; }
.cf-brand::after {
  content: attr(data-brand);
  color: #fff; font-weight: 900; font-size: 9px;
  font-family: Arial, sans-serif; letter-spacing: .5px;
  position: absolute; inset: 0; display: grid; place-items: center;
}

.cf-trust-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #eee;
}
.cf-trust-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #666; font-weight: 600;
}
.cf-brands-mini { margin-left: auto; }
.cf-brands-mini img { height: 18px; opacity: .85; }
@media (max-width: 640px) { .cf-brands-mini { display: none; } }

.cf-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #999; margin: 4px 0 0; padding: 0 4px;
}

/* ============================================
   PAY MODALS — processing / sms otp / app otp / success / decline
============================================ */
.pay-modal {
  position: fixed; inset: 0;
  background: rgba(35, 31, 32, .68);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pmBgIn .2s ease;
}
.pay-modal.visible { display: flex; }
@keyframes pmBgIn { from { opacity: 0; } to { opacity: 1; } }
.pm-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  animation: pmCardIn .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes pmCardIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.pm-icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffe5c9, #ffcc00);
  color: #231f20;
}
.pm-icon-circle.success { background: linear-gradient(135deg, #a5f0a5, #2d8f2d); color: #fff; animation: pmPulse .5s ease .1s backwards; }
.pm-icon-circle.error   { background: linear-gradient(135deg, #ffb0b0, #c8102e); color: #fff; animation: pmWiggle .5s ease .1s backwards; }
@keyframes pmPulse { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pmWiggle { 0% { transform: scale(.5); } 40% { transform: scale(1.1) rotate(-4deg); } 70% { transform: scale(1) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }

.pm-spinner {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border: 4px solid #eee;
  border-top-color: #c8102e;
  border-radius: 50%;
  animation: pmSpin .8s linear infinite;
}
@keyframes pmSpin { to { transform: rotate(360deg); } }

.pm-card h3 { font-family: 'Sansita', sans-serif; font-size: 22px; font-weight: 900; color: #231f20; margin: 0 0 8px; }
.pm-card p  { color: #666; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.pm-card p b { color: #231f20; }

/* Bank logos for APP OTP */
.pm-bank-icons {
  display: flex; justify-content: center; gap: 10px; margin: 10px 0 18px;
}
.pm-bank-icons > div {
  width: 46px; height: 46px; border-radius: 10px;
  background: #f5f5f5; color: #666;
  display: grid; place-items: center;
  font-weight: 800; font-size: 10px; letter-spacing: .3px;
}

/* Progress bar for APP OTP wait */
.pm-progress {
  width: 100%; height: 6px; background: #eee; border-radius: 3px; overflow: hidden;
  margin: 0 auto 14px;
  position: relative;
}
.pm-progress::before {
  content: '';
  position: absolute; inset: 0 auto 0 -30%;
  width: 30%; background: linear-gradient(90deg, transparent, #c8102e, transparent);
  animation: pmProgressSlide 1.4s ease-in-out infinite;
}
@keyframes pmProgressSlide { to { left: 100%; } }

/* OTP boxes */
.pm-otp-boxes {
  display: flex; gap: 8px; justify-content: center; margin: 10px 0 12px;
}
.pm-otp-boxes input {
  width: 42px; height: 52px;
  text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #231f20;
  transition: border-color .15s, transform .1s;
  box-sizing: border-box;
}
.pm-otp-boxes input:focus { outline: none; border-color: #c8102e; box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.pm-otp-boxes input.filled { border-color: #c8102e; background: #fef5f5; }
.pm-otp-boxes.error input { border-color: #c8102e; background: #fef5f5; animation: cfShake .35s; }

.pm-timer { font-size: 12px; color: #666; margin: 6px 0 16px; }
.pm-timer b { color: #c8102e; font-variant-numeric: tabular-nums; }
.pm-resend { font-size: 12px; color: #999; margin-top: 8px; }
.pm-resend a { color: #c8102e; font-weight: 700; text-decoration: none; cursor: pointer; }
.pm-resend a[disabled] { color: #999; pointer-events: none; cursor: default; }

.pm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.pm-actions button { flex: 1; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; }
.pm-actions .pm-btn-secondary { background: #f5f5f5; color: #666; }
.pm-actions .pm-btn-secondary:hover { background: #eee; color: #231f20; }
.pm-actions .pm-btn-primary   { background: #c8102e; color: #fff; }
.pm-actions .pm-btn-primary:hover { background: #a70e26; }

.pm-btn {
  width: 100%;
  padding: 14px 20px;
  background: #c8102e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.pm-btn:hover:not(:disabled) { background: #a70e26; }
.pm-btn:disabled { background: #ddd; color: #999; cursor: not-allowed; }
