/* ============================================
   MODI DOKAN - bKash Style E-Commerce CSS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #f99b05;
  --primary-dark: #d48404;
  --primary-light: #ffd65c;
  --secondary: #f5f5f5;
  --white: #ffffff;
  --text: #222222;
  --text-muted: #888888;
  --border: #eeeeee;
  --shadow: 0 2px 12px rgba(249,155,5,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: #f5f5f5;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 96px;
}

a { text-decoration: none; color: inherit; }

/* ===== FLASH ===== */
.flash {
  margin: 12px 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #00b050; }
.flash-error { background: #fce4ec; color: #c62828; border-left: 4px solid var(--primary); }

/* ===== HEADER ===== */
.app-header {
  position: relative;
  background: linear-gradient(135deg, #f99b05 0%, #faaf37 40%, #d48404 100%);
  padding: 0 0 0 0;
  overflow: hidden;
  min-height: 140px;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Cellipse cx='700' cy='280' rx='300' ry='120' fill='rgba(255,255,255,0.05)'/%3E%3Cellipse cx='100' cy='50' rx='200' ry='80' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 52px 16px 0;
  position: relative;
}

.user-area { display: flex; align-items: center; gap: 10px; }
.user-area .header-menu-trigger { margin-right: 8px; }


.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 148px);
}

.header-top-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(150px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}

.header-brand-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  text-shadow: 0 6px 16px rgba(0,0,0,0.14);
}


.header-menu-trigger {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}
.header-menu-trigger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

.app-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 10, 22, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 120;
}
.app-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}
.app-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  background: #fff;
  transform: translateX(-105%);
  transition: transform .24s ease;
  z-index: 130;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
}
.app-menu-drawer.open { transform: translateX(0); }
.app-menu-header {
  padding: 22px 18px 16px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.app-menu-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-menu-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  padding: 8px;
}
.app-menu-logo-fallback {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  font-size: 24px;
}
.app-menu-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.app-menu-sub {
  font-size: 12px;
  opacity: .82;
  margin-top: 4px;
}
.app-menu-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.app-menu-links {
  padding: 14px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}
.app-menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fffdf0;
  color: #6f5700;
  border: 1px solid #f1e6b7;
  font-weight: 600;
}
.app-menu-links a.active {
  background: rgba(249,155,5,.12);
  color: var(--primary);
  border-color: rgba(249,155,5,.20);
}
.app-menu-links a span { font-size: 18px; }
.app-menu-empty {
  padding: 18px 14px;
  color: #888;
  font-size: 14px;
  text-align: center;
}
body.menu-open { overflow: hidden; }

.page-content-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.page-content-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-content-body {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  white-space: normal;
}

.avatar {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}

.user-info { display: flex; flex-direction: column; }
.user-greeting { font-size: 11px; color: rgba(255,255,255,0.75); }
.user-name { font-size: 15px; font-weight: 600; color: #fff; }

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

.icon-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.3); }
.icon-btn svg { width: 18px; height: 18px; }

.badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff0; color: #f99b05;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.balance-bar {
  padding: 8px 16px 0;
  position: relative;
}

.balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 8px 18px;
  color: #fff;
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(4px);
}

.taka-icon {
  width: 24px; height: 24px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.header-wave {
  margin-top: 10px;
  line-height: 0;
  position: relative;
}
.header-wave svg { display: block; width: 100%; height: 28px; }

.header-logo-wrap {
  position: relative;
  padding: 10px 16px 0;
  display: flex;
  justify-content: center;
}

.header-site-logo {
  width: min(280px, calc(100vw - 72px));
  height: 80px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
}

/* ===== MAIN ===== */
.main-content { padding: 0; }


/* ===== HERO SLIDER ===== */
.hero-slider-section {
  padding: 10px 12px 6px;
  background: #f5f5f5;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.banner-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.banner-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 6.6;
  display: block;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

.banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  appearance: none;
}

.banner-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #fff;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 6px;
  background: #fff;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.qa-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: transform 0.15s;
}
.qa-item:hover { transform: scale(1.07); }

.qa-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform 0.15s;
}

/* ===== SECTIONS ===== */
.section { padding: 12px 14px; background:#fff; margin-bottom: 4px; }

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

.section-title { font-size: 16px; font-weight: 700; color: var(--text); }

.see-all {
  font-size: 13px; color: var(--primary); font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
  background: #fef5e6; transition: background 0.2s;
}
.see-all:hover { background: #ffe5a0; }

/* ===== LOCATIONS GRID ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.location-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px;
  background: linear-gradient(135deg, var(--loc-color, #f99b05)15, transparent);
  border: 1.5px solid var(--loc-color, #f99b05)30;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.location-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.loc-icon { font-size: 24px; margin-bottom: 4px; }
.loc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.loc-count { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ===== PRODUCTS SCROLL ===== */
.products-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
  min-width: 160px; max-width: 160px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); }

.prod-img-wrap {
  display: block;
  width: 100%; height: 130px;
  background: #f9f9f9;
  overflow: hidden; position: relative;
}
.prod-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .prod-img-wrap img { transform: scale(1.05); }

.prod-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #fef5e6 0%, #fbbe5c 100%);
  color: #f99b05;
}

.discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px;
}

.prod-info { padding: 8px; }
.prod-location { font-size: 10px; color: var(--primary); font-weight: 500; margin-bottom: 3px; }
.prod-name { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.new-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.add-to-cart-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.add-to-cart-btn:hover { background: var(--primary-dark); }
.add-to-cart-btn:active { transform: scale(0.97); }
.add-to-cart-btn.added { background: #00b050; }

/* ===== HOME CATEGORIES GRID ===== */
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  background: linear-gradient(145deg, var(--cat-color, #f99b05)12, transparent);
  border: 1.5px solid var(--cat-color, #f99b05)25;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.home-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.home-cat-icon {
  width: 42px; height: 42px;
  background: var(--cat-color, #f99b05)18;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.home-cat-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.home-cat-count {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== HOME PRODUCTS GRID ===== */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.home-product-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.home-product-card:hover {
  box-shadow: var(--shadow);
}

.home-prod-img {
  display: block;
  width: 100%; height: 120px;
  background: #f9f9f9;
  overflow: hidden;
  position: relative;
}
.home-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.home-product-card:hover .home-prod-img img {
  transform: scale(1.05);
}

/* ===== ALL LOCATIONS LIST ===== */
.all-locations-list { display: flex; flex-direction: column; gap: 8px; }

.loc-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: #fafafa;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background 0.15s, transform 0.15s;
}
.loc-list-item:hover { background: #fef5e6; transform: translateX(4px); }

.loc-list-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.loc-list-info { flex: 1; }
.loc-list-name { font-size: 15px; font-weight: 600; }
.loc-list-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.loc-list-arrow { font-size: 28px; font-weight: 300; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 72px;
  padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(255,255,255,0.8);
  z-index: 1000;
  overflow: visible;
}

.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 4px;
  font-size: 10px; color: var(--text-muted); position: relative;
  transition: color 0.2s, transform 0.2s;
  min-width: 0;
}
.nav-item svg { width: 22px; height: 22px; transition: transform 0.2s, stroke 0.2s, fill 0.2s, box-shadow 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { stroke: var(--primary); fill: var(--primary); }

.bottom-nav .nav-item[href="products.php"] {
  color: var(--primary-dark);
  font-weight: 700;
}
.bottom-nav .nav-item[href="products.php"] .product-nav-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 8px;
  margin-top: -38px;
  margin-bottom: 4px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border: 4px solid #f5f5f5;
  box-shadow: 0 12px 24px rgba(249,155,5,0.26), 0 4px 10px rgba(249,155,5,0.18);
  animation: productNavFloat 3s ease-in-out infinite;
}
.bottom-nav .nav-item[href="products.php"] span {
  font-size: 10px;
  font-weight: 700;
}
.bottom-nav .nav-item[href="products.php"].active .product-nav-icon,
.bottom-nav .nav-item[href="products.php"]:hover .product-nav-icon,
.bottom-nav .nav-item[href="products.php"]:focus-visible .product-nav-icon {
  transform: translateY(-2px) scale(1.03);
}

.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@keyframes productNavFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== SHOP PAGE ===== */
.shop-header {
  background: linear-gradient(135deg, #f99b05, #d48404);
  padding: 50px 16px 20px;
  color: #fff;
}
.shop-title { font-size: 20px; font-weight: 700; }
.shop-sub { font-size: 13px; opacity: 0.8; margin-top: 4px; }

.shop-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); font-size: 13px;
  margin-bottom: 10px;
}
.shop-back svg { width: 16px; }

.category-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f5; color: var(--text);
  font-size: 13px; font-weight: 500;
  white-space: nowrap; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.cat-tab.active, .cat-tab:hover {
  background: #fef5e6; color: var(--primary);
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.product-card-grid {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.product-card-grid:hover { box-shadow: var(--shadow); }

.prod-img-grid {
  width: 100%; height: 130px;
  background: #f9f9f9; overflow: hidden; position: relative;
}
.prod-img-grid img { width:100%; height:100%; object-fit:cover; }

/* ===== CART ===== */
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.cart-item-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background:#f5f5f5; flex-shrink:0; display:flex;align-items:center;justify-content:center;font-size:24px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }

.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--primary); background:#fff; color:var(--primary); font-size:18px; cursor:pointer; display:flex;align-items:center;justify-content:center; font-family:inherit; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-num { font-size: 15px; font-weight: 700; min-width: 24px; text-align:center; }

.cart-summary { background: #fff; border-radius: var(--radius-sm); padding: 16px; margin: 8px; border: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-child { border: none; font-weight: 700; font-size: 16px; color: var(--primary); }

.btn-primary {
  display: block; width: 100%;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }

/* ===== FORMS ===== */
.form-container { max-width: 480px; margin: 0 auto; padding: 20px; }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,155,5,0.12); }

/* ===== AUTH PAGE ===== */
.auth-header {
  background: linear-gradient(135deg, #f99b05, #d48404);
  padding: 60px 20px 40px;
  text-align: center; color: #fff;
}
.auth-logo { font-size: 36px; margin-bottom: 8px; }
.auth-logo-image-wrap { display:flex; justify-content:center; margin-bottom:10px; }
.auth-logo-image { width:min(280px, calc(100vw - 80px)); height:80px; object-fit:contain; display:block; }
.auth-title { font-size: 24px; font-weight: 700; }
.auth-sub { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.auth-body { background: #fff; border-radius: 24px 24px 0 0; margin-top: -20px; padding: 24px 20px 40px; min-height: 60vh; }
.auth-inline-links { margin-top: 12px; text-align: right; }
.auth-inline-links a { color: var(--primary); font-size: 13px; font-weight: 700; }
.auth-note-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fffdf2; color: #666; font-size: 12px; line-height: 1.6; border: 1px solid #ffe5a0; }

/* ===== ORDER STATUS ===== */
.order-status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #fef5e6; color: #f99b05; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #c3e6cb; color: #1a5928; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== ADMIN ===== */
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px;
  background: linear-gradient(180deg, #ae6c04 0%, #ae6c04 100%);
  padding: 0; z-index: 100; overflow-y: auto;
}
.admin-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo h2 { color: #fff; font-size: 18px; }
.admin-logo p { color: rgba(255,255,255,0.5); font-size: 12px; }

.admin-nav { padding: 16px 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,0.7);
  font-size: 14px; transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(249,155,5,0.22); color: #fff; border-right: 3px solid var(--primary); }
.admin-nav a span { font-size: 18px; }

.admin-main { margin-left: 250px; min-height: 100vh; background: #f5f5f5; }
.admin-topbar {
  background: #fff; padding: 15px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-content { padding: 24px; }

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

.stat-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 20px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-info h3 { font-size: 24px; font-weight: 700; }
.stat-info p { font-size: 13px; color: var(--text-muted); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.data-table th { background: #fafafa; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.data-table tr:hover td { background: #fafafa; }

.btn-sm { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; font-family: inherit; }
.btn-edit { background: #fef5e6; color: #f99b05; }
.btn-delete { background: #fce8e8; color: #d93025; }
.btn-view { background: #e8f5e9; color: #188038; }

.card { background: #fff; border-radius: var(--radius-sm); padding: 20px; border: 1px solid var(--border); margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

@media (max-width: 768px) {
  .admin-sidebar { width: 100%; position: static; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PRODUCT DETAIL ===== */
.product-gallery {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 18px 18px 10px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-image {
  width: 100%;
  height: 430px;
  min-height: 430px;
  max-height: 620px;
  object-fit: contain;
  display: block;
  background: #fafafa;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  cursor: zoom-in;
}
.product-image-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.52);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.product-image-expand-btn {
  position: absolute;
  right: 18px;
  bottom: 58px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  cursor: pointer;
  z-index: 2;
}
.product-image-expand-btn:active { transform: scale(0.97); }

/* ===== IMAGE LIGHTBOX MODAL ===== */
#imgLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#imgLightbox.open { display: flex; }

#imgLightbox .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.lightbox-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.lightbox-tool-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.lightbox-tool-btn.reset-btn { font-size: 13px; padding: 0 16px; }

#imgLightbox .lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

#imgLightbox .lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

#lightboxImg {
  max-width: 96vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  transform-origin: center center;
  transition: transform 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
#lightboxImg.dragging { cursor: grabbing; transition: none; }
.product-details-section { background: #fff; padding: 16px; margin-top: 8px; }
.product-price-big { font-size: 26px; font-weight: 800; color: var(--primary); }
.product-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-outline { flex: 1; padding: 14px; border: 2px solid var(--primary); color: var(--primary); background: #fff; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-buy { flex: 2; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { color: var(--text-muted); font-size: 14px; }

/* Utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.p-16 { padding: 16px; }
.page-header { background: #fff; padding: 50px 16px 16px; border-bottom: 1px solid var(--border); }
.page-title { font-size: 20px; font-weight: 700; }


@media (max-width: 576px) {
  .banner-slide { aspect-ratio: 16 / 7.4; }
}

/* ===== AJAX SHOP PAGE ===== */
.skeleton-grid .product-card-skeleton {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-thumb,
.skeleton-line,
.skeleton-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f1f1 25%, #fafafa 37%, #f1f1f1 63%);
  background-size: 400% 100%;
  animation: skeletonPulse 1.25s ease-in-out infinite;
}
.skeleton-thumb { width: 100%; height: 130px; }
.skeleton-info { padding: 10px; }
.skeleton-line { height: 10px; border-radius: 999px; margin-bottom: 8px; }
.skeleton-line.short { width: 42%; }
.skeleton-line.medium { width: 68%; }
.skeleton-line.long { width: 88%; }
.skeleton-button { height: 34px; border-radius: 10px; margin-top: 10px; }

@keyframes skeletonPulse {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}


.shop-products-grid {
  padding: 0 12px 12px;
}

.products-shell .empty-state {
  margin: 0 12px 12px;
}

/* Product variants and gallery */
.product-gallery-wrap {
  background: #fff;
}

.product-main-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(249,155,5,0.12), rgba(249,155,5,0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.product-thumb-strip {
  display: flex;
  gap: 10px;
  padding: 12px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-thumb-strip::-webkit-scrollbar {
  display: none;
}

.product-thumb-btn {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-btn.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249,155,5,.20);
}

.variant-block {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f1f1f1;
}

.variant-title {
  font-size: 14px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-chip {
  border: 1.5px solid #e8e8e8;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all .2s ease;
}

.variant-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(249,155,5,0.08);
  box-shadow: 0 10px 24px rgba(249,155,5,0.12);
}

.variant-chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 16px;
}

@media (max-width: 768px) {
  .product-gallery {
    min-height: 400px;
    padding: 14px 14px 8px;
  }

  .main-image {
    height: 380px;
    min-height: 380px;
    max-height: 500px;
    border-radius: 18px;
  }

  .product-image-hint {
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-size: 11px;
    padding: 8px 12px;
  }

  .product-image-expand-btn {
    right: 14px;
    bottom: 54px;
    width: 40px;
    height: 40px;
  }

  .product-main-placeholder {
    height: 340px;
    font-size: 68px;
  }

  .product-thumb-btn {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .variant-chip {
    padding: 9px 12px;
    font-size: 12px;
  }
}


@media (max-width: 380px) {
  .header-top-logo {
    height: 32px;
    max-width: min(128px, 40vw);
  }
}

/* ===== VARIANT MODAL (size/color picker on product cards) ===== */
#variantModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
}

.vm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}
#variantModal.vm-open .vm-backdrop { opacity: 1; }
#variantModal.vm-closing .vm-backdrop { opacity: 0; }

.vm-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.14);
  max-height: 90vh;
  overflow-y: auto;
}
#variantModal.vm-open .vm-sheet { transform: translateY(0); }
#variantModal.vm-closing .vm-sheet { transform: translateY(100%); }

.vm-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e0e0e0;
  margin: 12px auto 0;
}

.vm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.vm-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vm-body {
  padding: 16px 18px 20px;
}

.vm-section {
  margin-bottom: 18px;
}

.vm-label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 10px;
}

.vm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vm-chip {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.vm-chip:active { transform: scale(0.96); }

.vm-chip.vm-active {
  border-color: currentColor;
  background: color-mix(in srgb, var(--chip-color, #f99b05) 12%, white);
  color: var(--chip-color, #f99b05);
}

.color-vm-chip.vm-active {
  border-color: var(--chip-color, #f99b05);
  color: var(--chip-color, #f99b05);
}

.size-vm-chip.vm-active {
  border-color: #f99b05;
  color: #f99b05;
  background: #fef5e6;
}

.vm-chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.vm-add-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.18s, transform 0.12s;
}

.vm-add-btn:active { transform: scale(0.98); opacity: 0.9; }
.vm-add-btn:disabled { opacity: 0.7; cursor: default; }

@keyframes vmShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.vm-shake { animation: vmShake 0.45s ease; }


.product-card-cart-box {
  width: 100%;
}

.product-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.product-qty-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 34px;
}

.product-qty-input {
  flex: 1;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ===== ORDERS PAGE ===== */
.orders-page-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #fbb24a 48%, var(--primary-dark) 100%);
  color: #fff;
  padding: 18px 16px 22px;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  overflow: hidden;
}
.orders-page-header::before,
.orders-page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.orders-page-header::before {
  width: 190px;
  height: 190px;
  top: -110px;
  right: -70px;
}
.orders-page-header::after {
  width: 120px;
  height: 120px;
  bottom: -54px;
  left: -30px;
}
.orders-page-back,
.orders-page-title,
.orders-page-sub {
  position: relative;
  z-index: 1;
}
.orders-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.orders-page-title {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.orders-page-sub {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  word-break: break-word;
}
.orders-list-container {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 16px 14px 110px;
  display: grid;
  gap: 14px;
}
.orders-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.orders-count-label {
  font-size: 15px;
  font-weight: 700;
  color: #2b2b2b;
}
.orders-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(249,155,5,0.16);
  color: #8a5200;
  font-size: 13px;
  font-weight: 800;
}
.order-card-new {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
  overflow: hidden;
}
.order-card-header,
.order-card-body,
.order-card-footer {
  padding: 16px 18px;
}
.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-num-wrap {
  min-width: 0;
  flex: 1;
}
.order-number-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #1e1e1e;
  word-break: break-word;
}
.order-date-text {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d6d6d;
  font-size: 13px;
  font-weight: 600;
}
.order-status-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.order-card-body {
  padding-top: 0;
}
.order-address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffaf2;
  border: 1px solid rgba(249,155,5,0.18);
  border-radius: 16px;
  padding: 14px 15px;
}
.order-addr-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,155,5,0.14);
  color: #8a5200;
  flex-shrink: 0;
  font-size: 16px;
}
.order-addr-text {
  font-size: 14px;
  line-height: 1.6;
  color: #454545;
  word-break: break-word;
}
.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.order-total-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.order-payment-label {
  color: #6c6c6c;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}
.order-total-amount {
  color: #1f1f1f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.order-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.order-btn-pdf,
.order-btn-detail {
  min-width: 122px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.order-btn-pdf {
  background: #fff;
  color: #7b7b7b;
  border: 1px solid rgba(0,0,0,0.10);
}
.order-btn-detail {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(249,155,5,0.28);
}
.order-btn-pdf:hover,
.order-btn-detail:hover {
  transform: translateY(-1px);
}
.order-btn-detail:hover {
  box-shadow: 0 16px 28px rgba(249,155,5,0.34);
}
.st-pending {
  background: rgba(255,193,7,0.16);
  color: #8c6500;
  border-color: rgba(255,193,7,0.24);
}
.st-confirmed {
  background: rgba(40,167,69,0.12);
  color: #1d7f34;
  border-color: rgba(40,167,69,0.22);
}
.st-processing {
  background: rgba(23,162,184,0.12);
  color: #0f7c8c;
  border-color: rgba(23,162,184,0.22);
}
.st-shipped {
  background: rgba(13,110,253,0.12);
  color: #1256b3;
  border-color: rgba(13,110,253,0.22);
}
.st-delivered {
  background: rgba(32,201,151,0.12);
  color: #0f7f60;
  border-color: rgba(32,201,151,0.22);
}
.st-cancelled {
  background: rgba(220,53,69,0.12);
  color: #b42333;
  border-color: rgba(220,53,69,0.22);
}
@media (max-width: 640px) {
  .orders-page-header {
    padding: 16px 14px 20px;
    border-radius: 0 0 22px 22px;
  }
  .orders-page-title {
    font-size: 24px;
  }
  .orders-list-container {
    padding: 14px 12px 110px;
  }
  .orders-count-bar,
  .order-card-header,
  .order-card-body,
  .order-card-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .orders-count-bar,
  .order-card-header,
  .order-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .order-status-badge-new {
    align-self: flex-start;
  }
  .order-total-amount {
    font-size: 22px;
  }
  .order-actions-row {
    width: 100%;
    justify-content: stretch;
  }
  .order-btn-pdf,
  .order-btn-detail {
    flex: 1 1 0;
    min-width: 0;
  }
}


/* ===== HEADER TEXT TICKER ===== */
.header-text-ticker {
  margin: -6px 12px 12px;
  position: relative;
  z-index: 3;
}
.header-text-ticker-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(249,155,5,.22);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  padding: 9px 12px;
}
.header-text-ticker-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fef5e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.header-text-ticker-track {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  position: relative;
}
.header-text-ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  min-width: 100%;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-animation: headerTickerSlide 12s linear infinite;
  animation: headerTickerSlide 12s linear infinite;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  will-change: transform;
}
.header-text-ticker-content > span {
  display: inline-block;
  padding-right: 48px;
}
.header-text-ticker-separator {
  color: var(--primary);
  margin: 0 10px;
}
.header-text-ticker:hover .header-text-ticker-content {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}
@-webkit-keyframes headerTickerSlide {
  0% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
  100% { -webkit-transform: translate3d(-100%,0,0); transform: translate3d(-100%,0,0); }
}
@keyframes headerTickerSlide {
  0% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
  100% { -webkit-transform: translate3d(-100%,0,0); transform: translate3d(-100%,0,0); }
}
