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

body {
  font-family: "Roboto", sans-serif;
  color: #212121;
  background-color: #f1f3f6;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Main Header */
.main-header {
  background-color: #2874f0;
  color: white;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  min-width: 140px;
}

.logo {
  display: flex;
  align-items: flex-end;
  color: white;
}

.logo img {
  height: 24px;
  margin-right: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-style: italic;
}

.logo-text .explore {
  color: white;
}

.logo-text .plus {
  color: #ffe11b;
}

.plus-icon {
  width: 10px;
  margin-left: 2px;
}

/* Search Bar */
.search-section {
  flex-grow: 1;
  max-width: 564px;
  margin: 0 20px;
}

.search-form {
  display: flex;
  background-color: white;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex-grow: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  color: #212121;
  outline: none;
}

.search-input::placeholder {
  color: #9e9e9e;
}

.search-button {
  background-color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: #2874f0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.action-item {
  position: relative;
}

.action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  color: white;
  font-weight: 500;
  transition: color 0.2s;
}

.action-link:hover {
  color: #ffe11b;
}

.action-link i {
  font-size: 18px;
  margin-bottom: 2px;
}

.action-text {
  font-size: 14px;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff6161;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown .action-link i.fa-chevron-down {
  font-size: 12px;
  margin-left: 4px;
  margin-bottom: 0;
}

/* Category Navigation */
.category-nav {
  background-color: white;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 56px;
  z-index: 999;
}

.category-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  min-width: 80px;
  transition: all 0.2s;
  border-radius: 4px;
}

.category-item:hover {
  background-color: #f5f5f5;
  color: #2874f0;
}

.category-item i {
  font-size: 20px;
  margin-bottom: 4px;
  color: #2874f0;
}

.category-text {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.category-item .fa-chevron-down {
  font-size: 10px;
  margin-left: 2px;
  margin-bottom: 0;
}

/* Main Content */
.main-content {
  max-width: 1248px;
  margin: 20px auto;
  padding: 0 16px;
}

/* Hero Banner */
.hero-banner {
  margin-bottom: 24px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-slider {
  position: relative;
  height: 280px;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 16px;
}

.slide-btn {
  background-color: white;
  border: none;
  width: 36px;
  height: 72px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2874f0;
  font-size: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.slide-btn:hover {
  background-color: #f5f5f5;
}

/* Product Sections */
.product-section {
  background-color: white;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: #212121;
}

.view-all {
  color: #2874f0;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.view-all:hover {
  color: #ff6161;
}

/* Product Scroll Container */
.product-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f5f5f5;
}

.product-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.product-scroll-container::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.product-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Product Cards */
.product-card {
  min-width: 220px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  background-color: white;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ff6161;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.stars {
  color: #ffe11b;
  font-size: 14px;
  margin-right: 6px;
}

.rating-count {
  font-size: 13px;
  color: #9e9e9e;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.current-price {
  font-size: 20px;
  font-weight: 500;
  color: #212121;
  margin-right: 8px;
}

.original-price {
  font-size: 14px;
  color: #9e9e9e;
  text-decoration: line-through;
  margin-right: 8px;
}

.discount {
  font-size: 13px;
  color: #388e3c;
  font-weight: 500;
}

.product-description {
  font-size: 13px;
  color: #9e9e9e;
  margin-top: 4px;
}

/* Footer */
.main-footer {
  background-color: #172337;
  color: white;
  padding-top: 40px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid #2d3e50;
  padding-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.footer-title {
  font-size: 12px;
  color: #878787;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: white;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffe11b;
}

.footer-text {
  font-size: 14px;
  color: white;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1248px;
  margin: 0 auto;
  padding: 20px 16px;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.copyright {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
}

.copyright i {
  margin-right: 6px;
  color: #ffe11b;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
  }

  .search-section {
    order: 3;
    max-width: 100%;
    margin: 12px 0 0;
  }

  .user-actions {
    gap: 20px;
  }

  .category-container {
    justify-content: flex-start;
    gap: 10px;
  }

  .footer-container {
    justify-content: flex-start;
  }

  .footer-section {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 8px 12px;
  }

  .logo-section {
    min-width: auto;
  }

  .logo img {
    height: 20px;
  }

  .user-actions {
    gap: 16px;
  }

  .action-text {
    font-size: 12px;
  }

  .action-link i {
    font-size: 16px;
  }

  .category-container {
    padding: 8px 12px;
  }

  .category-item {
    min-width: 70px;
    padding: 6px 8px;
  }

  .category-item i {
    font-size: 18px;
  }

  .category-text {
    font-size: 12px;
  }

  .main-content {
    padding: 0 12px;
  }

  .hero-slider {
    height: 200px;
  }

  .section-title {
    font-size: 18px;
  }

  .product-card {
    min-width: 180px;
    padding: 12px;
  }

  .product-image {
    height: 140px;
  }

  .current-price {
    font-size: 18px;
  }

  .footer-section {
    flex: 0 0 50%;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .action-text {
    display: none;
  }

  .action-link {
    font-size: 18px;
  }

  .user-actions {
    gap: 20px;
  }

  .cart .action-text {
    display: none;
  }

  .category-item {
    min-width: 60px;
  }

  .category-text {
    font-size: 10px;
  }

  .hero-slider {
    height: 150px;
  }

  .slide-btn {
    width: 28px;
    height: 56px;
  }

  .product-section {
    padding: 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .product-card {
    min-width: 160px;
  }

  .product-image {
    height: 120px;
  }

  .footer-section {
    flex: 0 0 100%;
  }
}
