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

:root {
  --primary-dark: #407c87;
  --primary-light: #a5dbdd;
  --accent-light: #eefff6;
  --accent-gray: #d3e1e2;
  --text-dark: #1a202c;
  --text-gray: #4a5568;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", sans-serif;
  background: linear-gradient(135deg, #f5fafb 0%, var(--accent-light) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  padding: 24px 0;
  box-shadow: 0 2px 8px rgba(64, 124, 135, 0.12);
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  min-width: 0;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--accent-gray);
  border-radius: 999px;
  background-color: var(--white);
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-button:hover {
  border-color: var(--primary-dark);
  background-color: var(--accent-light);
}

.cart-icon {
  font-size: 18px;
  line-height: 1;
}

.cart-count {
  font-weight: 700;
  font-size: 13px;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: var(--primary-dark);
}

.nav-link.active {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--primary-light) 100%
  );
  border-radius: 16px;
  padding: 60px 40px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(64, 124, 135, 0.15);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.hero-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-section p {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Content Wrapper */
.content-wrapper {
  margin-bottom: 60px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 14px 28px;
  border: 2px solid var(--accent-gray);
  background-color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  background-color: var(--accent-light);
}

.tab-button.active {
  background-color: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.tab-icon {
  font-size: 20px;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.tab-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 30px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(64, 124, 135, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(64, 124, 135, 0.2);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--accent-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding: 0 20px;
  padding-top: 20px;
}

.product-description {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.6;
  padding: 0 20px;
}

/* Product Specs */
.product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  flex-grow: 1;
  padding: 0 20px;
}

.spec {
  font-size: 13px;
  color: var(--text-gray);
  background: linear-gradient(135deg, var(--accent-light) 0%, #f5fafb 100%);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-light);
}

/* Price Section */
.price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 20px 20px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.btn-add-cart {
  flex: 1;
  padding: 10px 16px;
  background-color: var(--primary-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background-color: #2f5f68;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 124, 135, 0.25);
}

/* Footer */
footer {
  background-color: var(--white);
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--accent-gray);
  color: var(--text-gray);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    align-items: center;
  }

  header h1 {
    font-size: 24px;
  }

  header nav {
    gap: 10px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .hero-section h2 {
    font-size: 28px;
  }

  .category-tabs {
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-button {
    align-self: flex-end;
  }

  header h1 {
    font-size: 20px;
  }

  .category-tabs {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card h4 {
    font-size: 16px;
  }

  .price-section {
    flex-direction: column;
  }

  .btn-add-cart {
    width: 100%;
  }

  .price {
    font-size: 20px;
  }

  .product-image {
    height: 200px;
  }
}
