:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.banner {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1400px;
}

@media (max-width: 640px) {
  .hero {
    padding: 0;
  }
}

/* Shop + cart styles below are unused while index.html is banner-only.
   Kept here so the shop can be switched back on later without redoing it. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  font-family: "Inter", sans-serif;
}

.topbar-logo {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2b2b2b;
}

.cart-toggle {
  position: relative;
  border: 1px solid #2b2b2b;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.cart-count {
  display: inline-block;
  margin-left: 6px;
  background: #2b2b2b;
  color: #fff;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 0.75rem;
}

.shop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  font-family: "Inter", sans-serif;
}

.shop h2 {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b2b2b;
  margin-bottom: 32px;
}

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

.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #2b2b2b;
}

.product-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 600;
  color: #2b2b2b;
}

.add-to-cart,
#checkout-btn {
  background: #2b2b2b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.add-to-cart:hover,
#checkout-btn:hover:not(:disabled) {
  background: #444;
}

#checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transition: right 0.25s ease;
  z-index: 20;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

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

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

.cart-drawer-header button {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  color: #888;
  font-size: 0.9rem;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 0.85rem;
}

.cart-line-name {
  flex: 1;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-line-controls button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.cart-drawer-footer #cart-total {
  font-weight: 600;
  margin: 0 0 12px;
}

.cart-drawer-footer #checkout-btn {
  width: 100%;
  padding: 12px;
}
