/* =========================================================
   CSS VARIABLES
========================================================= */

:root {
  --header-height: 64px;
  --font-body: 'Manrope', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  --primary: #c93a6f;
  --primary-light: #e77da3;
  --accent: #f3b5cc;
  --bg: #fff0f5;
  --text: #512033;
}


/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    repeating-linear-gradient(
      45deg,
      #f9dce7,
      #f9dce7 2px,
      #fff0f5 2px,
      #fff0f5 4px
    );
  color: var(--text);
}


footer {
  all: unset;
}

/* =========================================================
   HEADER (FIXED – SAFE)
========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px 10px 56px;
}

header,
.header-inner {
  overflow: visible;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

/* =========================================================
   TOOLBAR CATEGORY (STICKY)
========================================================= */

.toolbar {
  position: sticky;
  top: var(--header-height); /* 64px, pas di bawah header */
  z-index: 1100;
  background: #fff;
  margin: 0 -12px; /* align full width karena main pakai padding */
  border-bottom: 1px solid #eee;
}

/* category scroll horizontal */
.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  position: relative;
  z-index: 1101;
}



/* =========================================================
   SEARCH
========================================================= */

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 14px;
}

/* clear */
.search-clear {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.search-clear:hover {
  color: #333;
}

/* search button */
.search-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   CART
========================================================= */

.cart i {
  font-size: 20px;
  cursor: pointer;
  color: #fff;
}

.cart i:active {
  opacity: 0.8;
}

/* =========================================================
   MAIN (CONTENT OFFSET)
========================================================= */

main {
  padding:
    calc(var(--header-height) + 12px)
    12px
    24px;
}

/* Victorymode storefront theme: clean, editorial wholesale retail layout */
:root {
  --primary: #111111;
  --primary-light: #333333;
  --accent: #e60012;
  --bg: #ffffff;
  --text: #111111;
  --header-height: 72px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
}

body { background:#fff; color:#111; font-family:Arial,Helvetica,sans-serif; }
.app-page-header { background:#fff; color:#111; border-bottom:1px solid #e5e5e5; box-shadow:none; padding:0 28px; }
.app-page-header-inner { max-width:1440px; width:100%; margin:0 auto; display:flex; align-items:center; gap:28px; }
.vm-brand { color:#111; text-decoration:none; font-size:19px; font-weight:800; letter-spacing:.13em; white-space:nowrap; }
.vm-header-links { display:flex; gap:22px; }
.vm-header-links a,.vm-cart-link { color:#111; text-decoration:none; font-size:13px; }
.vm-header-links a:hover,.vm-cart-link:hover { color:#e60012; }
.vm-cart-link { margin-left:auto; white-space:nowrap; }
.vm-cart-link span { display:inline-flex; min-width:20px; height:20px; align-items:center; justify-content:center; margin-left:4px; border-radius:50%; background:#e60012; color:#fff; font-size:11px; }
.app-page-title { display:none; }
.app-page-search { order:3; margin-left:auto; max-width:360px; border:1px solid #d8d8d8; border-radius:0; }
.app-page-search input { font-family:Arial,Helvetica,sans-serif !important; }
.search-btn { background:#111; border-radius:0; }
.vm-home-main,.vm-shop-main { max-width:1440px; margin:0 auto; padding:calc(var(--header-height) + 26px) 28px 64px; }
.vm-hero { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(440px,1.2fr); min-height:560px; background:#f4f4f4; }
.vm-hero-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(28px,6vw,86px); }
.vm-eyebrow { margin:0 0 12px; color:#e60012; font-size:11px; font-weight:700; letter-spacing:.16em; }
.vm-hero h1,.vm-shop-intro h1 { max-width:540px; margin:0 0 18px; font-size:clamp(34px,5vw,68px); line-height:1.03; letter-spacing:-.045em; font-weight:700; }
.vm-hero-copy > p:not(.vm-eyebrow),.vm-shop-intro > p:not(.vm-eyebrow) { max-width:470px; margin:0 0 28px; color:#555; font-size:15px; line-height:1.7; }
.vm-solid-button { align-self:flex-start; padding:14px 24px; background:#111; color:#fff; text-decoration:none; font-size:13px; font-weight:700; }
.vm-solid-button:hover { background:#e60012; color:#fff; }
.vm-hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px; min-height:560px; }
.vm-hero-grid img { width:100%; height:100%; min-height:278px; object-fit:cover; display:block; }
.vm-home-section { padding-top:64px; }
.vm-section-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:22px; }
.vm-section-heading h2 { margin:0; font-size:28px; letter-spacing:-.03em; }
.vm-section-heading a { color:#111; font-size:13px; text-decoration:underline; }
.vm-home-product-grid,.vm-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 12px; }
.vm-home-product,.vm-product-card { color:#111; text-decoration:none; min-width:0; }
.vm-home-product-image,.vm-product-image { aspect-ratio:3/4; overflow:hidden; background:#f3f3f3; }
.vm-home-product-image img,.vm-product-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.vm-home-product:hover img,.vm-product-card:hover img { transform:scale(1.035); }
.vm-home-product-name,.vm-product-card-body h2 { margin:12px 0 6px; font-size:14px; line-height:1.3; font-weight:400; }
.vm-home-product-price,.vm-product-price { font-size:13px; font-weight:700; }
.vm-product-stock { margin-top:7px; color:#777; font-size:12px; }
.vm-info-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:70px; background:#ddd; }
.vm-info-strip div { padding:24px; background:#f5f5f5; }
.vm-info-strip strong,.vm-info-strip span { display:block; }
.vm-info-strip strong { font-size:14px; margin-bottom:8px; }
.vm-info-strip span { color:#666; font-size:12px; }
.vm-shop-intro { padding:28px 0 32px; }
.vm-shop-intro h1 { font-size:clamp(32px,4vw,52px); margin-bottom:12px; }
.vm-shop-intro > p:not(.vm-eyebrow) { margin-bottom:0; }
.vm-category-bar { display:flex; gap:26px; overflow:auto; border-bottom:1px solid #ddd; margin-bottom:28px; }
.vm-category-bar button { border:0; border-bottom:2px solid transparent; background:none; padding:0 0 14px; color:#555; font-size:13px; white-space:nowrap; cursor:pointer; }
.vm-category-bar button.active { color:#111; border-color:#e60012; font-weight:700; }
.vm-product-card-body { padding-bottom:8px; }
.vm-product-card-body h2 { margin-top:11px; }
.vm-product-loading,.vm-product-empty,.vm-home-empty { padding:80px 0; text-align:center; color:#777; font-size:14px; }
.vm-load-more { min-height:42px; padding:30px; text-align:center; color:#777; font-size:13px; }
.detail-header { background:#fff; color:#111; border-bottom:1px solid #e5e5e5; box-shadow:none; }
.detail-nav-title { color:#111; text-decoration:none; font-size:18px; font-weight:800; letter-spacing:.12em; }
.detail-cart-link { position:absolute; right:22px; color:#111; text-decoration:none; font-size:13px; }
.back-btn { color:#111; }
@media (max-width: 900px) { .vm-hero { grid-template-columns:1fr; } .vm-hero-grid { min-height:420px; } .vm-hero-grid img { min-height:208px; } .vm-home-product-grid,.vm-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) { .app-page-header { padding:0 14px; } .app-page-header-inner { gap:14px; } .vm-brand { font-size:15px; } .vm-header-links { display:none; } .app-page-search { max-width:none; } .vm-home-main,.vm-shop-main { padding-left:14px; padding-right:14px; } .vm-hero-copy { padding:34px 22px 42px; } .vm-hero-grid { min-height:300px; } .vm-hero-grid img { min-height:148px; } .vm-home-product-grid,.vm-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 10px; } .vm-info-strip { grid-template-columns:1fr; } .vm-info-strip { margin-top:45px; } }

/* =========================================================
   PRODUCT GRID
========================================================= */

.product-wrapper {
  position: relative;
  min-height: 300px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.product {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

/* =========================================================
   IMAGE SYSTEM (SHIMMER + BLUR + SPINNER)
========================================================= */

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

/* shimmer */
.img-shimmer {
  position: absolute;
  inset: 0;
  background: #eaeaea;
  z-index: 1;
}

.img-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.7) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.3s infinite;
}

/* aktif kalau image error */
.img-wrap.image-error::after {
  opacity: 1;
}

.img-wrap.image-error {
  background:
    repeating-linear-gradient(
      45deg,
      #f4c7d8,
      #f4c7d8 3px,
      #fff0f5 3px,
      #fff0f5 6px
    );
}

/* image */
.product-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

.product-img.blur {
  filter: blur(18px);
  transform: scale(1.05);
}

.product-img.blur.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition:
    filter 0.6s ease,
    transform 0.6s ease,
    opacity 0.3s ease;
}

/* spinner */
.img-spinner {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-spinner::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   PRODUCT BODY
========================================================= */

.product-body {
  padding: 8px;
}

.product-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: bold;
  height: 34px;
  overflow: hidden;
}

.detail-body h1,
.cart-header h2,
.auth-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

.sold-out {
  display: inline-block;
  font-weight: bold;
  color: #e53935;
  font-size: 14px;
}


.product-subtitle {
  font-size: 13px;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
}

.price-row {
  display: flex;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.price-label {
  flex: 1;
  color: #666;
}

.price-currency {
  width: 22px;
  text-align: right;
  color: var(--primary);
  font-weight: 500;
}

.price-value {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
}


.detail-body .detail-prices {
  margin: 8px 0 12px;
}

.detail-body .price-row {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.detail-body .price-label {
  flex: 1;
  color: #555;
}

.detail-body .price-currency {
  width: 22px;
  text-align: right;
  color: var(--primary);
  font-weight: 500;
}

.detail-body .price-value {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}



/* =========================================================
   BUTTON
========================================================= */

.btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.btn:active {
  opacity: 0.9;
}

/* =========================================================
   GLOBAL SHIMMER (GRID LOADING)
========================================================= */

.product.shimmer {
  pointer-events: none;
}

.product.shimmer .img-wrap {
  background: #eee;
}

.shimmer-line,
.shimmer-btn {
  position: relative;
  overflow: hidden;
  background: #eee;
  border-radius: 6px;
}

.shimmer-line {
  height: 14px;
  margin: 8px 0;
}

.shimmer-line.w-80 { width: 80%; }
.shimmer-line.w-50 { width: 50%; }

.shimmer-btn {
  height: 36px;
  margin-top: 12px;
}

.shimmer-line::after,
.shimmer-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.4s infinite;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #777;
}

.empty-state i {
  display: block;
  font-size: 48px;
  margin-bottom: 10px;
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.app-menu-button {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2100;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(81,32,51,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-menu-button .bi {
  font-size: 24px;
}

.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2190;
  background: rgba(31, 18, 22, 0.35);
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2200;
  width: min(320px, 86vw);
  padding: 18px 16px 24px;
  background: #fff8fb;
  box-shadow: 18px 0 40px rgba(81,32,51,0.18);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-drawer.open {
  transform: translateX(0);
}

.app-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3d2df;
}

.app-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2px;
}

.app-drawer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.app-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #fae8ef;
  color: var(--primary);
  cursor: pointer;
}

.app-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.app-drawer-nav a.active {
  background: #f9dce7;
  color: var(--primary);
}

.app-drawer-nav .bi {
  font-size: 18px;
}

.app-drawer-actions {
  margin-top: auto;
}

.app-install-button {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.app-install-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-more {
  padding: 28px 0 16px;
  display: flex;
  justify-content: center;
}

.load-more-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #777;
}

/* spinner bulat */
.circle-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.detail-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(201, 58, 111, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(169, 33, 84, 0.35);
  z-index: 1200;
}

.back-btn {
  position: absolute;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-page {
  padding-top: 56px;
  padding-bottom: 40px;
  background: var(--bg);
}


.back-btn {
  font-size: 20px;
  border: none;
}

.detail-nav-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.detail-image {
  position: relative;
  margin: 0;
  max-width: none;
  width: 100%;
  background: #fff;
}

@media (max-width: 767px) {
  .detail-image,
  .carousel-wrapper {
    height: 48vh;
    max-height: 48vh;
  }

  .detail-image img,
  .detail-img {
    height: 48vh;
    max-height: 48vh;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

.detail-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
}

.image-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:active {
  transform: scale(0.95);
}

.detail-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
}

.detail-body {
  padding: 0;
}

.detail-body h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 0.95;
  color: #512033;
}

.detail-sheet {
  background: #fffafd;
  border-radius: 22px 22px 18px 18px;
  padding: 16px 16px 20px;
  box-shadow: 0 -8px 20px rgba(81,32,51,0.06);
}

.detail-desc-block {
  margin: 6px 0 16px;
}

.detail-section-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #956277;
}

.desc {
  font-size: 14px;
  line-height: 1.7;
  color: #512033;
}

.detail-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px;
  border-top: 1px solid #eee;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
}


/* =========================================================
   RESPONSIVE GRID
========================================================= */

/* Tablet */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

/* =========================================================
   DETAIL LAYOUT (RESPONSIVE)
========================================================= */

.detail-container {
  display: block;
  margin: 0;
  padding: 0;
}

/* tombol cart biasa */
.btn-cart {
  margin-top: 16px;
}

/* DESKTOP MODE */
@media (min-width: 1024px) {
  .detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    align-items: start;
  }

  .detail-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}




/* =========================================================
   IMAGE ACTION BUTTONS (BIG BUTTON)
========================================================= */

.image-action-buttons {
  display: flex;
  gap: 10px;
  margin: 14px auto;
  padding: 0 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(201,58,111,.12);
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.btn-outline i {
  font-size: 16px;
}

/* hover desktop */
.btn-outline:hover {
  background: #fbe5ed;
}

/* tap mobile */
.btn-outline:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .detail-page {
    padding-bottom: 28px;
  }

  .detail-sheet {
    border-radius: 0;
    box-shadow: none;
    padding: 14px 16px 20px;
  }

  .detail-body h1 {
    font-size: 28px;
    line-height: 1.02;
  }

  .detail-body .detail-prices {
    margin: 6px 0 12px;
  }

  .detail-body .price-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

/* desktop spacing */

/* =========================================================
   TOAST NOTIFIER
========================================================= */

.toast {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;

  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;

  color: #fff;
  background: #333;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  pointer-events: none;
}

/* success */
.toast.success {
  background: #43a047;
}

/* error */
.toast.error {
  background: #e53935;
}


/* =========================================================
   CONFIRM DIALOG
========================================================= */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-box {
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.confirm-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

/* tombol hapus */
.btn-danger {
  flex: 1;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:active {
  opacity: 0.9;
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-header i {
  font-size: 28px;
  color: var(--primary);
}

.contact-header h2 {
  margin: 0;
  font-size: 18px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.contact-item i {
  font-size: 18px;
  color: var(--primary);
  min-width: 20px;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.contact-item a:active {
  opacity: 0.8;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
}

.category-bar::-webkit-scrollbar {
  display: none;
}
.category-bar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cat-btn {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #efc4d4;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  transition: all .2s ease;
  cursor: pointer;
}

.cat-btn:hover {
  background: #fbe5ed;
}

.cat-btn.active {
  background: linear-gradient(135deg, #c93a6f, #a92154);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(201,58,111,.28);
}


.table-order.full-width {
  width: 100%;
}

.qty-col {
  width: 140px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-box button {
  width: 32px;
  height: 32px;
  border: 1px solid #efc4d4;
  background: #fff0f5;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
}

.qty-box input {
  width: 60px;
  text-align: center;
}

.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-box input[type=number] {
  -moz-appearance: textfield;
}

.row-active {
  background: #fff0f5; /* soft pink / soft highlight */
}

.order-summary {
  margin: 12px 0;
  padding: 10px;
  background: #fff0f5;
  border-radius: 6px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.order-summary > div:last-child {
  text-align: right;
  word-break: break-word;       /* ← biar angka nggak keluar */
}

.order-summary b {
  white-space: normal;
  word-break: break-word;
}

.order-error-bubble {
  position: relative;
  background: #fff0f0;
  border: 1px solid #ffb3b3;
  color: #b71c1c;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
}

/* ekor baloon */
.order-error-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 30px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #fff0f0 transparent transparent transparent;
}

.order-error-bubble::before {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 29px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 9px 0 9px;
  border-color: #ffb3b3 transparent transparent transparent;
}

.btn-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.bank-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bank-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.order-news-row {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
}

/* final storefront overrides */
.detail-header { background:#800000 !important; color:#fff; border-bottom:0; box-shadow:none; }
.detail-nav-title { color:#fff !important; text-decoration:none; display:flex; align-items:center; }
.detail-nav-title img { width:40px; height:40px; object-fit:contain; }
.detail-main-links { display:flex; gap:24px; margin-left:22px; }
.detail-main-links a,.detail-actions a { color:#fff; text-decoration:none; font-size:13px; }
.detail-actions { position:absolute; right:22px; display:flex; align-items:center; gap:18px; }
.detail-actions a { font-size:19px; }
.detail-cart-link { color:#111; }
.detail-page { background:#fff; color:#111; }
.detail-container { max-width:1440px; margin:0 auto; padding:92px 28px 64px; gap:42px; }
.detail-image { background:#f4f4f4; }
.detail-img { object-fit:cover; }
.detail-sheet { border:0; border-radius:0; box-shadow:none; padding:0; }
.detail-body h1 { font-family:Arial,Helvetica,sans-serif; font-size:clamp(28px,4vw,48px); line-height:1.05; letter-spacing:-.04em; }
.detail-section-title,.variant-picker-title { color:#111; font-weight:700; }
.variant-picker { border-top:1px solid #ddd; border-bottom:1px solid #ddd; padding:18px 0; }
.variant-chip { border:1px solid #bbb; border-radius:0; background:#fff; color:#111; }
.variant-chip.active { border-color:#111; background:#111; color:#fff; }
.variant-order-row { border-bottom:1px solid #eee; border-radius:0; }
.btn-primary,.btn-cart { border-radius:0; background:#111; }
.btn-primary:hover,.btn-cart:hover { background:#e60012; }
.detail-prices .price-value,.detail-prices .price-currency { color:#111; }

/* closer to the reference two-level retail storefront header */
.vm-top-promo { display:none !important; }
.app-page-header { top:0; height:72px; min-height:72px; padding:0 28px; z-index:2200; }
.app-page-header-inner { min-height:72px; }
.vm-brand { display:flex; align-items:center; }
.vm-brand img { width:42px; height:42px; object-fit:contain; display:block; }
.vm-primary-nav { display:flex; gap:28px; margin-left:28px; }
.vm-primary-nav a { color:#111; text-decoration:none; font-size:14px; }
.vm-primary-nav a:hover { color:#e60012; }
.vm-header-actions { display:flex; align-items:center; gap:20px; margin-left:auto; }
.vm-header-actions .app-page-search { order:0; margin:0; width:260px; max-width:260px; }
.vm-wishlist-link,.vm-cart-link { position:relative; color:#111; text-decoration:none; font-size:20px; line-height:1; }
.vm-wishlist-link:hover,.vm-cart-link:hover { color:#e60012; }
.vm-cart-link span { position:absolute; right:-10px; top:-9px; min-width:17px; height:17px; display:flex; justify-content:center; align-items:center; border-radius:50%; background:#e60012; color:#fff; font-size:9px; }
.vm-home-main,.vm-shop-main { padding-top:calc(var(--header-height) + 28px); }
.vm-hero { position:relative; display:block; min-height:min(680px,calc(100vh - 170px)); overflow:hidden; background:#ddd; }
.vm-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.vm-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.64),rgba(0,0,0,.06) 70%); }
.vm-hero-copy { position:relative; z-index:1; min-height:min(680px,calc(100vh - 170px)); justify-content:end; color:#fff; padding:clamp(28px,6vw,90px); }
.vm-hero-copy .vm-eyebrow { color:#fff; }
.vm-hero-copy > p:not(.vm-eyebrow) { color:#fff; }
.vm-hero h1 { max-width:540px; }
.vm-category-editorial { padding:42px 0 16px; border-bottom:1px solid #ddd; }
.vm-category-editorial > div { display:flex; gap:clamp(18px,4vw,56px); overflow:auto; }
.vm-category-editorial a { color:#111; font-size:clamp(20px,3vw,34px); font-weight:700; letter-spacing:-.04em; white-space:nowrap; text-decoration:none; }
.vm-category-editorial a:hover { color:#e60012; }
.vm-home-section { padding-top:48px; }
.vm-home-section-alt { padding:48px 28px 52px; margin:0 -28px; background:#f7efec; }
.vm-home-section-alt .vm-home-product-image { background:#fff; }
@media (max-width:640px) { .app-page-header { padding:0 14px; } .vm-primary-nav { gap:16px; margin-left:12px; } .vm-primary-nav a { font-size:12px; } .vm-header-actions { gap:13px; } .vm-header-actions .app-page-search { width:34px; max-width:34px; border:0; background:transparent; } .vm-header-actions .app-page-search input,.vm-header-actions .search-clear { display:none; } .vm-header-actions .search-btn { width:34px; height:34px; background:transparent; color:#111; } .vm-home-main,.vm-shop-main { padding-top:calc(var(--header-height) + 18px); } .vm-hero { min-height:560px; } .vm-hero-copy { min-height:560px; padding:26px 22px 38px; } .vm-hero-grid { display:none; } }

/* Victorymode brand palette and typography, based on assets/logo.png */
:root { --primary:#800000; --primary-light:#a51b1b; --accent:#800000; --bg:#fffdfc; --text:#211616; --font-body:'Noto Sans',Arial,Helvetica,sans-serif; --font-display:'Noto Sans',Arial,Helvetica,sans-serif; }
body { background:var(--bg); color:var(--text); font-family:'Noto Sans',Arial,Helvetica,sans-serif; }
.app-page-header { background:#800000 !important; border-bottom:0; }
.vm-brand img { width:48px; height:48px; }
.vm-primary-nav a,.vm-wishlist-link,.vm-cart-link { color:#fff; font-family:'Noto Sans',Arial,Helvetica,sans-serif; }
.vm-primary-nav a:hover,.vm-wishlist-link:hover,.vm-cart-link:hover { color:#f5d9d2; }
.vm-cart-link span { background:#fff; color:#800000; }
.app-page-search { background:#fff; border-color:#c9aaa3; }
.search-btn { background:#5d0000; }
.search-btn:hover { background:#3e0000; }
.vm-eyebrow { color:#800000; font-family:'Noto Sans',Arial,sans-serif; }
.vm-hero-copy .vm-eyebrow { color:#fff; }
.vm-hero-copy h1,.vm-shop-intro h1,.vm-section-heading h2,.vm-category-editorial a { font-family:'Noto Sans',Arial,Helvetica,sans-serif; font-weight:700; letter-spacing:-.035em; }
.vm-hero-copy h1 { font-size:clamp(38px,5vw,68px); }
.vm-solid-button { background:#800000; font-family:'Noto Sans',Arial,Helvetica,sans-serif; }
.vm-solid-button:hover { background:#5d0000; }
.vm-category-editorial a:hover { color:#800000; }
.vm-home-product-name,.vm-product-card-body h2 { font-family:'Montserrat',Arial,sans-serif; }
.vm-home-product-price,.vm-product-price { color:#800000; }
.vm-product-stock { color:#806e6e; }
.vm-info-strip div { background:#f7efec; }
.detail-page,.detail-sheet { color:var(--text); }
.detail-nav-title img { width:48px; height:48px; }
.detail-main-links a,.detail-actions a { color:#3f1717; }
.detail-main-links a:hover,.detail-actions a:hover { color:#800000; }
.detail-body h1 { font-family:'Noto Sans',Arial,Helvetica,sans-serif; font-size:clamp(32px,4vw,56px); font-weight:700; }
.detail-section-title,.variant-picker-title { color:#3f1717; font-family:'Montserrat',Arial,sans-serif; }
.variant-chip.active { border-color:#800000; background:#800000; }
.btn-primary,.btn-cart { background:#800000; }
.btn-primary:hover,.btn-cart:hover { background:#5d0000; }
.detail-prices .price-value,.detail-prices .price-currency { color:#800000; }

.vm-site-footer { margin-top:70px; background:#800000 !important; color:#fff; }
.vm-site-footer-inner { max-width:1440px; margin:0 auto; padding:44px 28px 38px; display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.vm-footer-brand img { width:68px; height:68px; object-fit:contain; background:#fff; padding:4px; }
.vm-footer-brand p { max-width:240px; margin:14px 0 0; color:#f3dcd6; font-size:12px; line-height:1.6; }
.vm-footer-column { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.vm-footer-column strong { margin-bottom:6px; color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.vm-footer-column a,.vm-footer-column span { color:#f3dcd6; font-size:12px; text-decoration:none; }
.vm-footer-column a:hover { color:#fff; text-decoration:underline; }
.vm-footer-bottom { border-top:1px solid rgba(255,255,255,.18); padding:16px 28px; color:#e8c9c2; font-size:11px; text-align:center; }
@media (max-width:640px) { .vm-site-footer-inner { grid-template-columns:1fr 1fr; gap:28px 18px; padding:34px 18px 28px; } .vm-footer-brand { grid-column:1 / -1; } .vm-footer-bottom { padding:14px 18px; line-height:1.5; } }
