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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  color: #3a3a3a;
  line-height: 1.6;
}

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

.header {
  background: #f5f1ed;
  padding: 15px 0;
  border-bottom: 1px solid #e0d5c7;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: #3a3a3a;
}

.logo svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #8b7355;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.icon-btn {
  width: 24px;
  height: 24px;
  color: #3a3a3a;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
}

.icon-btn:hover {
  color: #8b7355;
}

.icon-btn svg {
  width: 100%;
  height: 100%;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f44336;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wishlist-icon {
  position: relative;
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e91e63;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero {
  background: #e8dcc8;
  padding: 80px 0;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: 2px;
  color: #6b5d52;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #3a3a3a;
}

.hero-description {
  font-size: 16px;
  color: #5a4d42;
  margin-bottom: 30px;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #5a4a3a;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #4a3a2a;
}

.hero-images {
  flex: 0 0 500px;
  position: relative;
  height: 500px;
}

.hero-image-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #8b7355;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.stack-image {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #8b7355;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

.stack-1 {
  width: 200px;
  height: 300px;
  bottom: 80px;
  left: 0;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.stack-2 {
  width: 180px;
  height: 270px;
  top: 50px;
  left: 80px;
  z-index: 1;
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

.stack-3 {
  width: 160px;
  height: 240px;
  bottom: 50px;
  right: 100px;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

.stack-4 {
  width: 140px;
  height: 210px;
  top: 150px;
  left: 20px;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

.stack-image:hover {
  transform: scale(1.05) rotate(2deg);
  z-index: 4;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
}

.view-all {
  font-size: 12px;
  color: #3a3a3a;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
}

.featured-collections {
  padding: 80px 0;
  background: white;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collection-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.collection-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.collection-info p {
  font-size: 14px;
  opacity: 0.9;
}

.recommended {
  padding: 80px 0;
  background: #f9f7f4;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d4c4b0;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: #5a4a3a;
  color: white;
  border-color: #5a4a3a;
}

.books-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  overflow-x: auto;
}

.book-card {
  text-align: center;
}

.book-image {
  position: relative;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
}

.book-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d9534f;
  color: white;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
}

.badge.new {
  background: #5cb85c;
}

.book-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: #3a3a3a;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-left: 8px;
}

.top-sellers {
  padding: 80px 0;
  background: white;
}

.top-sellers h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.promise {
  padding: 80px 0;
  background: #e8f5e9;
}

.promise h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.promise-card {
  text-align: center;
}

.promise-card svg {
  width: 48px;
  height: 48px;
  color: #5a4a3a;
  margin-bottom: 20px;
}

.promise-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.promise-card p {
  color: #666;
  font-size: 14px;
}

.sell-story {
  padding: 80px 0;
  background: #3d4f3d;
  color: white;
}

.sell-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.sell-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.sell-content p {
  font-size: 16px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.sell-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.step-number {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-secondary {
  padding: 14px 32px;
  background: white;
  color: #3d4f3d;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #f0f0f0;
}

.testimonials {
  padding: 80px 0;
  background: #f9f7f4;
}

.testimonials h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #d4c4b0;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-author {
  font-size: 14px;
  color: #666;
}

.recent-stories {
  padding: 80px 0;
  background: white;
}

.recent-stories h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.story-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.story-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.story-card p {
  padding: 15px;
  background: #f5f1ed;
  font-size: 14px;
  text-align: center;
}

.journey {
  padding: 100px 0;
  background: #e8dcc8;
  text-align: center;
}

.journey h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.journey p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.footer {
  background: #3d4f3d;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-section p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section ul li a:hover {
  opacity: 1;
}

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

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 10px 20px;
  background: white;
  color: #3d4f3d;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

@media (max-width: 1024px) {
  .books-carousel {
    grid-template-columns: repeat(4, 1fr);
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-images {
    flex: 1;
    width: 100%;
    height: 400px;
  }

  .hero-image-main {
    width: 200px;
    height: 300px;
  }

  .stack-1 {
    width: 150px;
    height: 220px;
  }

  .stack-2 {
    width: 130px;
    height: 190px;
  }

  .stack-3 {
    width: 120px;
    height: 180px;
  }

  .stack-4 {
    width: 100px;
    height: 150px;
  }

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

  .books-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}
