/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* CSS Variables */
:root {
  --primary: #d5bdaf;
  --secondary: #e3d5ca;
  --background: #f5ebe0;
  --border: #d6ccc2;
  --light: #edede9;
  --text-dark: #4a4a4a;
  --hover: #cdb4b3;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo img {
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-icon {
  height: 18px;
  width: 18px;
  object-fit: contain;
}

/* Cart count badge */
#cart-count, #cart-count-header {
  position: absolute;
  top: -6px;
  right: -10px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show nav-links vertically on mobile when active */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 65px;
  right: 20px;
  background-color: var(--secondary);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 180px;
  z-index: 998;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .overlay {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem 3rem;
  border-radius: 10px;
  max-width: 500px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background-color: var(--hover);
}

/* Section Titles */
h2 {
  color: var(--text-dark);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
}

.product-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
  text-align: center;
  font-weight: 600;
}

.product-card p {
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
  font-weight: 600;
}

.product-card button.add-to-cart {
  margin: 0 1.5rem 1.5rem;
  padding: 0.6rem;
  font-weight: 600;
  background-color: var(--primary);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-card button.add-to-cart:hover {
  background-color: var(--hover);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Sustainability Section */
.sustainability {
  background-color: var(--background);
  padding: 4rem 1rem;
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 4rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Cart Page Styles */
.cart-page {
  padding: 4rem 1rem;
  min-height: 70vh;
}

.cart-item {
  background-color: white;
  display: flex;
  gap: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  align-items: center;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-item div {
  flex-grow: 1;
}

.cart-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cart-item p {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.remove-btn {
  margin-top: 8px;
  background-color: #e07a5f;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #ba5a3a;
}

.cart-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cart-buttons .btn {
  width: 200px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: auto;
  }
}
