/* Storefront - lightweight, landing-compatible styles */
:root {
  --store-bg: #f7f8fb;
  --store-card: #ffffff;
  --store-border: rgba(17, 24, 39, 0.08);
  --store-text: #0f172a;
  --store-muted: rgba(15, 23, 42, 0.7);
  --store-primary: #2f6f62;
  --store-primary-2: #255a51;
  --store-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
}

.store-wrap {
  background: var(--store-bg);
  min-height: 100vh;
}

.store-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.store-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 18px;
}

.store-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--store-text);
  margin: 0;
}

.store-subtitle {
  margin: 0;
  color: var(--store-muted);
  font-size: 13px;
}

.store-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.store-input,
.store-select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--store-border);
  padding: 0 12px;
  background: #fff;
  color: var(--store-text);
  outline: none;
}

.store-input {
  width: min(420px, 70vw);
}

.store-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.store-sidebar {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: 14px;
  box-shadow: var(--store-shadow);
  padding: 14px 14px;
  position: sticky;
  top: 16px;
}

.store-sidebar h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--store-text);
}

.store-checklist {
  display: grid;
  gap: 8px;
}

.store-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--store-muted);
}

.store-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--store-primary);
}

.store-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.store-btn {
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid var(--store-border);
  background: #fff;
  color: var(--store-text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-btn--primary {
  background: var(--store-primary);
  border-color: transparent;
  color: #fff;
}

.store-btn--primary:hover {
  background: var(--store-primary-2);
}

.store-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.store-card {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: 14px;
  box-shadow: var(--store-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.store-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(47, 111, 98, 0.14), rgba(59, 130, 246, 0.10));
}

.store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
}

.store-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.store-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-cat {
  font-size: 12px;
  color: rgba(47, 111, 98, 0.95);
  font-weight: 800;
}

.store-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.store-price .new {
  font-weight: 900;
  color: var(--store-text);
  font-size: 13px;
}

.store-price .old {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.45);
  text-decoration: line-through;
}

.store-title2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--store-text);
  min-height: 40px;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
}

.store-stars {
  letter-spacing: 1px;
  color: #f59e0b;
  font-size: 12px;
}

.store-card .store-cta {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.store-pagination {
  margin-top: 18px;
}

/* Detail page */
.store-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.store-panel {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: 14px;
  box-shadow: var(--store-shadow);
  overflow: hidden;
}

.store-panel__body {
  padding: 14px 14px 16px;
}

.store-detail h1 {
  font-size: 22px;
  font-weight: 900;
  color: var(--store-text);
  margin: 0 0 8px;
}

.store-desc {
  color: var(--store-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.store-heroimg {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(47, 111, 98, 0.14), rgba(59, 130, 246, 0.10));
}

.store-heroimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-kv {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.store-kv .kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--store-muted);
}

.store-kv .kv strong {
  color: var(--store-text);
}

.store-related {
  margin-top: 18px;
}

.store-related h2 {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--store-text);
}

@media (max-width: 992px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-sidebar {
    position: static;
  }
  .store-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .store-products {
    grid-template-columns: 1fr;
  }
  .store-input {
    width: 100%;
  }
}

