/* ===================================================
   RANVAL_SHOP — style.css
   Audio Thrift Store Indonesia
   =================================================== */

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

:root {
  --orange:       #FF6B1A;
  --orange-deep:  #E04D00;
  --orange-glow:  #FF8C42;
  --orange-pale:  #FFF1E8;
  --dark:         #0F0A06;
  --dark2:        #1C1208;
  --dark3:        #2A1C0F;
  --text:         #1A0E05;
  --muted:        #8A6A50;
  --card-bg:      #FFFAF6;
  --border:       #F0DDD0;
  --white:        #FFFFFF;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Background tokens — dipakai di tracking page, admin & owner dashboard */
  --bg:           #FFFFFF;
  --surface:      #FFF8F4;
  --surface-2:    #F5EDE5;
  --font-display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  /* Desktop: Space Grotesk. Mobile fallback: system UI agar lebih crisp */
  font-family: 'Space Grotesk', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--orange-pale);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font-family: inherit;
  -webkit-appearance: none;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; display: block; }

/* ===================================================
   NAVBAR
   =================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(255, 241, 232, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { width: 42px; height: 42px; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo-name span { color: var(--orange); }

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--orange-pale); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(255, 241, 232, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 5rem 2rem 2rem;
  border-bottom: 2px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu ul li a {
  display: block;
  text-decoration: none;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu ul li a:hover { color: var(--orange); padding-left: 0.5rem; }
.mobile-menu-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Cart & Wishlist buttons */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform 0.15s;
}
.cart-btn-icon { font-size: 1rem; line-height: 1; }
.cart-btn-text { display: inline; }
.cart-btn:hover { background: var(--orange-deep); transform: translateY(-1px); }
.cart-btn:active { transform: translateY(0); }

.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--dark);
  color: white;
  border-radius: 50%;
  width: 19px; height: 19px;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  pointer-events: none;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.lang-btn {
  background: transparent; border: none;
  padding: 0.38rem 0.7rem;
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer; color: var(--muted);
  transition: all 0.18s;
}
.lang-btn.active { background: var(--orange); color: white; }
.lang-btn:hover:not(.active) { background: var(--orange-pale); color: var(--dark); }
.lang-divider { width: 1px; height: 20px; background: var(--border); }

/* Wishlist button */
.wishlist-btn {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 0.55rem 1rem;
  font-size: 0.83rem; font-weight: 600;
  cursor: pointer; color: var(--muted);
  border-radius: 2px; transition: all 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.wishlist-btn:hover { border-color: var(--orange); color: var(--orange); }
.wishlist-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--orange); color: white; border-radius: 50%;
  width: 19px; height: 19px; font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
  animation: fadeUp 0.85s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: rgba(255,107,26,0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 1px;
  width: fit-content;
}

.hero-title-wrapper {
  position: relative;
  margin-bottom: 1.8rem;
  border-radius: 6px;
  overflow: hidden;
}

.hero-photo-grid {
  position: absolute;
  inset: -4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  z-index: 0;
  border-radius: 8px;
  overflow: hidden;
}
.hpg-cell { overflow: hidden; position: relative; }
.hpg-cell img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hpgFade 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes hpgFade {
  0%,100% { filter: saturate(0.6) brightness(0.5); transform: scale(1.08); }
  50%      { filter: saturate(0.9) brightness(0.65); transform: scale(1.0); }
}
.hpg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,10,6,0.72) 0%, rgba(255,107,26,0.18) 50%, rgba(15,10,6,0.75) 100%);
  z-index: 1;
  grid-column: 1 / -1; grid-row: 1 / -1;
}
.hero-title-wrapper .hero-title {
  position: relative; z-index: 2;
  color: #fff !important;
  padding: 1.6rem 2rem 1.8rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  margin-bottom: 0;
}
.hero-title-wrapper .hero-title em { color: var(--orange-glow) !important; }
.hero-title-wrapper .hero-title em::after { background: var(--orange-glow); }

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  line-height: 1.03;
  font-weight: 800;
  margin-bottom: 1.8rem;
  color: var(--dark);
}
.hero-title em {
  font-style: italic;
  color: var(--orange);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange);
  color: white; border: none;
  padding: 1rem 2.3rem;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,26,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--dark);
  border: 2px solid var(--dark);
  padding: 1rem 2rem;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: all 0.2s;
}
.btn-outline:hover { background: var(--dark); color: white; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--orange);
}
.hero-stat-label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500; margin-top: 2px;
}

/* Hero visual (right side) */
.hero-visual {
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(255,107,26,0.25) 0%, transparent 65%);
}

/* Soundwave bg */
.soundwave-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; padding: 0 2rem; opacity: 0.12;
}
.sw-bar {
  width: 6px; background: var(--orange); border-radius: 3px 3px 0 0;
  animation: swAnim 1.4s ease-in-out infinite alternate;
}
@keyframes swAnim {
  from { height: 20%; }
  to   { height: 100%; }
}

.hero-iem-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,107,26,0.3);
  padding: 2.5rem 3rem;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeUp 1.1s ease both;
}
.hero-iem-emoji { font-size: 6rem; display: block; margin-bottom: 1rem; }
.hero-iem-label { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: white; letter-spacing: 0.05em; }
.hero-iem-sub { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-glow); margin-top: 0.4rem; }

/* ===================================================
   SECTIONS
   =================================================== */
section { padding: 6rem 4rem; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.section-tag {
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange); font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: var(--dark);
}

/* ===================================================
   FILTER BAR
   =================================================== */
.filter-bar { display: flex; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; color: var(--muted); border-radius: 2px;
}
.filter-btn.active, .filter-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }

/* ===================================================
   PRODUCT GRID
   =================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--card-bg); border: 1px solid var(--border);
  overflow: hidden; border-radius: 3px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s ease both;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(255,107,26,0.13);
}

.product-img {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  position: relative; overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255,107,26,0.04) 8px, rgba(255,107,26,0.04) 9px);
}

.product-badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--orange); color: white;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.28rem 0.65rem; border-radius: 1px; z-index: 2;
}
.product-badge.thrift { background: var(--dark); }
.product-badge.hot { background: #D62B2B; }

.product-actions {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  opacity: 0; transform: translateX(8px);
  transition: all 0.25s; z-index: 3;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.action-btn {
  width: 36px; height: 36px;
  background: white; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.95rem;
  transition: all 0.18s; border-radius: 2px;
}
.action-btn:hover { background: var(--orange); border-color: var(--orange); }
.action-btn.wishlisted { background: var(--orange); border-color: var(--orange); color: white; }

.product-info { padding: 1.2rem 1.4rem 1.5rem; }
.product-category { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 0.35rem; }
.product-name { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; color: var(--dark); }
.product-driver { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.7rem; }

.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; }
.product-price { display: flex; flex-direction: column; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--orange-deep); }
.price-old { font-size: 0.78rem; color: var(--muted); text-decoration: line-through; }

.add-to-cart {
  background: var(--dark); color: white; border: none;
  padding: 0.58rem 1.1rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: background 0.2s;
}
.add-to-cart:hover { background: var(--orange); }

.stars { color: var(--orange); font-size: 0.78rem; margin-bottom: 0.7rem; }

/* Mini reviews on card */
.mini-reviews { padding: 0 1rem 1rem; border-top: 1px solid var(--border); }
.mini-reviews-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.75rem; margin-bottom: 0.5rem; }
.mini-review-item { background: var(--orange-pale); border: 1px solid var(--border); border-radius: 5px; padding: 0.55rem 0.75rem; margin-bottom: 0.4rem; }
.mini-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.2rem; }
.mini-review-name { font-weight: 700; font-size: 0.78rem; color: var(--dark); }
.mini-review-stars { color: var(--orange); font-size: 0.72rem; }
.mini-review-text { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.mini-review-more { background: none; border: none; color: var(--orange); font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 0.2rem 0; }
.mini-review-more:hover { text-decoration: underline; }
.mini-review-cta {
  width: 100%; background: none; border: 1.5px dashed var(--border);
  color: var(--muted); font-size: 0.78rem; font-weight: 500; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 4px; margin-top: 0.75rem; transition: all 0.2s;
}
.mini-review-cta:hover { border-color: var(--orange); color: var(--orange); }

/* ===================================================
   WHY SECTION
   =================================================== */
.why-section { background: white; padding: 5rem 4rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.why-card { padding: 2rem; border: 1px solid var(--border); border-radius: 3px; background: var(--orange-pale); transition: transform 0.2s, box-shadow 0.2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,107,26,0.1); }
.why-icon { font-size: 2rem; margin-bottom: 1rem; }
.why-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.why-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ===================================================
   PROMO BANNER
   =================================================== */
.promo-banner {
  background: var(--dark); color: white;
  padding: 5rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,107,26,0.2) 0%, transparent 60%);
}
.promo-soundbars {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 5px; opacity: 0.06;
}
.promo-soundbars .sw-bar { background: var(--orange); animation: swAnim 1.5s ease-in-out infinite alternate; }
.promo-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 800; line-height: 1.05;
  position: relative; z-index: 1;
}
.promo-title em { color: var(--orange); font-style: italic; }
.promo-right { position: relative; z-index: 1; }
.promo-right p { color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 2rem; font-size: 0.97rem; }

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section {
  background: white; padding: 6rem 4rem;
  overflow: hidden; position: relative;
}
.about-section::before {
  content: 'RANVAL';
  position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-size: 10rem; font-weight: 800;
  color: rgba(255,107,26,0.04);
  pointer-events: none; user-select: none;
  letter-spacing: -4px; white-space: nowrap;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.about-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--dark); line-height: 1.1; margin-bottom: 1.5rem; }
.about-title em { font-style: italic; color: var(--orange); }
.about-desc { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.about-since {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--orange-pale); border: 1.5px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 0.75rem 1.3rem; border-radius: 3px; margin-bottom: 2rem;
}
.about-since-year { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--orange); line-height: 1; }
.about-since-text { font-size: 0.8rem; font-weight: 500; color: var(--muted); line-height: 1.4; }
.about-platforms { display: flex; gap: 1rem; flex-wrap: wrap; }
.platform-badge {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.3rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.platform-tokped { background: #42B549; color: white; }
.platform-shopee { background: #EE4D2D; color: white; }
.platform-wa { background: #25D366; color: white; }

.about-right { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card {
  background: var(--orange-pale); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem 1.8rem;
  display: flex; align-items: center; gap: 1.3rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-card:hover { transform: translateX(6px); box-shadow: -4px 0 0 var(--orange), 0 4px 20px rgba(255,107,26,0.1); }
.about-card-icon {
  font-size: 2rem; width: 54px; height: 54px;
  background: white; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--border);
}
.about-card-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.about-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ===================================================
   TOAST
   =================================================== */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: white;
  padding: 0.85rem 2rem;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===================================================
   FOOTER
   =================================================== */
footer { background: var(--dark); color: rgba(255,255,255,0.4); padding: 3rem 4rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; flex-wrap: wrap; gap: 2rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-text { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: white; }
.footer-logo-text span { color: var(--orange); }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 4px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { color: rgba(255,255,255,0.6); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.3); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }

/* ===================================================
   CART SIDEBAR
   =================================================== */
.cart-overlay, .wishlist-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open, .wishlist-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar, .wishlist-sidebar {
  position: fixed; top: 0; right: -500px; width: 440px; height: 100%;
  height: 100dvh;
  background: var(--card-bg); z-index: 201;
  display: flex; flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
  max-width: 100%;
}
.cart-sidebar.open, .wishlist-sidebar.open { right: 0; }

.cart-header, .wishlist-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 2rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--dark); color: white; flex-shrink: 0;
}
.cart-header h2, .wishlist-header h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }

.close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: rgba(255,255,255,0.6); transition: color 0.2s; padding: 4px; }
.close-btn:hover { color: var(--orange); }

.cart-items, .wishlist-items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; -webkit-overflow-scrolling: touch; }
.cart-items::-webkit-scrollbar, .wishlist-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb, .wishlist-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-item { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item-emoji { font-size: 2.2rem; width: 58px; height: 58px; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 2px; border: 1px solid var(--border); overflow: hidden; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.25rem; color: var(--dark); }
.cart-item-price { color: var(--orange); font-weight: 600; font-size: 0.88rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: white; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; border-radius: 2px; transition: all 0.15s; }
.qty-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }
.qty-num { font-weight: 700; font-size: 0.88rem; min-width: 24px; text-align: center; }
.remove-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; transition: color 0.2s; padding: 6px; }
.remove-btn:hover { color: #D62B2B; }

.cart-footer { padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.cart-total-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cart-total-amount { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--orange-deep); }
.checkout-btn {
  width: 100%; background: var(--orange); color: white; border: none;
  padding: 1.05rem; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: background 0.2s, box-shadow 0.2s;
}
.checkout-btn:hover { background: var(--orange-deep); box-shadow: 0 6px 20px rgba(255,107,26,0.4); }
.empty-cart, .empty-wishlist { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-cart div, .empty-wishlist div { font-size: 3.5rem; margin-bottom: 1rem; }

/* ===================================================
   WISHLIST SIDEBAR ITEMS
   =================================================== */
.wishlist-item { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); animation: fadeUp 0.3s ease both; }
.wishlist-item-img { width: 64px; height: 64px; background: var(--orange-pale); border-radius: 3px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-item-info { flex: 1; }
.wishlist-item-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; color: var(--dark); margin-bottom: 0.2rem; }
.wishlist-item-price { color: var(--orange); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.5rem; }
.wishlist-item-actions { display: flex; gap: 0.5rem; }
.wish-add-cart { background: var(--dark); color: white; border: none; padding: 0.35rem 0.8rem; font-size: 0.72rem; font-weight: 600; cursor: pointer; border-radius: 2px; transition: background 0.2s; }
.wish-add-cart:hover { background: var(--orange); }
.wish-remove { background: none; border: 1px solid var(--border); color: var(--muted); padding: 0.35rem 0.6rem; font-size: 0.8rem; cursor: pointer; border-radius: 2px; transition: all 0.2s; }
.wish-remove:hover { border-color: #e33; color: #e33; }
.wishlist-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.wishlist-clear-btn { width: 100%; background: transparent; border: 1.5px solid var(--border); color: var(--muted); padding: 0.85rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: all 0.2s; }
.wishlist-clear-btn:hover { border-color: #e33; color: #e33; }

/* ===================================================
   PAYMENT MODAL
   =================================================== */
.payment-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.payment-overlay.open { opacity: 1; pointer-events: all; }
.payment-modal {
  background: white; width: 100%; max-width: 480px;
  border-radius: 6px; overflow: hidden;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.payment-overlay.open .payment-modal { transform: translateY(0) scale(1); }
.payment-modal-header { background: var(--dark); color: white; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.payment-modal-header h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800; }
.payment-modal-header .close-modal { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.payment-modal-header .close-modal:hover { color: var(--orange); }
.payment-summary { padding: 1.2rem 2rem; background: var(--orange-pale); border-bottom: 1px solid var(--border); }
.payment-summary-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.3rem; }
.payment-summary-amount { font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--orange-deep); }
.payment-methods { padding: 1.5rem 2rem; }
.payment-methods-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.payment-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.2s; background: white; }
.payment-option:hover { border-color: var(--orange); background: var(--orange-pale); }
.payment-option.selected { border-color: var(--orange); background: var(--orange-pale); }
.payment-option-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.pay-gopay { background: #00AED6; }
.pay-qris { background: #E8192C; }
.pay-bca { background: #005DAA; }
.pay-mandiri { background: #003F88; }
.payment-option-info { flex: 1; }
.payment-option-name { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.payment-option-desc { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.payment-option-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.payment-option.selected .payment-option-check { background: var(--orange); border-color: var(--orange); }
.payment-option.selected .payment-option-check::after { content: '✓'; color: white; font-size: 0.7rem; font-weight: 700; }
.payment-detail-box { background: var(--orange-pale); border: 1.5px dashed var(--orange); border-radius: 6px; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; display: none; }
.payment-detail-box.visible { display: block; }
.pdb-title { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.8rem; }
.pdb-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.pdb-key { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.pdb-val { font-size: 0.9rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 0.4rem; }
.copy-btn { background: var(--orange); color: white; border: none; padding: 0.2rem 0.55rem; font-size: 0.68rem; font-weight: 600; border-radius: 3px; cursor: pointer; letter-spacing: 0.05em; transition: background 0.15s; }
.copy-btn:hover { background: var(--orange-deep); }
.pdb-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.8rem; line-height: 1.5; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.confirm-wa-btn { width: 100%; background: #25D366; color: white; border: none; padding: 1.05rem; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: background 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.confirm-wa-btn:hover { background: #1ebe5a; box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.confirm-wa-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }

/* ===================================================
   PRODUCT DETAIL MODAL
   =================================================== */
.detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.detail-overlay.open { opacity: 1; pointer-events: all; }
.detail-modal {
  background: white; width: 100%; max-width: 900px; max-height: 92vh;
  border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.detail-overlay.open .detail-modal { transform: scale(1) translateY(0); }
.detail-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--dark); color: white; flex-shrink: 0; }
.detail-topbar-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
.detail-topbar-close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.3rem; cursor: pointer; transition: color 0.2s; padding: 4px; }
.detail-topbar-close:hover { color: var(--orange); }
.detail-body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.detail-body::-webkit-scrollbar { width: 4px; }
.detail-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.detail-upper { display: grid; grid-template-columns: 1fr 1fr; }
.detail-gallery { padding: 1.5rem; background: var(--orange-pale); border-right: 1px solid var(--border); }
.gallery-main { width: 100%; aspect-ratio: 1/1; background: white; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s; }
.gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery-thumb { width: 58px; height: 58px; border: 2px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; background: white; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, transform 0.15s; flex-shrink: 0; }
.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 1.5rem 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.detail-category { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.detail-name { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1.15; }
.detail-driver { font-size: 0.85rem; color: var(--muted); background: var(--orange-pale); display: inline-block; padding: 0.25rem 0.7rem; border-radius: 3px; border: 1px solid var(--border); }
.detail-rating-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.detail-stars { color: var(--orange); font-size: 1rem; }
.detail-rating-num { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.detail-review-count { font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.detail-review-count:hover { color: var(--orange); text-decoration: underline; }
.detail-price-row { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.detail-price-current { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--orange-deep); }
.detail-price-old { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.detail-price-discount { background: #e33; color: white; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 3px; }
.detail-condition { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.condition-badge { font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 3px; border: 1px solid; }
.condition-second { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }
.condition-tested { border-color: #22c55e; color: #16a34a; background: #f0fdf4; }
.detail-desc-short { font-size: 0.88rem; color: var(--muted); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 0.9rem; }
.detail-actions { display: flex; gap: 0.7rem; margin-top: auto; padding-top: 0.5rem; }
.detail-add-cart { flex: 1; background: var(--dark); color: white; border: none; padding: 0.9rem; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.detail-add-cart:hover { background: var(--orange); }
.detail-wish-btn { width: 46px; height: 46px; border: 2px solid var(--border); background: white; border-radius: 4px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.detail-wish-btn:hover, .detail-wish-btn.wishlisted { border-color: var(--orange); background: var(--orange-pale); }
.detail-tabs { border-top: 1px solid var(--border); padding: 0 1.5rem; display: flex; gap: 0; background: white; flex-shrink: 0; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow-x: auto; }
.detail-tabs::-webkit-scrollbar { height: 0; }
.detail-tab { padding: 0.9rem 1.2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; white-space: nowrap; }
.detail-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.detail-tab:hover:not(.active) { color: var(--dark); }
.detail-tab-content { display: none; padding: 1.5rem 1.8rem; }
.detail-tab-content.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--orange-pale); }
.specs-table td { padding: 0.7rem 1rem; font-size: 0.86rem; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--muted); width: 40%; }
.specs-table td:last-child { color: var(--dark); }

/* Reviews */
.review-summary { display: flex; gap: 2rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.review-big-num { font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800; color: var(--dark); line-height: 1; text-align: center; }
.review-big-stars { color: var(--orange); font-size: 1.2rem; margin-top: 0.3rem; text-align: center; }
.review-big-count { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.2rem; }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 160px; }
.review-bar-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; }
.review-bar-label { color: var(--muted); width: 12px; text-align: right; flex-shrink: 0; }
.review-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--orange); border-radius: 3px; transition: width 0.5s ease; }
.review-bar-count { color: var(--muted); width: 16px; flex-shrink: 0; }
.review-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.review-card { background: var(--orange-pale); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.2rem; }
.review-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.6rem; gap: 0.5rem; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: white; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-meta { flex: 1; margin-left: 0.6rem; }
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.review-date { font-size: 0.72rem; color: var(--muted); }
.review-stars-display { color: var(--orange); font-size: 0.85rem; }
.review-text { font-size: 0.86rem; color: var(--text); line-height: 1.65; }
.write-review { border: 2px dashed var(--border); border-radius: 6px; padding: 1.2rem 1.5rem; margin-top: 0.5rem; }
.write-review-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.star-picker { display: flex; gap: 0.3rem; margin-bottom: 0.9rem; }
.star-pick { font-size: 1.6rem; cursor: pointer; color: var(--border); transition: color 0.15s, transform 0.1s; user-select: none; }
.star-pick:hover, .star-pick.sel { color: var(--orange); }
.star-pick:hover { transform: scale(1.2); }
.review-input { width: 100%; border: 1.5px solid var(--border); border-radius: 4px; padding: 0.7rem 0.9rem; font-size: 0.85rem; outline: none; transition: border-color 0.2s; background: white; color: var(--dark); margin-bottom: 0.7rem; }
.review-input:focus { border-color: var(--orange); }
textarea.review-input { resize: vertical; min-height: 80px; }
.submit-review-btn { background: var(--orange); color: white; border: none; padding: 0.7rem 1.8rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.submit-review-btn:hover { background: var(--orange-deep); }

/* ===================================================
   AI CHATBOT
   =================================================== */
.chat-fab {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 56px; height: 56px; background: var(--orange);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(255,107,26,0.5);
  z-index: 9999; border: none; transition: transform 0.2s, box-shadow 0.2s; font-size: 1.5rem;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(255,107,26,0.65); }
.chat-fab-badge { position: absolute; top: -4px; right: -4px; background: #e33; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chat-window {
  position: fixed; bottom: 6.5rem; right: 2rem;
  width: 350px; background: white; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 9998; display: flex; flex-direction: column; overflow: hidden;
  max-height: 480px;
  transform: translateY(20px) scale(0.95); opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem; background: var(--dark); flex-shrink: 0; }
.chat-header-avatar { font-size: 1.5rem; width: 38px; height: 38px; background: rgba(255,107,26,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-header-name { font-family: 'Syne', sans-serif; font-weight: 700; color: white; font-size: 0.9rem; }
.chat-header-status { font-size: 0.72rem; color: #4ade80; margin-top: 1px; }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.chat-close:hover { color: white; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; -webkit-overflow-scrolling: touch; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #eee; border-radius: 2px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.55; word-break: break-word; }
.msg.user .msg-bubble { background: var(--orange); color: white; border-bottom-right-radius: 3px; }
.msg.bot .msg-bubble { background: #f4f4f4; color: var(--dark); border-bottom-left-radius: 3px; }
.msg-time { font-size: 0.65rem; color: var(--muted); padding: 0 4px; }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 0.5rem 0.9rem; background: #f4f4f4; border-radius: 12px; border-bottom-left-radius: 3px; }
.typing-dot { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: typingBounce 1.2s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.chat-input-area { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); background: white; flex-shrink: 0; }
.chat-input { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 0.85rem; outline: none; transition: border-color 0.2s; height: 40px; line-height: 1.4; }
.chat-input:focus { border-color: var(--orange); }
.chat-send { background: var(--orange); color: white; border: none; border-radius: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: background 0.2s, transform 0.15s; flex-shrink: 0; }
.chat-send:hover { background: var(--orange-deep); transform: scale(1.05); }
.chat-send:disabled { background: var(--border); cursor: not-allowed; transform: none; }
.chat-error { font-size: 0.78rem; color: #e33; padding: 0.5rem 0.9rem; background: #fff0f0; border: 1px solid #fcc; border-radius: 8px; }

/* ===================================================
   FLOATING WA BUTTON
   =================================================== */
.wa-float {
  position: fixed; bottom: 5.5rem; right: 2rem;
  width: 50px; height: 50px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5); z-index: 9997;
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.65); }

/* ===================================================
   RESPONSIVE — TABLET (max 1024px)
   =================================================== */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  section, .why-section, .about-section { padding: 4rem 2rem; }
  .promo-banner { padding: 4rem 2rem; }
  footer { padding: 2.5rem 2rem; }
  .hero-text { padding: 4rem 2rem; }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 900px)
   =================================================== */
/* ===================================================
   RESPONSIVE — TABLET / MOBILE (max 900px)
   =================================================== */
@media (max-width: 900px) {
  /* ── NAV ── */
  nav { padding: 0.8rem 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .lang-switcher, .wishlist-btn { display: none; }

  /* Keranjang di navbar: ikon only, lebih kecil */
  .cart-btn {
    padding: 0.5rem 0.65rem;
    gap: 0;
    min-width: 40px;
    justify-content: center;
  }
  .cart-btn-text { display: none; }   /* sembunyikan teks di mobile */
  .cart-btn-icon { font-size: 1.2rem; }

  /* ── HERO ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
    overflow: hidden;
  }
  .hero-visual { display: none !important; }
  .hero-text {
    padding: 2.25rem 1.1rem 1.75rem;
    width: 100%;
  }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.9rem; max-width: 100%; }
  .hero-stats { gap: 1.2rem; padding-top: 1.5rem; margin-top: 1.5rem; }
  .hero-stat-num { font-size: 1.45rem; }
  .hero-stat-label { font-size: 0.65rem; }

  /* ── SECTIONS ── */
  section { padding: 2.5rem 1.1rem; }
  .why-section { padding: 2.5rem 1.1rem; }
  .promo-banner { grid-template-columns: 1fr; padding: 2.5rem 1.1rem; gap: 1.5rem; }
  .about-section { padding: 2.5rem 1.1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-section::before { display: none; }
  footer { padding: 2rem 1.1rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-links { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  /* ── PRODUCT GRID ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .section-title { font-size: 1.65rem; }
  .section-tag { font-size: 0.65rem; }
  .section-header { margin-bottom: 1.25rem; }
  .filter-bar { margin-bottom: 1.25rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 0.4rem 0.9rem; font-size: 0.72rem; }

  /* ── PRODUCT CARD — font & layout mobile ── */
  .product-img { aspect-ratio: 1/1; }              /* square crop, less tall */
  .product-info { padding: 0.75rem 0.85rem 0.9rem; }
  .product-category { font-size: 0.6rem; margin-bottom: 0.2rem; letter-spacing: 0.12em; }
  .product-name { font-size: 0.82rem; margin-bottom: 0.2rem; line-height: 1.25; }
  .product-driver { font-size: 0.65rem; margin-bottom: 0.45rem; }
  .stars { font-size: 0.68rem; margin-bottom: 0.45rem; }
  .stars span { font-size: 0.68rem; }

  /* Footer produk: stack jadi 2 baris agar tidak terpotong */
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .price-current { font-size: 0.88rem; }
  .price-old { font-size: 0.68rem; }

  /* Tombol Keranjang: full-width, lebih kecil */
  .add-to-cart {
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    text-align: center;
  }

  /* Stok info lebih kecil */
  .stock-info-row { margin-top: 0.35rem; }
  .stock-badge { font-size: 0.62rem; padding: 0.18rem 0.45rem; }

  /* Mini reviews — sembunyikan di mobile (hemat ruang) */
  .mini-reviews { display: none; }

  /* Wishlist action btn selalu tampil di touch */
  .product-actions {
    opacity: 1;
    transform: translateX(0);
    bottom: 0.5rem;
    right: 0.5rem;
  }
  .action-btn { width: 30px; height: 30px; font-size: 0.8rem; }

  /* ── CART SIDEBAR — mobile redesign ── */
  .cart-sidebar, .wishlist-sidebar {
    width: 100%;
    right: -100%;
    /* Bottom sheet style di mobile */
    top: auto;
    bottom: -100%;
    height: 90dvh;
    border-radius: 16px 16px 0 0;
    transition: bottom 0.35s cubic-bezier(0.4,0,0.2,1), right 0s 0.35s;
  }
  .cart-sidebar.open, .wishlist-sidebar.open {
    right: 0;
    bottom: 0;
    transition: bottom 0.35s cubic-bezier(0.4,0,0.2,1);
  }

  /* Cart header lebih kompak */
  .cart-header, .wishlist-header {
    padding: 1rem 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  .cart-header h2, .wishlist-header h2 { font-size: 1rem; }
  .close-btn { font-size: 1.1rem; }

  /* Pull-handle hint di atas cart */
  .cart-header::before, .wishlist-header::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    margin: 0 auto 0.75rem;
    position: absolute;
    top: 0.5rem; left: 50%; transform: translateX(-50%);
  }

  .cart-items, .wishlist-items { padding: 0.9rem 1.1rem; }

  /* Cart item lebih compact */
  .cart-item { gap: 0.75rem; padding: 0.75rem 0; }
  .cart-item-emoji {
    width: 46px; height: 46px;
    font-size: 1.6rem;
  }
  .cart-item-name { font-size: 0.8rem; margin-bottom: 0.15rem; }
  .cart-item-price { font-size: 0.78rem; }
  .cart-item-qty { margin-top: 0.35rem; gap: 0.3rem; }
  .qty-btn { width: 24px; height: 24px; font-size: 0.85rem; }
  .qty-num { font-size: 0.8rem; min-width: 20px; }

  /* Cart footer compact */
  .cart-footer { padding: 0.9rem 1.1rem 1.25rem; }
  .cart-total { margin-bottom: 0.9rem; }
  .cart-total-label { font-size: 0.7rem; }
  .cart-total-amount { font-size: 1.35rem; }
  .checkout-btn { padding: 0.85rem; font-size: 0.8rem; letter-spacing: 0.06em; }

  /* ── MODALS ── */
  .detail-upper { grid-template-columns: 1fr; }
  .detail-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .detail-modal { max-height: 95vh; border-radius: 12px 12px 0 0; align-self: flex-end; }
  .review-summary { flex-direction: column; gap: 1rem; }

  /* ── CHAT FAB & WINDOW ── */
  .chat-fab {
    bottom: 1.5rem !important;
    right: 1.25rem !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
    z-index: 9999 !important;
  }
  .chat-window {
    position: fixed !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 5rem !important;
    width: auto !important;
    max-height: 62vh !important;
    z-index: 9998 !important;
    border-radius: 16px !important;
  }
}

/* ===================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   =================================================== */
@media (max-width: 480px) {
  /* ── HERO ── */
  .hero-title { font-size: 2rem; line-height: 1.05; }
  .hero-tag { font-size: 0.62rem; }
  .hero-desc { font-size: 0.85rem; line-height: 1.65; }
  .hero-iem-card { padding: 1.5rem 2rem; }
  .hero-iem-emoji { font-size: 4rem; }
  .hero-btns { flex-direction: column; gap: 0.6rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 0.85rem 1.2rem; font-size: 0.8rem; }
  .hero-stats { flex-wrap: nowrap; gap: 0.9rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.6rem; letter-spacing: 0.06em; }

  /* ── SECTIONS ── */
  .section-title { font-size: 1.45rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .promo-title { font-size: 1.6rem; }
  .about-title { font-size: 1.6rem; }

  /* ── PRODUCT GRID: 2 col untuk 480px ke bawah tetap ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* ── PRODUCT CARD lebih mini lagi ── */
  .product-info { padding: 0.6rem 0.7rem 0.75rem; }
  .product-name { font-size: 0.75rem; }
  .product-category { font-size: 0.56rem; }
  .product-driver { font-size: 0.6rem; }
  .stars { font-size: 0.62rem; }
  .price-current { font-size: 0.82rem; }
  .price-old { font-size: 0.62rem; }
  .add-to-cart { font-size: 0.62rem; padding: 0.45rem 0.5rem; }
  .stock-badge { font-size: 0.58rem; }

  /* ── CART ── */
  .payment-overlay { padding: 0; align-items: flex-end; }
  .payment-modal { border-radius: 12px 12px 0 0; max-height: 95vh; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .cart-total-amount { font-size: 1.2rem; }
  .checkout-btn { font-size: 0.75rem; padding: 0.8rem; }

  /* ── WHY CARDS ── */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .why-card { padding: 1rem 0.85rem; }
  .why-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .why-title { font-size: 0.82rem; margin-bottom: 0.3rem; }
  .why-desc { font-size: 0.73rem; line-height: 1.5; }

  /* ── CHAT ── */
  .chat-messages { max-height: calc(62vh - 155px); }
  .msg-bubble { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .chat-input { font-size: 0.82rem; height: 38px; }
  .chat-cs-bar { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .chat-cs-btn { align-self: stretch; justify-content: center; font-size: 0.75rem; }
}

/* ===================================================
   VERY SMALL — (max 360px, ex: small Android)
   =================================================== */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-stats { flex-direction: column; gap: 0.6rem; }
  .product-name { font-size: 0.88rem; }
  .add-to-cart { font-size: 0.7rem; }
}

/* ===================================================
   TOUCH DEVICE — show product actions always
   =================================================== */
@media (hover: none) and (pointer: coarse) {
  .product-actions { opacity: 1; transform: translateX(0); }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:active { transform: scale(0.99); }
}

/* ===================================================
   SCROLL SNAP for mobile if needed
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================================================
   STOK HABIS — Overlay & badges
   =================================================== */

/* Overlay merah di atas gambar produk ketika stok 0 */
.habis-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(15, 10, 6, 0.62);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: inherit;
  pointer-events: none;
}
.habis-icon { font-size: 2rem; opacity: 0.85; }
.habis-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem; font-weight: 800;
  color: #fff; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #C92B2B;
  padding: 0.18rem 0.85rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(201,43,43,0.45);
}
.habis-sub { font-size: 0.64rem; color: rgba(255,255,255,0.65); letter-spacing: 0.1em; text-transform: uppercase; }

/* Card muted state when out of stock */
.product-card.out-of-stock { opacity: 0.82; }
.product-card.out-of-stock:hover {
  transform: none !important;
  box-shadow: var(--s-sm) !important;
}

/* Low stock warning badge on product image */
.stock-low-badge {
  position: absolute; bottom: 0.65rem; right: 0.65rem;
  z-index: 5; background: #FF6B1A;
  color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 3px;
  letter-spacing: 0.04em; animation: pulse-badge 1.8s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,26,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(255,107,26,0); }
}

/* Stock info row below product footer */
.stock-info-row {
  padding: 0.35rem 1.4rem 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.stock-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 500;
  color: var(--muted); background: var(--orange-pale);
  padding: 0.18rem 0.6rem; border-radius: 3px;
  border: 1px solid var(--border);
}
.stock-badge.stock-low { color: #C25E00; background: #FFF5E8; border-color: rgba(255,107,26,0.25); }

/* Habis button */
.btn-habis {
  background: #E0E0E0 !important;
  color: #9E9E9E !important;
  cursor: not-allowed !important;
  border: none;
  padding: 0.58rem 1.1rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 2px;
}

/* ===================================================
   CHAT — Customer Service Bar
   =================================================== */
.chat-cs-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--border);
  background: #f0fdf4;
  gap: 0.5rem; flex-shrink: 0;
}
.chat-cs-label {
  font-size: 0.66rem; color: #3d7a52; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.chat-cs-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #25D366; color: #fff;
  border: none; border-radius: 6px;
  padding: 0.32rem 0.75rem;
  font-size: 0.68rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  letter-spacing: 0.02em; white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
  flex-shrink: 0;
}
.chat-cs-btn:hover { background: #1fba5a; transform: translateY(-1px); }
.chat-cs-btn:active { transform: translateY(0); }

/* ===================================================
   ADMIN PANEL — Manajemen Stok
   =================================================== */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.admin-overlay.open { opacity: 1; pointer-events: all; }

.admin-panel {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: calc(100% - 2rem); max-width: 560px;
  max-height: 90vh; background: var(--white);
  border-radius: 16px; z-index: 601;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  opacity: 0; pointer-events: none;
  transition: all 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  overflow: hidden;
}
.admin-panel.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border);
  background: var(--dark); flex-shrink: 0;
}
.admin-title {
  font-family: 'Syne', sans-serif; font-size: 1rem;
  font-weight: 800; color: #fff;
}
.admin-subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.admin-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.18s; flex-shrink: 0;
}
.admin-close:hover { background: #C92B2B; color: #fff; }

.admin-body {
  flex: 1; overflow-y: auto; padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}
.admin-body::-webkit-scrollbar { width: 4px; }
.admin-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.admin-product-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.admin-product-row:last-child { border-bottom: none; }
.admin-product-row:hover { background: var(--orange-pale); }

.admin-product-img {
  width: 52px; height: 52px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: var(--orange-pale); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.admin-product-img img { width: 100%; height: 100%; object-fit: cover; }

.admin-product-info { flex: 1; min-width: 0; }
.admin-product-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.12rem;
}
.admin-product-cat { font-size: 0.65rem; color: var(--muted); margin-bottom: 0.22rem; }
.admin-stock-status { font-size: 0.68rem; font-weight: 600; }
.status-ok    { color: #16a34a; }
.status-low   { color: #c25e00; }
.status-habis { color: #C92B2B; }

.admin-stock-ctrl {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.admin-qty-btn {
  width: 32px; height: 36px; border: none;
  background: var(--orange-pale); cursor: pointer;
  font-size: 1.1rem; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; font-weight: 600;
  flex-shrink: 0;
}
.admin-qty-btn:hover { background: var(--orange); color: #fff; }
.admin-qty-input {
  width: 44px; height: 36px; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-family: 'Syne', sans-serif;
  font-size: 0.88rem; font-weight: 700; color: var(--dark);
  background: white; outline: none; padding: 0;
  -moz-appearance: textfield;
}
.admin-qty-input::-webkit-outer-spin-button,
.admin-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.admin-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.4rem; border-top: 1px solid var(--border);
  background: var(--orange-pale); flex-shrink: 0; gap: 1rem; flex-wrap: wrap;
}
.admin-hint { font-size: 0.68rem; color: var(--muted); }
.admin-hint kbd {
  background: var(--dark); color: #fff;
  padding: 0.1rem 0.4rem; border-radius: 3px;
  font-size: 0.65rem; font-family: monospace; font-weight: 700;
}
.admin-save-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 0.6rem 1.3rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.admin-save-btn:hover { background: var(--orange-deep); transform: translateY(-1px); }
.admin-save-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
  .admin-panel { max-width: calc(100% - 1rem); max-height: 96vh; border-radius: 12px; }
  .admin-footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .admin-save-btn { width: 100%; text-align: center; }
  .chat-cs-bar { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .chat-cs-btn { align-self: stretch; justify-content: center; }
}

/* ===================================================
   PAYMENT — 2-Step Checkout
   =================================================== */

/* Step indicator bar */
.pay-steps {
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  gap: 0; background: white; flex-shrink: 0;
}
.pay-step {
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0.38; transition: opacity 0.25s;
}
.pay-step.active, .pay-step.done { opacity: 1; }
.pay-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}
.pay-step.active .pay-step-num { background: var(--orange); color: white; }
.pay-step.done   .pay-step-num { background: #16a34a; color: white; }
.pay-step-label { font-size: 0.72rem; font-weight: 600; color: var(--dark); white-space: nowrap; }
.pay-step-line {
  flex: 1; height: 2px; background: var(--border);
  min-width: 32px; max-width: 64px; margin: 0 0.5rem;
  border-radius: 1px;
}

/* Step content */
.pay-step-content { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.pay-step-content::-webkit-scrollbar { width: 4px; }
.pay-step-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Back button on step 2 */
.btn-back-step {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  color: var(--orange); font-size: 0.78rem; font-weight: 600;
  padding: 0; transition: color 0.15s;
}
.btn-back-step:hover { color: var(--orange-deep); }

/* ── Buyer Form ── */
.buyer-form {
  padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.85rem;
}
.buyer-form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.buyer-label {
  font-size: 0.75rem; font-weight: 600; color: var(--dark);
  display: flex; align-items: center; gap: 0.3rem;
}
.buyer-label .req { color: #e33; font-weight: 700; }

.buyer-input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.62rem 0.85rem; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; color: var(--dark); background: white;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%; box-sizing: border-box;
}
.buyer-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}
.buyer-input::placeholder { color: var(--muted); }
.buyer-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

/* Location row */
.location-row {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.loc-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--dark); color: white; border: none;
  padding: 0.48rem 0.95rem; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.loc-btn:hover:not(:disabled) { background: var(--orange); transform: translateY(-1px); }
.loc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.loc-status { font-size: 0.7rem; color: #16a34a; font-weight: 500; }
.loc-result {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 6px; padding: 0.45rem 0.75rem; margin-top: 0.3rem;
}
.loc-coords { font-size: 0.72rem; color: #15803d; font-weight: 500; font-family: monospace; }
.loc-maps-link {
  font-size: 0.7rem; font-weight: 700; color: var(--orange);
  text-decoration: none; white-space: nowrap;
}
.loc-maps-link:hover { text-decoration: underline; }

/* Next step button */
.btn-next-step {
  margin: 0.25rem 1.4rem 1.2rem;
  background: var(--orange); color: white; border: none;
  padding: 0.85rem; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(255,107,26,0.28);
}
.btn-next-step:hover { background: var(--orange-deep); transform: translateY(-2px); }

/* Buyer summary chip on step 2 */
.buyer-summary-chip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem;
  margin: 0 1.4rem 0.6rem; padding: 0.6rem 0.85rem;
  background: var(--orange-pale); border: 1px solid rgba(255,107,26,0.18);
  border-radius: 8px; font-size: 0.73rem;
}
.bsc-item { color: var(--dark); }
.bsc-sep  { color: var(--muted); }

/* Remove old wa-float if any stray css */
.wa-float { display: none !important; }

@media (max-width: 480px) {
  .pay-steps { padding: 0.8rem 1rem 0.65rem; gap: 0; }
  .pay-step-label { font-size: 0.64rem; }
  .pay-step-line { min-width: 20px; }
  .buyer-form { padding: 0.85rem 1rem; gap: 0.75rem; }
  .buyer-form-group { gap: 0.25rem; }
  .btn-next-step { margin: 0.25rem 1rem 1rem; }
  .buyer-summary-chip { margin: 0 1rem 0.5rem; }
}

/* ===================================================
   iOS SAFE AREA — notch / home indicator support
   =================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .chat-fab {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .chat-window {
    bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
  .cart-sidebar.open, .wishlist-sidebar.open {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 900px) {
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat-fab {
      bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    }
    .chat-window {
      bottom: calc(5rem + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ===================================================
   GLOBAL — prevent horizontal overflow
   =================================================== */
section, nav, footer, .hero, .why-section,
.promo-banner, .about-section, .products-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================================
   TOUCH DEVICE — product card mobile behavior
   =================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Tombol wishlist selalu tampil, tidak perlu hover */
  .product-actions { opacity: 1 !important; transform: translateX(0) !important; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:active { transform: scale(0.985); box-shadow: 0 4px 16px rgba(255,107,26,0.12); }

  /* Cart overlay: tambah backdrop sentuhan */
  .cart-overlay, .wishlist-overlay { -webkit-tap-highlight-color: transparent; }

  /* Tombol lebih mudah disentuh */
  .qty-btn { min-width: 36px; min-height: 36px; }
  .close-btn { min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; }
}

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

/* ===================================================
   ANIMATIONS.JS — Styles
   =================================================== */

/* ── Page Load Fade In ── */
body.page-loading {
  opacity: 0;
}
body.page-loaded {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scroll Progress Bar ── */
#scrollProgressBar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-glow));
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--orange-glow);
  pointer-events: none;
}

/* ── Ripple ── */
button, .filter-btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transform: scale(0);
  animation: rippleAnim 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* ── Click Burst Particles ── */
.click-burst {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: burstAnim 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform: translate(-50%, -50%);
}
@keyframes burstAnim {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2); opacity: 0; }
}

/* ── Scroll Reveal ── */
.sr-hidden {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Navbar Shrink & Hide ── */
nav.nav-scrolled {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  box-shadow: 0 4px 24px rgba(255, 107, 26, 0.10);
  transition: padding 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
nav.nav-hidden {
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.nav-visible {
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Fly to Cart ── */
.fly-item {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.4rem;
  animation: flyToCart 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform: translate(-50%, -50%);
}
@keyframes flyToCart {
  0%   { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey))) scale(0.25); opacity: 0; }
}

/* ── Product Card Tilt (smooth reset handled via JS) ── */
.product-card {
  will-change: transform;
  transform-origin: center center;
}

/* ── Filter Grid Shuffle ── */
@keyframes gridShuffle {
  0%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 0.6; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}
.grid-shuffle {
  animation: gridShuffle 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Smooth nav links underline ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after { width: 100%; }

/* ── Filter btn active pulse ── */
.filter-btn.active {
  animation: filterPulse 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes filterPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.10); }
  100% { transform: scale(1); }
}

/* ── Add to Cart button spring ── */
.add-to-cart:active, .detail-add-cart:active {
  animation: btnSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes btnSpring {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.91); }
  100% { transform: scale(1); }
}

/* ── Wishlist heart bounce ── */
.action-btn.wishlisted,
.detail-wish-btn.wishlisted {
  animation: heartBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes heartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* ── Toast slide-up smooth ── */
#toast {
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
#toast.show {
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* ── Section header underline draw ── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-glow));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.sr-visible .section-title::after,
.section-header.sr-visible .section-title::after {
  width: 60%;
}

/* ── Reduce motion safety ── */
@media (prefers-reduced-motion: reduce) {
  .sr-hidden    { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ripple       { animation: none !important; }
  .click-burst  { animation: none !important; }
  .fly-item     { animation: none !important; }
  #scrollProgressBar { transition: none; }
  nav           { transition: none !important; }
}

/* =====================================================
   QRIS ONLY — payment options
   ===================================================== */
.qris-only { padding: 0; }
.qris-only-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(255,107,26,0.12), rgba(255,107,26,0.05));
  border: 1.5px solid var(--orange);
  border-radius: 12px;
}
.qris-only-icon { font-size: 1.8rem; line-height: 1; }
.qris-only-banner .payment-option-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.qris-only-banner .payment-option-desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.qris-only-badge {
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  background: var(--orange);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =====================================================
   OWNER TRIGGER BUTTON
   ===================================================== */
.owner-trigger-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30,30,30,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.15;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.owner-trigger-btn:hover {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 4px 20px rgba(255,107,26,0.4);
  background: var(--orange);
}

/* =====================================================
   OWNER LOGIN MODAL
   ===================================================== */
.owner-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.owner-login-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.owner-login-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2rem 2.2rem;
  width: min(400px, 90vw);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,26,0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.owner-login-overlay.open .owner-login-modal {
  transform: translateY(0) scale(1);
}
.olm-header {
  text-align: center;
  margin-bottom: 1.8rem;
}
.olm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255,107,26,0.1);
  border-radius: 50%;
  margin-bottom: 0.8rem;
  border: 2px solid rgba(255,107,26,0.25);
}
.olm-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.olm-subtitle { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.olm-body { display: flex; flex-direction: column; gap: 1rem; }
.olm-field { display: flex; flex-direction: column; gap: 0.4rem; }
.olm-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.olm-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.olm-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,0.12); }
.olm-pass-wrap { position: relative; }
.olm-pass-wrap .olm-input { padding-right: 3rem; }
.olm-eye {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0.2rem;
  transition: color 0.2s;
}
.olm-eye:hover { color: var(--text); }
.olm-error {
  color: #e74c3c;
  font-size: 0.83rem;
  min-height: 1.2em;
  text-align: center;
  font-weight: 500;
}
.olm-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.3rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.olm-btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,26,0.35); }
.olm-btn:active { transform: translateY(0); }
.olm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.olm-close:hover { color: var(--text); background: var(--surface-2, #2a2a2a); }

/* =====================================================
   OWNER DASHBOARD PANEL
   ===================================================== */
.owner-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.owner-panel-overlay.open { opacity: 1; pointer-events: all; }

.owner-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9900;
  width: min(520px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.owner-panel.open { transform: translateX(0); }

.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,107,26,0.08), transparent);
  flex-shrink: 0;
}
.op-header-left { display: flex; align-items: center; gap: 0.9rem; }
.op-avatar {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.op-title { font-family: var(--font-display, 'Syne', sans-serif); font-size: 1.05rem; font-weight: 800; color: var(--text); }
.op-subtitle { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.op-header-right { display: flex; align-items: center; gap: 0.6rem; }
.op-logout-btn {
  background: rgba(231,76,60,0.12);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.op-logout-btn:hover { background: rgba(231,76,60,0.22); transform: scale(1.04); }
.op-close {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
}
.op-close:hover { color: var(--text); background: var(--surface-2, #2a2a2a); }

.op-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.op-tab {
  flex: 1;
  padding: 0.85rem;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}
.op-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.op-tab:hover:not(.active) { color: var(--text); }

.op-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.op-body .admin-body { flex: 1; }

.op-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.op-orders-count { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.op-clear-btn {
  background: none;
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  border-radius: 7px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.op-clear-btn:hover { background: rgba(231,76,60,0.1); }

.op-order-list { display: flex; flex-direction: column; gap: 1rem; }

.op-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.op-empty-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }

/* Order Card */
.op-order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.op-order-card:hover { border-color: rgba(255,107,26,0.35); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.op-order-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.op-order-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255,107,26,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-family: monospace;
}
.op-order-date { font-size: 0.75rem; color: var(--muted); }
.op-order-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.op-order-delete:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

.op-order-buyer { display: flex; gap: 1rem; flex-wrap: wrap; }
.op-buyer-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.op-buyer-phone { font-size: 0.85rem; color: var(--muted); }
.op-order-address, .op-order-items, .op-order-total, .op-order-loc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.4;
}
.op-order-total { color: var(--text); }
.op-maps-link { color: var(--orange); text-decoration: none; font-weight: 600; }
.op-maps-link:hover { text-decoration: underline; }

.op-status-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.op-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}
.op-status-select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 150px;
}
.op-status-select:focus { border-color: var(--orange); }

.op-note-row { margin-top: 0.1rem; }
.op-note-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.op-note-input:focus { border-color: var(--orange); }
.op-note-input::placeholder { color: var(--muted); }

.op-action-row { margin-top: 0.2rem; }
.op-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.op-wa-btn:hover { background: #1da851; transform: translateY(-1px); }

.op-stock-footer {
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}


/* =====================================================
   PRODUCT MANAGEMENT — Owner Dashboard
   ===================================================== */

/* Add product button */
.op-prod-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.op-add-prod-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.op-add-prod-btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,107,26,0.35); }
.op-add-prod-btn span { font-size: 1.1rem; line-height: 1; }

/* Product row in list */
.op-prod-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-radius: 8px;
}
.op-prod-row:hover { background: rgba(255,107,26,0.04); }
.op-prod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.op-prod-info { flex: 1; min-width: 0; }
.op-prod-name { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-prod-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.op-prod-stock { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.op-prod-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.op-edit-btn {
  background: rgba(52,152,219,0.12);
  color: #3498db;
  border: 1px solid rgba(52,152,219,0.25);
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.op-edit-btn:hover { background: rgba(52,152,219,0.22); }
.op-delete-btn {
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.op-delete-btn:hover { background: rgba(231,76,60,0.2); }

/* Form header */
.op-form-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.op-back-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.op-back-btn:hover { color: var(--text); border-color: var(--orange); }
.op-form-title { font-weight: 800; font-size: 1rem; color: var(--text); }

/* Form body */
.op-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 2rem;
}
.op-field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.op-field-row { display: flex; gap: 0.8rem; }
.op-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.op-field-desc { font-size: 0.77rem; color: var(--muted); margin-bottom: 0.3rem; }
.op-required { color: var(--orange); }
.op-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.op-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,0.1); }
.op-input::placeholder { color: var(--muted); opacity: 0.7; }
.op-select { cursor: pointer; }
.op-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

/* Photo upload */
.op-photo-upload {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}
.op-photo-upload:hover { border-color: var(--orange); background: rgba(255,107,26,0.03); }
.op-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  pointer-events: none;
}

/* Price preview */
.op-price-preview {
  font-size: 0.82rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: -0.5rem;
  min-height: 1.2em;
}

/* Spec / bundle rows */
.op-spec-row, .op-bundle-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.op-spec-key { flex: 0 0 38%; }
.op-spec-val { flex: 1; }
.op-remove-spec {
  background: none;
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.op-remove-spec:hover { background: rgba(231,76,60,0.12); }
.op-add-spec-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 0.2rem;
}
.op-add-spec-btn:hover { color: var(--orange); border-color: var(--orange); }

/* Form error */
.op-form-error {
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.2em;
}

/* Form actions */
.op-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.op-cancel-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 9px;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}
.op-cancel-btn:hover { color: var(--text); border-color: var(--orange); }
.op-save-prod-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.op-save-prod-btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255,107,26,0.35); }
.op-save-prod-btn:active { transform: translateY(0); }


/* =====================================================
   TRACKING PAGE
   ===================================================== */

/* Overlay */
.tracking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1rem 3rem;
}
.tracking-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Page container */
.tracking-page {
  width: 100%;
  max-width: 620px;
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,26,0.08);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.tracking-overlay.open .tracking-page {
  transform: translateY(0) scale(1);
}

/* Header */
.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,107,26,0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.tp-header::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,107,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.tp-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.tp-logo-icon { flex-shrink: 0; }
.tp-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.tp-subtitle { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.tp-close {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.tp-close:hover { color: var(--text); background: var(--border); transform: rotate(90deg); }

/* Search section */
.tp-search-section {
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.tp-search-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.tp-search-row {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
}
.tp-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.tp-search-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}
.tp-search-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 2.5rem 0.75rem 2.6rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.tp-search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}
.tp-search-input::placeholder { color: var(--muted); opacity: 0.6; }
.tp-clear-input {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.tp-clear-input:hover { color: var(--text); background: var(--border); }
.tp-search-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}
.tp-search-btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,107,26,0.4); }
.tp-search-btn:active { transform: translateY(0); }
.tp-search-error {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #e74c3c;
  font-weight: 500;
  min-height: 1.2em;
}

/* Empty state */
.tp-empty-state {
  padding: 2.5rem 2rem;
  text-align: center;
}
.tp-empty-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.3rem;
  gap: 0.3rem;
}
.tp-empty-box {
  font-size: 3.5rem;
  line-height: 1;
  animation: tp-float 3s ease-in-out infinite;
}
@keyframes tp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.tp-empty-waves {
  display: flex;
  gap: 5px;
  height: 12px;
  align-items: flex-end;
}
.tp-empty-waves span {
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0.4;
  animation: tp-wave 1.2s ease-in-out infinite;
}
.tp-empty-waves span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.tp-empty-waves span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.tp-empty-waves span:nth-child(3) { height: 6px;  animation-delay: 0.4s; }
@keyframes tp-wave {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}
.tp-empty-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.tp-empty-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 1.3rem;
}
.tp-tips {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 340px;
  margin: 0 auto;
}
.tp-tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.4;
}

/* Results container */
.tp-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tracking Card */
.tp-card {
  border-bottom: 1px solid var(--border);
}
.tp-card:last-child { border-bottom: none; }

/* Card header */
.tp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.3rem 1.5rem 0.9rem;
  flex-wrap: wrap;
}
.tp-card-id-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.tp-card-id {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255,107,26,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  display: inline-block;
}
.tp-card-date { font-size: 0.75rem; color: var(--muted); }
.tp-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Buyer section */
.tp-buyer-section {
  padding: 0.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  margin: 0 1rem;
  border-radius: 12px;
}
.tp-buyer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
}
.tp-buyer-icon { flex-shrink: 0; line-height: 1.5; }
.tp-buyer-val { color: var(--text); line-height: 1.5; }

/* Items section */
.tp-items-section {
  padding: 1rem 1.5rem;
}
.tp-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.tp-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.tp-item-row:last-of-type { border-bottom: none; }
.tp-item-name { flex: 1; color: var(--text); font-weight: 500; }
.tp-item-qty  { color: var(--muted); font-size: 0.8rem; }
.tp-item-price { color: var(--orange); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.tp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.tp-total-val {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 800;
}

/* Timeline section */
.tp-timeline-section {
  padding: 1rem 1.5rem 1.2rem;
  background: var(--surface);
}
.tp-timeline {
  display: flex;
  flex-direction: column;
}
.tp-step {
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.tp-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.tp-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}
.tp-step-done .tp-step-dot {
  background: #27ae60;
  border-color: #27ae60;
}
.tp-step-active .tp-step-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,26,0.18), 0 0 12px rgba(255,107,26,0.35);
  animation: tp-pulse 2s ease-in-out infinite;
}
@keyframes tp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,26,0.18), 0 0 12px rgba(255,107,26,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(255,107,26,0.1),  0 0 20px rgba(255,107,26,0.35); }
}
.tp-step-future .tp-step-dot {
  background: var(--bg);
  border-color: var(--border);
  opacity: 0.45;
}
.tp-step-line {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: var(--border);
  margin: 2px 0;
}
.tp-step-done .tp-step-line { background: #27ae60; }
.tp-step-active .tp-step-line { background: var(--border); }

.tp-step-content {
  flex: 1;
  padding: 4px 0 20px 0.85rem;
}
.tp-step:last-child .tp-step-content { padding-bottom: 0; }
.tp-step-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.tp-step-future .tp-step-label { opacity: 0.45; }
.tp-step-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.tp-step-future .tp-step-desc { opacity: 0.4; }
.tp-step-note {
  font-size: 0.78rem;
  color: var(--orange);
  margin-top: 5px;
  background: rgba(255,107,26,0.08);
  border-radius: 7px;
  padding: 0.35rem 0.6rem;
  display: inline-block;
}

/* Cancelled banner */
.tp-cancelled-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 12px;
}
.tp-cancelled-icon { font-size: 1.5rem; }
.tp-cancelled-title { font-weight: 700; color: #e74c3c; font-size: 0.9rem; }
.tp-cancelled-desc  { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Contact bar */
.tp-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.tp-contact-text { font-size: 0.8rem; color: var(--muted); }
.tp-wa-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.tp-wa-contact:hover { background: #1da851; transform: translateY(-1px); }

/* Navbar tracking link */
.nav-track-link {
  color: var(--orange) !important;
  font-weight: 600;
  position: relative;
}
.nav-track-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-track-link:hover::after { transform: scaleX(1); }

/* Responsive */
@media (max-width: 600px) {
  .tp-search-row { flex-direction: column; }
  .tp-search-btn { width: 100%; padding: 0.75rem; text-align: center; }
  .tp-card-header { flex-direction: column; gap: 0.6rem; }
  .tp-contact-bar { flex-direction: column; align-items: flex-start; }
}


/* =====================================================
   TRACKING PAGE — Cek Status Pesanan
   ===================================================== */

/* ── Overlay / full-screen page ── */
.tracking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.tracking-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.tracking-page {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.tp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tp-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.tp-logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(255,107,26,0.3));
}
.tp-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.tp-subtitle {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 1px;
}
.tp-close {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.tp-close:hover { color: var(--text); background: var(--surface-2, #2a2a2a); transform: scale(1.08); }

/* ── Search section ── */
.tp-search-section {
  padding: 1.8rem 1.5rem 1.2rem;
  background: linear-gradient(180deg, rgba(255,107,26,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.tp-search-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.tp-search-row {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
}
.tp-search-wrap {
  position: relative;
  flex: 1;
}
.tp-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}
.tp-search-input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 2.7rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.tp-search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,26,0.1);
}
.tp-search-input::placeholder { color: var(--muted); opacity: 0.6; }
.tp-clear-input {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2, #2a2a2a);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.65rem;
  transition: background 0.2s, color 0.2s;
}
.tp-clear-input:hover { background: var(--orange); color: white; }
.tp-search-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.tp-search-btn:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255,107,26,0.4);
}
.tp-search-btn:active { transform: translateY(0); }
.tp-search-error {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #e74c3c;
  font-weight: 600;
  min-height: 1.3em;
}

/* ── Results area ── */
.tp-results {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* ── Empty state ── */
.tp-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.tp-empty-visual {
  position: relative;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-empty-box {
  font-size: 4rem;
  animation: tpBoxFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(255,107,26,0.2));
}
@keyframes tpBoxFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.tp-empty-waves {
  position: absolute;
  bottom: -8px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.tp-empty-waves span {
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0.4;
  animation: tpWave 1.2s ease-in-out infinite;
}
.tp-empty-waves span:nth-child(1) { height: 12px; animation-delay: 0s; }
.tp-empty-waves span:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.tp-empty-waves span:nth-child(3) { height: 14px; animation-delay: 0.4s; }
@keyframes tpWave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50%       { transform: scaleY(1);   opacity: 0.7; }
}
.tp-empty-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.tp-empty-desc {
  font-size: 0.87rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.tp-tips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-align: left;
  max-width: 340px;
  width: 100%;
}
.tp-tip {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Tracking Card ── */
.tp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
  border-top: 3px solid var(--status-color, var(--orange));
}
.tp-card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.18); }

/* Card header */
.tp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.1rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tp-card-id-wrap { display: flex; flex-direction: column; gap: 0.2rem; }
.tp-card-id {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255,107,26,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  display: inline-block;
}
.tp-card-date { font-size: 0.77rem; color: var(--muted); }
.tp-status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Section labels */
.tp-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

/* Buyer section */
.tp-buyer-section {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tp-buyer-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
}
.tp-buyer-icon { flex-shrink: 0; width: 1.2em; }
.tp-buyer-val { color: var(--text); line-height: 1.4; }

/* Items section */
.tp-items-section {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
}
.tp-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.tp-item-row:last-of-type { border-bottom: none; }
.tp-item-name { flex: 1; color: var(--text); }
.tp-item-qty {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.tp-item-price { font-weight: 700; color: var(--orange); font-size: 0.85rem; }
.tp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.tp-total-val { color: var(--orange); font-size: 1rem; }

/* ── Timeline section ── */
.tp-timeline-section {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--border);
}
.tp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tp-step {
  display: flex;
  gap: 0;
  position: relative;
}
.tp-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
  margin-right: 1rem;
}
.tp-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}
.tp-step-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin: 3px 0;
  transition: background 0.4s ease;
}

/* Done step */
.tp-step-done .tp-step-dot {
  background: #27ae60;
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39,174,96,0.15);
}
.tp-step-done .tp-step-line {
  background: linear-gradient(180deg, #27ae60 0%, rgba(39,174,96,0.3) 100%);
}
.tp-step-done .tp-step-label { color: var(--text); }

/* Active step */
.tp-step-active .tp-step-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,107,26,0.18), 0 0 16px rgba(255,107,26,0.3);
  animation: tpPulse 2s ease-in-out infinite;
}
.tp-step-active .tp-step-label {
  color: var(--orange);
  font-weight: 800;
}
@keyframes tpPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255,107,26,0.18), 0 0 16px rgba(255,107,26,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255,107,26,0.08), 0 0 24px rgba(255,107,26,0.15); }
}

/* Future step */
.tp-step-future .tp-step-dot {
  background: var(--bg);
  border-color: var(--border);
  opacity: 0.5;
}
.tp-step-future .tp-step-label { color: var(--muted); }
.tp-step-future .tp-step-desc { color: var(--muted); opacity: 0.6; }

/* Step content */
.tp-step-content {
  padding: 0.25rem 0 1.2rem;
  flex: 1;
  min-width: 0;
}
.tp-step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
}
.tp-step-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.tp-step-note {
  font-size: 0.78rem;
  color: var(--orange);
  margin-top: 0.4rem;
  background: rgba(255,107,26,0.08);
  border-left: 2.5px solid var(--orange);
  padding: 0.3rem 0.6rem;
  border-radius: 0 5px 5px 0;
  font-style: italic;
}

/* Cancelled banner */
.tp-cancelled-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.25);
  border-radius: 10px;
}
.tp-cancelled-icon { font-size: 1.6rem; flex-shrink: 0; }
.tp-cancelled-title { font-weight: 700; color: #e74c3c; font-size: 0.9rem; }
.tp-cancelled-desc  { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Contact bar */
.tp-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1.3rem;
  background: rgba(255,107,26,0.04);
  flex-wrap: wrap;
}
.tp-contact-text { font-size: 0.82rem; color: var(--muted); }
.tp-wa-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.tp-wa-contact:hover { background: #1da851; transform: translateY(-1px); }

/* Nav link styling */
.nav-track-link {
  background: rgba(255,107,26,0.1);
  color: var(--orange) !important;
  border-radius: 20px;
  padding: 0.3rem 0.8rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-track-link:hover {
  background: var(--orange) !important;
  color: white !important;
  transform: scale(1.04);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tp-header { padding: 0.9rem 1rem; }
  .tp-search-section { padding: 1.2rem 1rem 1rem; }
  .tp-results { padding: 1rem; }
  .tp-empty-state { padding: 2rem 1rem 3rem; }
  .tp-search-row { flex-direction: column; }
  .tp-search-btn { width: 100%; padding: 0.75rem; }
  .tp-card-header { flex-direction: column; align-items: flex-start; }
  .tp-buyer-section, .tp-items-section, .tp-timeline-section, .tp-contact-bar { padding: 0.9rem 1rem; }
  .tp-contact-bar { flex-direction: column; align-items: flex-start; }
}

