/* ─── Shop Page Layout ─── */
.shop-page {
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #E0F7FA 0%, #BAE6F5 40%, #90E0EF 100%);
}

/* ─── Sky & Clouds ─── */
.shop-page .sky-bg {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden;
}
.shop-page .cloud {
  position: absolute;
  background: white;
  border-radius: 100px;
  opacity: 0.65;
  filter: blur(2px);
}
.shop-page .cloud-1 { width: 320px; height: 80px; top: 50px; left: -60px; animation: drift 20s ease-in-out infinite; }
.shop-page .cloud-2 { width: 240px; height: 65px; top: 130px; right: -40px; animation: drift 25s ease-in-out infinite reverse; }
.shop-page .cloud-3 { width: 200px; height: 55px; top: 220px; left: 35%; animation: drift 16s ease-in-out infinite; }

.page-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.15), transparent 70%);
  pointer-events: none;
}

/* ─── Container ─── */
.shop-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

/* ─── Header ─── */
.shop-header {
  padding: 60px 0 56px;
  text-align: center;
}
.shop-header-inner { max-width: 600px; margin: 0 auto; }
.shop-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--sky);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.shop-tag-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.shop-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}
.shop-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.shop-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--aqua);
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ─── Grid ─── */
.grid-section { margin-top: 8px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ─── Product Card ─── */
.product-card {
  position: relative;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,180,216,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,180,216,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
  transition: opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 24px 60px rgba(0,180,216,0.25),
    inset 0 1px 0 rgba(255,255,255,0.7);
  border-color: rgba(0,180,216,0.3);
}
.product-card:hover::before { opacity: 0.8; }

/* Per-product accent colors for the top border */
.product-card[data-product-id="taco"]::before   { background: #00CED1; }
.product-card[data-product-id="water"]::before  { background: #48CAE4; }
.product-card[data-product-id="hat"]::before    { background: #90E0EF; }
.product-card[data-product-id="ticket"]::before { background: #0096C7; }
.product-card[data-product-id="sushi"]::before  { background: #00B4D8; }
.product-card[data-product-id="burger"]::before { background: #FFB703; }
.product-card[data-product-id="coffee"]::before { background: #B5651D; }
.product-card[data-product-id="sneaker"]::before { background: #0077B6; }

/* Card glow overlay */
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,180,216,0.3), transparent 70%);
  border-radius: 22px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-card:hover .card-glow { opacity: 1.5; }

/* ─── Card Visual ─── */
.card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background: rgba(0,180,216,0.06);
  border-radius: 16px;
  border: 1px solid rgba(0,180,216,0.12);
  transition: background 0.3s ease;
}
.product-card:hover .card-visual {
  background: rgba(0,180,216,0.1);
}

/* ─── Card Info ─── */
.card-info { flex: 1; }
.card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.card-rating .stars {
  display: flex;
  gap: 1px;
}
.card-rating .star {
  width: 13px;
  height: 13px;
  color: #FFB703;
}
.card-rating .star.empty {
  color: rgba(0,0,0,0.12);
}
.card-rating .rating-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.card-rating .review-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Card Footer ─── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,180,216,0.1);
}
.card-price {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sky);
  text-shadow: 0 1px 8px rgba(0,180,216,0.2);
}
.card-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00B4D8, #00CED1);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 8px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 3px 12px rgba(0,180,216,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.card-cart-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,180,216,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.card-cart-btn:active:not(:disabled) { transform: translateY(0); }
.card-cart-btn:disabled {
  background: rgba(0,180,216,0.12);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  text-shadow: none;
}

/* ─── Footer note ─── */
.shop-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.5);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.shop-footer-note a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.shop-footer-note a:hover { opacity: 0.75; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .shop-container { padding: 0 24px 60px; }
  .shop-header { padding: 40px 0 40px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .shop-headline { font-size: 2.4rem; }
  .product-grid { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .card-cart-btn { justify-content: center; }
}