/* IRPA Store — medicines, feed, supplies */
.store-hero {
  background: linear-gradient(135deg, rgba(212, 166, 58, 0.1), rgba(5, 5, 5, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 2.5rem;
}
.store-hero-title { margin-bottom: 0.35rem; }
.store-hero-sub { color: var(--theme-muted, #9ca3af); max-width: 42rem; }

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.store-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}
.store-search:focus {
  outline: none;
  border-color: rgba(212, 166, 58, 0.45);
}

.store-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.store-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.store-cat-btn:hover,
.store-cat-btn.is-active {
  background: rgba(212, 166, 58, 0.18);
  border-color: rgba(212, 166, 58, 0.45);
  color: #fff;
}

.store-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.store-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, border-color 0.2s;
}
.store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 166, 58, 0.35);
}
.store-card-media {
  aspect-ratio: 1;
  background: #111 center/cover no-repeat;
  position: relative;
}
.store-card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(212, 166, 58, 0.9);
  color: #111;
}
.store-card-out {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 800;
  color: #fff;
}
.store-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.store-card-cat { font-size: 0.72rem; color: var(--theme-muted, #9ca3af); margin-bottom: 0.25rem; }
.store-card-title { font-weight: 800; font-size: 0.95rem; line-height: 1.35; margin-bottom: 0.35rem; }
.store-card-brand { font-size: 0.75rem; color: var(--theme-muted, #9ca3af); }
.store-card-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.store-card-price { color: var(--irpa-gold-soft, #fbbf24); font-weight: 800; font-size: 1.05rem; }
.store-card-compare { font-size: 0.8rem; color: #6b7280; text-decoration: line-through; }
.store-card-unit { font-size: 0.72rem; color: #6b7280; }

.store-cart-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a63a, #b8860b);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212, 166, 58, 0.35);
}
.store-cart-float.is-hidden { display: none; }
.store-cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Product page */
.store-product-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .store-product-grid { grid-template-columns: 1fr 1fr; }
}
.store-product-gallery {
  aspect-ratio: 1;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #111 center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.store-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.store-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
.store-qty-input {
  width: 4rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}
.store-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Cart & checkout */
.store-cart-table { width: 100%; border-collapse: collapse; }
.store-cart-table th,
.store-cart-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
}
.store-cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.store-cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.65rem;
  object-fit: cover;
  background: #111;
}
.store-summary {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(212, 166, 58, 0.25);
  background: rgba(212, 166, 58, 0.06);
}
.store-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.92rem;
}
.store-summary-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--irpa-gold-soft, #fbbf24);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.store-order-card {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}
.store-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.store-status--paid { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.store-status--processing { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.store-status--shipped { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.store-status--delivered { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.store-status--cancelled { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

[data-theme="light"] .store-search,
[data-theme="light"] .store-qty-input {
  background: #fff;
  border-color: rgba(14, 165, 233, 0.25);
  color: #0f172a;
}
[data-theme="light"] .store-cat-btn {
  background: #fff;
  border-color: rgba(14, 165, 233, 0.25);
  color: #475569;
}
[data-theme="light"] .store-cat-btn.is-active {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #0284c7;
}
[data-theme="light"] .store-card {
  background: #fff;
  border-color: rgba(14, 165, 233, 0.15);
}
[data-theme="light"] .store-summary {
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.25);
}
