/* ==========================================================================
   WARJO STORE (warjostore.id) - Warjostock Brand Design System
   Clean Modern Canvas with Energetic Brand Orange Accents (#ea580c)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ws-primary: #ea580c;
  --ws-primary-hover: #c2410c;
  --ws-primary-light: #fff7ed;
  --ws-primary-border: #fed7aa;
  --ws-primary-glow: rgba(234, 88, 12, 0.22);
  
  --ws-bg-main: #f8fafc;
  --ws-bg-card: #ffffff;
  --ws-bg-card-hover: #ffffff;
  --ws-bg-secondary: #f1f5f9;
  
  --ws-border: #e2e8f0;
  --ws-border-hover: #fed7aa;
  --ws-border-focus: #ea580c;
  
  --ws-text-main: #0f172a;
  --ws-text-muted: #475569;
  --ws-text-subtle: #94a3b8;
  
  --ws-badge-free: #059669;
  --ws-badge-free-bg: #ecfdf5;
  --ws-badge-free-border: #a7f3d0;
  
  --ws-badge-pro: #ea580c;
  --ws-badge-pro-bg: #fff7ed;
  --ws-badge-pro-border: #fed7aa;
  
  --ws-radius-sm: 8px;
  --ws-radius-md: 14px;
  --ws-radius-lg: 18px;
  --ws-radius-xl: 24px;
  --ws-radius-pill: 9999px;
  
  --ws-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --ws-shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  --ws-shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.09);
  --ws-shadow-modal: 0 20px 45px -10px rgba(0, 0, 0, 0.18);
  
  --ws-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--ws-bg-main);
  color: var(--ws-text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Warm Ambient Glows (Disabled for clean authentic look) */
.ambient-glow {
  display: none;
}

/* ==========================================================================
   NAVIGATION BAR (WARJOSTOCK SIGNATURE CLEAN WHITE STYLE)
   ========================================================================== */
.shop-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ws-border);
  padding: 0.85rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ws-text-main);
  flex-shrink: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 14px var(--ws-primary-glow);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #0f172a;
}
.brand-title span {
  color: var(--ws-primary);
}
.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ws-text-muted);
  font-weight: 700;
}

/* Search Bar with Pill Shape */
.nav-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.nav-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.65rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--ws-radius-pill);
  color: #0f172a;
  font-size: 0.88rem;
  outline: none;
  transition: var(--ws-transition);
}
.nav-search-input:focus {
  background: #ffffff;
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 3px var(--ws-primary-glow);
}
.nav-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ws-text-subtle);
  pointer-events: none;
}

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

/* Preview Switcher */
.view-state-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-pill);
  padding: 3px;
  gap: 2px;
}
.state-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--ws-radius-pill);
  border: none;
  background: transparent;
  color: var(--ws-text-muted);
  cursor: pointer;
  transition: var(--ws-transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.state-btn.active {
  background: #ffffff;
  color: var(--ws-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-back-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ws-text-muted);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  transition: var(--ws-transition);
}
.btn-back-stock:hover {
  background: #f8fafc;
  color: var(--ws-primary);
  border-color: var(--ws-primary-border);
}

/* Cart Button */
.btn-cart {
  position: relative;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ws-text-main);
  cursor: pointer;
  transition: var(--ws-transition);
}
.btn-cart:hover {
  border-color: var(--ws-primary);
  color: var(--ws-primary);
  background: var(--ws-primary-light);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ws-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px var(--ws-primary-glow);
}

/* Auth Buttons */
.auth-guest-view,
.auth-member-view {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.btn-login {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ws-text-main);
  text-decoration: none;
  border-radius: var(--ws-radius-md);
  background: #ffffff;
  border: 1px solid var(--ws-border);
  transition: var(--ws-transition);
}
.btn-login:hover {
  border-color: var(--ws-primary);
  color: var(--ws-primary);
}
.btn-register {
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: var(--ws-radius-md);
  background: var(--ws-primary);
  box-shadow: 0 4px 14px var(--ws-primary-glow);
  transition: var(--ws-transition);
  border: none;
}
.btn-register:hover {
  background: var(--ws-primary-hover);
  transform: translateY(-1px);
}

/* Member Profile Pill */
.member-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-pill);
  cursor: pointer;
  transition: var(--ws-transition);
}
.member-pill:hover {
  border-color: var(--ws-primary);
}
.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
}
.member-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.member-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ws-text-main);
}
.member-quota {
  font-size: 0.68rem;
  color: #059669;
  font-weight: 700;
}

/* ==========================================================================
   HERO BANNER (WARJOSTOCK FRESH GRADIENT COLLAGE)
   ========================================================================== */
.shop-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--ws-radius-xl);
  padding: 3.5rem 3rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--ws-shadow-md);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(234, 88, 12, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--ws-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ws-primary);
  letter-spacing: 0.2px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: #0f172a;
}
.hero-title .gradient-text {
  color: var(--ws-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--ws-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  background: var(--ws-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--ws-radius-md);
  text-decoration: none;
  box-shadow: 0 6px 18px var(--ws-primary-glow);
  transition: var(--ws-transition);
  border: none;
  cursor: pointer;
}
.btn-hero-primary:hover {
  background: var(--ws-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  color: var(--ws-text-main);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--ws-radius-md);
  text-decoration: none;
  transition: var(--ws-transition);
  cursor: pointer;
}
.btn-hero-secondary:hover {
  background: #f8fafc;
  border-color: var(--ws-primary-border);
  color: var(--ws-primary);
}

/* Hero Collage Visual */
.hero-collage {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-card {
  position: absolute;
  border-radius: var(--ws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ws-shadow-lg);
  border: 4px solid #ffffff;
  transition: var(--ws-transition);
}
.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collage-card:hover {
  transform: translateY(-6px) scale(1.04);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.2);
}

.card-1 {
  width: 210px;
  height: 240px;
  left: 20px;
  transform: rotate(-6deg);
  z-index: 2;
}
.card-2 {
  width: 230px;
  height: 260px;
  left: 140px;
  z-index: 3;
}
.card-3 {
  width: 200px;
  height: 230px;
  right: 15px;
  transform: rotate(6deg);
  z-index: 1;
}

/* Member Quick Dashboard Status Strip */
.member-dashboard-strip {
  display: none;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: var(--ws-shadow-sm);
}
.member-dashboard-strip.active {
  display: flex;
}
.member-welcome-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-welcome-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ws-text-main);
}
.member-welcome-info p {
  font-size: 0.85rem;
  color: var(--ws-text-muted);
}
.member-stats-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.member-stat-box {
  display: flex;
  flex-direction: column;
}
.member-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ws-text-main);
}
.member-stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ws-text-subtle);
  font-weight: 700;
}

/* ==========================================================================
   12 CATEGORY VISUAL GRID
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ws-text-main);
  letter-spacing: -0.4px;
}
.section-subtitle {
  font-size: 0.88rem;
  color: var(--ws-text-muted);
  margin-top: 0.2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  position: relative;
  height: 140px;
  border-radius: var(--ws-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ws-border);
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ws-transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  box-shadow: var(--ws-shadow-sm);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--ws-primary);
  box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.2);
}
.category-card.active {
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 2px var(--ws-primary);
}

.category-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.65) contrast(1.1);
}
.category-card:hover .category-bg {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.85) 100%);
  pointer-events: none;
}

.category-content {
  position: relative;
  z-index: 2;
}
.category-icon {
  font-size: 1.35rem;
  color: #fed7aa;
  margin-bottom: 0.25rem;
  display: inline-block;
}
.category-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.category-count {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* ==========================================================================
   DEDICATED CATEGORY VIEW HEADER & TABS
   ========================================================================== */
.category-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ws-text-muted);
  margin-bottom: 1.25rem;
}
.category-breadcrumb-bar a {
  color: var(--ws-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.category-breadcrumb-bar a:hover {
  text-decoration: underline;
}
.category-breadcrumb-bar .active {
  color: var(--ws-text-main);
  font-weight: 800;
}

.category-hero-header {
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-xl);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--ws-shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.category-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c 0%, #fb923c 100%);
}
.category-hero-info {
  max-width: 780px;
}
.category-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ws-primary);
  background: var(--ws-primary-light);
  border: 1px solid var(--ws-primary-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--ws-radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.category-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ws-text-main);
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.category-hero-desc {
  font-size: 0.95rem;
  color: var(--ws-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.category-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.category-hero-meta span i {
  color: var(--ws-primary);
  margin-right: 0.25rem;
}

.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 1.25rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}
.category-pills-bar::-webkit-scrollbar {
  height: 4px;
}
.category-pills-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.cat-pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--ws-radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--ws-text-muted);
  border: 1px solid var(--ws-border);
  white-space: nowrap;
  text-decoration: none;
  transition: var(--ws-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cat-pill-tab:hover {
  border-color: var(--ws-primary-border);
  color: var(--ws-primary);
  transform: translateY(-1px);
}
.cat-pill-tab.active {
  background: var(--ws-primary);
  color: #ffffff;
  border-color: var(--ws-primary);
  box-shadow: 0 4px 14px var(--ws-primary-glow);
}

/* ==========================================================================
   CATALOG TOOLBAR & FILTERS
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--ws-shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--ws-radius-pill);
  border: 1px solid var(--ws-border);
  background: #f8fafc;
  color: var(--ws-text-muted);
  cursor: pointer;
  transition: var(--ws-transition);
}
.filter-pill:hover {
  background: #f1f5f9;
  color: var(--ws-text-main);
  border-color: #cbd5e1;
}
.filter-pill.active {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #ffffff !important;
  box-shadow: 0 3px 10px var(--ws-primary-glow);
}

.sort-select {
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  color: var(--ws-text-main);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.sort-select:focus {
  border-color: var(--ws-primary);
}

/* ==========================================================================
   PRODUCTS CATALOG (MASONRY & CLASSIC GRID SWITCHABLE)
   ========================================================================== */

/* Layout Switcher Toolbar Controls */
.layout-toggle-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-pill);
  padding: 3px;
  gap: 2px;
}
.btn-layout-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ws-radius-pill);
  border: none;
  background: transparent;
  color: var(--ws-text-muted);
  cursor: pointer;
  transition: var(--ws-transition);
  font-size: 0.95rem;
}
.btn-layout-toggle:hover {
  color: var(--ws-primary);
}
.btn-layout-toggle.active {
  background: #ffffff;
  color: var(--ws-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 1. MASONRY LAYOUT (DEFAULT - WARJOSTOCK / PINTEREST STYLE) */
.products-grid {
  column-count: 4;
  column-gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 1280px) {
  .products-grid { column-count: 3; column-gap: 1.25rem; }
}
@media (max-width: 860px) {
  .products-grid { column-count: 2; column-gap: 1rem; }
}
@media (max-width: 640px) {
  .products-grid { column-count: 2; column-gap: 0.75rem; margin-bottom: 2rem; }
}
@media (max-width: 360px) {
  .products-grid { column-count: 2; column-gap: 0.5rem; }
}

/* 2. CLASSIC GRID LAYOUT (OPTIONAL TOGGLE) */
.products-grid.layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1280px) {
  .products-grid.layout-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .products-grid.layout-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 640px) {
  .products-grid.layout-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 360px) {
  .products-grid.layout-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* 3. PRODUCT CARD (MODERN SEAMLESS DESIGN) */
.product-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--ws-primary-border);
  box-shadow: 0 16px 36px -6px rgba(234, 88, 12, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}
/* In Masonry: Natural image heights flow seamlessly */
.products-grid:not(.layout-grid) .product-thumb-wrap {
  aspect-ratio: auto;
}
/* In Classic Grid: Fixed 16/10 aspect ratio */
.products-grid.layout-grid .product-thumb-wrap {
  aspect-ratio: 16 / 10;
}

.product-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.products-grid.layout-grid .product-thumb {
  height: 100%;
}
.product-card:hover .product-thumb {
  transform: scale(1.05);
}

/* Floating Glassmorphism Badge */
.badge-format {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Overlay Actions on Hover */
.product-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--ws-transition);
  z-index: 3;
}
.product-card:hover .product-overlay-actions {
  opacity: 1;
  pointer-events: auto;
}

.btn-quick-action {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ws-transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-size: 1.05rem;
}
.btn-quick-action:hover {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Body & Metadata */
.product-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.product-category-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ws-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--ws-primary-light);
  border: 1px solid var(--ws-primary-border);
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--ws-transition);
}
.product-category-tag:hover {
  background: var(--ws-primary);
  color: #ffffff;
}
.product-rating {
  font-size: 0.76rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ws-text-main);
  margin-bottom: 0.45rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.2s ease;
}
.product-title:hover {
  color: var(--ws-primary);
}

.product-specs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ws-text-subtle);
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}
.product-price-lbl {
  font-size: 0.66rem;
  color: var(--ws-text-subtle);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.product-price {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ws-text-main);
  letter-spacing: -0.2px;
}

.btn-add-cart {
  padding: 0.48rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--ws-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--ws-transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px var(--ws-primary-glow);
}
.btn-add-cart:hover {
  background: var(--ws-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--ws-primary-glow);
}

/* Empty State */
.empty-catalog {
  column-span: all;
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: #ffffff;
  border: 1px dashed var(--ws-border);
  border-radius: var(--ws-radius-lg);
  width: 100%;
}

/* ==========================================================================
   CART SLIDEOUT DRAWER
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid var(--ws-border);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--ws-shadow-modal);
  overflow: hidden;
}
.cart-backdrop.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ws-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #ffffff;
  z-index: 2;
}
.cart-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.btn-close-cart {
  background: #f1f5f9;
  border: 1px solid var(--ws-border);
  color: var(--ws-text-main);
  font-size: 1.45rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ws-transition);
  line-height: 1;
}
.btn-close-cart:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cart-items-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  align-items: center;
  transition: var(--ws-transition);
}
.cart-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cart-item-img {
  width: 60px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.cart-item-details {
  flex: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ws-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-meta {
  font-size: 0.74rem;
  color: var(--ws-text-muted);
  margin-top: 0.2rem;
}
.cart-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ws-primary);
  margin-top: 0.25rem;
}
.btn-remove-item {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--ws-transition);
  flex-shrink: 0;
}
.btn-remove-item:hover {
  background: #fee2e2;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ws-border);
  background: #f8fafc;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--ws-text-muted);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-main);
}
.cart-total-val {
  color: var(--ws-primary);
}

.btn-checkout {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  background: var(--ws-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--ws-radius-md);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--ws-primary-glow);
  transition: var(--ws-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  z-index: 10;
}
.btn-checkout:hover {
  background: var(--ws-primary-hover);
  transform: translateY(-1px);
}
.btn-checkout:active {
  transform: scale(0.98);
}

/* ==========================================================================
   MODAL DIALOGS (CLEAN WHITE CONTAINER)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--ws-shadow-modal);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--ws-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-main);
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--ws-text-muted);
  font-size: 1.45rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
}

/* QRIS Container */
.qris-box {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--ws-shadow-sm);
}
.qris-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}
.qris-code-img {
  width: 190px;
  height: 190px;
  margin: 0 auto 1rem;
  border: 3px solid #0f172a;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}
.qris-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ws-primary);
  margin: 0.5rem 0;
}
.payment-supported-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.pay-pill {
  padding: 0.2rem 0.6rem;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.order-summary-box {
  background: #f8fafc;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--ws-text-muted);
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ws-text-main);
  border-top: 1px solid var(--ws-border);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

/* ==========================================================================
   ORDER HISTORY - CARD & DELETE BUTTON (DESKTOP & MOBILE)
   ========================================================================== */
.order-card-item {
  background: #ffffff;
  border: 1.5px solid var(--ws-border, #e2e8f0);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  overflow: hidden;
}
.order-card-item.is-pending {
  border-color: #fed7aa;
  background: #fffcf8;
}

/* Card Header */
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-card-number {
  font-family: monospace;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.96rem;
  letter-spacing: -0.2px;
}
.order-card-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Items List Inside Order Card */
.order-card-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.order-item-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px;
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0; /* Crucial: allows text truncation & wrapping without breaking flex */
}

.order-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  word-break: break-word;
}

.order-item-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #e2e8f0;
  color: #334155;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
}

.order-item-price {
  font-weight: 700;
  color: #ea580c;
}

/* Download Single SVG Button (Compact & Elegant, NOT 100% wide) */
.order-item-btn-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0.42rem 0.85rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: #059669 !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.order-item-btn-download:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3) !important;
}

/* Card Footer */
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px dashed #cbd5e1;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-card-total-box {
  display: flex;
  flex-direction: column;
}
.order-card-total-box span:first-child {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  letter-spacing: 0.3px;
}
.order-card-total-box span:last-child {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ea580c;
}

.order-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Download All ZIP Button */
.order-card-btn-download-all {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  background: #059669 !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  height: 38px !important;
  min-height: 38px !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.2s ease !important;
}
.order-card-btn-download-all:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(5, 150, 105, 0.35) !important;
}

/* Pay Now Button */
.order-card-btn-pay-now {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  background: #ea580c !important;
  color: #ffffff !important;
  border: 1px solid #ea580c !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  height: 38px !important;
  min-height: 38px !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25) !important;
  transition: all 0.2s ease !important;
}
.order-card-btn-pay-now:hover {
  background: #c2410c !important;
  border-color: #c2410c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(234, 88, 12, 0.35) !important;
}

.btn-delete-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--ws-radius-md);
  cursor: pointer;
  transition: var(--ws-transition);
  height: 38px;
  min-height: 38px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn-delete-order i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.btn-delete-order:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}
.btn-delete-order:hover i {
  transform: scale(1.1);
}
.btn-delete-order:active {
  transform: scale(0.96);
}

/* Success Download Box */
.payment-success-box {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon-anim {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

/* Quick View Modal Specs */
.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.quickview-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--ws-radius-md);
  border: 1px solid var(--ws-border);
}
.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ws-border);
  font-size: 0.82rem;
}
.spec-lbl {
  color: var(--ws-text-muted);
}
.spec-val {
  font-weight: 700;
  color: var(--ws-text-main);
}

/* ==========================================================================
   QUICK VIEW - RELATED ASSETS RECOMMENDATIONS
   ========================================================================== */
.quickview-related-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 2px dashed var(--ws-border);
}
.quickview-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quickview-related-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quickview-related-subtitle {
  font-size: 0.82rem;
  color: var(--ws-text-muted);
  margin: 0.25rem 0 0;
}
.quickview-related-badge {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.quickview-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.related-card {
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--ws-transition);
  position: relative;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: #fdba74;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.12);
}
.related-card-thumb-wrap {
  height: 125px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}
.related-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.related-card:hover .related-card-img {
  transform: scale(1.08);
}
.related-card-format {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.related-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ws-text-main);
  line-height: 1.35;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.35rem;
}
.related-card-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ws-primary);
}
.btn-related-add {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--ws-transition);
  touch-action: manipulation;
}
.btn-related-add:hover {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--ws-primary-glow);
}
.btn-related-add:active {
  transform: scale(0.92);
}

/* ==========================================================================
   FOOTER (WARJOSTOCK CRISP STYLE)
   ========================================================================== */
.shop-footer {
  border-top: 1px solid var(--ws-border);
  background: #ffffff;
  padding: 3.5rem 1.5rem 2rem;
  color: var(--ws-text-muted);
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.85rem;
  max-width: 320px;
  color: var(--ws-text-muted);
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ws-text-main);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--ws-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--ws-transition);
}
.footer-links a:hover {
  color: var(--ws-primary);
  padding-left: 3px;
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--ws-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ws-text-subtle);
}

/* Security Trust Badges in Footer */
.footer-security-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  transition: var(--ws-transition);
}
.security-badge i {
  font-size: 0.95rem;
  color: var(--ws-primary);
}
.security-badge:hover {
  background: var(--ws-primary-light);
  border-color: var(--ws-primary-border);
  color: var(--ws-primary);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: var(--ws-text-subtle);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-legal-links a:hover {
  color: var(--ws-primary);
  text-decoration: underline;
}

/* ==========================================================================
   FOCUSED LEGAL & INFORMATION DOCUMENT MODAL
   ========================================================================== */
.modal-content.legal-modal-dialog {
  max-width: 680px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--ws-border);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  background: #ffffff;
}

.legal-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  flex-shrink: 0;
}

.legal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.legal-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ws-primary);
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.legal-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.35;
}

.legal-modal-header .btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.legal-modal-header .btn-close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.legal-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}
.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.legal-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.legal-doc-content {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
}

.legal-doc-content h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.35rem 0 0.45rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-doc-content h4:first-child {
  margin-top: 0;
}

.legal-doc-content p {
  margin-bottom: 0.85rem;
}

.legal-doc-content ul,
.legal-doc-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-doc-content li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.legal-highlight-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

.legal-highlight-box i {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.legal-highlight-box.green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.legal-highlight-box.green i {
  color: #16a34a;
}

.legal-highlight-box.blue {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.legal-highlight-box.blue i {
  color: #0284c7;
}

.legal-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.legal-step-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.legal-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ws-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.legal-step-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
}

.legal-step-text strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.15rem;
  font-size: 0.88rem;
}

.legal-step-text p {
  margin: 0;
}

.legal-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--ws-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info .label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info .value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.legal-faq-mini {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.faq-item strong {
  font-size: 0.85rem;
  color: #0f172a;
  display: block;
  margin-bottom: 0.2rem;
}

.faq-item p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.legal-modal-footer {
  padding: 0.9rem 1.75rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.legal-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.btn-close-legal {
  background: var(--ws-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.btn-close-legal:hover {
  background: var(--ws-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-close-legal:active {
  transform: translateY(0);
}

/* RESPONSIVE OVERRIDES FOR LEGAL MODAL (TABLET & MOBILE) */
@media (max-width: 768px) {
  .modal-content.legal-modal-dialog {
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    width: 100%;
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .legal-modal-header {
    padding: 1rem 1.25rem;
  }
  .legal-modal-title {
    font-size: 1.05rem;
  }
  .legal-modal-body {
    padding: 1.15rem 1.25rem;
  }
  .legal-doc-content {
    font-size: 0.86rem;
    line-height: 1.62;
  }
  .legal-doc-content h4 {
    font-size: 0.92rem;
    margin-top: 1.15rem;
  }
  .legal-modal-footer {
    padding: 0.85rem 1.25rem 1.25rem;
    flex-direction: column-reverse;
    gap: 0.65rem;
  }
  .btn-close-legal {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  .legal-footer-meta {
    justify-content: center;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (DESKTOP, TABLET, PHABLET & MOBILE)
   ========================================================================== */

/* 1. TABLET & SMALL LAPTOPS (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-banner {
    padding: 2.75rem 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

/* 2. TABLET PORTRAIT & PHABLETS (max-width: 768px) */
@media (max-width: 768px) {
  .shop-navbar {
    padding: 0.65rem 1rem;
  }
  .nav-container {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .nav-brand {
    order: 1;
    gap: 0.6rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-tag {
    display: none;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
    gap: 0.45rem;
  }
  .btn-back-stock {
    padding: 0.45rem 0.65rem;
  }
  .btn-back-stock .btn-back-label {
    display: none;
  }
  .btn-cart {
    width: 38px;
    height: 38px;
  }
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
    top: -3px;
    right: -3px;
  }
  .btn-login {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
  .btn-register {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
  .btn-admin-nav .btn-admin-label {
    display: none;
  }
  .member-pill {
    padding: 0.25rem 0.55rem 0.25rem 0.35rem;
    gap: 0.4rem;
  }
  .member-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .member-quota {
    display: none;
  }
  .member-name {
    font-size: 0.76rem;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.15rem;
    flex: 0 0 100%;
  }
  .nav-search-input {
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-size: 0.82rem;
  }
  .nav-search-icon {
    left: 0.85rem;
    font-size: 0.82rem;
  }

  .shop-main {
    padding: 1.25rem 1rem 3.5rem;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 2rem 1.25rem;
    border-radius: 18px;
    margin-bottom: 1.75rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero-collage {
    display: none;
  }
  .hero-badge-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.85rem;
  }
  .hero-title {
    font-size: 1.68rem;
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin-bottom: 0.75rem;
  }
  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
  }

  /* Dedicated Category View Header */
  .category-breadcrumb-bar {
    font-size: 0.78rem;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
  }
  .category-hero-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }
  .category-hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  .category-hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }
  .category-hero-meta {
    gap: 0.5rem;
    font-size: 0.75rem;
  }
  .category-hero-header .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Member Status Strip */
  .member-dashboard-strip {
    padding: 1.15rem 1rem;
    border-radius: 16px;
    margin-bottom: 1.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .member-welcome-info {
    gap: 0.75rem;
  }
  .member-welcome-info h3 {
    font-size: 0.98rem;
  }
  .member-welcome-info p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  .member-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    border-top: 1px solid var(--ws-border);
    padding-top: 0.85rem;
  }
  .member-stat-box {
    text-align: center;
    align-items: center;
  }
  .member-stat-val {
    font-size: 0.95rem;
  }
  .member-stat-lbl {
    font-size: 0.62rem;
  }

  /* Categories Section */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .section-subtitle {
    font-size: 0.8rem;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .category-card {
    height: 125px;
    padding: 0.85rem;
    border-radius: 14px;
  }

  /* Horizontal Category Tabs */
  .category-pills-bar {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0 0.75rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
  }
  .category-pills-bar::-webkit-scrollbar {
    display: none;
  }
  .cat-pill-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    scroll-snap-align: start;
  }

  /* Catalog Toolbar */
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
  }
  .catalog-toolbar > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }
  .sort-select {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
  }

  /* Quick View Modal */
  .quickview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .quickview-img {
    height: 220px;
    max-height: 220px;
  }

  /* Footer */
  .shop-footer {
    padding: 2.5rem 1rem 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
  }
  .footer-brand p {
    max-width: 100%;
    font-size: 0.84rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
  .footer-bottom div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* 3. SMARTPHONES & COMPACT MOBILE (max-width: 640px) */
@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .category-card {
    height: 115px;
    padding: 0.75rem;
  }
  .category-icon {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }
  .category-name {
    font-size: 0.82rem;
  }
  .category-count {
    font-size: 0.65rem;
  }

  /* Product Cards: Sleek 2-Column App Grid */
  .product-card {
    border-radius: 14px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .badge-format {
    top: 8px;
    left: 8px;
    padding: 0.2rem 0.45rem;
    font-size: 0.6rem;
  }
  .product-body {
    padding: 0.75rem 0.85rem 0.85rem;
  }
  .product-meta-top {
    margin-bottom: 0.3rem;
  }
  .product-category-tag {
    font-size: 0.62rem;
    padding: 0.12rem 0.45rem;
  }
  .product-rating {
    font-size: 0.68rem;
    gap: 0.15rem;
  }
  .product-title {
    font-size: 0.84rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }
  .product-specs {
    font-size: 0.66rem;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
  }
  .product-footer {
    padding-top: 0.65rem;
  }
  .product-price-lbl {
    font-size: 0.58rem;
  }
  .product-price {
    font-size: 0.88rem;
  }
  .btn-add-cart {
    padding: 0.38rem 0.65rem;
    font-size: 0.74rem;
    gap: 0.25rem;
  }

  /* Cart Drawer Full Bleed on Mobile */
  .cart-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-left: none;
    border-radius: 0;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 10000 !important;
  }
  .cart-header {
    padding: 0.95rem 1.15rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--ws-border);
    z-index: 2;
  }
  .cart-header h3 {
    font-size: 1.05rem;
    margin: 0;
  }
  .btn-close-cart {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
  .cart-items-body {
    padding: 0.95rem 1.15rem;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
  }
  .cart-item {
    padding: 0.75rem;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    display: flex;
    align-items: center;
  }
  .cart-item-img {
    width: 54px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
  }
  .cart-item-title {
    font-size: 0.84rem;
    font-weight: 700;
  }
  .cart-item-meta {
    font-size: 0.72rem;
    color: var(--ws-text-muted);
  }
  .cart-item-price {
    font-size: 0.88rem;
    font-weight: 800;
  }
  .cart-footer {
    padding: 1rem 1.15rem;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 1.15rem));
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: #f8fafc;
    border-top: 1px solid var(--ws-border);
  }
  .btn-checkout {
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }

  /* Modals & Bottom Sheets */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-content {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    width: 100%;
    margin: 0;
  }
  .modal-header {
    padding: 0.95rem 1.15rem;
  }
  .modal-body {
    padding: 1rem 1.15rem 1.5rem;
    overflow-y: auto;
  }
  .qris-box {
    padding: 1rem 0.75rem;
  }
  .qris-box > div:nth-child(2) {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #qrisRealImage {
    max-width: 100% !important;
    height: auto !important;
  }
  .qris-amount {
    font-size: 1.35rem;
  }
  .order-summary-box {
    padding: 0.85rem 1rem;
  }
  .checkout-action-row {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }
  .checkout-action-row button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Floating Pending Order Bar on Mobile */
  #pendingOrderFloatingBar {
    width: calc(100% - 1.5rem) !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    padding: 0.85rem 1rem !important;
    bottom: 1rem !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
    font-size: 0.82rem !important;
  }
  #pendingOrderFloatingBar > span:nth-child(2) {
    white-space: normal !important;
    flex: 1 1 auto;
    font-size: 0.82rem;
    line-height: 1.4;
  }
  #pendingOrderFloatingBar .btn-checkout {
    width: 100% !important;
    justify-content: center !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
  }

  /* Order History Modal Mobile */
  .modal-order-history-tabs button {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.78rem !important;
    gap: 0.35rem !important;
  }
  .track-order-search-box {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .track-order-search-box button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Order History Card & Delete Action Mobile */
  .order-card-item {
    padding: 1rem !important;
    border-radius: 14px !important;
  }
  .order-item-row {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.65rem !important;
  }
  .order-item-thumb {
    width: 44px !important;
    height: 44px !important;
  }
  .order-item-info {
    flex: 1 1 calc(100% - 56px) !important;
    min-width: 0 !important;
  }
  .order-item-title {
    font-size: 0.84rem !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    white-space: normal !important;
  }
  .order-item-btn-download {
    margin-left: auto !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
  }
  .order-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .order-card-total-box {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .order-card-actions {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .btn-delete-order {
    padding: 0.6rem 0.95rem !important;
    min-height: 42px !important;
    height: 42px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }
  .btn-delete-order i {
    font-size: 1.05rem !important;
  }
  .order-card-actions .order-card-btn-download-all,
  .order-card-actions .order-card-btn-pay-now,
  .order-card-actions .btn-checkout {
    flex: 1 !important;
    min-height: 42px !important;
    height: 42px !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
    width: 100% !important;
  }

  /* Quick View Related Recommendations Mobile */
  .quickview-related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .related-card-thumb-wrap {
    height: 110px !important;
    padding: 0.5rem !important;
  }
  .related-card-info {
    padding: 0.65rem !important;
  }
  .related-card-title {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }
  .related-card-price {
    font-size: 0.82rem !important;
  }
  .btn-related-add {
    width: 34px !important;
    height: 34px !important;
  }
}

/* 4. EXTRA SMALL SCREENS (max-width: 380px) */
@media (max-width: 380px) {
  .nav-actions {
    gap: 0.25rem !important;
  }
  .btn-back-stock {
    padding: 0.35rem 0.45rem !important;
  }
  .btn-cart {
    width: 34px !important;
    height: 34px !important;
  }
  .btn-login {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.74rem !important;
  }
  .btn-register {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.74rem !important;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .category-hero-title {
    font-size: 1.35rem;
  }
  .product-body {
    padding: 0.6rem 0.65rem 0.75rem;
  }
  .product-title {
    font-size: 0.78rem;
  }
  .product-price {
    font-size: 0.82rem;
  }
  .btn-add-cart {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }
  .btn-register {
    padding: 0.4rem 0.65rem;
  }
  .btn-login {
    padding: 0.4rem 0.6rem;
  }
  .member-name {
    max-width: 60px;
  }
}

/* ==========================================================================
   THEMATIC SUB-CATEGORY CHIPS & LOAD MORE PAGINATION
   ========================================================================== */
.theme-filter-wrapper {
  background: #ffffff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--ws-shadow-sm);
}
.theme-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.theme-filter-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ws-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.theme-filter-badge i {
  color: var(--ws-primary);
}
.theme-filter-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ws-primary);
  background: var(--ws-primary-light);
  border: 1px solid var(--ws-primary-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--ws-radius-pill);
}
.theme-filter-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ws-border) transparent;
}
.theme-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.theme-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--ws-border);
  border-radius: 4px;
}
.theme-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--ws-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8fafc;
  color: var(--ws-text-muted);
  border: 1px solid var(--ws-border);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ws-transition);
}
.theme-chip-btn:hover {
  background: #f1f5f9;
  color: var(--ws-text-main);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.theme-chip-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff !important;
  border-color: #ea580c;
  box-shadow: 0 4px 12px var(--ws-primary-glow);
}
.theme-chip-btn.active i {
  color: #ffffff;
}

/* Numbered Pagination Styling */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 3rem 0 4rem 0;
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ws-text-main);
  border: 1px solid var(--ws-border);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ws-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--ws-primary);
  color: var(--ws-primary);
  background: var(--ws-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
}
.page-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff !important;
  border-color: #ea580c;
  box-shadow: 0 4px 14px var(--ws-primary-glow);
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn-nav {
  padding: 0 0.85rem;
  gap: 0.35rem;
  font-weight: 700;
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 42px;
  color: var(--ws-text-muted);
  font-weight: 800;
  letter-spacing: 2px;
}
.pagination-info {
  font-size: 0.82rem;
  color: var(--ws-text-muted);
  font-weight: 600;
}
.page-nav-text {
  display: inline;
}

/* Responsive Mobile Layout for Pagination Controls (Phones & Small Tablets) */
@media (max-width: 640px) {
  .pagination-container {
    margin: 2rem 0 3rem 0;
    gap: 0.65rem;
    padding: 0 0.5rem;
  }
  .pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px;
  }
  .pagination-controls::-webkit-scrollbar {
    display: none;
  }
  .page-btn {
    min-width: 32px;
    height: 34px;
    padding: 0 0.35rem;
    font-size: 0.8rem;
    border-radius: 8px;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  .page-btn-nav {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
  }
  .page-btn-nav .page-nav-text {
    display: none;
  }
  .page-btn-nav i {
    font-size: 0.88rem;
  }
  .page-ellipsis {
    width: 16px;
    height: 34px;
    font-size: 0.78rem;
    letter-spacing: 0;
    flex-shrink: 0;
  }
  .pagination-info {
    font-size: 0.74rem;
    text-align: center;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
}

/* Sub-category tag inside product card */
.product-theme-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: var(--ws-radius-pill);
  text-transform: capitalize;
  white-space: nowrap;
}

/* ==========================================================================
   QRIS NATIVE PAYMENT CHECKOUT UI (MATCHING SCREENSHOTS DESKTOP & MOBILE)
   ========================================================================== */
.qris-checkout-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  overflow-y: auto;
}

.qris-checkout-backdrop.open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.qris-checkout-content {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  position: relative;
  animation: qrisModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qrisModalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Top Bar (< Pembayaran) */
.qris-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.qris-back-btn {
  background: none;
  border: none;
  color: #1e293b;
  font-size: 1.35rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.qris-back-btn:hover {
  transform: translateX(-2px);
  color: #eb3b14;
}

.qris-top-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  flex: 1;
  text-align: left;
  padding-left: 0.35rem;
}

.qris-close-desktop {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.qris-close-desktop:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Modal Body */
.qris-modal-body {
  padding: 0 !important;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

/* Step 1: Customer Form & Items Preview */
#checkoutFormStep {
  padding: 1.25rem;
  background: #ffffff;
}

.checkout-step-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem;
}

.checkout-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkout-block-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.checkout-items-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkout-items-summary-list::-webkit-scrollbar {
  width: 4px;
}

.checkout-items-summary-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.checkout-item-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.checkout-item-mini-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  padding: 3px;
}

.checkout-item-mini-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.checkout-item-mini-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-item-mini-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1.5px dashed #cbd5e1;
}

.checkout-form-group {
  margin-bottom: 0;
}

.checkout-form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.checkout-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.checkout-input-icon {
  position: absolute;
  left: 0.9rem;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.15s ease;
}

.checkout-form-input {
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.5rem;
  font-size: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.checkout-form-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.checkout-input-wrap:focus-within .checkout-input-icon {
  color: #ea580c;
}

.checkout-input-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
}

.btn-checkout-action-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-checkout-action-main:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.btn-checkout-action-main:active {
  transform: translateY(0);
}

.btn-checkout-action-main.btn-free {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-checkout-action-main.btn-free:hover {
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

/* Total Pembayaran & Countdown Rows */
.qris-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}

.qris-total-row {
  border-bottom: 1px solid #f1f5f9;
}

.qris-countdown-row {
  align-items: flex-start;
  padding-bottom: 1.15rem;
}

.qris-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.qris-total-amount-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #eb3b14;
  letter-spacing: -0.2px;
}

.qris-countdown-box {
  text-align: right;
}

.qris-timer-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #eb3b14;
  letter-spacing: 1px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.qris-due-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* QRIS Card Block */
.qris-card-section {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  background: #ffffff;
}

.qris-national-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.qris-logo-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qris-logo-text-bold {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
  font-family: sans-serif;
}

.qris-logo-tagline {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1e293b;
  border-left: 1.5px solid #cbd5e1;
  padding-left: 0.45rem;
}

.qris-image-stage {
  position: relative;
  width: 260px;
  max-width: 85%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.qris-dynamic-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* Success Green Overlay on QR */
.qris-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.qris-success-circle {
  width: 80px;
  height: 80px;
  background: #059669;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.qris-nmid-display {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Section Divider */
.qris-section-divider {
  height: 8px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

/* Menerima Berbagai Pembayaran QR */
.qris-channels-block {
  padding: 1.25rem;
}

.qris-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
}

.qris-channels-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.qris-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.qris-pay-pill.qris-dana { color: #108ee9; }
.qris-pay-pill.qris-gopay { color: #00aed6; }
.qris-pay-pill.qris-bca { color: #0060af; font-weight: 800; }
.qris-pay-pill.qris-shopee { color: #ee4d2d; }
.qris-pay-pill.qris-seabank { color: #f37021; }
.qris-pay-pill.qris-bri { color: #00529c; }
.qris-pay-pill.qris-mandiri { color: #003d79; }
.qris-pay-pill.qris-bni { color: #f15a24; }
.qris-pay-pill.qris-more { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }

.qris-pay-pill b { font-size: 0.85rem; }

/* Petunjuk Pembayaran QRIS */
.qris-instructions-block {
  padding: 1.25rem;
}

.qris-instruction-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.qris-instruction-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-num {
  width: 22px;
  height: 22px;
  background: #94a3b8;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
}

/* Guest info */
.qris-guest-info-block {
  padding: 0.75rem 1.25rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.qris-guest-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.qris-guest-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.qris-guest-inputs input {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
}

/* Bottom Action Bar */
.qris-bottom-bar {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  gap: 0.65rem;
}

.btn-save-qris-action {
  flex: 2;
  background: #eb3b14;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(235, 59, 20, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-save-qris-action:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-save-qris-action:active {
  transform: translateY(0);
}

.btn-check-qris-desktop {
  flex: 1;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.btn-check-qris-desktop:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Success Popup Modal Card (Screenshot 1) */
.qris-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.qris-popup-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: qrisModalPop 0.25s ease;
}

.qris-popup-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.5rem;
}

.qris-popup-btn {
  width: 100%;
  background: #eb3b14;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.qris-popup-btn:hover {
  background: #dc2626;
}

/* Full Success Download Box */
.payment-success-box {
  padding: 2rem 1.5rem;
  text-align: center;
}

.success-icon-anim {
  width: 68px;
  height: 68px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1rem;
  border: 2px solid #a7f3d0;
}

.success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.success-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.success-order-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row span {
  color: #64748b;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-download-all {
  width: 100%;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-download-all:hover {
  background: #047857;
}

.btn-done-order {
  width: 100%;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   MOBILE SPECIFIC OVERRIDES (EXACTLY AS SCREENSHOTS)
   ========================================================================== */
@media (max-width: 768px) {
  .qris-checkout-backdrop {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .qris-checkout-content {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .qris-close-desktop {
    display: none !important;
  }

  .qris-modal-body {
    padding-bottom: 85px !important;
  }

  .qris-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff;
  }

  .btn-check-qris-desktop {
    display: none !important;
  }

  .btn-save-qris-action {
    flex: 1 !important;
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.9rem !important;
  }
}

/* ==========================================================================
   PROGRESSIVE WEB APP (PWA) & MOBILE APP SHELL STYLES
   ========================================================================== */

/* Hidden on desktop screens */
@media (min-width: 769px) {
  .pwa-bottom-nav,
  .pwa-bottom-sheet,
  .pwa-sheet-backdrop {
    display: none !important;
  }
}

/* Mobile & Standalone PWA Layout */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* PWA Bottom Navigation Bar */
  .pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.07);
    user-select: none;
    -webkit-user-select: none;
  }

  .pwa-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 0;
    gap: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.1s ease;
    line-height: 1;
  }

  .pwa-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
  }

  .pwa-nav-item.active {
    color: #ea580c;
  }

  .pwa-nav-item:active {
    transform: scale(0.92);
  }

  .pwa-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pwa-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 9999px;
    min-width: 16px;
    text-align: center;
    border: 1.5px solid #ffffff;
    line-height: 1.2;
  }

  .pwa-avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
  }

  /* Adjust Pending Order Recovery Bar on mobile so it doesn't overlap Bottom Nav */
  #pendingOrderFloatingBar {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* PWA Bottom Sheet Modal & Backdrop */
.pwa-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pwa-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  z-index: 1002;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.pwa-bottom-sheet.open {
  transform: translateY(0);
}

.pwa-sheet-header {
  padding: 0.75rem 1.25rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.pwa-sheet-handle {
  width: 38px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 9999px;
  margin: 0 auto 0.5rem;
}

.pwa-sheet-close {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}

.pwa-sheet-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pwa-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
}

/* Category Grid in Sheet */
.pwa-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.pwa-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pwa-cat-card:active {
  transform: scale(0.96);
}

.pwa-cat-card.active {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.pwa-cat-card .pwa-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ea580c;
}

.pwa-cat-card.active .pwa-cat-icon {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.pwa-cat-card .pwa-cat-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.2;
}

.pwa-cat-card.active .pwa-cat-label {
  color: #ea580c;
}

/* Account Bottom Sheet Styles */
.pwa-avatar-sheet {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
  flex-shrink: 0;
}

.pwa-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pwa-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pwa-menu-item i:first-child {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.pwa-menu-item .arrow {
  margin-left: auto;
  font-size: 0.8rem;
  color: #94a3b8;
}

.pwa-menu-item:hover,
.pwa-menu-item:active {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pwa-menu-item.logout {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.pwa-menu-item.logout:hover {
  background: #fee2e2;
}

/* Floating PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 998;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  border: 1px solid #334155;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    margin: 0;
  }
}

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

.pwa-install-icon img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.pwa-install-text span {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.2;
  margin-top: 2px;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-pwa-install {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
  white-space: nowrap;
}

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

.btn-pwa-dismiss {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-pwa-dismiss:hover {
  color: #ffffff;
}