/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fafbfc;
  color: #222;
  line-height: 1.5;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw 10px 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.logo {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-select {
  padding: 7px 12px;
  border-radius: 5px;
  border: 1px solid #eee;
  background: #f7f7f7;
}
.search-bar {
  padding: 7px 16px;
  border-radius: 5px;
  border: 1px solid #eee;
  width: 320px;
  background: #f7f7f7;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.header-actions .cart b {
  color: #f9b233;
}
.header-bottom {
  background: #f9f9f9;
  padding: 10px 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.departments {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.departments span {
  font-weight: bold;
  color: #f9b233;
}
.departments a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.departments a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #f9b233;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.departments a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  display: flex;
  gap: 32px;
  padding: 40px 5vw 0 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.hero-main {
  background: #eaf6ff;
  border-radius: 18px;
  flex: 2;
  display: flex;
  align-items: center;
  padding: 36px 32px;
  min-height: 320px;
}
.hero-text {
  flex: 1;
}
.hero-text .highlight {
  color: #f9b233;
  font-weight: bold;
  font-size: 18px;
}
.hero-text h1 {
  font-size: 2.2rem;
  margin: 12px 0 10px 0;
}
.hero-text p {
  color: #666;
  margin-bottom: 18px;
}
.shop-now {
  background: #f9b233;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
}
.shop-now:focus {
  box-shadow: 0 0 0 2px #f9b23355;
}
.shop-now:hover {
  background: #e09e1a;
  transform: translateY(-2px) scale(1.03);
}
.hero-image img {
  max-width: 180px;
  display: block;
}
.hero-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.promo {
  background: #f6f9f3;
  border-radius: 14px;
  padding: 22px 18px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-fruits {
  background: #eaf6e7;
}
.promo-baked {
  background: #f9f3e7;
}
.promo span {
  color: #7bb661;
  font-weight: bold;
  font-size: 1.1rem;
}
.promo h3 {
  margin: 6px 0 4px 0;
  font-size: 1.1rem;
}
.promo a {
  color: #f9b233;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Categories */
.categories {
  margin: 48px 0 0 0;
  padding: 0 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.categories h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.category-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.category-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  min-height: 100px;
  font-size: 1rem;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 20px;
}
.category-item img {
  width: 38px;
  height: 38px;
}
.category-item:hover {
  box-shadow: 0 4px 16px rgba(249,178,51,0.10), 0 1px 4px rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.02);
  border-color: #f9b23322;
}

/* Brands */
.brands {
  margin: 48px 0 0 0;
  padding: 0 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.brands h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.brand-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.brand-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  min-height: 100px;
  font-size: 0.95rem;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 20px;
}
.brand-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-item:hover {
  box-shadow: 0 4px 16px rgba(249,178,51,0.10), 0 1px 4px rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.02);
  border-color: #f9b23322;
}

/* Trending Products */
.trending {
  margin: 48px 0 0 0;
  padding: 0 5vw;
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.trending h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.trending-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.tab {
  padding: 7px 18px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.tab.active {
  background: #f9b233;
  color: #fff;
}
.tab:hover, .tab:focus {
  background: #ffe7b3;
  color: #f9b233;
}
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 18px 18px 14px 18px;
  min-width: 180px;
  max-width: 200px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.product-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.product-info {
  text-align: center;
}
.discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #7bb661;
  color: #fff;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 8px;
}
.product-info h3 {
  font-size: 1.05rem;
  margin: 8px 0 4px 0;
}
.product-info .unit {
  color: #888;
  font-size: 0.95rem;
}
.product-info .rating {
  color: #f9b233;
  font-size: 0.95rem;
  margin-left: 6px;
}
.product-info .price {
  display: block;
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 6px;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(249,178,51,0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  transform: translateY(-4px) scale(1.03);
  border-color: #f9b23333;
}

/* Footer */
.footer {
  background: #fff;
  margin-top: 48px;
  padding: 32px 5vw 0 5vw;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
  padding-top: 2.5vw;
  padding-bottom: 2.5vw;
}
.footer-main {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.footer-logo {
  flex: 1;
  min-width: 180px;
}
.footer-logo img {
  height: 38px;
}
.footer-socials {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.footer-socials img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7f7f7;
  padding: 4px;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex: 3;
  min-width: 300px;
}
.footer-links div {
  min-width: 120px;
}
.footer-links h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #f9b233;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 6px;
  color: #666;
  font-size: 0.97rem;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.footer-links li:hover {
  color: #f9b233;
  cursor: pointer;
}
.footer-subscribe form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.footer-subscribe input[type="email"] {
  padding: 7px 12px;
  border-radius: 5px;
  border: 1px solid #eee;
  background: #f7f7f7;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.footer-subscribe input[type="email"]:focus {
  outline: 2px solid #f9b233;
  background: #fffbe6;
}
.footer-subscribe button {
  background: #f9b233;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.footer-subscribe button:focus, .footer-subscribe button:hover {
  background: #e09e1a;
  transform: translateY(-2px) scale(1.03);
}
.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.97rem;
  padding: 14px 0 10px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .header-top, .header-bottom, .hero, .categories, .brands, .trending, .footer {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .hero {
    flex-direction: column;
    gap: 18px;
  }
  .footer-main {
    flex-direction: column;
    gap: 18px;
  }
  .footer-links {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .main-nav .search-bar {
    width: 120px;
  }
  .category-list, .brand-list, .product-list {
    flex-direction: column;
    gap: 12px;
  }
  .product-card {
    min-width: 100%;
    max-width: 100%;
  }
  .header-top, .header-bottom, .hero, .categories, .brands, .trending, .footer {
    padding-top: 18px;
    padding-bottom: 18px;
  }
} 