* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #f8f6f2;
  padding-bottom: 80px;
}

.floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 700px);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 60px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1050;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #1e1e1e;
  padding: 8px 10px;
  border-radius: 40px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.nav-icon-btn:hover, .nav-icon-btn:focus {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.nav-center {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #1e1e1e;
  padding: 0 8px;
  white-space: nowrap;
}

.search-icon-btn {
  margin-right: 2px;
}

.filter-bar {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 700px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 1040;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background 0.2s, backdrop-filter 0.2s;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  color: #5a5a5a;
  flex-shrink: 0;
}

.filter-search-wrap i {
  font-size: 0.95rem;
}

.filter-search {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: #1e1e1e;
  font-size: 0.9rem;
}

.filter-search::placeholder {
  color: #7b7b7b;
}

.filter-chip {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c2c2c;
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.4);
}

.filter-chip:hover,
.filter-chip.active {
  background: #1e1e1e;
  color: white;
  border-color: #1e1e1e;
}

.scrolled-glass {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.main-content {
  margin-top: 150px;
  padding: 0 16px;
}

.home-hero {
  background: white;
  border-radius: 32px;
  padding: 28px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.home-hero h1 {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}

.home-hero p {
  color: #4a4a4a;
  font-size: 1rem;
}

.product-card {
  position: relative;
  border: none;
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s, box-shadow 0.2s;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.product-share-trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1e1e1e;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-share-trigger:hover,
.product-share-trigger:focus-visible {
  background: #1e1e1e;
  color: #fff;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.product-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: #f0ede8;
  padding: 12px;
}

.product-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #1e1e1e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: 600;
  color: #1e1e1e;
  font-size: 1rem;
}

.category-badge {
  background: #f0ede8;
  color: #3a3a3a;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 40px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.detail-img-main {
  border-radius: 24px;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  background: #f0ede8;
}

.thumbnail-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.1s;
  background: #f0ede8;
  padding: 4px;
}

.thumbnail-img.active {
  border-color: #1e1e1e;
}

.whatsapp-btn {
  background: #25D366;
  border: none;
  border-radius: 60px;
  padding: 14px 24px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  transition: background 0.15s;
  width: 100%;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1da851;
  color: white;
}

.whatsapp-btn i {
  font-size: 1.4rem;
}

.contact-card {
  background: white;
  border-radius: 32px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.contact-card i {
  font-size: 2.8rem;
  color: #25D366;
  margin-bottom: 16px;
}

.wa-number {
  font-weight: 600;
  font-size: 1.6rem;
  color: #1e1e1e;
  word-break: break-word;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  z-index: 2000;
}

.search-modal.hidden {
  display: none;
}

.search-modal-panel {
  width: min(100%, 540px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  padding: 20px 18px 14px;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1e1e;
  letter-spacing: 0.02em;
}

.search-modal-close {
  background: transparent;
  color: #2b2b2b;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 12px;
}

.search-modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.search-modal-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f3ee;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 10px 14px;
}

.search-modal-icon {
  color: #5b5b5b;
  font-size: 1rem;
}

.search-modal-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: #1e1e1e;
}

.search-modal-input::placeholder {
  color: #7a7a7a;
}

.search-modal-clear {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #222;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-modal-submit {
  border: none;
  border-radius: 999px;
  background: #1e1e1e;
  color: white;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-suggestion-chip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #2d2d2d;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.search-results {
  max-height: 340px;
  overflow-y: auto;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e1e1e;
}

.search-result-item:hover {
  background: #f9f7f5;
}

.search-result-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #f0ede8;
}

.search-result-meta {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 0.76rem;
  color: #707070;
  text-transform: capitalize;
}

.search-empty {
  margin: 10px 0 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.product-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 13, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-share-modal.open {
  display: flex;
}

.product-share-panel {
  width: min(100%, 480px);
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.product-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-share-heading {
  margin: 0;
  color: #1e1e1e;
  font-size: 1.1rem;
  font-weight: 600;
}

.product-share-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f1ee;
  color: #1e1e1e;
  font-size: 1.4rem;
  line-height: 1;
}

.product-share-preview {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f8f6f2;
}

.product-share-image {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: #f0ede8;
}

.product-share-preview h3 {
  margin: 2px 0 4px;
  color: #1e1e1e;
  font-size: 1rem;
  font-weight: 600;
}

.product-share-price {
  margin: 0 0 5px;
  color: #1e1e1e;
  font-weight: 600;
}

.product-share-description {
  margin: 0;
  color: #5c5c5c;
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.product-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.product-share-link:hover {
  color: #fff;
  filter: brightness(0.94);
}

.product-share-whatsapp {
  background: #25D366;
}

.product-share-facebook {
  background: #1877F2;
}

.product-share-note {
  margin: 12px 2px 0;
  color: #777;
  font-size: 0.75rem;
  line-height: 1.45;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.back-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e1e1e;
  font-weight: 500;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
  .floating-nav {
    padding: 6px 10px;
  }

  .nav-icon-btn {
    font-size: 1.25rem;
    padding: 6px 8px;
  }

  .nav-center {
    font-size: 1rem;
  }

  .filter-bar {
    top: 76px;
    padding: 6px 8px;
  }

  .filter-chip {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .main-content {
    margin-top: 130px;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .nav-center {
    font-size: 0.9rem;
  }

  .filter-bar {
    top: 72px;
  }
}
