/* ===========================================================
   My Strand — shop (catalog) layer
   Shared by every catalog page (accessories, bags, jewelry,
   painting, toys): listing grid, sort toolbar, loading skeleton.
   =========================================================== */

#catalog-grid { transition: opacity .2s ease; }

/* Catalog toolbar (sort control) */
.catalog-toolbar { display: flex !important; justify-content: flex-end !important; align-items: center !important; width: 100% !important; margin-bottom: 30px !important; }
.sort-group { display: inline-flex !important; align-items: center !important; gap: 10px !important; font-size: 0.9rem !important; color: var(--text-muted) !important; margin-left: auto !important; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }

/* Skeleton placeholders (while the Google Sheet loads) */
.product-card-skeleton { cursor: default; pointer-events: none; }
.product-card-skeleton:hover { transform: none; box-shadow: none; border-color: var(--border-color); }
.sk { position: relative; overflow: hidden; background: var(--bg-subtle); border-radius: 6px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk-thumb { width: 100%; height: 100%; border-radius: 0; }
.sk-line { height: 0.9rem; }
.sk-title-wrap { min-height: 2.6em; margin-bottom: 20px; display: flex; flex-direction: column; gap: 9px; }
.sk-line-short { width: 55%; }
.sk-price { width: 32%; }
.sk-link { width: 24%; height: 0.8rem; }
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}
