/* ===== PAKSUR SHOP — Burgundy Theme  Luxurious Modern Theme ===== */
:root {
  /* Elegant Midnight Navy + Champagne Gold */
  --gold: #C9A84C;
  --gold-light: #E4D09A;
  --gold-dark: #A6852E;
  --burgundy: #C9A84C;
  --burgundy-light: #E4D09A;
  --burgundy-dark: #A6852E;
  --burgundy-deep: #7A6320;
  --accent-pink: #C4A99A;
  --accent-violet: #8B9BB8;
  --accent-orange: #D4B896;
  --black: #0A0E16;
  --dark: #0F1520;
  --dark-2: #161D2C;
  --dark-3: #222B3D;
  --gray: #9BA6B8;
  --light-gray: #E9EDF4;
  --white: #F5F7FA;
  --success: #5CB88A;
  --danger: #E07070;
  --warning: #D4A84C;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-gold: 0 8px 28px rgba(201,168,76,0.28);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.32);
  --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --glass: rgba(22, 29, 44, 0.88);
  --glass-border: rgba(201,168,76,0.16);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 120px;
  --bottom-nav-h: 68px;
  --surface-glow: radial-gradient(ellipse at 18% 0%, rgba(201,168,76,0.08) 0%, transparent 48%),
                   radial-gradient(ellipse at 88% 8%, rgba(60,90,140,0.1) 0%, transparent 45%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  background-image: var(--surface-glow);
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.22);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Loading ===== */
.loading-overlay {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-overlay.fade-out { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader-ring {
  width: 60px; height: 60px;
  border: 3px solid var(--dark-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.loader-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.header-top { padding: 12px 0; }
.header-inner {
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
#logo-icon {
width: 43px; height: 40px;
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
background-color: transparent;
color: var(--black);
box-shadow: var(--shadow-gold);
}
.stretch {
    width:100%;
    height:100%;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-text small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 2px;
}

.search-bar {
  flex: 1;
  display: flex;
  max-width: 560px;
  position: relative;
}

.search-bar input {
  padding-right: 48px;
  border-radius: 50px;
  background: var(--dark-2);
  border-color: transparent;
}
.search-bar input:focus { border-color: var(--gold); }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.search-btn:hover { background: var(--gold-light); }

.header-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.db-status {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.db-status.ok {
  color: #0E1116;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
}
.db-status.local {
  color: var(--warning);
  border-color: rgba(251,191,36,0.35);
}
.db-status.err {
  color: var(--danger);
  border-color: rgba(248,113,113,0.4);
}
@media (max-width: 380px) {
  .db-status { display: none; }
}
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--light-gray);
  transition: var(--transition);
}
.icon-btn:hover { background: var(--dark-3); color: var(--gold); }
.badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.badge-sm {
  position: absolute; top: 4px; right: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 50px;
  transition: var(--transition);
}
.user-btn:hover { background: var(--dark-3); }
.user-btn img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.user-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--transition);
}
.dropdown a:hover { background: var(--dark-3); color: var(--gold); }
.dropdown a i { width: 18px; color: var(--gold); }

/* Categories Nav — icon berlabel */
.categories-nav {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0 12px;
  overflow: hidden;
}
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 4px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--dark-2);
  color: var(--gray);
  transition: var(--transition);
  white-space: nowrap;
}
.cat-item-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: var(--dark-2);
  border: 1px solid transparent;
  color: var(--gray);
}
.cat-item-icon .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(64, 224, 208, 0.12);
  color: var(--gold);
  font-size: 16px;
  transition: var(--transition);
}
.cat-item-icon .cat-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-item-icon:hover {
  background: var(--dark-3);
  border-color: rgba(64, 224, 208, 0.25);
  color: var(--light-gray);
}
.cat-item-icon:hover .cat-icon {
  background: rgba(64, 224, 208, 0.22);
  color: var(--gold-light);
  transform: translateY(-1px);
}
.cat-item-icon.active {
  background: rgba(64, 224, 208, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}
.cat-item-icon.active .cat-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}
.cat-item:hover, .cat-item.active {
  /* keep legacy chip styles if used elsewhere */
}
.cat-item:not(.cat-item-icon):hover,
.cat-item:not(.cat-item-icon).active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}

@media (max-width: 480px) {
  .cat-item-icon {
    min-width: 62px;
    padding: 8px 8px 6px;
    gap: 5px;
  }
  .cat-item-icon .cat-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
  }
  .cat-item-icon .cat-label {
    font-size: 10px;
    max-width: 64px;
  }
}

/* ===== Main Content ===== */
#main-content {
  min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h));
  padding-bottom: calc(var(--bottom-nav-h) + 20px);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: rgba(18,18,18,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,168,76,0.22);
  display: flex;
  z-index: 90;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gray);
  position: relative;
  transition: var(--transition);
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--gold); }
.nav-item:hover { color: var(--gold-light); }

/* ===== Utilities ===== */
.hidden { display: none !important; }
.desktop-only { display: none; }
.mobile-only { display: flex; }

@media (min-width: 768px) {
  .desktop-only { display: flex; }
  .mobile-only { display: none !important; }
  #main-content { padding-bottom: 40px; }
  .header-inner { gap: 24px; }
  .logo-text { font-size: 24px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(64,224,208,0.4);
}
.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(64,224,208,0.1); }
.btn-dark {
  background: var(--dark-3);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: white; }

/* ===== Cards ===== */
.product-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.product-card:hover {
  border-color: rgba(64,224,208,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark-3);
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-info { padding: 12px; }
.product-name {
  font-size: 13px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  min-height: 36px;
}
.product-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.price-original {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
}
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  color: var(--gray);
}
.product-rating { color: var(--gold); }
.product-store {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}

/* ===== Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Sections ===== */
.section { padding: 24px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--gold); }
.section-link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
  aspect-ratio: 21/9;
  max-height: 320px;
  background: linear-gradient(135deg, #1a1a1a, #2a1f0a);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 24px 32px;
  background-size: cover;
  background-position: center;
}
.hero-content { max-width: 480px; z-index: 2; }
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero-desc {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 20px;
  opacity: 0.9;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 70%);
}

/* ===== Store Card ===== */
.store-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; gap: 14px;
  align-items: center;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.store-card:hover {
  border-color: rgba(64,224,208,0.3);
  transform: translateY(-2px);
}
.store-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.store-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.store-info p { font-size: 12px; color: var(--gray); }
.store-meta {
  display: flex; gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gray);
}
.store-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
@media (max-width: 480px) {
  .modal { padding: 0; align-items: flex-end; }
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--dark);
  border-radius: 16px;
  border: 1px solid var(--dark-3);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-content.product-modal {
  max-width: min(720px, 100%);
  width: 100%;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gold); color: var(--black); }

.auth-modal { padding: 32px 24px 24px; }
.auth-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  background: var(--dark-2);
  border-radius: 50px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray);
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--gold);
  color: var(--black);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--light-gray);
}

/* Product Modal — mobile-first full screen friendly */
.product-modal {
  max-width: 720px;
  width: 100%;
  padding: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-modal-body {
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 92vh;
}
@media (min-width: 640px) {
  .product-modal-body { grid-template-columns: 1fr 1fr; max-height: none; }
  .product-modal { max-height: 90vh; }
}
.pm-image {
  width: 100%;
  aspect-ratio: 1;
  max-height: 50vh;
  background: var(--dark-3);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
@media (min-width: 640px) {
  .pm-image { max-height: none; aspect-ratio: 1; }
}
.pm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video produk di detail */
.product-video-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 20, 18, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 214, 0.45);
  backdrop-filter: blur(8px);
}
.product-video-badge i { color: var(--gold); font-size: 9px; }
.pm-media {
  display: block;
  position: relative;
  background: #050c0b;
}
.pm-media-photo,
.pm-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.pm-media-photo img,
.pm-video-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  background: #000;
}
.pm-video-frame {
  object-fit: contain;
  border: 0;
}
.pm-media.is-video .pm-video-frame {
  object-fit: contain;
}
.pm-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.45) 100%);
  border: 0;
  cursor: pointer;
  color: #fff;
  z-index: 2;
}
.pm-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark, #20B2AA));
  color: #061412;
  font-size: 22px;
  box-shadow: 0 10px 28px rgba(46, 230, 214, 0.35);
  padding-left: 4px;
  transition: transform 0.2s ease;
}
.pm-play-overlay:active .pm-play-btn { transform: scale(0.94); }
.pm-play-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.pm-media-tabs {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.pm-media-tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  min-width: 0;
}
.pm-media-tabs .pm-close {
  pointer-events: auto;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 20, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: var(--transition);
  margin: 0;
}
.pm-media-tabs .pm-close:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-color: transparent;
}
.pm-media-tab {
  flex: 0 1 auto;
  min-width: 78px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(6, 20, 18, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.pm-media-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark, #20B2AA));
  color: #061412;
  border-color: transparent;
}
.pm-media-dots {
  display: none;
}
.pm-details {
  padding: 16px;
  padding-bottom: 28px;
}
@media (min-width: 640px) {
  .pm-details { padding: 24px; overflow-y: auto; max-height: 90vh; }
}
.pm-name {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .pm-name { font-size: 22px; }
}
.pm-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .pm-price { font-size: 24px; }
}
.pm-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}
.qty-control {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.qty-btn:hover { background: var(--gold); color: var(--black); }
.qty-value {
  font-size: 16px; font-weight: 600;
  min-width: 30px; text-align: center;
}

/* ===== Cart ===== */
.cart-item {
  display: flex; gap: 14px;
  padding: 16px;
  background: var(--dark-2);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--dark-3);
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px; font-weight: 500;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-store { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.cart-item-price { font-weight: 700; color: var(--gold); }
.cart-summary {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(64,224,208,0.22);
  position: sticky; bottom: 80px;
}
@media (min-width: 768px) {
  .cart-summary { bottom: 20px; }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state i {
  font-size: 48px;
  color: var(--dark-3);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-2);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
  .toast { bottom: 40px; }
}

/* ===== Seller Dashboard ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--dark-3);
}
.stat-card .label { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.stat-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

/* ===== Forms & Tables ===== */
.form-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--dark-3);
  margin-bottom: 16px;
}
.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--dark-3);
}
th { color: var(--gray); font-weight: 500; }

/* ===== Profile ===== */
.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--dark-3);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
}
.profile-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--dark-2);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
}
.profile-menu a:hover { background: var(--dark-3); }
.profile-menu a i {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.22);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}

/* ===== Order Card ===== */
.order-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--dark-3);
}
.order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-3);
}
.order-status {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}
.status-pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.status-processing { background: rgba(59,130,246,0.2); color: #3B82F6; }
.status-shipped { background: rgba(34,197,94,0.2); color: var(--success); }
.status-completed { background: rgba(64,224,208,0.22); color: var(--gold); }
.status-cancelled { background: rgba(239,68,68,0.2); color: var(--danger); }

/* ===== Category Grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}
.cat-box {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.cat-box:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.cat-box i {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
}
.cat-box span {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

/* ===== Page Title ===== */
.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.page-title i { color: var(--gold); }

/* ===== Store Page Banner ===== */
.store-banner {
  height: 140px;
  background: linear-gradient(135deg, #1a1508, #2a2010);
  border-radius: var(--radius);
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
}
.store-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.store-profile {
  position: absolute;
  bottom: -40px; left: 20px;
  display: flex; align-items: flex-end; gap: 16px;
}
.store-profile img {
  width: 80px; height: 80px;
  border-radius: 16px;
  border: 3px solid var(--gold);
  background: var(--dark);
}
.store-profile-info h2 {
  font-family: var(--font-display);
  font-size: 20px;
}
.store-profile-info p { font-size: 13px; color: var(--gray); }

/* ===== Filters ===== */
.filters-bar {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  background: var(--dark-2);
  color: var(--gray);
  border: 1px solid var(--dark-3);
  transition: var(--transition);
}
.filter-chip.active, .filter-chip:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== Payment Methods ===== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--dark-2);
  border: 2px solid var(--dark-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.payment-option:hover, .payment-option.selected {
  border-color: var(--gold);
  background: rgba(64,224,208,0.08);
}
.payment-option i {
  font-size: 22px;
  color: var(--gold);
  width: 28px;
  text-align: center;
}
.payment-option .pm-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.payment-option .pm-info p { font-size: 12px; color: var(--gray); }
.payment-option input { display: none; }

.qris-box, .transfer-box {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 12px;
}
.qris-box img {
  width: 180px;
  height: 180px;
  margin: 12px auto;
  border-radius: 8px;
  background: white;
  padding: 8px;
}
.bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-3);
  font-size: 13px;
}
.bank-item:last-child { border-bottom: none; }
.copy-btn {
  background: var(--gold);
  color: var(--black);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== Voucher ===== */
.voucher-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.voucher-input input { flex: 1; }
.voucher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.voucher-chip {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  background: rgba(201,168,76,0.22);
  color: var(--gold);
  border: 1px dashed var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.voucher-chip:hover, .voucher-chip.active {
  background: var(--gold);
  color: var(--black);
  border-style: solid;
}
.voucher-applied {
  background: rgba(34,197,94,0.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* ===== Reviews — responsive HP ===== */
.reviews-section {
  margin-top: 20px;
  border-top: 1px solid var(--dark-3);
  padding-top: 16px;
  width: 100%;
}
.reviews-section h4 {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-height: none;
}
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-3);
  width: 100%;
  box-sizing: border-box;
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  width: 100%;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.review-user-meta {
  flex: 1;
  min-width: 0;
}
.review-user-meta .name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.review-comment {
  font-size: 13px;
  color: var(--light-gray);
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}
.review-date { font-size: 11px; color: var(--gray); margin-top: 6px; }

/* Modal full-bleed on small phones */
@media (max-width: 480px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .product-modal {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
    margin: 0;
    overflow: hidden;
  }
  .modal-content.product-modal {
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
  }
  .product-modal-body {
    width: 100%;
    padding: 0;
  }
  .pm-image {
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 280px;
    border-radius: 16px 16px 0 0;
  }
  .pm-image img,
  .pm-video-frame {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
  }
  .pm-media.is-video .pm-video-frame {
    object-fit: contain;
    min-height: 280px;
  }
  .pm-details {
    padding: 14px 16px 32px;
  }
  .reviews-section {
    margin-top: 16px;
    padding-top: 14px;
  }
  .review-item {
    padding: 12px 0;
  }
  .review-comment {
    font-size: 13px;
  }
}
.star-input {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.star-input i {
  font-size: 24px;
  color: var(--dark-3);
  cursor: pointer;
  transition: var(--transition);
}
.star-input i.active, .star-input i:hover { color: var(--gold); }

/* ===== Chat ===== */
.chat-modal .modal-content {
  max-width: 420px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dark-3);
  background: var(--dark-2);
}
.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.chat-header-info { flex: 1; }
.chat-header-info h4 { font-size: 15px; }
.chat-header-info p { font-size: 11px; color: var(--success); }
.chat-actions { display: flex; gap: 6px; }
.chat-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.chat-actions button:hover { background: var(--gold); color: var(--black); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--dark-3);
  border-bottom-left-radius: 4px;
}
.chat-bubble .time {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--dark-3);
  background: var(--dark-2);
}
.chat-input-area input {
  flex: 1;
  border-radius: 50px;
  padding: 10px 16px;
}
.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Call Screen ===== */
.call-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1508 100%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin-bottom: 20px;
  object-fit: cover;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(64,224,208,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(64,224,208,0); }
  100% { box-shadow: 0 0 0 0 rgba(64,224,208,0); }
}
.call-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}
.call-status {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 40px;
}
.call-controls {
  display: flex;
  gap: 24px;
  align-items: center;
}
.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}
.call-btn.mute { background: var(--dark-3); }
.call-btn.mute.active { background: var(--gold); color: var(--black); }
.call-btn.end { background: var(--danger); width: 64px; height: 64px; font-size: 26px; }
.call-btn.video { background: var(--dark-3); }
.call-btn.video.active { background: var(--gold); color: var(--black); }
.call-timer {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 2px;
}
.video-placeholder {
  width: 90%;
  max-width: 360px;
  aspect-ratio: 16/9;
  background: var(--dark-2);
  border-radius: 16px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark-3);
  position: relative;
  overflow: hidden;
}
.video-placeholder .remote-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.video-self {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 100px;
  background: var(--dark-3);
  border-radius: 8px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray);
}

/* ===== Chat list in profile ===== */
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--dark-2);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.chat-list-item:hover {
  border-color: rgba(64,224,208,0.3);
}
.chat-list-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}


/* Product title — full width (close di area media, kanan tombol video) */
.pm-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.pm-title-row .pm-name {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.pm-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--light-gray);
  transition: var(--transition);
  margin-top: 0;
  border: none;
  cursor: pointer;
}
.pm-close:hover {
  background: var(--gold);
  color: var(--black);
}
/* Sembunyikan tombol close absolut lama di product modal jika masih ada */
.product-modal > .modal-close {
  display: none;
}
@media (max-width: 480px) {
  .pm-title-row {
    align-items: center;
    gap: 8px;
  }
  .pm-title-row .pm-name {
    font-size: 17px;
    line-height: 1.35;
  }
  .pm-media-tabs .pm-close {
    width: 36px;
    height: 36px;
  }
  /* Foto produk melebar penuh memenuhi bingkai */
  .pm-image {
    width: 100vw;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    min-height: 300px;
    margin-left: 0;
    margin-right: 0;
  }
  .pm-image img,
  .pm-video-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pm-media.is-video .pm-video-frame {
    object-fit: contain;
  }
}


/* Upload foto produk */
.upload-zone:hover {
  border-color: var(--gold) !important;
  background: rgba(64,224,208,0.06) !important;
}
.img-tab {
  border-radius: 50px !important;
  padding: 10px 12px !important;
  background: var(--dark-3);
  color: var(--white);
  font-size: 13px;
}
.img-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--black) !important;
}


/* Profile avatar change */
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-avatar-wrap .profile-avatar {
  width: 88px;
  height: 88px;
}
.avatar-cam-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.avatar-cam-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

/* Edit product panel */
[id^="edit-product-"] .form-card {
  border-color: rgba(64,224,208,0.35);
  background: var(--dark);
}

/* ===== MOBILE NATIVE SUPER APP UI ===== */
@media (max-width: 768px) {
  body {
    background:
      radial-gradient(ellipse 120% 50% at 50% -10%, rgba(201,168,76,0.12), transparent 55%),
      radial-gradient(ellipse 80% 40% at 100% 30%, rgba(167,139,250,0.08), transparent 50%),
      radial-gradient(ellipse 70% 35% at 0% 70%, rgba(255,107,157,0.06), transparent 45%),
      var(--black);
    -webkit-tap-highlight-color: transparent;
  }

  /* Header glass native */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  }
  .header-top { padding: 10px 0 8px; }
  .logo {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
  }
  .logo span {
    background: linear-gradient(135deg, var(--gold), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .search-bar input {
    border-radius: 999px;
    background: rgba(26,56,51,0.9);
    border: 1px solid rgba(201,168,76,0.15);
    padding: 11px 16px 11px 42px;
    font-size: 14px;
  }
  .search-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(26,56,51,0.8);
  }

  /* Categories — native chips */
  .categories-nav {
    padding: 8px 0 12px;
  }
  .cat-item-icon {
    min-width: 70px;
    padding: 10px 10px 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(26,56,51,0.95), rgba(16,40,36,0.9));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .cat-item-icon .cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(201,168,76,0.2), rgba(167,139,250,0.12));
    font-size: 17px;
  }
  .cat-item-icon.active {
    border-color: rgba(201,168,76,0.45);
    background: linear-gradient(180deg, rgba(201,168,76,0.18), rgba(16,40,36,0.95));
    box-shadow: 0 4px 16px rgba(201,168,76,0.2);
  }
  .cat-item-icon.active .cat-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0E1116;
    box-shadow: 0 4px 12px rgba(201,168,76,0.35);
  }
  .cat-item-icon .cat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  /* Main spacing */
  #main-content {
    padding-bottom: calc(var(--bottom-nav-h) + 28px + var(--safe-bottom));
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Hero native */
  .hero {
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  .hero-content {
    padding: 28px 20px;
  }
  .hero-tag {
    background: linear-gradient(135deg, var(--gold), var(--accent-violet));
    color: #0E1116;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 5px 12px;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin: 10px 0;
  }

  /* Product cards — app grid */
  .products-grid {
    gap: 12px;
  }
  .product-card {
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(26,56,51,0.95), rgba(10,26,24,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .product-card:active {
    transform: scale(0.97);
  }
  .product-img {
    border-radius: 0;
  }
  .product-img img {
    aspect-ratio: 1;
  }
  .product-info {
    padding: 10px 12px 14px;
  }
  .product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .price-current {
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .product-badge {
    border-radius: 8px;
    font-weight: 700;
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Section titles */
  .section-title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
  }
  .section-header {
    margin: 22px 0 12px;
  }

  /* Buttons */
  .btn {
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 44px;
  }
  .btn-primary {
    background: linear-gradient(135deg, #C9A84C 0%, #A6852E 50%, #0D9488 100%);
    color: #0E1116;
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
  }
  .btn-primary:active {
    transform: scale(0.98);
  }
  .btn-outline {
    border-radius: 14px;
    border-width: 1.5px;
  }
  .btn-sm {
    min-height: 36px;
    border-radius: 12px;
  }

  /* Bottom nav — floating native */
  .bottom-nav {
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(8, 22, 20, 0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-top: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  }
  .nav-item {
    border-radius: 14px;
    gap: 3px;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray);
    transition: color 0.2s, transform 0.2s;
  }
  .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .nav-item.active {
    color: var(--gold);
  }
  .nav-item.active i {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
  }
  .nav-item:active {
    transform: scale(0.92);
  }

  /* Cards / forms */
  .form-card, .order-card, .stat-card {
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(22,48,44,0.95), rgba(10,26,24,0.98));
    border: 1px solid rgba(201,168,76,0.1);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  }
  .stat-card .value {
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .stat-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
  }
  .dashboard-stats {
    gap: 10px;
  }

  input, select, textarea {
    border-radius: 14px;
    background: rgba(16,40,36,0.9);
    border: 1px solid rgba(201,168,76,0.12);
    padding: 13px 16px;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
  }

  /* Modal bottom sheet style */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-content {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    border: 1px solid rgba(201,168,76,0.12);
    border-bottom: none;
    box-shadow: 0 -12px 48px rgba(0,0,0,0.5);
  }
  .product-modal {
    border-radius: 24px 24px 0 0;
  }

  /* Cart / checkout polish */
  .cart-item {
    border-radius: 16px;
    background: rgba(16,40,36,0.85);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
  }
  .payment-option {
    border-radius: 16px;
    border: 1.5px solid rgba(201,168,76,0.12);
    padding: 14px;
  }
  .payment-option.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.1);
    box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
  }

  /* Profile */
  .profile-avatar {
    width: 84px;
    height: 84px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.15), 0 8px 24px rgba(0,0,0,0.3);
  }
  .profile-menu a {
    border-radius: 16px;
    margin-bottom: 8px;
    background: rgba(16,40,36,0.8);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 14px 16px;
  }
  .profile-menu a:active {
    transform: scale(0.98);
    background: rgba(201,168,76,0.08);
  }

  /* Toast / badges */
  .page-title {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
  }

  /* Store cards */
  .store-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.1);
  }

  /* Soft scroll */
  .cat-scroll {
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 4px 2px 8px;
  }
  .cat-item-icon {
    scroll-snap-align: start;
  }
}

/* Extra compact phones */
@media (max-width: 380px) {
  .products-grid { gap: 10px; }
  .product-name { font-size: 12px; }
  .price-current { font-size: 14px; }
  .cat-item-icon { min-width: 64px; }
}

/* ===== PWA install banner & offline bar ===== */
#pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom-nav-h, 64px) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 450;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.28s ease;
  pointer-events: none;
}
#pwa-install-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  background: rgba(16, 40, 36, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(46, 230, 214, 0.28);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.pwa-banner-inner img {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.pwa-banner-text strong { font-size: 13px; color: var(--white); }
.pwa-banner-text span { font-size: 11px; color: var(--gray); }
.pwa-install-btn {
  background: linear-gradient(135deg, #C9A84C, #A6852E);
  color: #0E1116;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pwa-dismiss-btn {
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--gray); font-size: 20px; flex-shrink: 0;
}
#pwa-offline-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: #FBBF24;
  color: #0E1116;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
#pwa-offline-bar.show { transform: translateY(0); }

@media (min-width: 769px) {
  #pwa-install-banner { left: auto; right: 20px; width: 380px; bottom: 24px; }
}

/* Install sheet */
#pwa-install-sheet {
  position: fixed; inset: 0; z-index: 520;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
#pwa-install-sheet.show { opacity: 1; pointer-events: auto; }
.pwa-sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.pwa-sheet {
  position: relative;
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #122B27, #061412);
  border: 1px solid rgba(201,168,76,0.22);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -16px 48px rgba(0,0,0,0.45);
  max-height: 92vh;
  overflow: auto;
}
#pwa-install-sheet.show .pwa-sheet { transform: translateY(0); }
.pwa-sheet-handle {
  width: 40px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,0.18); margin: 4px auto 14px;
}
.pwa-sheet-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.pwa-sheet-head img { width: 48px; height: 48px; border-radius: 12px; }
.pwa-sheet-head h3 { margin: 0; font-size: 17px; }
.pwa-sheet-head p { margin: 4px 0 0; font-size: 12px; color: var(--gray); }
.pwa-sheet-tabs {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.pwa-tab {
  flex: 1; padding: 8px 6px; border-radius: 12px;
  background: var(--dark-2); color: var(--gray);
  font-size: 12px; font-weight: 600;
}
.pwa-tab.active {
  background: rgba(201,168,76,0.16);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
}
.pwa-steps {
  margin: 0 0 16px 18px; padding: 0;
  font-size: 13px; line-height: 1.55; color: var(--light-gray);
}
.pwa-steps li { margin-bottom: 8px; }
.pwa-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 22px; border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold); font-size: 12px; vertical-align: middle;
}
.pwa-sheet-cta { width: 100%; }
@media (min-width: 640px) {
  #pwa-install-sheet { align-items: center; }
  .pwa-sheet {
    border-radius: 22px; border-bottom: 1px solid rgba(201,168,76,0.22);
    transform: translateY(8px) scale(0.98);
  }
  #pwa-install-sheet.show .pwa-sheet { transform: none; }
}
body.pwa-standalone .header { padding-top: env(safe-area-inset-top, 0px); }

/* ===== Order status tracker & tabs ===== */
.order-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 14px;
  padding-bottom: 4px;
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(201,168,76,0.16);
  background: rgba(16,40,36,0.85);
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.order-tab small {
  margin-left: 4px;
  color: var(--gold);
  font-weight: 700;
}
.order-tab.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(167,139,250,0.16));
  color: var(--gold);
  border-color: rgba(201,168,76,0.45);
}
.order-tracker {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 14px;
  overflow-x: auto;
}
.order-track-step {
  flex: 0 0 auto;
  text-align: center;
  font-size: 10px;
  color: var(--gray);
  min-width: 52px;
}
.order-track-step .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-3);
  font-size: 10px;
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.06);
}
.order-track-step.done .dot,
.order-track-step.active .dot {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0E1116;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(201,168,76,0.28);
}
.order-track-step.active { color: var(--gold); font-weight: 700; }
.order-track-step.done { color: var(--light-gray); }
.order-track-step.danger .dot {
  background: var(--danger);
  color: #fff;
}
.order-track-line {
  flex: 1;
  height: 2px;
  min-width: 16px;
  margin: 0 4px 16px;
  background: var(--dark-3);
  border-radius: 99px;
}
.order-track-line.done {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.order-actions .btn { flex: 1 1 auto; min-width: 120px; }
@media (max-width: 768px) {
  .order-card {
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(26,56,51,0.95), rgba(10,26,24,0.92));
    border: 1px solid rgba(201,168,76,0.12);
  }
  .order-status { font-size: 11px; padding: 5px 10px; }
  .order-actions .btn { min-width: calc(50% - 6px); }
}




/* ===== UI UPGRADE v2 — Premium polish ===== */

/* Header glass refinement */
.header {
  background: rgba(7, 20, 18, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.logo-icon {
  background: linear-gradient(145deg, var(--gold-light), var(--gold), var(--gold-dark));
  box-shadow: 0 4px 16px rgba(201,168,76,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.logo-text {
  background: linear-gradient(90deg, var(--white), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.search-bar input {
  background: rgba(16, 40, 36, 0.9);
  border: 1px solid rgba(201,168,76,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15), inset 0 1px 2px rgba(0,0,0,0.15);
}
.search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 2px 10px rgba(201,168,76,0.35);
}
.search-btn:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 4px 16px rgba(201,168,76,0.5);
}

/* Bottom nav premium */
.bottom-nav {
  height: var(--bottom-nav-h);
  background: rgba(7, 20, 18, 0.92) !important;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-top: 1px solid var(--glass-border);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
}
.nav-item {
  gap: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-item i {
  font-size: 20px;
  transition: transform 0.25s ease, color 0.25s;
}
.nav-item.active {
  color: var(--gold);
}
.nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}
.nav-item.active span {
  font-weight: 600;
}

/* Hero premium */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0 28px;
  aspect-ratio: 21/9;
  max-height: 340px;
  min-height: 200px;
  background: linear-gradient(135deg, #0a1f1c, #123530);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), 0 0 60px rgba(201,168,76,0.06);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 28px 36px;
  background-size: cover;
  background-position: center;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(3,11,10,0.92) 0%, rgba(3,11,10,0.55) 45%, rgba(3,11,10,0.2) 100%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.12), transparent 55%);
  z-index: 1;
}
.hero-content {
  max-width: 520px;
  z-index: 2;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-desc {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 22px;
  opacity: 0.88;
  line-height: 1.55;
  max-width: 420px;
}
.hero .btn-primary {
  padding: 13px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Promo strip */
.promo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.promo-strip::-webkit-scrollbar { display: none; }
.promo-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(59,111,212,0.06));
  border: 1px solid rgba(201,168,76,0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  transition: var(--transition);
}
.promo-chip i { color: var(--gold); font-size: 13px; }
.promo-chip:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(59,111,212,0.1));
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Section headers */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.section-title i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(59,111,212,0.08));
  color: var(--gold);
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.12);
}
.section-title.flash-title i {
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,157,0.35);
  animation: pulseFlash 1.6s ease-in-out infinite;
}
@keyframes pulseFlash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.section-link {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(201,168,76,0.08);
  border: 1px solid transparent;
  transition: var(--transition);
}
.section-link:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.25);
}

/* Flash sale timer pills */
.flash-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.flash-timer .t-box {
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 4px 7px;
  border-radius: 6px;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,107,157,0.3);
}
.flash-timer .t-sep {
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 12px;
}

/* Product cards — elevated */
.product-card {
  background: linear-gradient(180deg, rgba(16,40,36,0.95) 0%, rgba(10,26,24,0.98) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(201,168,76,0.08);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(201,168,76,0.25), transparent 40%, transparent 60%, rgba(201,168,76,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.product-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,168,76,0.15);
}
.product-card:hover::before { opacity: 1; }
.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--dark-3), var(--dark-2));
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(201,168,76,0.35);
  letter-spacing: 0.02em;
}
.product-badge.badge-danger {
  background: linear-gradient(135deg, #F87171, #EF4444);
  color: #fff;
  box-shadow: 0 3px 10px rgba(248,113,113,0.35);
}
.product-badge.badge-warn {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(251,191,36,0.3);
}
.product-video-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}
.product-info {
  padding: 12px 12px 14px;
}
.product-name {
  font-size: 13px;
  font-weight: 550;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 36px;
  line-height: 1.35;
  color: var(--light-gray);
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.price-original {
  font-size: 11px;
  color: var(--gray);
  text-decoration: line-through;
  opacity: 0.85;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray);
  gap: 6px;
}
.product-rating {
  color: var(--warning);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.product-rating i { font-size: 10px; }
.product-store {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(201,168,76,0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-store i { color: var(--gold); opacity: 0.7; font-size: 10px; }

/* Store cards horizontal grid on larger screens */
.stores-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stores-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.store-card {
  background: linear-gradient(135deg, rgba(16,40,36,0.95), rgba(10,26,24,0.98));
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.1);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.store-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.store-logo {
  width: 58px; height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--dark-2), var(--dark-2)) padding-box,
              linear-gradient(135deg, var(--gold), var(--gold-dark)) border-box;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201,168,76,0.2);
}
.store-info h4 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.store-info p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray);
}
.store-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(201,168,76,0.06);
}

/* Buttons polish */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 650;
  font-size: 14px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% 200%;
  color: var(--black);
  box-shadow: var(--shadow-gold);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
  background-position: 100% 0;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  border: 1.5px solid rgba(201,168,76,0.5);
  color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
}

/* Modal glass */
.modal-content {
  background: linear-gradient(180deg, rgba(16,40,36,0.98), rgba(7,20,18,0.99));
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  backdrop-filter: blur(20px);
}

/* Categories nav */
.categories-nav {
  background: rgba(7, 20, 18, 0.6);
  border-bottom: 1px solid rgba(201,168,76,0.06);
}
.cat-item-icon {
  transition: var(--transition);
}
.cat-item-icon:hover .cat-icon,
.cat-item-icon.active .cat-icon {
  box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}

/* Toast */
.toast {
  background: linear-gradient(135deg, rgba(16,40,36,0.95), rgba(10,26,24,0.98));
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  border-radius: 14px;
}

/* Grid gaps */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* Mobile refinements */
@media (max-width: 767px) {
  .hero {
    aspect-ratio: 16/10;
    max-height: 240px;
    margin: 12px 0 20px;
    border-radius: var(--radius);
  }
  .hero-slide { padding: 20px 18px; }
  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 12px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .section { padding: 20px 0; }
  .section-title { font-size: 18px; }
  .section-title i { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
  .product-card:active {
    transform: scale(0.98);
  }
  .flash-timer { display: none; }
}

/* Subtle page enter */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#main-content > .container > .section,
#main-content > .container > .hero {
  animation: fadeUp 0.45s ease both;
}
#main-content > .container > .section:nth-child(2) { animation-delay: 0.05s; }
#main-content > .container > .section:nth-child(3) { animation-delay: 0.1s; }
#main-content > .container > .section:nth-child(4) { animation-delay: 0.15s; }

/* Scrollbar subtle */
.cat-scroll, .promo-strip {
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.25) transparent;
}


/* ===== Full-bleed images mobile: home + product detail ===== */
@media (max-width: 767px) {
  /* Beranda: kartu produk gambar penuh melebar dalam grid */
  .products-grid {
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .product-card {
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
  }
  .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
  }
  .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Container sedikit lebih rapat agar gambar lebih lebar di HP */
  #main-content .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Detail produk: foto & video full-bleed memenuhi bingkai sampai tepi kanan */
  #product-modal.modal {
    padding: 0 !important;
    align-items: flex-end;
  }
  #product-modal .modal-content.product-modal,
  #product-modal .product-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    padding: 0 !important;
  }
  #product-modal .product-modal-body {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  #product-modal .pm-image,
  #product-modal .pm-image.pm-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0;
    right: 0;
    aspect-ratio: 1 / 1;
    max-height: min(100vw, 72vh);
    min-height: min(100vw, 320px);
    height: auto;
    border-radius: 0;
    overflow: hidden;
    background: #050c0b;
  }
  #product-modal .pm-media-photo,
  #product-modal .pm-media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  #product-modal .pm-image img,
  #product-modal .pm-media-photo img,
  #product-modal .pm-video-frame {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  #product-modal .pm-media.is-video .pm-video-frame {
    object-fit: contain;
    background: #000;
  }
  #product-modal .pm-details {
    width: 100%;
    box-sizing: border-box;
  }
}

/* HP kecil: pastikan benar-benar edge-to-edge */
@media (max-width: 480px) {
  #main-content .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .products-grid {
    gap: 8px;
  }
  .product-card {
    border-radius: 12px;
  }
  #product-modal .pm-image,
  #product-modal .pm-image.pm-media {
    width: 100vw !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    aspect-ratio: 1 / 1;
    max-height: 100vw;
    min-height: 100vw;
    border-radius: 0;
  }
  #product-modal .modal-content.product-modal {
    border-radius: 18px 18px 0 0;
  }
}


/* ===== Desktop: gambar beranda full melebar dalam bingkai kartu ===== */
@media (min-width: 768px) {
  /* Grid produk lebih lega, kartu memenuhi kolom */
  .products-grid {
    width: 100%;
  }
  .product-card {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .product-img {
    width: 100% !important;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
  }
  .product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .product-info {
    width: 100%;
    box-sizing: border-box;
  }

  /* Container beranda sedikit lebih lebar di desktop */
  #main-content .container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero beranda full-bleed melebar penuh di desktop */
  #main-content .container > .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    max-height: 380px;
    aspect-ratio: 21 / 8;
  }
  #main-content .container > .hero .hero-slide {
    padding-left: max(32px, calc(50vw - 700px + 20px));
    padding-right: 40px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
  #main-content .container > .hero {
    max-height: 420px;
  }
}


/* ===== Real Call UI (WebRTC) ===== */
.call-stage {
  position: relative;
  width: min(92vw, 420px);
  margin-bottom: 20px;
}
.call-stage.is-video {
  aspect-ratio: 3 / 4;
  max-height: 58vh;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a1210;
  display: block;
}
.local-video {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28%;
  max-width: 120px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background: #111;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.call-stage .remote-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 2;
}
#remote-audio { display: none; }

.incoming-call-banner {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16,40,36,0.98), rgba(7,20,18,0.98));
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  min-width: min(92vw, 360px);
  animation: fadeUp 0.3s ease;
}
.icb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.icb-info strong { color: var(--gold); font-size: 14px; }
.icb-actions { display: flex; gap: 8px; }

.chat-bubble.system {
  opacity: 0.85;
  font-style: italic;
  font-size: 12px;
  text-align: center;
  align-self: center;
  background: rgba(201,168,76,0.08) !important;
  color: var(--gray) !important;
  max-width: 90%;
}


/* Chat di atas modal produk */
.chat-modal.modal,
#chat-modal.modal {
  z-index: 450 !important;
}
#chat-modal:not(.hidden) {
  display: flex !important;
}


/* ===== Chat profile photos ===== */
.chat-header-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.chat-header-avatar,
.chat-header img.chat-header-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--dark-3);
  display: block;
}
.chat-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--dark-2);
}
.chat-header-me {
  flex-shrink: 0;
  margin-right: 4px;
}
.chat-header-me img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.45);
  display: block;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.chat-row.mine {
  align-self: flex-end;
  flex-direction: row;
  justify-content: flex-end;
}
.chat-row.theirs {
  align-self: flex-start;
}
.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(201,168,76,0.35);
  background: var(--dark-3);
}
.chat-row .chat-bubble {
  max-width: min(75%, 280px);
}
.chat-sender-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}
.chat-input-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.35);
  align-self: center;
}
.chat-bubble.mine {
  align-self: auto;
}
.chat-bubble.theirs {
  align-self: auto;
}


/* seller avatar emphasis on Chat CS */
.chat-header-avatar-wrap .chat-header-avatar {
  width: 52px !important;
  height: 52px !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25), 0 4px 12px rgba(0,0,0,0.35);
}
.chat-header-info p {
  font-size: 11px;
  color: var(--success);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}


/* ===== Shopee-style Ads ===== */
.ad-carousel {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  margin: 16px 0 20px;
  width: 100%;
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.12);
  box-shadow: var(--shadow-card, 0 8px 24px rgba(0,0,0,0.3));
  /* tinggi stabil agar gambar memenuhi bingkai */
  height: clamp(160px, 28vw, 360px);
}
.ad-carousel-bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.ad-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  cursor: pointer;
}
.ad-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(3,11,10,0.88) 0%, rgba(3,11,10,0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px 28px;
  color: #fff;
}
.ad-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.25);
}
.ad-slide-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}
.ad-slide-sub {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 12px;
  max-width: 420px;
}
.ad-slide-cta {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: #0E1116;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.ad-nav:hover { background: var(--gold); color: #0E1116; }
.ad-nav.prev { left: 10px; }
.ad-nav.next { right: 10px; }
.ad-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.ad-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 4px;
}

.ad-strip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .ad-strip-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.ad-strip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.12);
  background: linear-gradient(135deg, rgba(16,40,36,0.95), rgba(10,26,24,0.98));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.ad-strip-card:hover {
  border-color: var(--ad-accent, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ad-strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ad-accent, var(--gold)) 22%, transparent);
  color: var(--ad-accent, var(--gold));
  font-size: 16px;
  flex-shrink: 0;
}
.ad-strip-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ad-strip-text strong {
  font-size: 13px;
  font-weight: 700;
}
.ad-strip-text small {
  font-size: 11px;
  color: var(--gray);
}
.ad-strip-arrow {
  color: var(--gray);
  font-size: 12px;
}

.ad-section .section-header {
  align-items: center;
}
.ad-label-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,107,157,0.15);
  color: #FF6B9D;
  border: 1px solid rgba(255,107,157,0.35);
}
.ad-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,157,0.4);
}
.product-card.is-ad .product-badge {
  top: 34px;
}
.ad-inline-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #FF6B9D;
  border: 1px solid rgba(255,107,157,0.4);
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 767px) {
  /* Iklan beranda HP: full melebar edge-to-edge */
  .ad-carousel {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0;
    margin-bottom: 14px;
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    aspect-ratio: 16 / 9;
    max-height: none;
    min-height: 0;
    height: auto;
  }
  .ad-carousel-track,
  .ad-slide {
    width: 100%;
    height: 100%;
  }
  .ad-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  .ad-slide-overlay { padding: 14px 16px 22px; }
  .ad-slide-title { font-size: 18px; }
  .ad-slide-sub { font-size: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .ad-nav { width: 30px; height: 30px; font-size: 12px; }
}

@media (min-width: 768px) {
  .ad-carousel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    max-height: 360px;
  }
}


/* ===== Full-bleed v2: iklan HP + detail foto/video ===== */
@media (max-width: 767px) {
  /* Banner iklan full width */
  #main-content .container > .ad-carousel,
  .ad-carousel {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }

  /* Detail produk: foto & video memenuhi bingkai sampai tepi kanan */
  #product-modal {
    padding: 0 !important;
  }
  #product-modal .modal-content.product-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }
  #product-modal .product-modal-body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  #product-modal .pm-image,
  #product-modal .pm-image.pm-media,
  #product-modal .pm-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: 1 / 1;
    max-height: 100vw;
    min-height: min(100vw, 360px);
    overflow: hidden;
  }
  #product-modal .pm-media-photo,
  #product-modal .pm-media-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  #product-modal .pm-image img,
  #product-modal .pm-media-photo img,
  #product-modal .pm-video-frame,
  #product-modal video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
  #product-modal .pm-media.is-video .pm-video-frame,
  #product-modal .pm-media.is-video video {
    object-fit: contain !important;
    background: #000;
  }
}

@media (max-width: 480px) {
  #product-modal .pm-image,
  #product-modal .pm-image.pm-media,
  #product-modal .pm-media {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vw !important;
    max-height: 100vw !important;
    aspect-ratio: 1 / 1;
  }
  .ad-carousel {
    aspect-ratio: 2 / 1;
  }
}


/* ===== Full frame: banner iklan + detail produk (final) ===== */
@media (max-width: 767px) {
  .ad-carousel,
  .ad-carousel-bleed {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 0 12px 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    border: none !important;
    height: 42vw !important;
    min-height: 140px !important;
    max-height: 220px !important;
    position: relative;
    overflow: hidden;
  }
  .ad-carousel-track {
    position: absolute !important;
    inset: 0 !important;
  }
  .ad-slide {
    position: absolute !important;
    inset: 0 !important;
  }
  .ad-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Detail produk foto/video full frame */
  #product-modal.modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  #product-modal .modal-content.product-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
  }
  #product-modal .product-modal-body {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #product-modal .pm-image,
  #product-modal .pm-media,
  #product-modal .pm-image.pm-media {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  #product-modal .pm-media-photo,
  #product-modal .pm-media-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  #product-modal .pm-image img,
  #product-modal .pm-media-photo img,
  #product-modal .pm-video-frame,
  #product-modal iframe.pm-video-frame,
  #product-modal video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: 0 !important;
  }
  #product-modal .pm-media.is-video .pm-video-frame,
  #product-modal .pm-media.is-video video,
  #product-modal .pm-media.is-video iframe {
    object-fit: contain !important;
    background: #000 !important;
  }
  #product-modal .pm-details {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 768px) {
  .ad-carousel-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    height: clamp(220px, 26vw, 380px);
  }
}


/* ===== Paid Ads Promote Modal ===== */
.ad-promote-modal {
  max-width: 440px;
  width: 100%;
  padding: 20px 18px 24px;
  max-height: 92vh;
  overflow-y: auto;
}
.ad-promote-title {
  font-size: 18px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-promote-title i { color: var(--gold); }
.ad-promote-sub {
  font-size: 12px;
  color: var(--gray);
  margin: 0 0 14px;
  line-height: 1.45;
}
.ad-promote-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 14px;
}
.ad-promote-product img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.ad-promote-product strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.ad-promote-meta {
  font-size: 11px;
  color: var(--gold);
}
.ad-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.ad-pkg-card {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(201,168,76,0.12);
  background: rgba(16,40,36,0.6);
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.ad-pkg-card:hover {
  border-color: rgba(201,168,76,0.35);
}
.ad-pkg-card.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
}
.ad-pkg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ad-pkg-name { font-weight: 700; font-size: 14px; }
.ad-pkg-price { font-weight: 800; color: var(--gold); font-size: 14px; }
.ad-pkg-desc { font-size: 12px; color: var(--gray); }
.ad-pkg-boost { font-size: 11px; color: var(--accent-pink, #FF6B9D); margin-top: 4px; font-weight: 600; }
.ad-promote-hint {
  font-size: 11px;
  color: var(--gray);
  margin: 0 0 12px;
  line-height: 1.4;
}
.ad-pay-methods { margin-bottom: 10px; }
.ad-pay-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.ad-pay-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ad-pay-opt {
  flex: 1;
  min-width: 90px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(201,168,76,0.15);
  background: var(--dark-2);
  color: var(--light-gray);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ad-pay-opt.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}
.ad-pay-detail { margin-bottom: 14px; }
.ad-pay-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(16,40,36,0.8);
  border: 1px solid rgba(201,168,76,0.1);
  font-size: 12px;
  line-height: 1.45;
}
.ad-qris-fake {
  margin-top: 10px;
  height: 120px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #0a1a18, #0a1a18 8px, #102824 8px, #102824 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.ad-qris-fake i { font-size: 48px; opacity: 0.85; }


/* ===== Product contact (tanya pemilik) ===== */
.pm-buy-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.pm-cart-btn,
.pm-buy-btn {
  flex: 1;
}
.pm-contact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.18);
  background: linear-gradient(135deg, rgba(16,40,36,0.9), rgba(10,26,24,0.95));
}
.pm-contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm-contact-label i {
  color: var(--gold);
}
.pm-contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-contact-btn {
  flex: 1;
  min-width: 88px;
  justify-content: center;
  font-size: 12px !important;
  padding: 8px 10px !important;
  border-color: rgba(201,168,76,0.28) !important;
}
.pm-contact-btn:hover {
  border-color: var(--gold) !important;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.pm-contact-btn i {
  margin-right: 4px;
}
.chat-product-ctx {
  font-size: 11px !important;
  color: var(--gold) !important;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

@media (max-width: 480px) {
  .pm-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .pm-contact-btn {
    min-width: 0;
    padding: 8px 4px !important;
    font-size: 11px !important;
  }
}


/* ===== Kartu elegan navy (HP & Desktop) ===== */
.product-card {
  background: linear-gradient(165deg, #1E2740 0%, #171E30 100%) !important;
  border: 1px solid rgba(201,168,76,0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
}
.product-card:hover {
  border-color: rgba(201,168,76,0.4) !important;
  background: linear-gradient(165deg, #243050 0%, #1A2338 100%) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,168,76,0.12);
}
.product-img {
  background: #1A2235 !important;
}
.product-info {
  background: transparent;
}
.store-card {
  background: linear-gradient(165deg, #1E2740 0%, #171E30 100%) !important;
  border: 1px solid rgba(201,168,76,0.1) !important;
}
.store-card:hover {
  border-color: rgba(201,168,76,0.4) !important;
  background: linear-gradient(165deg, #243050 0%, #1A2338 100%) !important;
}
.form-card,
.order-card,
.stat-card,
.profile-menu,
.cart-item,
.review-card,
.ad-strip-card {
  background: linear-gradient(165deg, #1C2438 0%, #151C2C 100%) !important;
  border: 1px solid rgba(201,168,76,0.08) !important;
}
.ad-pkg-card {
  background: rgba(30, 39, 64, 0.95) !important;
}
.ad-pkg-card.active {
  background: rgba(201,168,76,0.14) !important;
  border-color: var(--gold) !important;
}
.modal-content {
  background: #141B2A !important;
  border-color: rgba(201,168,76,0.14) !important;
}
.header {
  background: rgba(12, 16, 26, 0.94) !important;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.bottom-nav {
  background: rgba(12, 16, 26, 0.96) !important;
  border-top: 1px solid rgba(201,168,76,0.08);
}
.promo-chip {
  background: #1A2235 !important;
  border-color: rgba(201,168,76,0.12);
}
.section-title,
.product-name,
.store-info h4 {
  color: #F5F7FA;
}
.product-meta,
.product-store,
.store-info p {
  color: #9BA6B8;
}
.btn-primary {
  color: #0A0E16 !important;
}
.price-current {
  color: var(--gold) !important;
}




/* ===== Chat/Call responsive realism ===== */
.chat-header-info p.is-typing {
  color: var(--gold) !important;
  font-style: italic;
  animation: typingPulse 1s ease-in-out infinite;
}
@keyframes typingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.chat-messages {
  scroll-behavior: smooth;
}
.chat-bubble {
  animation: chatIn 0.18s ease-out;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.incoming-call-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E2740, #141B2A);
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  max-width: min(420px, 94vw);
  animation: bannerIn 0.25s ease-out;
}
.incoming-call-banner.ringing {
  animation: bannerIn 0.25s ease-out, ringPulse 1.6s ease-in-out infinite;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 0 rgba(201,168,76,0.35); }
  50% { box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 8px rgba(201,168,76,0.12); }
}
.icb-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
  flex-shrink: 0;
}
.icb-info { flex: 1; min-width: 0; }
.icb-info strong { display: block; font-size: 14px; }
.icb-info span { font-size: 13px; color: var(--gray); }
.icb-ring-label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
}
.icb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icb-accept { animation: acceptPulse 1.2s ease-in-out infinite; }
@keyframes acceptPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.call-overlay:not(.hidden) {
  animation: callFade 0.2s ease-out;
}
@keyframes callFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#call-status {
  transition: color 0.2s;
}
.chat-send-btn:active {
  transform: scale(0.92);
}
.chat-input-area input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
}
@media (max-width: 600px) {
  .incoming-call-banner {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
    left: 10px;
    transform: none;
    flex-wrap: wrap;
  }
  .incoming-call-banner.ringing {
    animation: ringPulse 1.6s ease-in-out infinite;
  }
  .chat-modal .modal-content {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
}


/* ===== Courier options (Shopee-style) ===== */
.shipping-calc-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.14);
}
.ship-calc-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ship-calc-title i { color: var(--gold); }
.ship-calc-store {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ship-calc-store:last-of-type { border-bottom: none; }
.ship-calc-store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.ship-calc-meta {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 10px;
}
.courier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.courier-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(20, 27, 42, 0.7);
  cursor: pointer;
  transition: var(--transition);
}
.courier-option:hover {
  border-color: rgba(201,168,76,0.35);
}
.courier-option.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
}
.courier-option input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold);
}
.courier-option-body { flex: 1; min-width: 0; }
.courier-option-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.courier-name {
  font-size: 13px;
  font-weight: 600;
}
.courier-name i {
  color: var(--gold);
  margin-right: 4px;
  width: 16px;
}
.courier-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.courier-option-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 3px;
}
.ship-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(201,168,76,0.2);
  font-size: 14px;
}
.ship-calc-total strong { color: var(--gold); font-size: 16px; }


/* ===== Product zoom + share ===== */
.pm-zoom-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background: #0a0e16;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
.pm-zoom-viewport.is-zoomed {
  cursor: grab;
}
#pm-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  pointer-events: auto;
  will-change: transform;
}
.pm-zoom-controls {
  position: absolute;
  right: 10px;
  bottom: 52px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(14, 18, 28, 0.85);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.pm-zoom-btn:active {
  transform: scale(0.94);
  background: rgba(201,168,76,0.2);
}
.pm-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  background: rgba(0,0,0,0.35);
  position: relative;
  z-index: 5;
  -webkit-overflow-scrolling: touch;
}
.pm-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #1a2235;
  cursor: pointer;
}
.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.4);
}
.pm-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.14);
}
.pm-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm-share-label i { color: var(--gold); }
.pm-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  color: #fff;
  transition: transform 0.15s, filter 0.15s;
}
.pm-share-btn:hover { transform: scale(1.08); filter: brightness(1.1); }
.pm-share-btn:active { transform: scale(0.95); }
.pm-share-btn.wa { background: #25D366; }
.pm-share-btn.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.pm-share-btn.fb { background: #1877F2; }
.pm-share-btn.tg { background: #229ED9; }
.pm-share-btn.x { background: #111; border: 1px solid rgba(255,255,255,0.2); }
.pm-share-btn.copy { background: #3a455c; }
.pm-share-btn.more { background: var(--gold); color: #0A0E16; }
@media (max-width: 600px) {
  .pm-zoom-controls { bottom: 48px; right: 8px; }
  .pm-zoom-btn { width: 34px; height: 34px; }
  .pm-share-btn { width: 36px; height: 36px; }
}


/* ===== Product sizes ===== */
.pm-size-block {
  margin: 12px 0 14px;
}
.pm-size-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pm-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-size-chip {
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(22, 29, 44, 0.9);
  color: var(--light-gray);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.pm-size-chip:hover {
  border-color: rgba(201,168,76,0.45);
}
.pm-size-chip.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.18);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.25);
}
.pm-size-hint {
  font-size: 11px;
  color: var(--gray);
  margin-top: 8px;
}
.pm-size-block.size-required-shake {
  animation: sizeShake 0.4s ease;
}
@keyframes sizeShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.size-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  cursor: pointer;
}
.size-check-item input {
  width: auto;
  accent-color: var(--gold);
}
.cart-size-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0A0E16;
  background: var(--gold);
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.pm-size-chip {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 8px 10px;
}
.pm-size-name { font-size: 13px; font-weight: 700; }
.pm-size-price {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.95;
}
.pm-size-chip.active .pm-size-price { color: var(--gold); }
.pm-size-price-note {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  margin-left: 6px;
}
.size-check-with-price {
  flex-wrap: wrap;
  max-width: 140px;
}
.size-price-input {
  width: 100%;
  margin-top: 4px;
  padding: 4px 6px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}
