/* Glass panel */
.glass-panel {
  background: var(--pw-glass-bg);
  backdrop-filter: blur(var(--pw-glass-blur));
  -webkit-backdrop-filter: blur(var(--pw-glass-blur));
  border: 1px solid var(--pw-glass-border);
  border-radius: var(--pw-radius-fluid);
  box-shadow: var(--pw-shadow-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pw-space-sm);
  min-height: 48px;
  padding: 0 var(--pw-space-xl);
  border-radius: var(--pw-radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: transform var(--pw-transition), box-shadow var(--pw-transition), background var(--pw-transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--pw-gradient-water);
  color: var(--pw-pure-white);
  box-shadow: var(--pw-shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 194, 203, 0.35);
  color: var(--pw-pure-white);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--pw-crystal-blue);
  border: 1px solid var(--pw-crystal-blue);
}

.btn-secondary:hover {
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-md);
}

/* Header  icy glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  height: var(--pw-header-h);
  isolation: isolate;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--pw-shadow-ice);
  transition: box-shadow var(--pw-transition), border-color var(--pw-transition);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pw-header-glass);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  z-index: -2;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    var(--pw-header-ice-texture),
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.45) 0%, transparent 22%),
    radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 18%),
    radial-gradient(circle at 55% 80%, rgba(0, 194, 203, 0.2) 0%, transparent 25%);
  background-size: 180px 180px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 36px rgba(0, 136, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-header.is-scrolled::before {
  background: var(--pw-header-glass-scrolled);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}

.site-header.is-scrolled::after {
  opacity: 0.65;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--pw-space-lg);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--pw-space-sm);
  flex-shrink: 0;
}

.brand-link img,
.brand-link svg {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--pw-space-xs);
}

.nav-desktop a {
  padding: var(--pw-space-sm) var(--pw-space-md);
  color: var(--pw-deep-ocean);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--pw-radius-pill);
  border: 1px solid transparent;
  transition: background var(--pw-transition), color var(--pw-transition), border-color var(--pw-transition), box-shadow var(--pw-transition);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: rgba(255, 255, 255, 0.45);
  color: var(--pw-crystal-blue);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 136, 204, 0.1);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--pw-radius-soft);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--pw-transition), border-color var(--pw-transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--pw-deep-ocean);
  border-radius: 2px;
  transition: transform var(--pw-transition), opacity var(--pw-transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--pw-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgba(0, 194, 203, 0.32) 0%,
    rgba(0, 136, 204, 0.2) 40%,
    rgba(224, 242, 254, 0.42) 100%
  );
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  padding: var(--pw-space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--pw-space-sm);
  z-index: 105;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--pw-transition), visibility var(--pw-transition);
}

.nav-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: var(--pw-header-ice-texture);
  background-size: 200px 200px;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  position: relative;
  z-index: 1;
  display: block;
  padding: var(--pw-space-md) var(--pw-space-lg);
  color: var(--pw-deep-ocean);
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--pw-radius-fluid);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: rgba(255, 255, 255, 0.62);
  color: var(--pw-crystal-blue);
  border-color: rgba(255, 255, 255, 0.9);
}

.nav-mobile .btn-primary {
  margin-top: var(--pw-space-lg);
  width: 100%;
  border: none;
}

/* Mobile menu backdrop */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 54, 93, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Footer */
.site-footer {
  background: var(--pw-deep-ocean);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--pw-space-3xl) var(--pw-space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--pw-space-2xl);
  margin-bottom: var(--pw-space-2xl);
}

.footer-brand img,
.footer-brand svg {
  height: 40px;
  margin-bottom: var(--pw-space-md);
}

.footer-brand svg {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  color: var(--pw-pure-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--pw-space-md);
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  margin-bottom: var(--pw-space-sm);
}

.footer-col a:hover {
  color: var(--pw-fresh-aqua);
}

.footer-wa-secondary {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  margin-bottom: var(--pw-space-sm);
}

.footer-bottom {
  padding-top: var(--pw-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--pw-space-md);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: var(--pw-space-lg);
  bottom: var(--pw-space-lg);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--pw-transition), box-shadow var(--pw-transition);
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
  color: white;
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Form */
.form-group {
  margin-bottom: var(--pw-space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pw-deep-ocean);
  margin-bottom: var(--pw-space-sm);
}

.form-group .hint {
  font-size: 0.8125rem;
  color: var(--pw-river-stone);
  margin-top: var(--pw-space-xs);
  line-height: 1.75;
  letter-spacing: 0.025em;
  word-spacing: 0.05em;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: var(--pw-space-md);
  background: var(--pw-pure-white);
  border: 1px solid var(--pw-ice-frost);
  border-radius: var(--pw-radius-soft);
  transition: border-color var(--pw-transition), box-shadow var(--pw-transition);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.form-control:focus {
  outline: none;
  border-color: var(--pw-crystal-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.form-control.is-invalid {
  border-color: var(--pw-coral-red);
}

.form-error {
  color: var(--pw-coral-red);
  font-size: 0.8125rem;
  margin-top: var(--pw-space-xs);
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-row {
  display: grid;
  gap: var(--pw-space-lg);
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Switcher */
.product-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pw-space-sm);
  margin-bottom: var(--pw-space-2xl);
}

@media (min-width: 640px) {
  .product-switcher {
    grid-template-columns: repeat(4, 1fr);
  }
}

.switcher-btn {
  min-height: 56px;
  padding: var(--pw-space-md);
  border-radius: var(--pw-radius-fluid);
  background: var(--pw-pure-white);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pw-deep-ocean);
  transition: all var(--pw-transition);
  text-align: center;
}

.switcher-btn:hover {
  border-color: var(--pw-ice-frost);
  background: var(--pw-ice-frost);
}

.switcher-btn.is-active {
  border-color: var(--pw-crystal-blue);
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
  box-shadow: var(--pw-shadow-soft);
}

/* Qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--pw-space-md);
  background: var(--pw-pure-white);
  border-radius: var(--pw-radius-pill);
  padding: var(--pw-space-xs) var(--pw-space-md);
  border: 1px solid var(--pw-ice-frost);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pw-transition);
}

.qty-btn:hover {
  background: var(--pw-crystal-blue);
  color: white;
}

.qty-value {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--pw-deep-ocean);
}

/* Radio pills */
.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-sm);
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--pw-space-lg);
  border-radius: var(--pw-radius-pill);
  background: var(--pw-pure-white);
  border: 2px solid var(--pw-ice-frost);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--pw-transition);
  margin: 0;
}

.radio-pill input:checked + label {
  border-color: var(--pw-crystal-blue);
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pw-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-aqua {
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--pw-warm-sand);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--pw-clean-green);
}

/* Stars */
.stars {
  display: flex;
  gap: 2px;
  color: var(--pw-warm-sand);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* QRIS payment panel */
.qris-panel {
  margin-top: var(--pw-space-lg);
  padding: var(--pw-space-xl);
  border-radius: var(--pw-radius-fluid);
  background: rgba(224, 242, 254, 0.65);
  border: 1px solid rgba(0, 136, 204, 0.2);
}

.qris-panel--policy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pw-space-md);
  margin-block: var(--pw-space-lg);
}

.qris-panel__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pw-deep-ocean);
  margin-bottom: var(--pw-space-md);
}

.qris-panel__preview {
  display: flex;
  justify-content: center;
  padding: var(--pw-space-md);
  background: white;
  border-radius: var(--pw-radius-soft);
  box-shadow: var(--pw-shadow-soft);
  margin-bottom: var(--pw-space-md);
}

.qris-panel__preview img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.qris-panel--policy .qris-panel__preview img {
  width: 200px;
  height: 200px;
}

.qris-panel__actions {
  margin-top: var(--pw-space-md);
}

.qris-panel__note {
  margin-top: var(--pw-space-md);
}

/* Order flow guide */
.order-flow-guide {
  margin-top: var(--pw-space-xl);
  padding-top: var(--pw-space-xl);
  border-top: 1px solid rgba(0, 136, 204, 0.12);
}

.order-flow-guide h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--pw-space-md);
  color: var(--pw-deep-ocean);
}

.order-flow-block {
  margin-bottom: var(--pw-space-md);
}

.order-flow-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pw-crystal-blue);
  margin-bottom: var(--pw-space-sm);
}

.order-flow-steps ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.order-flow-steps li {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--pw-river-stone);
  padding: 0.2rem 0;
}

/* Order calculator & multi-product lines */
.order-divider {
  border: none;
  border-top: 1px solid rgba(0, 136, 204, 0.12);
  margin: var(--pw-space-xl) 0;
}

.btn-add-line {
  width: 100%;
}

.additional-lines {
  display: flex;
  flex-direction: column;
  gap: var(--pw-space-md);
  margin-bottom: var(--pw-space-md);
}

.order-line-extra {
  padding: var(--pw-space-lg);
  background: rgba(255, 255, 255, 0.55);
}

.order-line-extra__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--pw-space-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pw-deep-ocean);
}

.order-line-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-line-remove:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--pw-coral-red);
}

.order-calc-lines {
  margin-bottom: var(--pw-space-md);
}

.order-calc-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--pw-space-xs) var(--pw-space-md);
  padding: var(--pw-space-sm) 0;
  border-bottom: 1px solid rgba(0, 136, 204, 0.08);
  font-size: 0.875rem;
}

.order-calc-line:last-child {
  border-bottom: none;
}

.order-calc-line__name {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--pw-deep-ocean);
}

.order-calc-line__name small {
  font-weight: 500;
  color: var(--pw-river-stone);
}

.order-calc-line__detail {
  color: var(--pw-river-stone);
}

.order-calc-line__total {
  font-weight: 600;
  color: var(--pw-deep-ocean);
  text-align: right;
}

.order-calc-footer {
  border-top: 2px solid var(--pw-ice-frost);
  padding-top: var(--pw-space-md);
}

.order-calc-subtotal {
  font-weight: 600;
}

.order-calc-suffix {
  color: var(--pw-river-stone);
  font-size: 0.875rem;
}

.order-calc-total-qris .summary-row {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pw-crystal-blue);
}

.order-calc-hint {
  margin-top: var(--pw-space-md) !important;
  font-size: 0.8125rem !important;
}

.qris-total-highlight {
  text-align: center;
  padding: var(--pw-space-lg);
  margin-bottom: var(--pw-space-md);
  border-radius: var(--pw-radius-soft);
  background: linear-gradient(135deg, rgba(0, 194, 203, 0.15), rgba(224, 242, 254, 0.9));
  border: 1px solid rgba(0, 136, 204, 0.2);
}

.qris-total-highlight__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--pw-river-stone);
  margin-bottom: var(--pw-space-xs);
}

.qris-total-highlight strong {
  display: block;
  font-size: 1.5rem;
  color: var(--pw-crystal-blue);
  letter-spacing: -0.02em;
}

.qris-total-highlight__code {
  display: block;
  font-size: 0.75rem;
  color: var(--pw-river-stone);
  margin-top: var(--pw-space-xs);
}
