body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}
/* Announcement Bar */
.announcement-bar {
  background: #1a202c;
  color: #fff;
  text-align: center;
  padding: 10px;
  animation: fadeSlide 6s infinite;
}

@keyframes fadeSlide {
  0% {opacity: 0;}
  10% {opacity: 1;}
  90% {opacity: 1;}
  100% {opacity: 0;}
}

/* Header */
#main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #ddd;
  transition: top 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.header-icons button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#mobile-nav {
  position: absolute;
  top: 50px;
  left: 0;
  width: fit-content !important;
  background: #f9f9f9;
  padding: 0 15px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
}

#mobile-nav.open {
  max-height: 300px; /* adjust if needed */
  padding: 15px;
}


#mobile-nav ul {
  list-style: none;
}

#mobile-nav ul li {
  margin-bottom: 10px;
}

#mobile-nav ul li a {
  color: #333;
  text-decoration: none;
}

/* Search Bar */
.search-bar {
  display: none;
  position: fixed; /* use fixed so it stays in place on scroll */
  top: 120px;
  right: 5%;
  width: 260px;
  background: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.search-bar.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-content {
  display: flex;
  gap: 5px;
  align-items: center;
}

#search-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

.search-submit {
  padding: 8px 12px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.search-submit:hover {
  background-color: #111;
}

/* Red cancel button at top right */
.close-btn {
  position: fixed;
  top: 1px;
  right: 8px;
  width: 20px;
  height: 15px;
  background: rgba(255, 255, 255, 0.8); /* light soft background */
  border-radius: 100%;
  border: none;
  color: red;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 1);
}
.cart-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  padding: 2rem;
}

.cart-items-section,
.checkout-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.checkout-section{
  justify-items: center;
}
.cart-items-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.suggestions-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.cart-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.suggestion-card {
  width: 150px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
  margin: 8px;
  flex-shrink: 0;
}

.cart-item img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 4px;
}

.suggestion-card img {
  width: 100%;
  height: 120px; /* or any fixed height you prefer */
  object-fit: cover;
  border-radius: 6px;
  display: block;
}


.cart-total {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.express-checkout button,
.checkout-section button,
.suggestion-card button {
  padding: 0.5rem 1rem;
  margin: 0.25rem 0.5rem 0.5rem 0;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.or-divider {
  text-align: center;
  margin: 1rem 0;
  font-weight: bold;
}

#checkout-form {
  display: flex;
  flex-direction: column;
}

#checkout-form input,
#checkout-form select {
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.terms-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .cart-container {
    flex-direction: row;
  }
  .cart-items-section {
    flex: 2;
  }
  .checkout-section {
    flex: 1.2;
  }
}
@media (max-width: 768px) {
  .cart-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}
.cart-item img {
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 4px;
}
}