/* ====================== */
/* 1️⃣ Base Reset & Fonts */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #fffaf7;
  color: #6e6e6e;
  line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ====================== */
/* 2️⃣ Header */
/* ====================== */
header {
  background: #fffaf7;
  border-bottom: 3px solid #f48b29;
  padding: 8px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo img { width: 40px; height: auto; }
.logo span {
  font-family: 'Quattrocento', serif;
  font-size: 18px;
  color: #5a2d0c;
  margin-left: 5px;
}

.tagline { margin-left: 10px; color: #d36d3f; font-weight: 600; font-size: 13px; }

.nav-login {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login .cta-button { font-size: 12px; padding: 3px 8px; }

/* ====================== */
/* 3️⃣ Navbar */
/* ====================== */
nav ul {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}

nav ul li a {
  color: #d36d3f;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 12px;
}

nav ul li a.active,
nav ul li a:hover {
  background: #d36d3f;
  color: #fff;
}

/* ====================== */
/* 4️⃣ Shop Layout */
/* ====================== */
.shop-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Filter Sidebar (Left) ---------- */
.filter-sidebar {
  flex: 1 1 200px;
  background: #fffaf7;
  padding: 15px;
  border-radius: 15px;
  border: 2px solid #f48b29;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(212,175,55,0.1);
}

.filter-sidebar h3 { font-size: 13px; margin-bottom: 8px; color: #5a2d0c; }
.filter-sidebar ul li { margin: 5px 0; }
.filter-sidebar ul li a {
  text-decoration: none;
  color: #d36d3f;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.filter-sidebar ul li a.active,
.filter-sidebar ul li a:hover {
  font-weight: 700;
  color: #5a2d0c;
}

/* ---------- Products Area (Middle) ---------- */
.products-area {
  flex: 3 1 500px;
  display: flex;
  flex-direction: column;
}

.go-back-container { margin-bottom: 15px; }
.go-back-container .cta-button {
  background: #5a2d0c;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.go-back-container .cta-button:hover { background: #3e1c09; }

.category { margin-bottom: 25px; }
.category h2 {
  border-bottom: 2px solid #f48b29;
  margin-bottom: 10px;
  color: #5a2d0c;
  font-size: 14px;
  font-family: 'Quattrocento', serif;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.product-card {
  background: #fffdf8;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(212,175,55,0.2),
              inset 0 0 10px rgba(212,175,55,0.05);
  font-size: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(212,175,55,0.35),
              inset 0 0 15px rgba(212,175,55,0.1);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 2px solid #f6e2b3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(212,175,55,0.4);
}

.product-card h3 { font-size: 12px; margin: 6px 0; color: #5a2d0c; }
.product-card .price { color: #d36d3f; font-weight: bold; font-size: 12px; }
.product-card .out-of-stock { color: red; font-weight: bold; margin-bottom: 5px; }
.product-card button[disabled] { background: #ccc; cursor: not-allowed; }

/* ---------- Cart Sidebar (Right) ---------- */
.cart-sidebar {
  flex: 1 1 250px;
  background: #fffdf8;
  padding: 15px;
  border-radius: 15px;
  border: 2px solid #d4af37;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(212,175,55,0.25),
              inset 0 0 15px rgba(212,175,55,0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.cart-item span { margin-right: 5px; }
.cart-sidebar input,
.cart-sidebar textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 13px;
}
.cart-sidebar button {
  width: 100%;
  margin-top: 10px;
  background: #d36d3f;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cart-sidebar button:hover {
  background: #a84d25;
  transform: scale(1.03);
}

/* ---------- Buttons ---------- */
.cta-button {
  background: #d36d3f;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta-button:hover { background: #a84d25; transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .shop-container { flex-direction: column; }
  .products-area, .filter-sidebar, .cart-sidebar { flex: 1 1 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); }
}

@media (max-width: 768px) {
  .top-bar { flex-direction: column; align-items: flex-start; }
  .nav-login { margin-top: 10px; }
  .product-card img { height: 120px; }
}

@media (max-width: 480px) {
  .product-card img { height: 100px; }
  .cta-button { padding: 5px 8px; font-size: 13px; }
  .cart-sidebar input, .cart-sidebar textarea { font-size: 12px; padding: 5px; }
}
