/* Premium Modern Product Page Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0118;
  --bg-secondary: #1a0b2e;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #10a37f 0%, #21b18c 100%);
  --card-glass: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #e0e7ff;
  --text-muted: #9ca3af;
  --accent: #10a37f;
  --accent-hover: #21b18c;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(16, 163, 127, 0.3);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html,
body {
  background: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(118, 75, 162, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 163, 127, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(245, 87, 108, 0.1) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(14px, 0.6vw + 10px, 16px);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 1, 24, 0.8);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.primary {
  display: flex;
  gap: 20px;
}

.primary a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.primary a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.primary a:hover {
  color: var(--text-primary);
}

.primary a:hover::after {
  width: 100%;
}

/* Breadcrumbs */
.crumbs {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 10px 0;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.crumbs a:hover {
  color: var(--accent-hover);
}

/* Product Hero Layout */
.product-hero {
  display: grid;
  grid-template-columns: minmax(300px, 450px) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 20px;
  align-items: start;
}

/* Product Image Card */
.art-card {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.art-img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.art-card:hover .art-img {
  transform: scale(1.05);
}

/* Right Panel */
.panel {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* Price Row */
.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 163, 127, 0.1);
  border: 1px solid rgba(16, 163, 127, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-hover);
  backdrop-filter: blur(10px);
}

.brand-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
}

.price-tag .amount {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag .ccy {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 1rem;
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.stars .cnt {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 0.9rem;
}

/* Plan Groups */
.plan-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.3s ease;
}

.plan-group:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 163, 127, 0.3);
}

.plan-group + .plan-group {
  margin-top: 14px;
}

.plan-group h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  --ring: rgba(16, 163, 127, 0.5);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 600;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(16, 163, 127, 0.2);
  border-color: var(--accent);
}

.chip small.price {
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  margin-left: 10px;
  box-shadow: 0 0 15px rgba(16, 163, 127, 0.3);
}

.chip--plan[aria-selected="true"],
.chip.active {
  background: rgba(16, 163, 127, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2), var(--shadow-glow);
  transform: translateY(-2px);
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.qty .btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty .btn:hover {
  background: rgba(16, 163, 127, 0.2);
  color: var(--accent-hover);
}

.qty .btn:active {
  transform: scale(0.95);
}

.qty .input {
  width: 80px;
  height: 44px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  color: var(--text-primary);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  background: rgba(16, 163, 127, 0.08);
  border: 1px solid rgba(16, 163, 127, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}

.summary div {
  color: var(--text-secondary);
  font-weight: 600;
}

.summary .price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-hover);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(13px, 0.9vw, 15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.btn--accent {
  background: var(--gradient-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  font-weight: 800;
}

.btn--accent:hover {
  box-shadow: var(--shadow-md), 0 0 40px rgba(16, 163, 127, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-pop {
  filter: saturate(110%);
}

.btn-pay {
  flex: 1 1 auto;
  min-width: 150px;
}

/* Feature Pills */
.chips[aria-hidden="true"] .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  pointer-events: none;
  padding: 10px 16px;
  font-weight: 600;
}

.hr-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: 20px 0;
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.badge--accent {
  background: rgba(16, 163, 127, 0.15);
  color: var(--accent-hover);
  border: 1px dashed rgba(16, 163, 127, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

/* Description Card */
.desc-card {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.desc-card h3 {
  margin: 20px 0 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desc-card h3:first-child {
  margin-top: 0;
}

.desc-card p {
  margin: 12px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.desc-card ul {
  margin: 12px 0 16px 20px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.desc-card li {
  margin: 8px 0;
}

.desc-card strong {
  color: var(--text-primary);
  font-weight: 700;
}

.desc-card details {
  margin-top: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.desc-card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.3s ease;
}

.desc-card summary:hover {
  color: var(--accent-hover);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  margin: 40px 0 20px;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stacked Plan Layout */
#pPlans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#pPlans .plan-group {
  padding: 12px;
}

#pPlans .plan-group .chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#pPlans .chip--plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  gap: 10px;
}

#pPlans .chip--plan small.price {
  margin-left: auto;
}

#pPlans .plan-group + .plan-group {
  margin-top: 6px;
}

/* WhatsApp Floating Button */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: none;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-fab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(16, 163, 127, 0.5);
}

.wa-fab svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-fab .txt {
  display: block;
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 880px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .art-card {
    position: relative;
    top: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .panel {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .topbar .inner {
    padding: 12px 0;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .primary {
    gap: 12px;
  }

  .primary a {
    font-size: 0.85rem;
  }

  .panel {
    padding: 16px;
  }

  .panel h1 {
    font-size: 1.3rem;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .desc-card {
    padding: 18px;
  }

  .wa-fab {
    padding: 12px;
    right: 16px;
    bottom: 16px;
  }

  .wa-fab .txt {
    display: none;
  }

  #pPlans .chip--plan {
    padding: 10px 14px;
  }

  #pPlans .plan-group {
    padding: 10px;
  }
}

/* Ultra small screens */
@media (max-width: 480px) {
  #pPlans .chip--plan {
    font-size: 12px;
    padding: 9px 12px;
  }

  .chip small.price {
    font-size: 11px;
    padding: 3px 10px;
  }
}
