/* Base Styles */
:root {
  --primary-color: #c67d5c;
  --secondary-color: #b8ada0;
  --accent-color: #7d8e69;
  --background-color: #f9f5f0;
  --text-color: #2d2a28;
  --light-color: #fffbf5;
  --border-color: #e4dccf;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 40px 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: "Inter", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  min-width: 260px;
  max-width: 90vw;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  box-shadow: var(--hover-shadow);
  background: #ffffff;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left-color: #46a37a; }
.toast.error { border-left-color: #d9534f; }

/* Disabled submit state */
button[disabled],
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(20%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

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

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

/* Placeholder for images */
.placeholder {
  background-color: var(--secondary-color);
  opacity: 0.3;
  border-radius: var(--border-radius);
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition);
}

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

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

.search-container {
  display: flex;
  position: relative;
  max-width: 300px;
  width: 100%;
}

#searchInput {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary-color);
}

#searchBtn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 1rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

#searchBtn:hover {
  background-color: var(--text-color);
}

.menu {
  display: flex;
}

.menu li {
  margin-left: 1.5rem;
}

.menu a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.menu a:hover::after,
.menu a:focus::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      to right,
      rgba(249, 245, 240, 0.9),
      rgba(249, 245, 240, 0.8)
    ),
    url("https://images.unsplash.com/photo-1486365227551-f3f90034a57c?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8YmlyZHxlbnwwfHwwfHx8MA%3D%3D");
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.hero-content {
  max-width: 600px;
  animation: fadeIn 1s ease;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Featured Products */
.featured {
  padding: 5rem 0 6rem;
  background-color: var(--light-color);
}

.product-search {
  display: flex;
  justify-content: center;
  margin: 0 0 5rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(198, 125, 92, 0.2);
}

.search-bar:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.search-bar i.fas.fa-search {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 0.25rem 0.25rem;
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--secondary-color);
  opacity: 0.8;
}

.search-bar #clearSearch {
  border: none;
  background: transparent;
  color: var(--secondary-color);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.search-bar #clearSearch:hover {
  color: var(--text-color);
  background: rgba(0,0,0,0.08);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

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

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.product-image {
  height: 450px;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.product-card h3 {
  padding: 1.5rem 1rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}

.price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Categories */
.categories {
  padding: 5rem 0;
}

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

.category-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 200px;
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: var(--hover-shadow);
}

.category-image {
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--light-color);
  margin: 0;
  padding: 1rem;
  text-align: center;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--light-color);
}

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

.about-image {
  height: 400px;
  border-radius: var(--border-radius);
  background-size: cover;
  background-position: center;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

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

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: #fff; /* Changed from var(--light-color) */
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  display: none;
  gap: 1rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.testimonial-card.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

.testimonial-image { display: none; }

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-content h4 {
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

.location { display: none; }

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.prev-btn,
.next-btn {
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0 1rem;
  transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
  color: var(--primary-color);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

.contact {
  padding: 5rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Adjust space between columns */
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem; /* Controls space between the icon and text */
  margin-left: 1rem; /* Adds space between the icon-text combo and the left of the screen */
  font-size: 1rem;
}

.info-item i {
  font-size: 2rem; /* Icon size */
  color: var(--primary-color);
  margin-right: 1rem; /* Adds space between the icon and the text */
}

.info-item span {
  font-size: 1rem;
  display: inline-block;
}

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

.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: var(--light-color);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 4fr));
  gap: 0.3rem;
  margin-bottom: 5rem;
}

.footer-logo h2 {
  color: var(--primary-color);
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;           /* Left align for desktop/laptop */
  transform: none;   /* Remove centering for desktop/laptop */
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

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

.social-icons a {
  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-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 0;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: center;
    z-index: 999;
    margin-top: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .menu a {
    display: block;
    padding: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .menu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
  }

  .hamburger {
    display: flex;
  }

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

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

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

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

  .testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-image {
    margin: 0 auto 1rem;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Remove text-align: center here */
  }
  .about-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1rem; /* Reduced spacing */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
  }
  .about-text {
    width: 100%;
    text-align: justify; /* Justified text */
  }
}

@media screen and (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  #navbar .container {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    margin-top: 1rem;
    max-width: 100%;
  }
}

/* Restore original footer grid and spacing */
.footer {
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  padding-right: 0;
  border-right: 0;
}

/* Headings underline already styled by existing rules */

/* Links spacing */
.footer-links ul li {
  margin-bottom: 0.8rem;
}

/* Footer bottom */
.footer-bottom {
  padding-top: 2rem;
}
.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* Mobile tidy alignment */
@media screen and (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    justify-items: center;
  }
  .social-icons { justify-content: center; }
  .footer-links h3::after,
  .footer-services h3::after,
  .footer-social h3::after {
    left: 50%;
    transform: translateX(-50%); /* Center underline on mobile */
  }
}
