@import url("https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");

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

body {
  font-family: "Afacad", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
header {
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.main-logo {
  height: 60px;
  width: auto;
}

.nav-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #ff6b35;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-icon,
.cart {
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
}

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

/* Main Content */
main {
  padding: 3rem 0;
  flex: 1;
}

.welcome {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome p {
  font-size: 1.1rem;
  color: #666;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: #333;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}

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

.grid-item:hover img {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin: 4rem 0;
}

.cta-section p {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  color: #333;
}

/* Footer */
footer {
  background: #2c2c2c;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-media a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #ff6b35;
}

.newsletter {
  display: flex;
  gap: 10px;
}

.newsletter input {
  padding: 10px;
  border: 1px solid #555;
  background: #333;
  color: #fff;
  border-radius: 5px;
  min-width: 200px;
}

.newsletter input::placeholder {
  color: #aaa;
}

.newsletter button {
  padding: 10px 20px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter button:hover {
  background: #e55a2b;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-section {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    max-width: 400px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
}

.social-icon > .icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}
