:root {
  --navy: #0b1530;
  --navy-soft: #101935;
  --gold: #f5b800;
  --gold-soft: #fef3c7;
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --card-border: #e5e7eb;
  --btn-dark: #111827;
  --btn-dark-text: #f9fafb;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.2);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.promo-bar {
  background: var(--navy);
  color: #f9fafb;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* HEADER */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 10px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-wrap img {
  height: 46px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--navy);
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  cursor: pointer;
}

nav a:hover {
  color: var(--navy);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.cart-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.cart-icon:hover {
  transform: scale(1.1);
  border-color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* HERO SECTION (INDEX PAGE) */
.hero {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 0%, #f9fafb 40%, #e5efff 100%);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
}

.hero-left {
  padding: 32px 32px 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--navy-soft);
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 460px;
}

.hero-note span {
  font-weight: 600;
  color: var(--navy);
}

.hero-right {
  padding: 24px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #ffffff 0%, #e5efff 40%, #dbeafe 100%);
  position: relative;
}

.hero-vial {
  width: 170px;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 80%);
  border: 1px solid #d1d5db;
  position: relative;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}

.hero-cap {
  width: 80%;
  height: 40px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  border: 1px solid #bfdbfe;
  margin-bottom: 10px;
}

.hero-label {
  width: 78%;
  height: 140px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--navy-soft);
}

.hero-label-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label-small {
  color: var(--muted);
  font-size: 0.74rem;
}

.hero-label-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-flag-strip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
}

/* BUTTONS */
.btn-primary, .btn-ghost {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  border-color: #111827;
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #ffffff;
  color: var(--navy-soft);
  border-color: #d1d5db;
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.btn-small {
  border-radius: 999px;
  border: 1px solid #111827;
  padding: 6px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #111827;
  color: #f9fafb;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-small:hover {
  background: #ffffff;
  color: #111827;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 10px 18px;
  margin: 20px 0;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  border-color: var(--gold);
  color: var(--navy);
  transform: translateX(-4px);
}

/* SECTIONS */
.section {
  margin-top: 40px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
}

/* PRODUCT GRID (INDEX PAGE) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 540px;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.product-image {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #e5efff 0%, #f9fafb 70%);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  object-fit: cover;
  margin-bottom: 15px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.product-desc {
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 36px;
  line-height: 1.5;
}

.product-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.price {
  font-weight: 600;
  color: var(--navy-soft);
  font-size: 20px;
}

/* PRODUCT DETAIL PAGE */
.product-detail {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  animation: fadeIn 0.3s ease;
}

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

.product-detail-image {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #e5efff 0%, #f9fafb 70%);
  height: 523px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-info h1 {
  font-size: 2rem;
  color: var(--navy-soft);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.product-detail-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  width: fit-content;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}

.product-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
}

.product-detail-specs {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.product-detail-specs h3 {
  font-size: 1rem;
  color: var(--navy-soft);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-detail-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail-specs li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.product-detail-specs li:last-child {
  border-bottom: none;
}

.product-detail-specs li strong {
  color: var(--navy-soft);
  font-weight: 600;
}

.product-detail-warning {
  background: #fef3c7;
  border-left: 4px solid var(--gold);
  padding: 15px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--navy);
  line-length: 1;
  height: 70px;
}

.product-detail-warning strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-detail-actions .btn-primary {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ABOUT SECTION */
.about {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 16px 18px 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.about strong {
  color: var(--navy-soft);
}

/* FOOTER */
footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

footer span:last-child {
  text-align: right;
}

/* MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 15px 45px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content h2 {
  margin-bottom: 10px;
  color: var(--navy);
}

.modal-content label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 10px;
  color: var(--navy);
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.close {
  float: right;
  font-size: 1.6rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

.close:hover {
  color: #000;
}

/* CART MODAL */
.cart-items {
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9fafb;
}

.cart-item-name {
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.cart-item-remove {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-item-remove:hover {
  background: #dc2626;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.cart-summary {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #e5e7eb;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  nav {
    display: none;
  }
  
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .hero-right {
    order: -1;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  
  .product-detail-image {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .hero-left {
    padding: 24px 18px 22px;
  }
  
  .hero-right {
    padding: 18px;
  }
  
  .main-header {
    flex-wrap: wrap;
  }
  
  .product-detail {
    padding: 20px;
  }
  
  .product-detail-info h1 {
    font-size: 1.5rem;
  }
  
  .product-detail-price {
    font-size: 1.5rem;
  }
  
  .product-detail-image {
    height: 300px;
  }
}