/*---------------------------------------
  BASE STYLES
-----------------------------------------*/
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #B99268;
  color: #FBF5E9;
}

h1, h2, h3 {
  color: #FBF5E9;
}

p {
  line-height: 1.6;
  color: #FBF5E9;
}

a {
  text-decoration: none;
  color: inherit;
}

/*---------------------------------------
  NAVBAR
-----------------------------------------*/
.navbar {
  position: sticky;
  top: 0;
  background-color: #774723;
  padding: 10px 20px;
  z-index: 9999;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo,
.logo-mobile {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: #FBF5E9;
}

.logo img,
.logo-mobile-img {
  width: 55px;
  height: auto;
  margin-right: 10px;
  border-radius: 10px;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links ul li a {
  text-decoration: none;
  color: #FBF5E9;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links ul li a:hover {
  color: #895720;
}

.hamburger {
  display: none;
  font-size: 30px;
  color: #FBF5E9;
  cursor: pointer;
}

/*---------------------------------------
  MOBILE SIDEBAR
-----------------------------------------*/
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #391809;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10000;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 36px;
  color: #FBF5E9;
  cursor: pointer;
}

.mobile-sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: center;
}

.mobile-sidebar ul li {
  margin: 20px 0;
}

.mobile-sidebar ul li a {
  color: #FBF5E9;
  font-size: 22px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-sidebar ul li a:hover {
  color: #895720;
}

.mobile-sidebar.show {
  display: flex;
}

/*---------------------------------------
  HERO SECTION
-----------------------------------------*/
.hero {
  position: relative;
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
  color: #FBF5E9;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(57, 24, 9, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-content h2 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FBF5E9;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #FBF5E9;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #774723;
  color: #FBF5E9;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background-color: #895720;
}

/* Product Grid & Cards for Buying Section */
#buying .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

#buying .product-card {
  background-color: #774723;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

#buying .product-card:hover {
  transform: translateY(-5px);
  background-color: #895720;
}

#buying .product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

#buying .product-card:hover img {
  transform: scale(1.05);
}

#buying .product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

#buying .product-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

#buying .product-card .btn {
  padding: 10px 20px;
  background-color: #774723;
  color: #FBF5E9;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

#buying .product-card .btn:hover {
  background-color: #895720;
}

/* Responsive */
@media (max-width: 768px) {
  #buying .product-card img {
    height: 150px;
  }
}


/*---------------------------------------
  FEATURE SECTIONS (SELLING, BUYING, TEACHING, LEARNING)
-----------------------------------------*/
.feature-section {
  padding: 80px 10%;
  background-color: #B99268;
}

.feature-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-flex.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 280px;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.feature-text p {
  margin-bottom: 20px;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.feature-image img:hover {
  transform: scale(1.05);
}

/*---------------------------------------
  ADVERTISING SECTION (PRODUCT GRID)
-----------------------------------------*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.product-card {
  background-color: #774723;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  background-color: #895720;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.center-btn {
  text-align: center;
  margin-top: 30px;
}

/*-----------------------------------
  FOOTER STYLING
------------------------------------*/
.site-footer {
  background-color: #774723;
  color: #FBF5E9;
  padding: 25px 10%;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  margin: 10px;
  min-width: 250px;
}

.footer-left p,
.footer-center p,
.footer-right p {
  margin: 5px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-right strong,
.footer-center strong {
  color: #391809;
}

.site-footer:hover {
  background-color: #895720;
  transition: background-color 0.3s ease-in-out;
}

/* Responsive layout */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-left p,
  .footer-center p,
  .footer-right p {
    font-size: 0.95rem;
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .footer-content p {
    font-size: 0.9rem;
  }
}

/*---------------------------------------
  RESPONSIVE DESIGN
-----------------------------------------*/
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo img,
  .logo-mobile-img {
    width: 40px;
    margin-right: 8px;
  }

  .logo {
    font-size: 20px;
  }

  .mobile-sidebar {
    display: none;
  }

  .mobile-sidebar.show {
    display: flex;
  }

  .sidebar-header .logo-mobile {
    font-size: 20px;
  }

  .hero {
    height: 70vh;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-flex {
    flex-direction: column;
    text-align: center;
  }

  .feature-flex.reverse {
    flex-direction: column;
  }

  .feature-image img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .product-card img {
    height: 150px;
  }
}

.price {
  font-weight: bold;
  color: #391809;
  margin: 10px 0;
}

/*---------------------------------------
  CONTACT SECTION
-----------------------------------------*/
.contact-section {
  padding: 80px 10%;
  background-color: #B99268;
}

.contact-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-image {
  flex: 1;
  min-width: 300px;
}

.contact-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-form p {
  margin-bottom: 25px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #774723;
  color: #FBF5E9;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #FBF5E9;
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #895720;
}

.contact-form .btn {
  padding: 12px 25px;
  background-color: #774723;
  color: #FBF5E9;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #895720;
}

/*---------------------------------------
  RESPONSIVE CONTACT
-----------------------------------------*/
@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
    text-align: center;
  }

  .contact-image img {
    max-width: 90%;
    margin: 0 auto;
  }
}

.about-page-section {
  padding: 60px 10%;
  background-color: #B99268;
  color: #FBF5E9;
}

.about-page-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* stack on smaller screens */
}

/* Left image */
.about-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Right text */
.about-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Responsive for mobile */
@media (max-width: 992px) {
  .about-page-section .container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 90%;
    margin: 0 auto 30px auto;
  }

  .about-text {
    width: 90%;
    margin: 0 auto;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }
}

/*---------------------------------------
  PAGE HEADER (like Hero Section)
-----------------------------------------*/
.page-header {
  position: relative;
  background-image: url("images/slides/hero-3.jpg"); /* <-- replace with your own image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: #FBF5E9; /* Soft white text */
  overflow: hidden;
}

/* Dark overlay for better text readability */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* subtle dark overlay */
  z-index: 0;
}

/* Ensure text stays above overlay */
.page-header h2,
.page-header p {
  position: relative;
  z-index: 1;
}

/* Headline Styling */
.page-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Paragraph Styling */
.page-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #f5eede;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-header {
    padding: 80px 15px;
  }
  .page-header h2 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
}

/*---------------------------------------
  CART PAGE STYLING
-----------------------------------------*/
.cart-section {
  background: #FBF5E9;
  color: #391809;
  padding: 80px 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cart-table th, .cart-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.cart-table th {
  background: #B99268;
  color: #FBF5E9;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.cart-table img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 10px;
}

.cart-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qty {
  width: 60px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.remove-btn {
  background: #774723;
  color: #FBF5E9;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.remove-btn:hover {
  background: #895720;
}

/* Cart Total */
.cart-total {
  text-align: right;
}

.cart-total h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.cart-total .btn {
  background: #774723;
  color: #FBF5E9;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.cart-total .btn:hover {
  background: #895720;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-table th, .cart-table td {
    font-size: 0.9rem;
    padding: 12px;
  }

  .cart-product span {
    display: none;
  }

  .cart-total {
    text-align: center;
  }
}

/* Responsive Cart Table */
.cart-section {
  padding: 60px 10%;
  background-color: #B99268;
  color: #FBF5E9;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #774723;
  border-radius: 10px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 12px 15px;
  text-align: left;
  color: #FBF5E9;
}

.cart-table th {
  background-color: #391809;
}

.cart-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cart-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

.cart-product {
  display: flex;
  align-items: center;
}

.cart-table input.qty {
  width: 60px;
  padding: 5px;
  border-radius: 5px;
  border: none;
  text-align: center;
}

.remove-btn {
  background: #391809;
  color: #FBF5E9;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.remove-btn:hover {
  background: #774723;
}

.cart-total {
  text-align: right;
  margin-top: 20px;
}

.cart-total .btn {
  background-color: #774723;
  color: #FBF5E9;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.cart-total .btn:hover {
  background-color: #895720;
}

/* Make table scrollable on small screens */
@media (max-width: 768px) {
  .cart-table-wrapper {
    overflow-x: auto;
  }

  .cart-table {
    min-width: 600px; /* keeps table readable */
  }

  /* Optional: reduce padding for smaller screens */
  .cart-table th,
  .cart-table td {
    padding: 8px 10px;
  }

  .cart-total {
    text-align: center;
  }
}



/* Recipes Section */
.recipes-section {
  padding: 60px 10%;
  background-color: #B99268;
  color: #FBF5E9;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.recipe-card {
  background: #774723;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  padding-bottom: 20px;
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card h3 {
  margin: 15px 0 10px;
}

.recipe-card p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.recipe-card .btn {
  padding: 10px 20px;
  background-color: #391809;
  color: #FBF5E9;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.recipe-card .btn:hover {
  background-color: #774723;
}

/* Hero Section override for Recipes */
.hero-content h2 {
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}


/* Recipe Details Section */
.recipe-details-section {
  padding: 60px 10%;
  background-color: #B99268;
  color: #FBF5E9;
}

.recipe-details-card {
  background-color: #774723;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 900px;
  margin: 0 auto;
}

.recipe-details-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
}

.recipe-details-card h2 {
  margin-bottom: 15px;
}

.recipe-details-card h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.recipe-details-card ul,
.recipe-details-card ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.recipe-details-card li {
  margin-bottom: 8px;
}

.center-btn a.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #391809;
  color: #FBF5E9;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.center-btn a.btn:hover {
  background-color: #774723;
}

/* Responsive */
@media (max-width: 768px) {
  .recipe-details-card {
    padding: 20px;
  }
}

/* Center checkout section */
.checkout {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* Container for form + order summary */
.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
}

.checkout-form {
  background: url('assets/images/form-bg.jpg') center/cover no-repeat;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: #FBF5E9;
}

.checkout-form h3 {
  color: #FBF5E9;
  margin-bottom: 20px;
}

.form-grid .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #FBF5E9;
}

.form-grid .form-group input,
.form-grid .form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Button */
.checkout-btn {
  background: #774723;
  color: #FBF5E9;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #895720;
}

/* Order Summary */
.order-summary {
  background: #B99268;
  color: #FBF5E9;
  padding: 25px;
  border-radius: 10px;
  height: fit-content;
}

.order-summary ul {
  list-style: none;
  padding: 0;
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.order-summary li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    text-align: center;
  }
}

/*---------------------------------------
  why choose us section
-----------------------------------------*/

.why-choose-us {
    padding: 80px 10%;
    background-color: #af842e;
    color: #391809;
  }

  .why-choose-us h2 {
    font-size: 2.5rem;
  }

  .why-choose-us h3 {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
  }

  .choose-card {
    background: #B99268;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #FBF5E9;
  }

  .choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }

  .choose-card i {
    margin-bottom: 20px;
  }

  .choose-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .choose-card p {
    font-size: 1rem;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .choose-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .choose-grid {
      grid-template-columns: 1fr;
    }
  }