/* ===========================
   GLOBAL RESET & BASE
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Georgia", serif;
  background: #f7f3e9;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Bee cursor */
body {
  cursor: url("assets/bee-cursor.png") 8 8, auto;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   HONEYCOMB BACKGROUND WRAP
=========================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 211, 0, 0.08) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 211, 0, 0.08) 0, transparent 55%);
  pointer-events: none;
  z-index: -2;
}

/* ===========================
   LAYOUT WRAPPER
=========================== */

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 3.5rem 0;
}

/* ===========================
   HEADER / TITLE
=========================== */

header {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.logo {
  width: 220px;
  height: auto;
}

.site-title {
  text-align: center;
  font-size: 2.2rem;
  margin-top: 0.75rem;
}

.site-tagline {
  text-align: center;
  margin-top: 0.25rem;
  color: #5a4a32;
}

/* ===========================
   SHOP TITLE
=========================== */

.shop-title {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.6px;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
}

/* ===========================
   PRODUCT GRID
=========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* Floating jar animation */
@keyframes floatJar {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

.product-card {
  background: #fffdf7;
  border: 1px solid #e2dbc9;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.product-card img {
  animation: floatJar 5s ease-in-out infinite;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.product-card h3 {
  font-size: 1.35rem;
  margin: 0.85rem 0 0.55rem;
  font-weight: 600;
}

.product-card p {
  margin-bottom: 0.75rem;
}

.price {
  font-weight: bold;
  margin-bottom: 1.35rem;
  font-size: 1.15rem;
  color: #3a2f1f;
}

/* ===========================
   BUTTONS
=========================== */

button, .btn {
  background: #ffd300;
  color: #1a1a1a;
  border: none;
  padding: 0.8rem 1.35rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-weight: 600;
}

button:hover, .btn:hover {
  background: #ffbf00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Secondary button style */
.btn-secondary {
  background: #1a1a1a;
  color: #fff;
}

/* ===========================
   CART TOGGLE
=========================== */

.cart-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
}

/* ===========================
   CART SIDEBAR
=========================== */

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #fffdf7;
  border-left: 1px solid #e2dbc9;
  padding: 2.25rem;
  overflow-y: auto;
  transition: right 0.32s ease;
  z-index: 999;
  box-shadow: -6px 0 18px rgba(0,0,0,0.14);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e8e1d4;
  font-size: 0.95rem;
}

.cart-item button {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.cart-total {
  font-size: 1.45rem;
  font-weight: bold;
  margin-top: 2.25rem;
  color: #1a1a1a;
}

/* ===========================
   CHECKOUT MODAL
=========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fffdf7;
  padding: 2.25rem;
  width: min(500px, 90%);
  border-radius: 12px;
  border: 1px solid #e2dbc9;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.modal h2 {
  margin-bottom: 1.35rem;
  font-size: 1.6rem;
}

.input {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 1.1rem;
  border-radius: 6px;
  border: 1px solid #d8d2c4;
  background: #fff;
  font-size: 1rem;
}

/* ===========================
   FOOTER
=========================== */

footer {
  text-align: center;
  padding: 2.25rem 0;
  font-size: 0.95rem;
  color: #5a5a5a;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 768px) {
  .container {
    padding: 2.5rem 1.25rem;
  }

  .cart-sidebar {
    width: 100%;
  }

  .cart-toggle {
    right: 1rem;
    bottom: 1rem;
  }
}

