body {
  font-family: 'Poppins', sans-serif;
  background: #2e211b;
  color: #fffaf4;
  margin: 0;
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav-left ul,
.nav-right,
.nav-center {
  display: flex;
  align-items: center;
}

.nav-left ul {
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-left {
  justify-content: flex-start;
}

.nav-center {
  justify-content: center;
}

.nav-right {
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  justify-content: center;
}

.logo {
  height: 50px;
  object-fit: contain;
}

.cart-link {
  color: #fffaf4;
  text-decoration: none;
  font-weight: 500;
}

.cart-link:hover {
  color: #c96c3e;
}

.global-footer {
  text-align: center;
  padding: 20px;
  background: #f3ebe3;
  color: #5a3c36;
  font-size: 0.85rem;
}

.global-footer a {
  color: #c96c3e;
  text-decoration: none;
}

.global-footer a:hover {
  text-decoration: underline;
}

.global-footer img {
  margin-top: 8px;
}

header {
  background: #6e4035;
  padding: 20px 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #e8d9c3;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fffaf4;
}

.hero-center-image {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.hero-content.centered {
  max-width: 700px;
  margin: 0 auto;
}

.announcement {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: #fffaf4;
  background-color: rgba(123, 90, 76, 0.8); /* slightly translucent */
  padding: 10px 20px;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.shop-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.filter-sidebar {
  width: 220px;
}

.filter-sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: transparent;
  color: #e8d9c3;
  border: 2px solid #7b5a4c;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-sidebar button.active,
.filter-sidebar button:hover {
  background: #7b5a4c;
}

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

.product-card {
  background: #fffaf4;
  border-radius: 12px;
  padding: 16px;
  color: #2e211b;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  transition: transform 0.3s ease;
}

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

.product-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 12px 0 6px;
}

.product-card p {
  font-size: 0.95rem;
  margin: 6px 0;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #c96c3e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn:hover {
  background: #a2512f;
}

.hero .btn {
  font-size: 1rem;
  padding: 10px 16px;
  margin-top: 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9;
}

@media (max-width: 768px) {
  .overlay {
    display: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 98;
  }

  .nav-left,
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #6e4035;
    padding: 10px 0;
  }

  .nav-left.active,
  .nav-right.active {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    grid-template-columns: none;
  }

  .nav-center {
    order: -1;
    margin: 0 auto 10px;
  }

  .main-nav.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #6e4035;
    height: 100vh;
    padding-top: 80px;
    z-index: 8;
  }

  .main-nav.fullscreen-nav .nav-left,
  .main-nav.fullscreen-nav .nav-right {
    display: flex !important;
  }

  .main-nav.fullscreen-nav .logo-link {
    margin-bottom: 20px;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  background: #1e1e1e;
  color: #e8d9c3;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  transition: transform 0.4s ease;
  z-index: 101;
}

.cart-drawer.open {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .cart-drawer {
    padding: 20px;
  }
}

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

.cart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  color: #e8d9c3;
  cursor: pointer;
}

#cart-table th,
#cart-table td {
  color: #f3ebe3;
  border-bottom: 1px solid #555;
}

a {
  color: #c96c3e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #e8d9c3;
}

.contact-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fffaf4;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 20px;
  }
}

.product-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.product-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #e8d9c3;
}

.price-tag {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fffaf4;
  margin-bottom: 10px;
}

.summary-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #fffaf4;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-controls input[type="number"] {
  width: 60px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.accordion {
  margin-top: 40px;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  font-size: 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  color: #e8d9c3;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: 10px;
  color: #fffaf4;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: #fffaf4;
}

.accordion-content.open {
  max-height: 500px;
  padding: 10px 20px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #c96c3e;
}

.cart-page {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 12px;
  color: #fffaf4;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid #555;
  text-align: left;
  color: #fffaf4;
}

.cart-table th {
  background-color: #2e211b;
  color: #e8d9c3;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: right;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 20px;
    align-items: center;
  }

  .nav-left,
  .nav-right {
    display: none !important;
  }

  .mobile-menu-overlay {
    padding-top: 40px;
  }
}

/* Hamburger menu toggle setup */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fffaf4;
  cursor: pointer;
  z-index: 98;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 98;
  }

  .nav-left,
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #6e4035;
    padding: 10px 0;
  }

  .nav-left.active,
  .nav-right.active {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    position: relative;
    grid-template-columns: none;
  }

  .nav-center {
    order: -1;
    margin: 10px 0;
  }
}

/* For large screens (desktop) */
@media (min-width: 1025px) {
  .cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    box-sizing: border-box;
    background: #1e1e1e;
    color: #e8d9c3;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.4s ease;
    z-index: 101;
    transform: translateX(420px); /* Initially hidden off-screen to the right */
  }
  .cart-drawer.open {
    transform: translateX(0);
  }
}

/* For small screens (mobile & tablets) */
@media (max-width: 1024px) {
  .cart-drawer {
    position: fixed;
    top: 20px;  /* Spacer from top */
    right: 20px; /* Spacer from right */
    width: calc(100vw - 40px);  /* Full width minus side margins */
    height: calc(100vh - 40px); /* Full height minus top and bottom margins */
    box-sizing: border-box;
    background: #1e1e1e;
    color: #e8d9c3;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.4s ease;
    z-index: 101;
    transform: translateX(calc(100vw)); /* Hidden off-screen */
  }
  .cart-drawer.open {
    transform: translateX(0);
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background: #6e4035;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 99;
  transition: all 0.3s ease;
  padding-top: 40px;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay a {
  font-size: 1.5rem;
  color: #e8d9c3;
  text-decoration: none;
  margin: 20px 0;
  font-weight: bold;
  margin-top: 10px;
}

.mobile-menu-overlay a:hover {
  color: #fffaf4;
}