:root {
  --color-primary: #1bacf5;
  --color-primary-hover: #0f8fd1;
  --color-primary-active: #0c6ea3;
  --color-bg-fallback: #21b570;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.shop {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);

  background-image: url('Wallpapers/FAW3.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: var(--color-bg-fallback);

  display: flex;
  flex-direction: column; /* stacks content vertically so footer sits at the bottom */
}

.back-button {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

header {
  text-align: center;
  padding: 32px 16px 16px;
}

header h1 {
  color: white;
  font-size: clamp(28px, 6vw, 42px);
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin: 0 0 6px;
}

header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.cart-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px;
  z-index: 10;
}

.cart-button {
  background: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.cart-button:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}

.grid {
  width: 100%;
  margin: 0;
  padding: 8px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Article boxes: translucent white instead of solid, with a blur behind
   them so the background gradient shows through softly */
.card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: row;       /* image left, content right */
  align-items: stretch;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.24);
}

.thumb {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  background: rgba(242, 246, 245, 0.6);
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1a1a1a;
}

.card-body p.desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #555;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.add-button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.add-button:hover { background-color: var(--color-primary-hover); }
.add-button:active { background-color: var(--color-primary-active); transform: scale(0.96); }

@media (max-width: 520px) {
  .card { flex-direction: column; }
  .thumb { flex: 0 0 140px; width: 100%; }
}

footer {
  text-align: center;
  padding: 18px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}