* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  list-style: none;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #111111;
  color: #ddd;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background-color: #111111;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  color: white;
  position: relative;
}

nav {
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 10px 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav .logo {
  width: 90px;
  transition: transform 0.3s ease;
}

nav .logo:hover {
  transform: scale(1.1);
}

nav .logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
}

nav ul li {
  padding: 8px 18px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.5px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #bc9667;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icons i {
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}

.icons i:hover {
  transform: scale(1.2);
  color: #bc9667;
}

.cart-icon-container {
  position: relative;
}

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

.search-container {
  position: relative;
  display: none;
}

.search-container.active {
  display: block;
}

.search-input {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #333;
  color: white;
  width: 200px;
}

main {
  display: flex;
  padding: 60px 60px;
  align-items: center;
  justify-content: space-between;
  margin-top: 100px;
  text-align: left;
  flex: 1;
}

.left {
  width: 50%;
  animation: fadeInLeft 1s ease-out;
}

.left h1 {
  font-size: 55px;
  font-weight: 800;
  color: #bc9667;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  line-height: 1.2;
}

.left p {
  font-size: 17px;
  line-height: 1.8;
  padding: 20px 0;
  text-align: left;
  color: #ddd;
  max-width: 600px;
}

button {
  padding: 14px 40px;
  background: #bc9667;
  color: #edeae3;
  font-weight: 600;
  cursor: pointer;
  font-size: 17px;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  background: #a17b50;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

.coffee-image-container {
  width: 100%;
  max-width: 420px;
  height: 420px;
  background-color: #bc9667;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-coffee {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.floating-coffee:hover {
  transform: scale(1.05);
}

.menuIcon {
  display: none !important;
}

.closeIcon {
  display: none !important;
}

/* About Section Styles */
.about-section {
  padding: 80px 5%;
  background-color: #1a1a1a;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 38px;
  color: #bc9667;
  margin-bottom: 20px;
  position: relative;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #bc9667;
}

.about-content p {
  margin-bottom: 20px;
  color: #ddd;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: #111111;
  border-radius: 10px;
  flex: 1;
  margin: 0 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 32px;
  color: #bc9667;
  margin-bottom: 5px;
}

.stat-item p {
  color: #999;
  font-size: 14px;
  margin: 0;
}

/* Coffee Products Section Styles */
.products-section {
  padding: 80px 5%;
  background-color: #111111;
  color: white;
  text-align: center;
}

.products-section h2 {
  font-size: 38px;
  font-weight: 700;
  color: #bc9667;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.products-section p {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ddd;
}

/* Filter Buttons Styles */
.filter-buttons {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 500;
  background-color: transparent;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #bc9667;
  color: #111;
  border-color: #bc9667;
}

.filter-btn.active {
  background-color: #bc9667;
  color: #111;
  border-color: #bc9667;
  box-shadow: 0 4px 10px rgba(188, 150, 103, 0.4);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(188, 150, 103, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 35px rgba(188, 150, 103, 0.4);
}

.product-card img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 18px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

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

.product-card h3 {
  font-size: 22px;
  color: #bc9667;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card p {
  font-size: 15px;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.product-card .btn {
  width: 100%;
  background: #bc9667;
  color: #edeae3;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  padding: 12px 0;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.product-card .btn:hover {
  background: #a17b50;
  box-shadow: 0 5px 15px rgba(161, 123, 80, 0.7);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 5%;
  background-color: #1a1a1a;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 38px;
  color: #bc9667;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.testimonials-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #bc9667;
}

.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #111111;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: 350px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  position: relative;
  margin-bottom: 25px;
}

.quote-icon {
  font-size: 40px;
  color: #bc9667;
  opacity: 0.3;
  position: absolute;
  top: -15px;
  left: -10px;
}

.testimonial-card p {
  font-style: italic;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #bc9667;
}

.testimonial-author h4 {
  color: #bc9667;
  margin-bottom: 5px;
}

.testimonial-author p {
  color: #999;
  font-size: 14px;
  margin: 0;
}

footer {
  background-color: #111111;
  color: white;
  padding: 60px 5% 30px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: #bc9667;
  margin-bottom: 25px;
  font-size: 22px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #bc9667;
}

.footer-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #ccc;
}

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #bc9667;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #bc9667;
  transform: translateY(-5px);
}

.newsletter form {
  display: flex;
  margin-top: 20px;
}

.newsletter input {
  padding: 8px;
  border: none;
  outline: none;
  flex: 1;
  background: #333;
  color: white;
  border-radius: 5px 0 0 5px;
}

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

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

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #bc9667;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background: #a17b50;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  overflow-y: auto;
}

.modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #bc9667;
}

.modal-body {
  display: flex;
  gap: 30px;
}

.modal-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-product-details {
  flex: 1;
  text-align: left;
}

.modal-product-details h2 {
  color: #bc9667;
  font-size: 28px;
  margin-bottom: 10px;
}

.product-category {
  display: inline-block;
  background: #333;
  color: #bc9667;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-description {
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.8;
}

.product-price {
  font-size: 24px;
  color: #bc9667;
  font-weight: bold;
  margin-bottom: 25px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: #333;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #bc9667;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  margin: 0 10px;
  border: 1px solid #444;
  background: #222;
  color: white;
  font-size: 16px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #1a1a1a;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

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

.cart-header h3 {
  color: #bc9667;
  font-size: 22px;
}

.close-cart {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-cart:hover {
  color: #bc9667;
}

.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  color: #bc9667;
  margin-bottom: 5px;
  font-size: 16px;
}

.cart-item-price {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.cart-item-quantity button {
  width: 25px;
  height: 25px;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.cart-item-quantity input {
  width: 40px;
  height: 25px;
  text-align: center;
  margin: 0 5px;
  background: #222;
  color: white;
  border: 1px solid #444;
}

.remove-item {
  color: #ff6b6b;
  cursor: pointer;
  font-size: 14px;
  margin-top: 5px;
  display: inline-block;
}

.empty-cart-message {
  text-align: center;
  padding: 50px 20px;
  color: #777;
}

.empty-cart-message i {
  font-size: 50px;
  margin-bottom: 20px;
  color: #444;
}

.empty-cart-message p {
  margin-bottom: 10px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #333;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 18px;
  color: #bc9667;
  font-weight: bold;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  main {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-top: 120px;
  }

  .left,
  .right {
    width: 100%;
  }

  .left {
    margin-bottom: 40px;
  }

  .left h1 {
    font-size: 40px;
  }

  .left p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .coffee-image-container {
    max-width: 350px;
    height: 350px;
    margin: 0 auto;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image-container {
    margin-bottom: 30px;
  }

  .about-container {
    flex-direction: column;
  }

  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111111;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .menuIcon {
    display: block !important;
    font-size: 28px;
    z-index: 1000;
  }

  .closeIcon {
    display: block !important;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    z-index: 1001;
  }

  .left h1 {
    font-size: 36px;
  }

  .products-section h2,
  .about-content h2,
  .testimonials-section h2 {
    font-size: 32px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 350px;
  }

  .testimonial-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .left h1 {
    font-size: 30px;
  }

  .left p {
    font-size: 16px;
  }

  .coffee-image-container {
    max-width: 280px;
    height: 280px;
  }

  .floating-coffee {
    max-width: 200px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

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

  .product-card {
    padding: 20px;
  }

  .product-card img {
    max-width: 180px;
    height: 180px;
  }

  .stat-item {
    padding: 15px;
    margin: 0 5px;
  }

  .stat-item h3 {
    font-size: 24px;
  }

  .modal-content {
    padding: 20px;
  }

  .footer-section {
    min-width: 100%;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter button {
    border-radius: 5px;
    width: 100%;
  }

  .search-input {
    width: 150px;
  }
}
