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

:root {
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #a88b4a;
  --bg-dark: white;
  --bg-card: white;
  --bg-card-hover: #222222;
  --text-primary: #f5f5f0;
  --text-muted: #9a9a9a;
  --border-subtle: rgba(201, 169, 98, 0.2);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
}

.site-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 300;
}

/* Back button */
.back-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(26, 26, 26, 0.95);
}

/* Category cards - index page */
.categories-section {
  padding: 0 1.25rem 3rem;
  max-width: 480px;
  margin: 0 auto;
}

.category-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 169, 98, 0.15);
  color: inherit;
}

.category-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.category-card:hover .category-card-img {
  filter: brightness(0.85);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.category-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.category-card-arrow {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

.category-card:hover .category-card-arrow {
  opacity: 1;
  right: 1rem;
}

/* Category page header */
.category-header {
  text-align: center;
  padding: 3.5rem 1.5rem 1.5rem;
}

.category-header h1 {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.category-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* Product list */
.products-section {
  padding: 0 1.25rem 3rem;
  max-width: 480px;
  margin: 0 auto;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f2f2f254;
  border: 1px solid rgb(218 218 218 / 20%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-item:hover {
  background: #efefefac;
  border-color: rgba(219, 219, 219, 0.4);
  transform: translateX(4px);
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: black;
  margin-bottom: 0.2rem;
}

.product-desc-short {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-arrow {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Modal */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  background: var(--bg-dark);
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.btn-close {
  filter: invert(1) opacity(0.5);
}

.modal-body {
  padding: 0;
}

.modal-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal-product-content {
  padding: 1.5rem;
}

.modal-product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.modal-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.modal-product-ingredients {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.modal-product-ingredients h6 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.modal-product-ingredients p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.modal-backdrop.show {
  opacity: 0.7;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Decorative elements */
.gold-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card,
.product-item {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
