* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f5f7;
  color: #111;
}

header {
  background: linear-gradient(90deg, #08142e, #0b1f4f);
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  height: 54px;
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 18px;
}

.search-btn {
  width: 64px;
  height: 54px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
}

.top-actions a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.top-login-btn {
  border: none;
  background: white;
  color: #0b1f4f;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.nav-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-chip {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  transition: 0.2s ease;
}

.nav-chip.active {
  background: white;
  color: #0b1f4f;
}

.hero {
  background: linear-gradient(120deg, #e60019, #ff2a2a 55%, #ff5f5f);
  color: white;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 18px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.02;
  margin-bottom: 14px;
  font-weight: 900;
}

.hero p {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
}

.hero-box {
  background: rgba(11,31,79,0.82);
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 800;
  display: inline-block;
  margin-top: 18px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(0,0,0,0.22);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 18px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.category-card {
  background: white;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-card.active {
  outline: 3px solid #0b1f4f;
}

.category-card span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: #222;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: #0b1f4f;
}

.section-sub {
  color: #666;
  font-size: 17px;
}

.filters-bar {
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f4f7;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-pill.active {
  background: #0b1f4f;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.product-body {
  padding: 18px;
}

.product-type {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #193a8a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 10px;
  min-height: 50px;
}

.product-price {
  font-size: 19px;
  font-weight: 900;
  color: #e60023;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 16px;
  line-height: 1.45;
  color: #444;
  margin-bottom: 14px;
  min-height: 68px;
}

.product-actions {
  display: grid;
  gap: 12px;
}

.btn-main,
.btn-secondary,
.btn-whatsapp,
.promo-single {
  border: none;
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.btn-main {
  background: #ff6a00;
  color: white;
}

.btn-secondary {
  background: #edf0f4;
  color: #111;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.promo-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 66px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #b80018, #ff233f 60%, #ff6a00 100%);
  color: white;
  border: 2px solid #0b1f4f;
  box-shadow: 0 12px 24px rgba(11, 31, 79, 0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.promo-single:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(11, 31, 79, 0.28);
}

.promo-single .promo-flame {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.promo-single .promo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.promo-single .promo-label {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.95;
}

.promo-single .promo-value {
  font-size: 22px;
  font-weight: 900;
}

.subscribe {
  background: linear-gradient(120deg, #08142e, #10295f);
  color: white;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.subscribe h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.subscribe p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
}

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input {
  min-width: 260px;
  height: 48px;
  border-radius: 12px;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 16px;
}

.subscribe-form button {
  height: 48px;
  border: none;
  border-radius: 12px;
  padding: 0 22px;
  background: #ff6a00;
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.loading,
.error-box {
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
  color: #444;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.modal-backdrop.active {
  display: flex;
}

.modal-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 14px;
  background: rgba(255,255,255,0.92);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal {
  background: white;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.20);
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr;
  background: #fafafa;
}

.modal-main-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.thumb-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  background: white;
}

.thumb-row img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.thumb-row img.active {
  border-color: #ff6a00;
}

.modal-content {
  padding: 22px;
}

.modal h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.modal p {
  font-size: 17px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-price {
  color: #ff002b;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 18px;
}

.purchase-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-box input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d7dce3;
  outline: none;
  padding: 0 14px;
  font-size: 16px;
  background: white;
}

.purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.purchase-label {
  font-size: 18px;
  font-weight: bold;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.qty-value {
  min-width: 42px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}

.total-box {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 14px;
  font-size: 20px;
  font-weight: bold;
}

.small {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.user-line {
  background: #f7f7fb;
  border-radius: 12px;
  padding: 10px 12px;
}

.purchase-message,
#loginMessage {
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25D366;
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 22px;
  }

  .subscribe {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand {
    font-size: 22px;
  }

  .section-title {
    font-size: 28px;
  }

  .modal h2 {
    font-size: 28px;
  }

  .modal-main-image {
    height: 260px;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-wrap input {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 19px;
  }

  .hero-box {
    font-size: 18px;
  }

  .promo-single {
    min-height: 62px;
    padding: 14px 14px;
  }

  .promo-single .promo-value {
    font-size: 19px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 14px;
  }
}