@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@500;600;700;800;900&display=swap');

:root {
  --bg: #040810;
  --bg-light: #060d18;
  --surface: rgba(9, 17, 32, 0.75);
  --line: rgba(13, 162, 231, 0.15);
  --line-active: rgba(13, 162, 231, 0.4);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #0da2e7;
  --cyan-glow: rgba(13, 162, 231, 0.25);
  --gold: #fdbb2d;
  --red: #ef4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-shadow: 0 0 15px rgba(13, 162, 231, 0.2);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  letter-spacing: 0.5px;
}

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

a:hover {
  filter: brightness(1.2);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 28px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
}

.nav-desktop {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
  border-bottom: 2px solid var(--cyan);
}

.header-coupon {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.coupon-code {
  color: var(--gold);
  background: rgba(253, 187, 45, 0.1);
  border: 1px solid rgba(253, 187, 45, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* Main Container & View States */
.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.app-view {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.app-view.active {
  display: block;
}

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

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
  background: radial-gradient(circle at center, rgba(13, 162, 231, 0.08) 0%, transparent 70%);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-title .glow-text {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(13, 162, 231, 0.4);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 24px;
  font-weight: 400;
}

.hero-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(13, 162, 231, 0.05);
  padding: 6px 14px;
  border-radius: 50px;
}

/* Benefits Grid (Home) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cyan);
  opacity: 0;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-active);
  box-shadow: 0 12px 40px 0 rgba(13, 162, 231, 0.1);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.benefit-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.benefit-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.benefit-card-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.benefit-card-link::after {
  content: '→';
  transition: var(--transition);
}

.benefit-card:hover .benefit-card-link::after {
  transform: translateX(5px);
}

/* View Header */
.view-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.back-link {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--cyan);
}

.benefit-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.benefit-description {
  color: var(--muted);
  font-size: 15px;
}

/* Ranking Table Headers */
.ranking-header-bar {
  background: rgba(13, 162, 231, 0.05);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ranking-legend {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan);
}

/* Product Card */
.product-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 24px;
  padding: 24px;
  display: flex;
  gap: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--line-active);
}

/* Ranking Badge */
.rank-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--cyan);
  color: #040810;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: var(--neon-shadow);
}

.rank-badge.rank-1 {
  background: var(--gold);
}

/* Product Card Image */
.product-image-container {
  width: 180px;
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(9, 17, 32, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.product-img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Product Card Info */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title-bar {
  margin-bottom: 12px;
}

.product-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.product-presentation {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-description {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Specs Grid */
.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  background: rgba(4, 8, 16, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.spec-label {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.spec-value {
  color: #ffffff;
  font-weight: 600;
}

.spec-item.spec-price .spec-value {
  color: var(--gold);
}

/* Buy Action Panel */
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cyan);
  color: #040810;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.buy-button:hover {
  background-color: transparent;
  color: var(--cyan);
}

/* Stacks section */
.stacks-section {
  margin-top: 50px;
  background: rgba(13, 162, 231, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.stacks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stack-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.stack-card h3 {
  font-size: 14px;
  color: #ffffff;
  border-left: 3px solid var(--red);
  padding-left: 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.stack-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.stack-card th {
  text-align: left;
  color: var(--muted);
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.stack-card td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stack-card tr:last-child td {
  border-bottom: none;
}

.stack-card td:last-child {
  color: var(--gold);
  font-weight: 600;
}

/* Reconstitution & Storage Content Styles */
.reconst-content-wrapper {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.reconst-content-wrapper h2 {
  font-size: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 30px 0 15px;
}

.reconst-content-wrapper h2:first-child {
  margin-top: 0;
}

.reconst-content-wrapper h3 {
  font-size: 14px;
  color: var(--cyan);
  margin: 20px 0 10px;
}

.reconst-content-wrapper p {
  color: #cbd5e1;
  margin-bottom: 12px;
}

.reconst-content-wrapper ul, .reconst-content-wrapper ol {
  padding-left: 20px;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.reconst-content-wrapper li {
  margin-bottom: 6px;
}

.reconst-content-wrapper blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(253, 187, 45, 0.05);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.reconst-content-wrapper blockquote p {
  margin-bottom: 0;
  color: #ffffff;
}

.reconst-content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 20px 0;
}

.reconst-content-wrapper th {
  background: rgba(13, 162, 231, 0.08);
  color: #ffffff;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
}

.reconst-content-wrapper td {
  padding: 12px 10px;
  border: 1px solid var(--line);
}

.reconst-content-wrapper hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Calculator View Layout */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.calc-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.card-title {
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Input Styles */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
}

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

.calc-input {
  width: 100%;
  background: #040810;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.calc-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--neon-shadow);
}

.input-suffix {
  position: absolute;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.input-group small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Calculator Outputs */
.result-box {
  background: rgba(13, 162, 231, 0.05);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--neon-shadow);
}

.result-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}

.result-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1.1;
  margin: 6px 0;
}

.result-unit {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  color: #ffffff;
}

#resultDoses {
  color: var(--gold);
}

/* Syringe visual mockup */
.syringe-visual {
  margin-top: 10px;
}

.syringe-title {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.syringe-body {
  height: 24px;
  background: #040810;
  border: 2px solid #5a738e;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.syringe-plunger {
  height: 100%;
  background: rgba(13, 162, 231, 0.35);
  border-right: 4px solid var(--cyan);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.syringe-ticks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
}

.syringe-ticks span {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 20px;
}

/* Accordion FAQ */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.faq-accordion-item:hover {
  border-color: var(--line-active);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger-question {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  padding-right: 20px;
}

.faq-trigger-icon {
  font-size: 16px;
  color: var(--cyan);
  transition: var(--transition);
}

.faq-accordion-item.active .faq-trigger-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(4, 8, 16, 0.2);
}

.faq-content-inner {
  padding: 0 24px 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.5;
}

.faq-content-inner a {
  text-decoration: underline;
}

/* Footer styling */
.app-footer {
  background: #020408;
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.ruo-notice {
  color: var(--red);
  font-weight: 600;
}

/* Responsive Rules */
@media (max-width: 860px) {
  .header-container {
    flex-direction: column;
    gap: 14px;
  }
  
  .nav-desktop {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .nav-desktop::-webkit-scrollbar {
    display: none;
  }
  
  .nav-item {
    white-space: nowrap;
  }
  
  .header-coupon {
    display: none;
  }

  .product-card {
    flex-direction: column;
  }

  .product-image-container {
    width: 100%;
    height: 200px;
  }

  .product-img {
    max-height: 180px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Category Tabs Bar */
.category-tabs-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  margin-top: 15px;
  margin-bottom: 25px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.category-tabs-bar::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari/Webkit */
}

.category-tab-btn {
  background: var(--bg-light);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-tab-btn:hover {
  border-color: var(--line-active);
  color: #ffffff;
}

.category-tab-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(13, 162, 231, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 211, 102, 0.6);
  filter: brightness(1.1);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  box-sizing: border-box;
  animation: waPulse 2s infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Animation for ranking list fade-in */
.ranking-list {
  animation: listFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Global Search Bar Styles */
.header-search-container {
  position: relative;
  width: 280px;
  margin: 0 16px;
  transition: all 0.3s ease;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.global-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.global-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.search-results-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(10, 18, 36, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(0, 242, 254, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-name {
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

.result-category {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.search-input-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}
.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

/* Highlight styling for searched products */
@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    border-color: var(--cyan);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 242, 254, 0);
    border-color: var(--cyan);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    border-color: var(--line);
  }
}

.product-card.search-highlight {
  animation: highlight-pulse 2s cubic-bezier(0.24, 0, 0.38, 1);
  border-color: var(--cyan) !important;
}

@media (max-width: 860px) {
  .header-search-container {
    width: 100%;
    margin: 0;
  }
}

/* Buy Combo and Copy Description Buttons */
.buy-combo-button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--red) 0%, #ff4b4b 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 75, 75, 0.2);
}

.buy-combo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
  filter: brightness(1.1);
}

.copy-desc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-desc-button:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.copy-desc-button:active {
  transform: scale(0.97);
}

/* Cost-Benefit, COA and Reconstitution styles */
.cost-benefit-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  text-transform: uppercase;
  z-index: 10;
}

.coa-trust-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.how-to-reconstitute-link {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.how-to-reconstitute-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Adjust product-actions alignment for desktop/mobile */
@media (max-width: 768px) {
  .cost-benefit-badge {
    right: 12px;
    font-size: 10px;
    padding: 3px 8px;
  }
  .how-to-reconstitute-link {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
}
