:root {
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-dark: #115e59;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.6s ease both;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: white;
  background: var(--brand);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count.show {
  transform: scale(1);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
}

.hero-blob-1 {
  width: 300px;
  height: 300px;
  top: -60px;
  left: -80px;
  background: var(--brand-light);
}

.hero-blob-2 {
  width: 260px;
  height: 260px;
  bottom: -60px;
  right: -80px;
  background: #6366f1;
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.25s ease both;
}

.lead {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s ease both;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s ease both;
}

.cta:hover {
  transform: translateY(-3px);
  background: var(--brand-dark);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.35);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-select {
  min-width: 180px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.2);
}

.product-thumb {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  position: relative;
  overflow: hidden;
}

.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.18), transparent);
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-card .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  min-height: 2.6em;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.product-meta .badge {
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--bg);
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-actions {
  display: flex;
  gap: 0.6rem;
}

.btn {
  flex: 1;
  padding: 0.75rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: white;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: rgba(15, 118, 110, 0.08);
}

.btn-secondary:hover {
  background: rgba(15, 118, 110, 0.15);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 150;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.cart.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.25rem;
}

.close-cart {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-cart:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.4s ease both;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cart-item-info .item-price {
  font-size: 0.85rem;
  color: var(--muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: var(--border);
}

.qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.remove-item {
  margin-left: 0.5rem;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.remove-item:hover {
  transform: scale(1.1);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.order-now {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  background: var(--success);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.order-now:hover {
  transform: translateY(-2px);
  background: #059669;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.order-now:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease both;
}

@media (max-width: 640px) {
  .hero {
    padding: 4.5rem 1.25rem 3.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .cart {
    width: 100%;
  }
}
