:root {
  --primary-color: #8b5a2b;
  --secondary-color: #d4a373;
  --accent-color: #e9c46a;
  --light-color: #fff8e7;
  --dark-color: #3c2a1e;
  --gray-color: #6c6c6c;
  --white-color: #ffffff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: var(--dark-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-heading p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 1rem 0;
}

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

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-link {
  margin: 0 1.2rem;
  font-weight: 500;
  color: var(--dark-color);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
}

/* Hide close button on desktop */
.mobile-close-btn {
  display: none !important;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1555507036-ab1f4038808a?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8YmFrZXJ5fGVufDB8fDB8fHww")
      center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  margin-top: 0;
  padding-top: 40;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  padding-top: 40;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Featured Section */
.featured-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-item {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  padding-bottom: 2rem;
}

.featured-item:hover {
  transform: translateY(-10px);
}

.featured-img {
  height: 250px;
  background-position: center;
  background-size: cover;
  margin-bottom: 1.5rem;
}

.featured-img.bread {
  background-image: url("https://images.unsplash.com/photo-1586444248902-2f64eddc13df?q=80&w=1000");
}

.featured-img.pastry {
  background-image: url("https://images.unsplash.com/photo-1483695028939-5bb13f8648b0?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cGFzdHJ5fGVufDB8fDB8fHww");
}

.featured-img.cake {
  background-image: url("https://images.unsplash.com/photo-1557979619-445218f326b9?q=80&w=1000");
}

.featured-item h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.featured-item p {
  padding: 0 1.5rem;
  color: var(--gray-color);
}

/* About Section */
.about {
  background-color: var(--white-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  text-align: left;
}

.about-text p {
  text-align: justify;
}

.about-text .section-heading {
  text-align: left;
}

.about-text .section-heading h2::after {
  left: 0;
  transform: none;
}

.about-image {
  height: 500px;
  background: url("https://images.unsplash.com/photo-1555507036-ab1f4038808a?q=80&w=1000")
    center/cover no-repeat;
  border-radius: var(--border-radius);
}

/* Products Section */
.product-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-btn {
  background-color: transparent;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-color);
}

.category-btn.active,
.category-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-item {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  padding-bottom: 1.5rem;
}

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

.product-img {
  height: 200px;
  background-position: center;
  background-size: cover;
  margin-bottom: 1.5rem;
}

/* Product Images */
.product-img.sourdough {
  background-image: url("https://images.unsplash.com/photo-1589367920969-ab8e050bbb04?q=80&w=1000");
}

.product-img.baguette {
  background-image: url("https://images.unsplash.com/photo-1599819055803-717bba43890f?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8ZnJlbmNoJTIwYmFndWV0dGV8ZW58MHx8MHx8fDA%3D");
}

.product-img.croissant {
  background-image: url("https://images.unsplash.com/photo-1555507036-ab1f4038808a?q=80&w=1000");
}

.product-img.danish {
  background-image: url("https://images.unsplash.com/photo-1602351447937-745cb720612f?q=80&w=1000");
}

.product-img.chocolate-cake {
  background-image: url("https://images.unsplash.com/photo-1578985545062-69928b1d9587?q=80&w=1000");
}

.product-img.cheesecake {
  background-image: url("https://images.unsplash.com/photo-1524351199678-941a58a3df50?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Y2hlZXNlY2FrZXxlbnwwfHwwfHx8MA%3D%3D");
}

.product-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-item p {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  background-color: #fff;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-item h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links h3,
.footer-social h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0;
}



/* Responsive Design */
@media screen and (max-width: 992px) {
  .hero-content h2 {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }


}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 5rem 1.5rem;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-link {
    display: block;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }

  .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
  }

  /* Close button for mobile menu - ONLY SHOW ON MOBILE */
  .mobile-close-btn {
    display: flex !important;
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    border: 2px solid var(--white-color);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
  }

  .mobile-close-btn:hover {
    background-color: var(--dark-color);
    transform: scale(1.1);
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .about-text {
    text-align: center;
  }

  .about-text .section-heading {
    text-align: center;
  }

  .about-text .section-heading h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .info-item {
    text-align: center;
  }

  /* Fix mobile products layout */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-item {
    max-width: 100%;
    margin: 0;
  }

  .product-img {
    height: 250px;
  }

  .product-categories {
    justify-content: center;
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 4rem 0;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .featured-item,
  .product-item {
    max-width: 100%;
    margin: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-item {
    padding: 1rem;
  }

  .product-img {
    height: 200px;
  }

  .category-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* No-scroll for mobile nav */
.no-scroll {
  overflow: hidden;
}
