/* ===========================
   BUTU E-Commerce Template
   Custom CSS (Bootstrap Companion)
   =========================== */

/* ========== GLOBAL ========== */
:root {
  --primary: #1565C0;
  --primary-light: #1976D2;
  --primary-dark: #0D47A1;
  --accent: #FF6B35;
  --dark-bg: #1a1a2e;
  --dark-bg-2: #16213e;
  --text-muted-light: #90caf9;
  --card-radius: 12px;
  --transition: all 0.25s ease;
  --navbar-h: 56px;
  --cart-blue: #2f67f6;
}

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;
  padding-top: var(--navbar-h); /* desktop: navbar height */
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ========== NAVBAR ========== */
.navbar-butu {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0;
  height: 56px;
  display: flex;
  align-items: center;
}

.navbar-butu .navbar-brand { padding: 0; }
.navbar-logo {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-butu .nav-link {
  color: #444;
  font-weight: 500;
  font-size: .9rem;
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.15s;
}

.navbar-butu .nav-link:hover {
  color: var(--primary);
  background: none;
}

.navbar-butu .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.navbar-butu .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.search-box .form-control {
  border-radius: 22px;
  padding-left: 36px;
  border: 1px solid #dde1e7;
  font-size: .85rem;
  height: 36px;
  transition: var(--transition);
  background: #fff;
  color: #333;
}

.search-box .form-control::placeholder { color: #aaa; }

.search-box .form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: .82rem;
  pointer-events: none;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: #444;
  font-size: 1.15rem;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  color: var(--primary);
  background: rgba(21,101,192,0.06);
}

.cart-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  background: #c9cdd4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

/* ========== MOBILE SEARCH BAR ========== */
.mobile-search-bar {
  background: #fff;
  padding: 8px 14px;
  border-bottom: 1px solid #e9ecef;
  display: none;
}

/* Flexbox container = unified grey pill */
.mobile-search-bar .mobile-search-wrap {
  display: flex;
  align-items: center;
  background: #f2f3f5;
  border: 1.5px solid #e2e4e8;
  border-radius: 22px;
  overflow: hidden;
  transition: var(--transition);
}

.mobile-search-bar .mobile-search-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.08);
}

.mobile-search-bar .mobile-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 6px 9px 16px;
  font-size: .88rem;
  outline: none;
  min-width: 0; /* prevent flex overflow */
}

.mobile-search-bar .mobile-search-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #888;
  font-size: .95rem;
  cursor: pointer;
  padding: 8px 14px 8px 6px;
  display: flex;
  align-items: center;
}

@media (max-width: 767.98px) {
  /* navbar 56px + search bar 50px = 106px → 108px safe clearance */
  body { padding-top: 108px; background-color: #fff; }
  .mobile-search-bar { display: block; }
}

/* ========== HERO BANNER ========== */
.hero-section {
  margin: 18px 0 0;
}

/* Desktop */
.hero-desktop-banner {
  background: linear-gradient(135deg, #6a11cb 0%, var(--primary) 100%);
  border-radius: var(--card-radius);
  min-height: 290px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 28px;
}
.hero-desktop-banner::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-desktop-banner .hero-img-placeholder {
  width: 240px; height: 200px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- Mobile Hero Carousel (FULL WIDTH) ---- */
.hero-carousel-mobile {
  width: 100%;
  margin-bottom: 10px;
}

.hero-slide-mobile {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
}

/* Split hero slide */
.hero-slide-split {
  background: #1a1a2e;
  display: flex;
}

.hero-split-left {
  flex: 1;
  background: linear-gradient(180deg, #0a0a1a 0%, #1a2a4a 60%, #2a3a5a 100%);
  position: relative;
  overflow: hidden;
}

.hero-split-right {
  flex: 1;
  background: linear-gradient(180deg, #2a3a5a 0%, #1a2a4a 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

/* Rain drops animation */
.rain-drops {
  position: absolute;
  inset: 0;
}
.rain-drops span {
  position: absolute;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(120,180,255,0.6));
  animation: rain 1.2s linear infinite;
  border-radius: 2px;
}
.rain-drops span:nth-child(1)  { left: 15%; height: 28px; animation-delay: 0s;    animation-duration: 1.1s; }
.rain-drops span:nth-child(2)  { left: 30%; height: 22px; animation-delay: 0.3s;  animation-duration: 1.3s; }
.rain-drops span:nth-child(3)  { left: 45%; height: 32px; animation-delay: 0.1s;  animation-duration: 1.0s; }
.rain-drops span:nth-child(4)  { left: 60%; height: 20px; animation-delay: 0.5s;  animation-duration: 1.4s; }
.rain-drops span:nth-child(5)  { left: 75%; height: 26px; animation-delay: 0.2s;  animation-duration: 1.2s; }
.rain-drops span:nth-child(6)  { left: 22%; height: 18px; animation-delay: 0.7s;  animation-duration: 1.5s; }
.rain-drops span:nth-child(7)  { left: 52%; height: 30px; animation-delay: 0.4s;  animation-duration: 0.9s; }
.rain-drops span:nth-child(8)  { left: 68%; height: 24px; animation-delay: 0.6s;  animation-duration: 1.1s; }
.rain-drops span:nth-child(9)  { left: 85%; height: 20px; animation-delay: 0.8s;  animation-duration: 1.3s; }

@keyframes rain {
  0%   { top: -40px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* Camera illustrations in hero */
.hero-cams {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 4px;
}

/* PTZ camera in hero */
.hero-cam-ptz {
  position: relative;
  width: 46px; height: 60px;
  flex-shrink: 0;
}
.ptz-base {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 18px;
  background: #c8c8c8;
  border-radius: 4px;
}
.ptz-head {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 28px;
  background: #e0e0e0;
  border-radius: 18px 18px 6px 6px;
}
.ptz-lens {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: #222;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #999;
}
.ptz-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px;
  background: #1565c0;
  border-radius: 50%;
}

/* Bullet camera in hero */
.hero-cam-bullet {
  position: relative;
  width: 54px; height: 50px;
  flex-shrink: 0;
}
.hero-cam-bullet .cam-body {
  position: absolute;
  top: 12px; left: 0;
  width: 48px; height: 28px;
  background: #d8d8d8;
  border-radius: 14px 6px 6px 14px;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.15);
}
.hero-cam-bullet .cam-lens {
  position: absolute;
  top: 16px; left: 5px;
  width: 20px; height: 20px;
  background: #222;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #aaa;
}
.hero-cam-bullet .cam-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 9px; height: 9px;
  background: #1565c0;
  border-radius: 50%;
}
.hero-cam-bullet .cam-mount {
  position: absolute;
  bottom: 0; right: 6px;
  width: 10px; height: 14px;
  background: #bbb;
  border-radius: 2px;
}

/* Dome camera in hero */
.hero-cam-dome {
  position: relative;
  width: 40px; height: 50px;
  flex-shrink: 0;
}
.dome-body {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 22px;
  background: #e0e0e0;
  border-radius: 50% 50% 8px 8px / 28px 28px 8px 8px;
}
.dome-lens {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #aaa;
}
.dome-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 7px; height: 7px;
  background: #1565c0;
  border-radius: 50%;
}

/* Text overlay on split slide */
.hero-slide-overlay {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  padding: 0 14px;
}
.hero-pill-text {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 18px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(79,70,229,0.4);
  max-width: 220px;
}

/* Bottom bar on hero slide */
.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.hero-bottom-tagline {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.hero-bottom-label {
  color: rgba(255,255,255,0.7);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.ezviz-badge-text {
  color: #00e5cc;
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: 1px;
  font-family: Arial Black, sans-serif;
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators .active { background: #fff; }
.hero-indicators { bottom: 6px; }

/* ========== SPECIAL OFFER SECTION ========== */
.special-offer-section {
  margin: 14px 0 6px;
}
.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--card-radius);
  min-height: 80px;
  position: relative;
  overflow: hidden;
}
.offer-orange { background: linear-gradient(135deg, #ff7043 0%, #ff9800 100%); }
.offer-blue   { background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%); }
.offer-green  { background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%); }

.offer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.offer-desc {
  color: rgba(255,255,255,0.9);
  font-size: .78rem;
  line-height: 1.4;
}
.offer-cams {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Offer card mini cameras */
.offer-cam-box {
  position: relative;
  width: 44px; height: 38px;
}
.obox-body {
  position: absolute;
  top: 4px; left: 0;
  width: 38px; height: 24px;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
}
.obox-lens {
  position: absolute;
  top: 9px; left: 6px;
  width: 14px; height: 14px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.offer-cam-ptz {
  position: relative;
  width: 36px; height: 46px;
}
.optz-base {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
}
.optz-head {
  position: absolute;
  bottom: 11px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 22px;
  background: rgba(255,255,255,0.85);
  border-radius: 14px 14px 4px 4px;
}

/* ========== SPECIAL OFFER BANNER ========== */
.special-offer-banner {
  background: linear-gradient(135deg, #FF6B35 0%, #f7931e 100%);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.special-offer-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

/* ========== BRAND SECTION ========== */
.brand-section {
  padding: 20px 0 24px;
}

.brand-section .section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.brand-card {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  color: #333;
}

.brand-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(21,101,192,0.12);
  transform: translateY(-2px);
  color: var(--primary);
}

/* Logo wrapper — holds SVG or icon */
.brand-logo-wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
}

.brand-card .brand-name {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== POPULAR PRODUCTS SECTION ========== */
.popular-section {
  background: var(--primary);
  padding: 32px 0 36px;
  margin-bottom: 0;
}

.popular-section .section-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.popular-section .section-subtitle {
  color: var(--text-muted-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.popular-section .btn-all {
  border: 1.5px solid #fff;
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 7px 18px;
  transition: var(--transition);
}

.popular-section .btn-all:hover {
  background: #fff;
  color: var(--primary);
}

/* Products scroll container */
.products-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.products-scroll::-webkit-scrollbar { height: 4px; }
.products-scroll::-webkit-scrollbar-track { background: transparent; }
.products-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

.products-row-flex {
  display: flex;
  gap: 16px;
  padding: 16px 4px 8px;
  min-width: max-content;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  width: 190px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  display: block;
  color: #333;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.5);
  color: #333;
}

/*.product-card .product-img {
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}*/

.product-card .product-img {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Alternate image backgrounds per product index */
.product-card:nth-child(2) .product-img { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); }
.product-card:nth-child(3) .product-img { background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%); }
.product-card:nth-child(4) .product-img { background: linear-gradient(135deg, #006064 0%, #00838f 100%); }
.product-card:nth-child(5) .product-img { background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%); }
.product-card:nth-child(6) .product-img { background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%); }
.product-card:nth-child(7) .product-img { background: linear-gradient(135deg, #bf360c 0%, #e64a19 100%); }
.product-card:nth-child(8) .product-img { background: linear-gradient(135deg, #212121 0%, #424242 100%); }

/* CSS-drawn CCTV camera placeholder */
.cctv-icon {
  position: relative;
  width: 80px;
  height: 60px;
}

.cctv-icon .cam-body {
  width: 64px;
  height: 40px;
  background: #d4d0c8;
  border-radius: 20px 8px 8px 20px;
  position: absolute;
  top: 10px; left: 0;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.15);
}

.cctv-icon .cam-lens {
  width: 30px;
  height: 30px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 15px; left: 6px;
  box-shadow: 0 0 0 4px #aaa, inset 0 0 8px rgba(255,255,255,0.2);
}

.cctv-icon .cam-lens::after {
  content: '';
  width: 12px; height: 12px;
  background: #1565c0;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cctv-icon .cam-mount {
  width: 14px; height: 18px;
  background: #bbb;
  border-radius: 3px;
  position: absolute;
  bottom: 0; right: 4px;
}

.cctv-icon .cam-antenna {
  width: 3px; height: 22px;
  background: #999;
  border-radius: 2px;
  position: absolute;
  top: -10px; right: 14px;
}

.badge-new {
  position: absolute;
  top: 8px; left: 8px;
  background: #43a047;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-card .product-info {
  padding: 12px 12px 14px;
}

.product-card .product-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.3;
}

.product-card .product-category {
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.product-card .product-desc {
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Mobile 2-column grid for popular products */
@media (max-width: 767.98px) {
  .products-scroll { overflow-x: unset; }
  .products-row-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: unset;
    gap: 12px;
    padding: 14px 0 8px;
  }
  .product-card { width: 100%; }

  /* Mobile layout tweaks */
  body { background-color: #fff; }
  .hero-section { margin: 0; }
  .popular-section { padding: 18px 0 22px; }
  .popular-section .section-title { font-size: 1.05rem; }
  .popular-section .btn-all { font-size: .78rem; padding: 5px 10px; }
  .brand-section { padding: 14px 0 18px; }
  .brand-section .section-title { font-size: 1.05rem; margin-bottom: 10px; }
  .brand-card { padding: 10px 4px 8px; border-radius: 8px; }
  .brand-logo-wrap { height: 28px; margin-bottom: 4px; }
  .special-offer-section { padding-bottom: 22px; }
}

/* ========== FOOTER ========== */
.footer-butu {
  background: var(--dark-bg);
  padding: 48px 0 0;
  color: #ccc;
}

.footer-butu .footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 10px;
}

.footer-butu .footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9e9e9e;
  max-width: 260px;
}

.footer-butu .footer-col-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-butu .footer-link {
  display: block;
  color: #9e9e9e;
  font-size: 0.875rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-butu .footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-butu .footer-bottom {
  border-top: 1px solid #2a2a4a;
  margin-top: 36px;
  padding: 16px 0;
}

.footer-butu .footer-bottom p {
  font-size: 0.8rem;
  color: #757575;
  margin: 0;
}

.footer-butu .social-links a {
  color: #9e9e9e;
  font-size: 0.85rem;
  margin-left: 16px;
  transition: var(--transition);
}

.footer-butu .social-links a:hover {
  color: #fff;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.detail-container {
  padding: 24px 0;
}

.btn-back {
  color: var(--primary);
  background: none;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  cursor: pointer;
}

.btn-back:hover {
  background: var(--primary);
  color: #fff;
}

.detail-img-box {
  background: #f0ede8;
  border-radius: var(--card-radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img-box .cctv-icon {
  width: 140px;
  height: 100px;
  transform: scale(1.8);
}

.detail-img-box .cctv-icon .cam-body {
  width: 110px; height: 68px;
}

.detail-img-box .cctv-icon .cam-lens {
  width: 52px; height: 52px;
}

.detail-img-box .cctv-icon .cam-lens::after {
  width: 22px; height: 22px;
}

.detail-img-box .cctv-icon .cam-mount {
  width: 24px; height: 30px;
}

.detail-img-box .cctv-icon .cam-antenna {
  height: 40px; right: 24px;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.spec-table td {
  padding: 8px 12px;
  font-size: 0.875rem;
  border-color: #eee;
}

.spec-table tr td:first-child {
  color: #666;
  font-weight: 500;
  width: 140px;
}

.btn-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cart:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-buy {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  padding: 11px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-buy:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== BRAND PAGE ========== */
.brand-page-header {
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-page-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* ========== OFFCANVAS MOBILE MENU ========== */
.mobile-menu-canvas {
  width: 82% !important;
  max-width: 340px;
  background: #fff;
}

/* X close button — top-right, outside body flow */
.menu-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Profile / store header block */
.menu-profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px;
}

.menu-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-profile-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu-profile-label {
  font-size: .72rem;
  color: #888;
  line-height: 1.2;
}

.menu-profile-name {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

/* Divider line */
.menu-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

/* Section label (e.g. "Brand") */
.menu-section-label {
  font-size: .78rem;
  font-weight: 700;
  color: #444;
  padding: 10px 18px 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Generic menu row */
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f7f7f7;
  font-size: .9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.menu-row:hover,
.menu-row:active {
  background: #f8f9fa;
  color: var(--primary);
}

.menu-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  color: #555;
}

.menu-row-icon--grey {
  background: #e4e6ea;
}

.menu-row-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row--logout .menu-row-label {
  color: #e53935;
}

.menu-row--logout .menu-row-icon {
  background: #ffeaea;
  color: #e53935;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  pointer-events: none;
}

/* ================================================================
   GALLERY / BRAND PAGE
   ================================================================ */

/* Hide regular navbar + search bar on mobile for gallery page */
.gallery-page-body .navbar-butu,
.gallery-page-body .mobile-search-bar { display: none !important; }
.gallery-page-body { padding-top: 0 !important; }

@media (min-width: 768px) {
  .gallery-page-body .navbar-butu { display: flex !important; }
  .gallery-page-body { padding-top: var(--navbar-h) !important; }
}

/* ---- Mobile page header ---- */
.gallery-mobile-hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1030;
}

.gal-back-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.gal-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.gal-cart-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  position: relative;
  line-height: 1;
}

.gal-cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---- Main container ---- */
.gallery-main {
  background: #f5f5f5;
  min-height: 100vh;
}

@media (max-width: 767.98px) {
  .gallery-main { padding-top: 56px; } /* mobile header height */
}
@media (min-width: 768px) {
  .gallery-main { background: #fff; }
}

/* ================================================================
   BRAND TAB BAR
   ================================================================ */
.brand-tab-bar-wrap {
  background: #fff;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 56px; /* mobile custom header height */
  z-index: 100;
}

@media (min-width: 768px) {
  /* on desktop the regular fixed navbar is var(--navbar-h) = 56px */
  .brand-tab-bar-wrap { top: var(--navbar-h); border-bottom: 1px solid #e9ecef; }
}

.brand-tab-bar {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.brand-tab-bar::-webkit-scrollbar { display: none; }

.brand-tab {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.2px;
}

.brand-tab:hover { color: var(--primary); }

/* Mobile active: solid blue pill */
.brand-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Desktop active: outlined grey pill */
@media (min-width: 768px) {
  .brand-tab.active {
    background: #f0f0f0;
    color: #111;
    border-color: #ccc;
  }
}

/* ================================================================
   CATEGORY FILTER BAR
   ================================================================ */
.cat-filter-wrap {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: calc(56px + 49px); /* mobile header + brand tab bar */
  z-index: 99;
}

@media (min-width: 768px) {
  .cat-filter-wrap { top: calc(var(--navbar-h) + 49px); }
}

.cat-filter-bar {
  display: flex;
  gap: 0;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-filter-bar::-webkit-scrollbar { display: none; }

.cat-filter-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  font-size: .8rem;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  padding: 4px 12px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-filter-btn:hover { color: #555; }

.cat-filter-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ================================================================
   GALLERY PRODUCT GRID
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0 48px;
}

@media (min-width: 576px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px 0 60px;
  }
}

@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

/* empty state */
.gal-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

/* ================================================================
   GALLERY CARD
   ================================================================ */
.gallery-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: inherit;
}

/* Card entrance animation */
@keyframes galFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gal-fade-in {
  animation: galFadeIn 0.3s ease both;
}

/* ---- Image area ---- */
.gallery-card-img {
  position: relative;
  background: #f0ebe0; /* cream/beige */
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .gallery-card-img { height: 170px; }
}

/* ---- Corner ribbon badge ---- */
.ribbon-badge {
  position: absolute;
  top: 0; left: 0;
  width: 72px; height: 72px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.ribbon-badge span {
  display: block;
  position: absolute;
  top: 16px; left: -24px;
  width: 96px;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 0;
  letter-spacing: 0.4px;
}

.ribbon-new span  { background: #ffca28; color: #5a3a00; }
.ribbon-sale span { background: #e53935; color: #fff; }

/* ---- PPN badge ---- */
.ppn-badge {
  position: absolute;
  bottom: 7px; right: 7px;
  background: #f5a623;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.3px;
}

/* ---- Brand label on image ---- */
.gal-brand-label {
  position: absolute;
  bottom: 8px; left: 8px;
  font-size: .6rem;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  z-index: 2;
}

/* ---- Card text body ---- */
.gallery-card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gal-name {
  font-size: .82rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gal-desc {
  font-size: .7rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gal-price-row {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.gal-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
}

.gal-price-strike {
  font-size: .72rem;
  color: #bbb;
  text-decoration: line-through;
}

/* ================================================================
   GALLERY CAMERA ILLUSTRATIONS
   ================================================================ */
.gcam { position: relative; flex-shrink: 0; }

/* ---- Bullet camera ---- */
.gcam--bullet { width: 130px; height: 90px; }

.gcam--bullet .gcam-body {
  position: absolute;
  top: 14px; left: 4px;
  width: 108px; height: 60px;
  background: linear-gradient(150deg, #fff 55%, #e6e6e6);
  border-radius: 30px 10px 10px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.13), inset 0 -2px 5px rgba(0,0,0,0.05);
}

.gcam--bullet .gcam-lens {
  position: absolute;
  top: 22px; left: 11px;
  width: 44px; height: 44px;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.85), 0 0 0 8px rgba(180,180,180,0.3);
  z-index: 1;
}

.gcam--bullet .gcam-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 18px; height: 18px;
  background: #1565c0;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(21,101,192,0.5);
}

.gcam--bullet .gcam-mount {
  position: absolute;
  bottom: 0; right: 26px;
  width: 13px; height: 17px;
  background: #ccc;
  border-radius: 0 0 4px 4px;
}

.gcam--bullet .gcam-antenna {
  position: absolute;
  top: 2px; right: 18px;
  width: 4px; height: 16px;
  background: #bbb;
  border-radius: 2px;
}

/* ---- Dome camera ---- */
.gcam--dome { width: 110px; height: 100px; }

.gcam--dome .gcam-base {
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 13px;
  background: #d8d8d8;
  border-radius: 3px;
}

.gcam--dome .gcam-shell {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 52px;
  background: linear-gradient(150deg, #fff 50%, #ebebeb);
  border-radius: 39px 39px 0 0;
  box-shadow: 0 5px 18px rgba(0,0,0,0.11), inset 0 -2px 4px rgba(0,0,0,0.04);
}

.gcam--dome .gcam-lens {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.75);
  z-index: 1;
}

.gcam--dome .gcam-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 13px; height: 13px;
  background: #1565c0;
  border-radius: 50%;
}

/* ---- PTZ camera ---- */
.gcam--ptz { width: 100px; height: 120px; }

.gcam--ptz .gcam-ptz-base {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 22px;
  background: #ccc;
  border-radius: 4px;
}

.gcam--ptz .gcam-neck {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 18px;
  background: #d8d8d8;
  border-radius: 2px;
}

.gcam--ptz .gcam-body {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 70px;
  background: linear-gradient(130deg, #fff 50%, #e8e8e8);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

.gcam--ptz .gcam-lens {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.75);
  z-index: 1;
}

.gcam--ptz .gcam-lens::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 12px; height: 12px;
  background: #1565c0;
  border-radius: 50%;
}

/* ================================================================
   PRODUCT DETAIL PAGE (PDP)
   ================================================================ */

/* Hide regular navbar + search on mobile */
.pdp-page-body .navbar-butu,
.pdp-page-body .mobile-search-bar { display: none !important; }
.pdp-page-body { padding-top: 0 !important; background: #fff; }

@media (min-width: 768px) {
  .pdp-page-body .navbar-butu { display: flex !important; }
  .pdp-page-body { padding-top: var(--navbar-h) !important; }
}

/* ---- Mobile header ---- */
.pdp-mobile-hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1030;
}

.pdp-back-btn {
  background: none; border: none;
  color: #333; font-size: 1.1rem;
  cursor: pointer; padding: 6px; line-height: 1;
  flex-shrink: 0;
}

.pdp-mobile-title {
  font-size: .88rem;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 6px;
}

.pdp-cart-btn {
  background: none; border: none;
  color: #333; font-size: 1.1rem;
  cursor: pointer; padding: 6px;
  line-height: 1; flex-shrink: 0;
}

/* ---- Main ---- */
.pdp-main { min-height: 100vh; background: #fff; }

@media (max-width: 767.98px) {
  .pdp-main { padding-top: 56px; background: #fff; padding-bottom: 76px; }
}

/* ---- Desktop breadcrumb ---- */
.pdp-breadcrumb { padding: 18px 0 10px; }

.pdp-bread-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.pdp-bread-link:hover { color: var(--primary); }
.pdp-bread-link i { font-size: .82rem; }

/* ---- Hero outer ---- */
.pdp-hero-outer { padding-bottom: 0; }

/* ---- White hero card (desktop only) ---- */
.pdp-hero-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

/* ---- Product image box ---- */
.pdp-img-box {
  position: relative;
  background: #f0ebe0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* Mobile */
@media (max-width: 767.98px) {
/*  .pdp-img-box { height: 310px; }*/
}

/* Desktop: fills card height */
@media (min-width: 768px) {
  .pdp-img-box {  border-radius: 0; }
}

/* ---- Info column (desktop inside card) ---- */
.pdp-info-col {
  display: flex;
  align-items: stretch;
}
.pdp-info-inner {
  padding: 24px 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* ---- Info column (mobile, outside card) ---- */
.pdp-info-col-mob {
  background: #fff;
  padding: 16px 16px 14px;
}

/* ---- Product name ---- */
.pdp-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-bottom: 3px;
}

@media (min-width: 768px) { .pdp-name { font-size: 1.35rem; } }

/* ---- Subtitle ---- */
.pdp-subtitle {
  font-size: .8rem;
  color: #888;
  margin-bottom: 10px;
}

/* ---- Price row ---- */
.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pdp-orig-price {
  font-size: .8rem;
  color: #bbb;
  text-decoration: line-through;
}

.pdp-cur-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.non-ppn-badge {
  background: #e8960f;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

/* ---- Description block ---- */
.pdp-desc-block { margin-bottom: 16px; }

.pdp-desc-label {
  font-size: .8rem;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.pdp-desc-list {
  font-size: .78rem;
  color: #444;
  line-height: 1.75;
  padding-left: 16px;
  margin-bottom: 5px;
}

.pdp-selengkapnya {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

/* ---- Action row (button + qty) ---- */
.pdp-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.pdp-action-btn {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 44px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 0;
}
.pdp-action-btn:hover { background: var(--primary-dark); }

.pdp-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.pdp-qty-btn {
  background: #f8f9fa; border: none;
  width: 34px; height: 44px;
  font-size: 1.1rem; color: #333;
  cursor: pointer; transition: background 0.12s;
}
.pdp-qty-btn:hover { background: #e9ecef; }

.pdp-qty-input {
  width: 34px; height: 44px;
  border: none; text-align: center;
  font-size: .88rem; font-weight: 600;
  outline: none; background: #fff;
  -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-inner-spin-button { display: none; }

/* Mobile floating action bar — fixed at bottom */
.pdp-mobile-action {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1040;
  background: #fff;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

/* Larger ribbon for PDP */
.ribbon--lg { width: 88px !important; height: 88px !important; }
.ribbon--lg span {
  top: 20px !important; left: -26px !important;
  width: 112px !important; font-size: 10px !important;
  padding: 4px 0 !important;
}

/* Larger camera illustration in PDP */
.gcam--lg { transform: scale(1.6); }

/* ---- Section wrapper ---- */
.pdp-section-wrap { margin-top: 8px; }

/* ---- Section (desktop: no extra bg) ---- */
.pdp-section {
  background: #fff;
  padding: 18px 16px;
}

@media (min-width: 768px) {
  .pdp-section { background: transparent; padding: 20px 0; }
}

.pdp-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

/* ================================================================
   PERBANDINGAN HARGA
   ================================================================ */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .comp-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}

.comp-card {
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

/* ---- Mini app screenshot thumbnail ---- */
.comp-screenshot {
  width: 60px; height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
}

.comp-screenshot--shopee .comp-ss-header { background: #ee4d2d; height: 10px; flex-shrink: 0; }
.comp-screenshot--tiktok .comp-ss-header { background: #111; height: 10px; flex-shrink: 0; }

.comp-ss-img {
  background: #f0ebe0;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.comp-ss-img::after {
  content: '';
  width: 22px; height: 22px;
  background: #d8d3c8;
  border-radius: 50%;
}

.comp-ss-lines {
  background: #fff;
  padding: 3px 4px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comp-ss-line {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  width: 60%;
}
.comp-ss-line--wide { width: 90%; }

/* ---- Card info ---- */
.comp-info { flex: 1; min-width: 0; }

.comp-prod-name {
  font-size: .73rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
/*  white-space: nowrap;*/
  text-overflow: ellipsis;
}

.comp-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.comp-mp-badge {
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}
.comp-shopee { background: #ee4d2d; color: #fff; }
.comp-tiktok { background: #111; color: #fff; }

.comp-stat {
  font-size: .68rem;
  color: #888;
}

.comp-mp-price {
  font-size: .8rem;
  font-weight: 700;
  color: #111;
  margin-top: 3px;
}

.comp-lihat-btn {
  background: none;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.comp-lihat-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Official web card */
.comp-card--official {
  border-color: var(--primary);
  border-width: 1.5px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
}

.comp-official-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
}

.comp-official-price {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}

.comp-keranjang-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: .77rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 2px;
}
.comp-keranjang-btn:hover { background: var(--primary-dark); }

/* ================================================================
   VIDEO TABS (desktop)
   ================================================================ */
.pdp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.pdp-tab {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.15s;
}
.pdp-tab:hover { color: #333; border-color: #bbb; }

.pdp-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Desktop video grid ---- */
.video-grid-desk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.video-item-desk { display: flex; flex-direction: column; gap: 4px; }

.video-label-desk {
  font-size: .73rem;
  font-weight: 600;
  color: #555;
}

/* ---- Shared video thumb ---- */
.video-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumb-bg {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.video-thumb--mob .video-thumb-bg { height: 180px; }

.video-overlay-text {
  font-size: .72rem;
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

/* ================================================================
   MOBILE VIDEOS (no tabs, vertical sections)
   ================================================================ */
.pdp-mobile-videos { background: #fff; }

.mob-video-section {
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}

.mob-video-label {
  font-size: .82rem;
  font-weight: 600;
  color: #333;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.video-thumb--mob { border-radius: 0; }

/* ================================================================
   CART PAGE
   ================================================================ */
.cart-page-body {
  --cart-blue: #2f67f6;
  --cart-muted: #96989d;
  --cart-line: #e9eaee;
  background: #fff;
}

/* Mobile cart uses a dedicated page header. Tablet/desktop keeps shared header. */
.cart-page-body .navbar-butu,
.cart-page-body .mobile-search-bar {
  display: none !important;
}

.cart-page-body {
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .cart-page-body .navbar-butu {
    display: flex !important;
  }

  .cart-page-body {
    padding-top: var(--navbar-h) !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .cart-page-body .navbar-butu .container > .nav-icon-btn.d-md-none {
    display: inline-flex !important;
  }

  .cart-page-body .navbar-butu .navbar-nav {
    display: none !important;
  }

  .cart-page-body .navbar-logo {
    height: 36px;
  }

  .cart-page-body .search-box {
    max-width: 410px;
  }

  .cart-page-body .search-box .form-control {
    height: 42px;
    border-radius: 8px;
  }
}

.cart-mobile-hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e7e7ea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 1030;
}

.cart-mobile-back {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-mobile-title {
  color: var(--cart-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.cart-mobile-spacer {
  width: 28px;
  height: 28px;
}

.cart-main {
  background: #fff;
  min-height: 620px;
}

.cart-container {
  max-width: 1340px;
}

.cart-back-link {
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #3f4045;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 44px;
  cursor: pointer;
}

.cart-back-link i {
  font-size: 1.05rem;
}

.cart-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.cart-list-panel {
  min-width: 0;
}

.cart-tabs {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
}

.cart-tab {
  min-width: 126px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #96989d;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s, background 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}

.cart-tab:hover {
  color: var(--cart-blue);
}

.cart-tab.active {
  background: var(--cart-blue);
  color: #fff;
  box-shadow: 0 3px 7px rgba(47,103,246,0.28) inset, 0 1px 4px rgba(47,103,246,0.18);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-line {
  position: relative;
  min-height: 142px;
  background: #fff;
  border: 1px solid #f0f1f4;
  box-shadow: 0 2px 10px rgba(30,35,50,0.07);
  display: grid;
  grid-template-columns: 28px 92px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  padding: 16px 22px 18px;
}

.cart-line-check {
  align-self: start;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.cart-line-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-line-check span {
  width: 20px;
  height: 20px;
  border: 2px solid #cfd6df;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, border-color 0.14s;
}

.cart-line-check span::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}

.cart-line-check input:checked + span {
  background: var(--cart-blue);
  border-color: var(--cart-blue);
}

.cart-line-check input:checked + span::after {
  opacity: 1;
}

.cart-line-media {
  position: relative;
  width: 92px;
  height: 92px;
  background: #eee9dd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit;
  flex-shrink: 0;
}

.cart-ribbon {
  width: 58px;
  height: 58px;
}

.cart-ribbon span {
  top: 12px;
  left: -26px;
  width: 88px;
  font-size: 7px;
  padding: 2px 0;
}

.cart-cam-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-cam-stage--ptz .gcam {
  transform: scale(0.7);
}

.cart-cam-stage--bullet .gcam {
  transform: scale(0.68);
}

.cart-cam-stage--dome .gcam {
  transform: scale(0.72);
}

.cart-line-info {
  min-width: 0;
  padding: 1px 4px 0 0;
}

.cart-line-name {
  display: block;
  color: #3d3f43;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 3px;
  text-decoration: none;
}

.cart-line-name:hover {
  color: var(--cart-blue);
}

.cart-line-desc {
  color: #9b9da3;
  font-size: .72rem;
  line-height: 1.35;
  margin: 0 0 4px;
}

.cart-line-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 4px;
}

.cart-line-price strong {
  color: var(--cart-blue);
  font-size: 1rem;
  font-weight: 900;
}

.cart-line-original {
  color: #aaaeb6;
  font-size: .72rem;
  text-decoration: line-through;
}

.cart-line-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-tag,
.cart-warranty {
  height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cart-tag {
  padding: 0 7px;
  color: #4f3a0a;
}

.cart-tag--ppn,
.cart-tag--non {
  background: #efc75f;
}

.cart-warranty {
  padding: 0 10px;
  color: #404247;
  background: #fff;
  border: 1.5px solid #e3a823;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: end;
  padding-bottom: 1px;
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  justify-items: center;
  gap: 4px;
  color: #111;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.14s;
}

.cart-qty-btn:hover {
  transform: scale(1.08);
}

.cart-qty-btn i {
  font-size: 1.45rem;
}

.cart-qty-btn--minus {
  color: #c5cdd6;
}

.cart-qty-btn--plus {
  color: var(--cart-blue);
}

.cart-qty-btn--plus:hover {
  color: #2458d9;
}

.cart-promo-pill {
  width: 132px;
  height: 46px;
  border: 1.5px solid #e1e3e8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  line-height: 1.08;
}

.cart-promo-pill strong {
  color: #48494f;
  font-size: .76rem;
  font-weight: 900;
}

.cart-promo-pill span {
  color: #9db8ff;
  font-size: .72rem;
  font-weight: 800;
}

.cart-action-separator {
  width: 1px;
  height: 28px;
  background: #c9cbd1;
  display: inline-block;
}

.cart-summary {
  width: 100%;
}

.cart-summary-card {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 46px rgba(75,30,96,0.11);
  padding: 22px 24px 20px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cart-summary-row span {
  color: #9a9ca1;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-summary-row span b {
  color: var(--cart-blue);
  font-weight: 700;
}

.cart-summary-row strong {
  color: var(--cart-blue);
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-summary-btn {
  width: 100%;
  height: 42px;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cart-summary-btn--outline {
  color: var(--cart-blue);
  background: #fff;
  border: 1.5px solid var(--cart-blue);
}

.cart-summary-btn--outline:hover {
  background: rgba(47,103,246,0.06);
}

.cart-summary-btn--primary {
  color: #fff;
  background: var(--cart-blue);
  border: 1.5px solid var(--cart-blue);
}

.cart-summary-btn--primary:hover {
  background: #2458d9;
  border-color: #2458d9;
}

.cart-empty {
  background: #fff;
  border: 1px solid #eef0f3;
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #9b9da3;
  text-align: center;
  box-shadow: 0 2px 10px rgba(30,35,50,0.05);
}

.cart-empty i {
  font-size: 2rem;
  color: #c9cdd4;
}

.cart-empty p {
  margin: 0;
  font-size: .9rem;
}

@media (min-width: 768px) {
  .cart-main {
    padding: 56px 0 86px;
  }
}

@media (min-width: 992px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
}

@media (min-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 34px;
  }

  .cart-line {
    min-height: 146px;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .cart-line {
    grid-template-columns: 28px 92px minmax(0, 1fr);
    grid-template-areas:
      "check media info"
      ". media actions";
    row-gap: 16px;
  }

  .cart-line-check {
    grid-area: check;
  }

  .cart-line-media {
    grid-area: media;
  }

  .cart-line-info {
    grid-area: info;
  }

  .cart-line-actions {
    grid-area: actions;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .cart-main {
    padding-top: 42px;
  }

  .cart-back-link {
    margin-bottom: 36px;
  }

  .cart-summary-card {
    max-width: 430px;
  }
}

@media (max-width: 767.98px) {
  .cart-main {
    padding-top: 56px;
  }

  .cart-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .cart-layout {
    display: block;
  }

  .cart-tabs {
    position: sticky;
    top: 56px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e8e9ed;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    margin: 0;
    padding: 13px 30px 8px;
  }

  .cart-tab {
    width: 100%;
    min-width: 0;
    height: 54px;
    border-radius: 3px;
    font-size: .95rem;
  }

  .cart-items {
    gap: 0;
  }

  .cart-line {
    min-height: 198px;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 3px 12px rgba(28,32,46,0.08);
    grid-template-columns: 28px 118px minmax(0, 1fr);
    grid-template-areas:
      "check media info"
      ". media actions";
    column-gap: 14px;
    row-gap: 12px;
    padding: 26px 30px 24px;
  }

  .cart-line-check {
    grid-area: check;
  }

  .cart-line-check span {
    width: 26px;
    height: 26px;
    border-radius: 5px;
  }

  .cart-line-check span::after {
    width: 8px;
    height: 14px;
  }

  .cart-line-media {
    grid-area: media;
    width: 118px;
    height: 118px;
  }

  .cart-ribbon {
    width: 68px;
    height: 68px;
  }

  .cart-ribbon span {
    top: 15px;
    left: -25px;
    width: 96px;
    font-size: 8px;
  }

  .cart-cam-stage--ptz .gcam {
    transform: scale(0.88);
  }

  .cart-cam-stage--bullet .gcam {
    transform: scale(0.83);
  }

  .cart-cam-stage--dome .gcam {
    transform: scale(0.88);
  }

  .cart-line-info {
    grid-area: info;
    padding-top: 0;
  }

  .cart-line-name {
    font-size: 1.05rem;
    line-height: 1.16;
    margin-bottom: 5px;
  }

  .cart-line-desc {
    font-size: .78rem;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .cart-line-price strong {
    font-size: 1.05rem;
  }

  .cart-line-original {
    font-size: .75rem;
  }

  .cart-tag,
  .cart-warranty {
    height: 30px;
    font-size: .78rem;
    border-radius: 15px;
  }

  .cart-tag {
    padding: 0 8px;
  }

  .cart-warranty {
    padding: 0 12px;
  }

  .cart-line-actions {
    grid-area: actions;
    justify-content: flex-end;
    align-self: end;
    padding: 0;
  }

  .cart-line--promo .cart-line-actions {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: 1rem;
  }

  .cart-qty-control {
    grid-template-columns: 34px 32px 34px;
    gap: 8px;
    font-size: .95rem;
  }

  .cart-qty-btn {
    width: 34px;
    height: 34px;
  }

  .cart-qty-btn i {
    font-size: 1.7rem;
  }

  .cart-promo-pill {
    width: 178px;
    height: 58px;
    border-radius: 10px;
  }

  .cart-promo-pill strong {
    font-size: .9rem;
  }

  .cart-promo-pill span {
    font-size: .86rem;
  }

  .cart-action-separator {
    height: 38px;
  }

  .cart-summary {
    background: #fff;
    box-shadow: 0 -16px 28px rgba(82,45,96,0.08);
  }

  .cart-summary-card {
    box-shadow: none;
    padding: 18px 30px 20px;
  }

  .cart-summary-row {
    margin-bottom: 18px;
  }

  .cart-summary-row span {
    font-size: .94rem;
  }

  .cart-summary-row strong {
    font-size: 1.02rem;
  }

  .cart-summary-btn {
    height: 58px;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 14px;
  }

  .cart-empty {
    margin: 0;
    border: 0;
    min-height: 220px;
    box-shadow: none;
  }
}

@media (max-width: 430px) {
  .cart-mobile-hd {
    padding: 0 20px;
  }

  .cart-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cart-tab {
    height: 52px;
    font-size: .88rem;
  }

  .cart-line {
    grid-template-columns: 24px 104px minmax(0, 1fr);
    column-gap: 12px;
    padding: 24px 20px 22px;
  }

  .cart-line-media {
    width: 104px;
    height: 104px;
  }

  .cart-line-name {
    font-size: .96rem;
  }

  .cart-line-desc {
    font-size: .72rem;
  }

  .cart-line-price strong {
    font-size: .98rem;
  }

  .cart-tag,
  .cart-warranty {
    height: 27px;
    font-size: .7rem;
  }

  .cart-promo-pill {
    width: 134px;
    height: 54px;
  }

  .cart-promo-pill strong {
    font-size: .82rem;
  }

  .cart-promo-pill span {
    font-size: .78rem;
  }

  .cart-qty-control {
    grid-template-columns: 30px 26px 30px;
    gap: 4px;
  }

  .cart-qty-btn {
    width: 30px;
    height: 30px;
  }

  .cart-qty-btn i {
    font-size: 1.52rem;
  }

  .cart-summary-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cart-summary-row span,
  .cart-summary-row strong {
    font-size: .92rem;
  }
}

/* ================================================================
   CHECKOUT + PAYMENT FLOW PAGES
   ================================================================ */
.order-flow-page {
  --flow-blue: #2f67f6;
  --flow-blue-soft: #aec3f6;
  --flow-blue-row: #8ea9ef;
  --flow-text: #35363b;
  --flow-muted: #96989d;
  background: #fff;
}

.checkout-page-body .navbar-butu,
.checkout-page-body .mobile-search-bar,
.payment-page-body .navbar-butu,
.payment-page-body .mobile-search-bar {
  display: none !important;
}

.checkout-page-body,
.payment-page-body {
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .checkout-page-body .navbar-butu,
  .payment-page-body .navbar-butu {
    display: flex !important;
  }

  .checkout-page-body,
  .payment-page-body {
    padding-top: var(--navbar-h) !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .checkout-page-body .navbar-butu .container > .nav-icon-btn.d-md-none,
  .payment-page-body .navbar-butu .container > .nav-icon-btn.d-md-none {
    display: inline-flex !important;
  }

  .checkout-page-body .navbar-butu .navbar-nav,
  .payment-page-body .navbar-butu .navbar-nav {
    display: none !important;
  }

  .checkout-page-body .navbar-logo,
  .payment-page-body .navbar-logo {
    height: 38px;
  }

  .checkout-page-body .search-box,
  .payment-page-body .search-box {
    max-width: 450px;
  }

  .checkout-page-body .search-box .form-control,
  .payment-page-body .search-box .form-control {
    height: 44px;
    border-radius: 8px;
    font-size: .9rem;
  }
}

.flow-mobile-hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e8e8eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 1030;
}

.flow-mobile-back,
.flow-mobile-spacer {
  width: 28px;
  height: 28px;
}

.flow-mobile-back {
  border: 0;
  background: transparent;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
}

.flow-mobile-title {
  color: var(--flow-blue);
  font-size: 1.05rem;
  font-weight: 800;
}

.flow-main {
  background: #fff;
}

.flow-container {
  max-width: 1360px;
}

.flow-back-link {
  align-items: center;
  gap: 14px;
  color: var(--flow-text);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.flow-back-link i {
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .flow-main {
    padding: 54px 0 88px;
  }

  .flow-back-link {
    margin-bottom: 58px;
  }
}

@media (max-width: 767.98px) {
  .flow-main {
    padding-top: 56px;
  }

  .flow-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===========================
   CHECKOUT PAGE
   =========================== */
.checkout-sheet {
  color: var(--flow-text);
}

.checkout-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0f1f3;
  padding: 0 34px 24px;
  font-size: 1rem;
}

.checkout-order-row span {
  color: #44464c;
}

.checkout-order-row strong {
  font-weight: 900;
}

.checkout-address-block {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
  color: var(--flow-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
  padding: 24px 34px 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-address-block::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--flow-blue);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.checkout-address-block i {
  grid-row: 1 / 6;
  grid-column: 2;
  align-self: center;
  color: #111;
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.checkout-address-block:hover,
.checkout-address-block:focus-visible {
  background: #f7faff;
  box-shadow: inset 0 0 0 1px rgba(47,103,246,0.12);
  outline: 0;
}

.checkout-address-block:hover::before,
.checkout-address-block:focus-visible::before {
  transform: scaleY(1);
}

.checkout-address-block:hover i,
.checkout-address-block:focus-visible i {
  color: var(--flow-blue);
  transform: translateX(4px);
}

.checkout-row-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.checkout-address-type {
  font-size: .98rem;
  font-weight: 700;
}

.checkout-address-block strong {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
}

.checkout-address-block span:not(.checkout-row-title):not(.checkout-address-type) {
  max-width: 920px;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-address-block b {
  font-size: 1.1rem;
  margin-top: 12px;
}

.checkout-products {
  border-bottom: 1px solid #f0f1f3;
}

.checkout-product {
  min-height: 142px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 16px 34px 16px;
  border-bottom: 1px solid #f0f1f3;
  box-shadow: 0 4px 10px rgba(27,31,42,0.04);
}

.checkout-product:last-child {
  border-bottom: 0;
}

.checkout-product-media {
  position: relative;
  width: 92px;
  height: 92px;
  background: #eee9dd;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-ribbon {
  width: 58px;
  height: 58px;
}

.checkout-ribbon span {
  top: 12px;
  left: -26px;
  width: 88px;
  font-size: 7px;
  padding: 2px 0;
}

.checkout-product-cam {
  transform: scale(0.72);
}

.checkout-product-info {
  min-width: 0;
}

.checkout-product-name {
  display: block;
  color: var(--flow-text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
  max-width: 410px;
  text-decoration: none;
}

.checkout-product-name:hover {
  color: var(--flow-blue);
}

.checkout-product-desc {
  display: block;
  color: #9a9da4;
  font-size: .78rem;
  margin: 3px 0 5px;
}

.checkout-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-tags b,
.checkout-tags em {
  height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-tags b {
  padding: 0 8px;
  color: #4f3a0a;
  background: #efc75f;
}

.checkout-tags em {
  padding: 0 10px;
  color: #404247;
  background: #fff;
  border: 1.5px solid #e3a823;
}

.checkout-product-qty {
  display: block;
  color: var(--flow-blue);
  font-size: .95rem;
  font-weight: 900;
  margin-top: 24px;
}

.checkout-product-price {
  color: var(--flow-blue);
  font-size: 1rem;
  font-weight: 900;
  align-self: end;
  padding-bottom: 2px;
  white-space: nowrap;
}

.checkout-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 34px 18px;
  border-top: 1.5px dashed #b9bbc1;
  padding-top: 28px;
  font-size: .98rem;
}

.checkout-subtotal strong {
  font-size: 1rem;
  font-weight: 800;
}

.checkout-shipping {
  margin: 0 0 0;
}

.checkout-shipping button {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.checkout-shipping-head {
  height: 42px;
  background: var(--flow-blue-row);
  color: var(--flow-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  font-weight: 800;
}

.checkout-shipping-head i {
  font-size: 1.1rem;
  color: #111;
}

.checkout-shipping-row {
  min-height: 54px;
  background: var(--flow-blue-soft);
  color: var(--flow-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 34px 12px;
}

.checkout-shipping-row span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checkout-shipping-row strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.checkout-shipping-row small {
  font-size: .72rem;
  color: #4d4f56;
  line-height: 1.25;
}

.checkout-shipping-row b {
  font-size: 1rem;
  white-space: nowrap;
}

.checkout-tax {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 34px 30px;
  cursor: pointer;
}

.checkout-tax input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-tax span {
  width: 22px;
  height: 22px;
  border: 1.8px solid #9fa3a8;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-tax span::after {
  content: '';
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkout-tax input:checked + span {
  background: var(--flow-blue);
  border-color: var(--flow-blue);
}

.checkout-tax input:checked + span::after {
  opacity: 1;
}

.checkout-tax b {
  font-size: .9rem;
  color: #3b3d43;
}

.checkout-total-row {
  background: #fff;
  box-shadow: 0 -18px 30px rgba(90,48,100,0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 340px;
  align-items: center;
  gap: 30px;
  padding: 24px 34px 0;
}

.checkout-total-row span {
  color: #9fa1a6;
  font-size: 1rem;
}

.checkout-total-row strong {
  color: var(--flow-blue);
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-pay-btn {
  height: 44px;
  border-radius: 4px;
  background: var(--flow-blue);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.checkout-pay-btn:hover {
  color: #fff;
  background: #2458d9;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0,0,0,0.42);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 170px 24px 40px;
  overflow-y: auto;
}

.checkout-overlay.is-open {
  display: flex;
}

.checkout-dialog {
  display: none;
  width: min(680px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(18,26,52,0.26);
}

.checkout-dialog.is-active {
  display: block;
}

.checkout-dialog--short {
  width: min(680px, 100%);
}

.checkout-dialog-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 54px;
  background: #fff;
}

.checkout-dialog-head--blue {
  background: var(--flow-blue-soft);
}

.checkout-dialog-head h2 {
  margin: 0;
  color: var(--flow-text);
  font-size: .98rem;
  font-weight: 900;
}

.checkout-dialog-close {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--flow-blue);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.checkout-dialog-body {
  padding: 0 22px 22px;
}

.checkout-address-panel {
  padding-top: 0;
}

.checkout-address-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

.checkout-address-list[hidden],
.checkout-address-form[hidden] {
  display: none !important;
}

.checkout-address-card {
  border: 1.5px solid #8aabff;
  background: #fff;
  border-radius: 4px;
  min-height: 112px;
  text-align: left;
  color: var(--flow-text);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-address-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--flow-blue);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkout-address-card::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--flow-blue);
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-address-card:hover,
.checkout-address-card:focus-visible,
.checkout-address-card.is-selected {
  border-color: var(--flow-blue);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(47,103,246,0.14);
  outline: 0;
}

.checkout-address-card:hover,
.checkout-address-card:focus-visible {
  transform: translateY(-2px);
}

.checkout-address-card:hover::before,
.checkout-address-card:focus-visible::before,
.checkout-address-card.is-selected::before {
  opacity: 1;
}

.checkout-address-card:hover::after,
.checkout-address-card:focus-visible::after,
.checkout-address-card.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.checkout-address-card.is-selected::after {
  background: var(--flow-blue);
  box-shadow: inset 0 0 0 4px #fff;
}

.checkout-address-card span,
.checkout-address-card strong,
.checkout-address-card b {
  grid-column: 1;
  position: relative;
  z-index: 1;
}

.checkout-address-card span {
  font-size: .8rem;
  font-weight: 700;
}

.checkout-address-card strong {
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 900;
}

.checkout-address-card b {
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 700;
}

.checkout-address-card em {
  grid-column: 2;
  /*grid-row: 1 / 3;*/
  color: var(--flow-blue);
  background: rgba(47,103,246,0.08);
  border-radius: 999px;
  font-size: .68rem;
  font-style: normal;
  white-space: nowrap;
  padding: 4px 8px;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.checkout-address-card:hover em,
.checkout-address-card:focus-visible em,
.checkout-address-card.is-selected em {
  background: var(--flow-blue);
  color: #fff;
  transform: translateX(-2px);
}

.checkout-add-address {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--flow-blue);
  border-radius: 4px;
  background: #fff;
  color: var(--flow-blue);
  font-size: .85rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-add-address:hover,
.checkout-add-address:focus-visible {
  background: var(--flow-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47,103,246,0.18);
  outline: 0;
  transform: translateY(-1px);
}

.checkout-address-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 16px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field > span,
.checkout-primary-check b {
  color: #3a3d45;
  font-size: .78rem;
  font-weight: 900;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  border: 1.5px solid #d9e2ff;
  border-radius: 6px;
  background: #fff;
  color: var(--flow-text);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  padding: 11px 12px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-field textarea {
  resize: vertical;
  min-height: 88px;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
  color: #a4a7af;
  font-weight: 600;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  border-color: var(--flow-blue);
  background: #fbfdff;
  box-shadow: 0 0 0 4px rgba(47,103,246,0.1);
}

.checkout-primary-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkout-primary-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-primary-check > span {
  width: 22px;
  height: 22px;
  border: 1.8px solid #9fa3a8;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.checkout-primary-check > span::after {
  content: '';
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkout-primary-check input:checked + span {
  background: var(--flow-blue);
  border-color: var(--flow-blue);
}

.checkout-primary-check input:checked + span::after {
  opacity: 1;
}

.checkout-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
}

.checkout-form-back,
.checkout-form-submit {
  height: 44px;
  border-radius: 5px;
  font-size: .86rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-back {
  border: 1.5px solid #cfd9ff;
  background: #fff;
  color: var(--flow-blue);
}

.checkout-form-submit {
  border: 1.5px solid var(--flow-blue);
  background: var(--flow-blue);
  color: #fff;
}

.checkout-form-back:hover,
.checkout-form-back:focus-visible,
.checkout-form-submit:hover,
.checkout-form-submit:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.checkout-form-back:hover,
.checkout-form-back:focus-visible {
  border-color: var(--flow-blue);
  background: #f4f8ff;
}

.checkout-form-submit:hover,
.checkout-form-submit:focus-visible {
  background: #2458d9;
  border-color: #2458d9;
  box-shadow: 0 12px 24px rgba(47,103,246,0.2);
}

.checkout-option-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 22px;
}

.checkout-option-card {
  min-height: 58px;
  border: 1.5px solid #8aabff;
  border-radius: 4px;
  background: #fff;
  color: var(--flow-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 11px 16px;
  cursor: pointer;
}

.checkout-option-card.is-selected {
  border-color: var(--flow-blue);
  background: var(--flow-blue-soft);
}

.checkout-option-card span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checkout-option-card strong {
  font-size: .98rem;
  font-weight: 900;
}

.checkout-option-card small {
  font-size: .68rem;
  color: #4c4e55;
}

.checkout-option-card b {
  font-size: .98rem;
  white-space: nowrap;
}

.checkout-simple-options {
  gap: 18px;
}

.checkout-simple-options .checkout-option-card {
  min-height: 46px;
}

@media (min-width: 768px) {
  .checkout-sheet {
    padding: 0 34px;
  }

  .checkout-dialog-open {
    overflow: hidden;
  }
}

@media (min-width: 1200px) {
  .checkout-sheet {
    max-width: 1260px;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .checkout-sheet {
    padding: 0 18px;
  }

  .checkout-product-name {
    max-width: 360px;
  }

  .checkout-total-row {
    grid-template-columns: minmax(0, 1fr) auto 390px;
  }

  .checkout-overlay {
    padding-top: 445px;
  }

  .checkout-dialog {
    width: min(700px, 76vw);
  }
}

@media (max-width: 767.98px) {
  .checkout-main {
    padding-bottom: 0;
  }

  .checkout-order-row {
    padding: 16px 28px 16px;
    font-size: .9rem;
  }

  .checkout-address-block {
    padding: 18px 28px 18px;
  }

  .checkout-row-title {
    margin-bottom: 14px;
    font-size: .96rem;
  }

  .checkout-address-type {
    font-size: .93rem;
  }

  .checkout-address-block strong,
  .checkout-address-block b {
    font-size: 1rem;
  }

  .checkout-address-block span:not(.checkout-row-title):not(.checkout-address-type) {
    font-size: .9rem;
    line-height: 1.32;
  }

  .checkout-product {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 28px 22px;
    min-height: 172px;
  }

  .checkout-product-media {
    width: 108px;
    height: 108px;
    grid-row: 1 / 3;
  }

  .checkout-product-cam {
    transform: scale(0.84);
  }

  .checkout-product-name {
    font-size: .98rem;
    max-width: none;
  }

  .checkout-product-desc {
    font-size: .78rem;
  }

  .checkout-tags b,
  .checkout-tags em {
    height: 27px;
    font-size: .7rem;
  }

  .checkout-product-qty {
    margin-top: 26px;
    font-size: 1rem;
  }

  .checkout-product-price {
    grid-column: 2;
    justify-self: end;
    align-self: end;
    font-size: 1rem;
  }

  .checkout-subtotal {
    margin: 30px 28px 16px;
    padding-top: 24px;
    font-size: .92rem;
  }

  .checkout-shipping-head {
    height: 48px;
    padding: 0 28px;
  }

  .checkout-shipping-row {
    min-height: 76px;
    padding: 12px 28px 14px;
  }

  .checkout-shipping-row strong {
    font-size: 1rem;
  }

  .checkout-tax {
    margin: 28px 28px 30px;
  }

  .checkout-tax span {
    width: 26px;
    height: 26px;
  }

  .checkout-total-row {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 24px 28px 18px;
  }

  .checkout-total-row span,
  .checkout-total-row strong {
    font-size: .98rem;
  }

  .checkout-pay-btn {
    grid-column: 1 / 3;
    height: 54px;
    font-size: .95rem;
  }

  .checkout-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }

  .checkout-dialog {
    width: 100%;
    max-height: calc(100vh - 92px);
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
  }

  .checkout-dialog--short {
    max-height: calc(100vh - 230px);
  }

  .checkout-dialog-head {
    height: 66px;
  }

  .checkout-dialog-head h2 {
    font-size: .94rem;
  }

  .checkout-dialog-close {
    right: 8px;
    font-size: 1.6rem;
  }

  .checkout-dialog-body {
    padding: 0 28px 28px;
  }

  .checkout-address-list {
    gap: 26px;
  }

  .checkout-address-card {
    min-height: 148px;
    padding: 16px;
  }

  .checkout-address-card span {
    font-size: .9rem;
  }

  .checkout-address-card strong {
    font-size: 1rem;
  }

  .checkout-address-card b {
    font-size: .9rem;
  }

  .checkout-address-card em {
    font-size: .72rem;
  }

  .checkout-add-address {
    height: 56px;
    font-size: .92rem;
  }

  .checkout-address-form {
    padding-top: 8px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkout-field input,
  .checkout-field select,
  .checkout-field textarea {
    font-size: .9rem;
    padding: 12px;
  }

  .checkout-primary-check > span {
    width: 24px;
    height: 24px;
  }

  .checkout-form-actions {
    grid-template-columns: 1fr;
  }

  .checkout-form-back,
  .checkout-form-submit {
    height: 52px;
    font-size: .92rem;
  }

  .checkout-option-list {
    gap: 18px;
    padding-top: 18px;
  }

  .checkout-option-card {
    min-height: 76px;
    padding: 13px 16px;
  }

  .checkout-simple-options .checkout-option-card {
    min-height: 60px;
  }
}

@media (max-width: 430px) {
  .flow-mobile-hd {
    padding: 0 20px;
  }

  .checkout-order-row,
  .checkout-address-block,
  .checkout-product,
  .checkout-shipping-head,
  .checkout-shipping-row,
  .checkout-total-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .checkout-subtotal,
  .checkout-tax {
    margin-left: 20px;
    margin-right: 20px;
  }

  .checkout-product {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .checkout-product-media {
    width: 104px;
    height: 104px;
  }

  .checkout-product-name {
    font-size: .92rem;
  }
}

/* ===========================
   PAYMENT PAGE
   =========================== */
.payment-title-medium {
  display: none;
}

.payment-method-step {
  color: var(--flow-text);
}

.payment-method-panel {
  background: #fbfafb;
  box-shadow: 0 24px 34px rgba(90,48,100,0.06);
  padding: 0 42px 48px;
}

.payment-method-panel h1 {
  color: var(--flow-text);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 22px;
}

.payment-method-row {
  width: 100%;
  min-height: 58px;
  border: 1.5px solid #8aabff;
  border-radius: 5px;
  background: transparent;
  color: var(--flow-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  margin-bottom: 22px;
  text-align: left;
  cursor: pointer;
}

.payment-method-row strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.payment-method-row small {
  font-size: .82rem;
  color: #55575e;
  margin-left: 4px;
}

.qris-mark {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #111;
  transform: skewX(-5deg);
}

.payment-check {
  width: 24px;
  height: 24px;
  border: 2px solid #9fa3a8;
  border-radius: 4px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-check::after {
  content: '';
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}

.payment-method-row.is-selected > .payment-check,
.payment-bank-row.is-selected .payment-check {
  background: var(--flow-blue);
  border-color: var(--flow-blue);
}

.payment-method-row.is-selected > .payment-check::after,
.payment-bank-row.is-selected .payment-check::after {
  opacity: 1;
}

.payment-transfer {
  display: block;
  padding: 0;
}

.payment-transfer-head {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--flow-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  text-align: left;
  cursor: pointer;
}

.payment-transfer-head i,
.payment-card-head i {
  color: #111;
  font-size: 1.05rem;
}

.payment-bank-list {
  display: none;
  padding: 0 24px 12px;
}

.payment-transfer.is-open .payment-bank-list {
  display: block;
}

.payment-transfer.is-open .payment-transfer-head i,
.payment-card-head i {
  transform: rotate(0deg);
}

.payment-bank-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--flow-text);
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.payment-bank-row strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.bank-logo {
  width: 28px;
  color: #0756a8;
  font-size: .55rem;
  font-weight: 900;
  line-height: 1;
}

.bank-logo--mandiri {
  color: #0d5fa8;
  font-size: .42rem;
}

.payment-card-head {
  margin-bottom: 0;
}

.payment-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.payment-confirm-btn {
  width: 380px;
  height: 48px;
  border: 0;
  border-radius: 5px;
  background: var(--flow-blue);
  color: #fff;
  /*background: #d1d1d1;*/
  /*color: #9b9b9b;*/
  font-size: 1rem;
  font-weight: 900;
  /*cursor: not-allowed;*/
  cursor: pointer;
}

.payment-confirm-btn.is-active {
  background: var(--flow-blue);
  color: #fff;
  cursor: pointer;
}

.payment-complete-step {
  color: var(--flow-text);
}

.payment-complete-step h1 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 20px;
}

.payment-countdown {
  background: #ffe7ad;
  border-radius: 4px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.payment-countdown span {
  font-size: .9rem;
}

.payment-countdown strong {
  font-size: .95rem;
  margin-top: 2px;
}

.payment-countdown b {
  font-size: 1.7rem;
  font-weight: 900;
  margin-top: 18px;
}

.payment-complete-step h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 16px;
}

.payment-account-grid {
  display: grid;
  gap: 18px;
}

.payment-account-card {
  border: 1.5px solid #2f67f6;
  border-radius: 4px;
  padding: 16px 24px 18px;
  text-align: center;
}

.payment-account-badge {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 15px;
  background: #efc75f;
  color: #4f3a0a;
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.payment-account-total {
  height: 48px;
  background: #8ea9ef;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  color: var(--flow-text);
  text-align: left;
  padding: 0 4px;
  margin-bottom: 12px;
}

.payment-account-total span {
  font-size: .95rem;
}

.payment-account-total strong {
  color: var(--flow-blue);
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.payment-account-total button,
.payment-account-number button {
  border: 0;
  background: transparent;
  color: #2d3038;
  padding: 0;
  font-size: 1rem;
}

.payment-account-card p {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: .95rem;
}

.payment-account-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--flow-text);
  font-size: 1.22rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.payment-account-card > strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.payment-auto-note {
  color: #55575e;
  text-align: center;
  margin: 20px auto 22px;
  max-width: 900px;
  font-size: .9rem;
}

.payment-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-outline-btn,
.payment-shop-again {
  width: 100%;
  height: 46px;
  border: 1.5px solid #2f67f6;
  border-radius: 4px;
  background: #fff;
  color: #2f67f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
}

.payment-shop-again {
  display: none;
  background: #2f67f6;
  color: #fff;
}

@media (min-width: 768px) {
  .payment-method-step {
    min-height: 720px;
  }

  .payment-method-panel {
    padding-top: 0;
  }
}

@media (min-width: 1200px) {
  .payment-method-panel {
    padding-top: 0;
  }

  .payment-account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .payment-title-desktop {
    display: none;
  }

  .payment-title-medium {
    display: inline;
  }

  .payment-method-step {
    min-height: 780px;
  }

  .payment-method-panel {
    padding: 0 52px 60px;
  }

  .payment-method-panel h1 {
    transform: translateY(-8px);
  }

  .payment-action-row {
    padding-right: 52px;
  }

  .payment-confirm-btn {
    width: 430px;
    height: 58px;
  }
}

@media (max-width: 767.98px) {
  .payment-main {
    background: #fbfafb;
  }

  .payment-method-step {
    min-height: 880px;
    display: flex;
    flex-direction: column;
  }

  .payment-method-panel {
    box-shadow: none;
    padding: 30px 28px 0;
  }

  .payment-method-panel h1 {
    font-size: 1rem;
    margin-bottom: 26px;
  }

  .payment-method-row {
    min-height: 58px;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .payment-method-row strong {
    font-size: 1rem;
  }

  .payment-method-row small {
    font-size: .82rem;
  }

  .payment-transfer-head {
    min-height: 58px;
    padding: 0 16px;
  }

  .payment-bank-list {
    padding: 0 16px 10px;
  }

  .payment-bank-row {
    min-height: 48px;
  }

  .payment-action-row {
    margin-top: auto;
    padding: 18px 28px 18px;
    background: #fff;
    box-shadow: 0 -18px 30px rgba(90,48,100,0.08);
  }

  .payment-confirm-btn {
    width: 100%;
    height: 62px;
    font-size: .98rem;
  }

  .payment-complete-step {
    background: #fff;
    padding: 28px 28px 0;
  }

  .payment-complete-step h1 {
    font-size: .95rem;
    margin-bottom: 14px;
  }

  .payment-countdown {
    min-height: 146px;
    margin-bottom: 34px;
  }

  .payment-countdown b {
    font-size: 1.75rem;
  }

  .payment-complete-step h2 {
    font-size: .92rem;
    line-height: 1.25;
  }

  .payment-account-grid {
    gap: 16px;
  }

  .payment-account-card {
    padding: 10px 26px 18px;
  }

  .payment-account-badge {
    display: flex;
    width: max-content;
    margin-left: 0;
  }

  .payment-account-total {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    height: 56px;
    padding: 0 4px;
  }

  .payment-account-total span {
    font-size: .9rem;
  }

  .payment-account-total strong {
    font-size: .95rem;
  }

  .payment-account-card p {
    font-size: .86rem;
  }

  .payment-account-number {
    font-size: 1.1rem;
  }

  .payment-account-card > strong {
    font-size: .98rem;
  }

  .payment-auto-note {
    font-size: .75rem;
    line-height: 1.55;
    margin: 54px auto 10px;
  }

  .payment-complete-actions {
    background: #fff;
    box-shadow: 0 -18px 30px rgba(90,48,100,0.08);
    padding: 8px 0 18px;
  }

  .payment-outline-btn,
  .payment-shop-again {
    height: 54px;
    font-size: .95rem;
  }

  .payment-shop-again {
    display: inline-flex;
    margin-top: 22px;
  }
}

@media (max-width: 430px) {
  .payment-method-panel,
  .payment-action-row,
  .payment-complete-step {
    padding-left: 20px;
    padding-right: 20px;
  }

  .payment-method-row small {
    font-size: .75rem;
  }

  .payment-account-card {
    padding-left: 26px;
    padding-right: 26px;
  }
}
