:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #1f2937;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-soft: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.12);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 720px;
}
.section-header { margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-light); }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(15,23,42,0.08); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 36px; width: auto; }
.logo-text {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.header-contact {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-light); font-size: 14px;
}
.header-contact a { color: var(--primary); font-weight: 600; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--primary); cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  display: flex; align-items: center;
  background: var(--primary);
  overflow: hidden;
  margin-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 55%, rgba(15,23,42,0.4) 100%),
              url('assets/products/003_Starry_Sky_Temp_Bottle.jpg') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; padding: 100px 0; }
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero h1 span { color: #93c5fd; }
.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats {
  background: var(--bg-light);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

/* Categories */
.categories { background: #fff; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card .card-img {
  height: 240px;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.category-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.category-card:hover .card-img img { transform: scale(1.05); }
.category-card .card-body { padding: 28px; }
.category-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--primary);
  margin-bottom: 6px;
}
.category-card p {
  font-size: 14px; color: var(--text-light);
  margin-bottom: 16px;
}
.category-card .link {
  color: var(--accent); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card .img-wrap .no-img {
  color: var(--text-light); font-size: 13px; text-align: center; padding: 20px;
}
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 100px;
}
.product-card .info { padding: 18px; }
.product-card h4 {
  font-size: 15px; font-weight: 600; color: var(--primary);
  margin-bottom: 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.product-card .meta {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 14px;
}
.product-card .meta span {
  display: inline-block; margin-right: 10px;
}
.product-card .actions {
  display: flex; gap: 8px;
}
.product-card .btn-sm {
  flex: 1; padding: 9px 12px; font-size: 13px; border-radius: 6px;
}

/* Why us */
.why-us { background: var(--bg-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  background: #fff; padding: 32px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.why-icon {
  width: 60px; height: 60px; margin: 0 auto 20px;
  background: rgba(59,130,246,0.1); color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.why-item p { font-size: 14px; color: var(--text-light); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: #fff; text-align: center;
}
.cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* Footer */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { font-size: 14px; transition: color 0.2s; }
.footer ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.footer-contact strong { color: #fff; font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px;
}

/* Products page */
.products-page { margin-top: 72px; padding: 40px 0 80px; background: var(--bg-light); }
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}
.filters {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  height: fit-content;
  position: sticky; top: 92px;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text);
  cursor: pointer; transition: color 0.2s;
}
.filter-option:hover { color: var(--accent); }
.filter-option input { width: 16px; height: 16px; accent-color: var(--accent); }
.filter-count { margin-left: auto; color: var(--text-light); font-size: 12px; }
.products-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.products-toolbar h2 { font-size: 24px; font-weight: 700; color: var(--primary); }
.products-toolbar .count { color: var(--text-light); font-size: 14px; }
.products-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.no-results {
  text-align: center; padding: 80px 20px; color: var(--text-light);
}

/* About page */
.about-page { margin-top: 72px; }
.about-hero {
  background: var(--primary); color: #fff; padding: 100px 0 80px;
  text-align: center;
}
.about-hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; }
.about-hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; }
.about-content { padding: 80px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-grid h2 { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.about-grid p { color: var(--text-light); margin-bottom: 16px; }
.license-img { max-width: 420px; border: 1px solid var(--border); border-radius: 8px; }

/* Contact page */
.contact-page { margin-top: 72px; padding: 80px 0; background: var(--bg-light); }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info-card {
  background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-info-card h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  width: 48px; height: 48px; background: rgba(59,130,246,0.1);
  color: var(--accent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-item h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.contact-item p { font-size: 15px; color: var(--text-light); }
.contact-form {
  background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.contact-form p { color: var(--text-light); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.6);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
}
.modal-img { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 36px; }
.modal-body h3 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.modal-body .meta { color: var(--text-light); margin-bottom: 20px; }
.modal-body .meta-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid-page { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 240px 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .header-contact { display: none; }
  .mobile-menu-btn { display: block; }
  .stats-grid, .category-grid, .why-grid, .product-grid { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .products-grid-page { grid-template-columns: 1fr; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .modal { grid-template-columns: 1fr; }
}
