/* ===== STORE PAGE — builds on styles.css + premium.css + pages.css ===== */

.store-hero { padding: 160px 0 70px; text-align: center; }
.store-hero .container { display: block; }
.store-hero .lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.store-hero .breadcrumb { margin-bottom: 18px; }

.store-section { padding: 40px 0 100px; background: var(--cream-light, #fffdf8); }

/* Toolbar: category tabs + search */
.store-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 34px;
}
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-tab {
  font: inherit; font-weight: 600; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 50px; cursor: pointer;
  background: #fff; color: var(--text-body);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}
.cat-tab:hover { border-color: var(--maroon); color: var(--maroon); }
.cat-tab.active {
  background: var(--maroon); border-color: var(--maroon); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(122, 31, 43, 0.5);
}
.cat-tab .count { opacity: 0.65; font-weight: 500; margin-left: 4px; }

.store-search { position: relative; min-width: 240px; }
.store-search input {
  width: 100%; font: inherit; font-size: 0.9rem;
  padding: 11px 16px 11px 42px; border-radius: 50px;
  border: 1px solid var(--border-light); background: #fff;
  color: var(--text-dark); box-shadow: var(--shadow-xs);
}
.store-search input:focus { outline: 2px solid var(--maroon); outline-offset: 1px; }
.store-search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

.store-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 22px; }

/* Category heading rows (shown when "All" is selected) */
.cat-block { margin-bottom: 56px; }
.cat-block-head { margin-bottom: 22px; }
.cat-block-head h2 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.7rem; color: var(--text-dark); letter-spacing: -0.01em;
}
.cat-block-head p { color: var(--text-muted); font-size: 0.92rem; margin-top: 2px; }

/* Product grid + card */
.product-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-img {
  position: relative; display: block; aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #fbf3e3, #f3e4c8);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img .icon-tile { color: var(--maroon); opacity: 0.8; }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--maroon); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 50px;
}
.product-badge.off { left: auto; right: 14px; background: var(--gold-dark); }

.product-info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.product-name a:hover { color: var(--maroon); }
.price-from { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-right: 2px; }
.product-name { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--text-dark); }
.product-author { font-size: 0.82rem; color: var(--text-muted); }
.product-desc {
  font-size: 0.86rem; line-height: 1.6; color: var(--text-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.price-final { font-weight: 800; font-size: 1.15rem; color: var(--text-dark); }
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.price-ask { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }

.btn-order {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.84rem; font-weight: 700; padding: 10px 16px; border-radius: 50px;
  background: var(--maroon); color: #fff; border: 0; cursor: pointer; font-family: inherit; transition: all 0.2s ease; white-space: nowrap;
}
.btn-order:hover { background: var(--maroon-dark); transform: translateY(-1px); }

.store-empty { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.store-empty h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-dark); margin-bottom: 6px; }

/* Help strip */
.store-help {
  margin-top: 20px; padding: 34px 36px; border-radius: var(--radius-lg);
  background: var(--maroon); color: #fff;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.store-help h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 4px; }
.store-help p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

@media (max-width: 640px) {
  .store-hero { padding: 130px 0 50px; }
  .store-search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { padding: 14px; }
  .product-desc { display: none; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .btn-order { justify-content: center; }
  .store-help { padding: 26px 22px; }
}
@media (max-width: 380px) { .product-grid { grid-template-columns: 1fr; } }

/* Category cards strip */
.cat-strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 26px; scrollbar-width: thin; }
.cat-strip:empty { display: none; }
.cat-card {
  flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--text-dark);
}
.cat-card-img {
  width: 110px; height: 110px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f3e4c8; font-family: var(--font-heading); font-size: 2rem; color: var(--maroon);
  border: 3px solid #fff; box-shadow: var(--shadow-md); transition: all 0.25s ease;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .cat-card-img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card.active .cat-card-img { border-color: var(--maroon); }
.cat-card-name { font-weight: 700; font-size: 0.92rem; }
.cat-card.active .cat-card-name { color: var(--maroon); }
.no-img {
  display: none; width: 100%; height: 100%; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 4rem; color: var(--maroon); opacity: 0.5;
}
.product-img img { position: relative; z-index: 1; }
.product-img img:not([src]) + .no-img, .product-img img + .no-img { position: absolute; inset: 0; }
@media (max-width: 640px) { .cat-card { width: 110px; } .cat-card-img { width: 84px; height: 84px; } }

/* Home page shop section */
.home-store { padding: 100px 0; background: var(--cream-light, #fffdf8); }
.home-store .courses-header { text-align: center; margin-bottom: 36px; }
.home-store .home-cats { justify-content: center; flex-wrap: wrap; overflow: visible; }
.home-store .cat-card { text-decoration: none; }
.home-store-cta { text-align: center; margin-top: 44px; }
@media (max-width: 640px) { .home-store { padding: 64px 0; } }
