.browse-categories { display: none; }
.category-page { width: min(100%, 1280px); margin: 0 auto; padding: 28px 24px; font-family: Poppins, sans-serif; }
.category-back { color: #64748b; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; text-decoration: none; }
.category-page h1 { margin: 25px 0 20px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.04em; }
.category-page #category-status { color: #64748b; min-height: 20px; margin-bottom: 16px; }
.skeleton-block { position: relative; overflow: hidden; background: #e7eaee; }
.skeleton-block::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 65%), transparent); animation: category-shimmer 1.4s infinite; }
.skeleton-image { width: 100%; aspect-ratio: 1; border-radius: 20px; margin-bottom: 6px; }
.skeleton-line { height: 16px; width: 90%; border-radius: 5px; }
.skeleton-line.short { width: 55%; }
#category-loading { margin-top: 20px; }
#category-loading[hidden] { display: none; }
#category-sentinel { height: 1px; }
@keyframes category-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton-block::after { animation: none; } }
.category-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.category-product { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: #0f172a; text-decoration: none; font-size: 14px; }
.category-product img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; margin-bottom: 6px; }
.category-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-product-store { color: #64748b; font-size: 12px; }
.category-more { display: block; margin: 32px auto; padding: 12px 24px; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 600; }
.category-more[hidden], .browse-overview[hidden], .browse-discover[hidden], .browse-recent[hidden], .browse-show-more[hidden] { display: none; }
.browse-discover { display: none; }
.browse-overview { min-width: 0; }
.browse-section-heading { margin-bottom: 20px; }
.browse-section-heading h2 { margin: 0 0 4px; color: #111827; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.browse-section-heading p { margin: 0; color: #64748b; font-size: 12px; }
.recent-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recent-product { display: flex; align-items: center; gap: 12px; min-width: 0; color: #111827; text-decoration: none; }
.recent-product img { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.recent-product-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; }
.recent-product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-product:hover .recent-product-name, .browse-product:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.recent-product:focus-visible, .browse-show-more:focus-visible { outline: 3px solid #1c74cf; outline-offset: 3px; }
.browse-show-more { display: block; margin: 24px auto 0; padding: 11px 22px; border: 1px solid #dce1e7; border-radius: 999px; background: #fff; color: #0f172a; font: inherit; font-size: 13px; cursor: pointer; }
.browse-show-more:hover { background: #f1f5f9; }
@media (max-width: 479px) { .recent-products { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .category-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  body.uc-shopping-desktop #top-header { display: none; }
  body.uc-shopping-desktop #main-content { max-width: 1360px; width: 100%; margin: 0 auto; padding: 12px 32px 80px 8px; }
  .browse-categories { display: block; }
  .browse-categories.browse-searching { display: none; }
  .browse-categories h2 { font-size: 20px; font-weight: 700; color: #111827; letter-spacing: -.025em; margin: 0 0 22px; }
  #browse-status { color: #64748b; font-size: 14px; }
  .category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .category-tile { min-height: 160px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-radius: 24px; background: var(--tile-color); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
  .category-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgb(15 23 42 / 15%); }
  .category-tile.skeleton-block { background: #e7eaee; }
  .category-tile:focus-visible, .browse-product:focus-visible, .category-product:focus-visible { outline: 3px solid #1c74cf; outline-offset: 3px; }
  .category-tile-images { display: flex; gap: 12px; overflow: hidden; }
  .category-tile-images img { width: min(45%, 92px); aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #f5f4f1; }
  .browse-overview { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; margin-top: 36px; }
  .browse-overview.has-recent { grid-template-columns: minmax(0, 1fr) 260px; }
  .browse-discover { display: block; min-width: 0; }
  .browse-recent { min-width: 0; padding: 20px; border: 1px solid #e5e7eb; border-radius: 24px; background: #fff; }
  .browse-recent .browse-section-heading h2 { font-size: 17px; }
  .recent-products { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .browse-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
  .browse-product { min-width: 0; color: #111827; text-decoration: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
  .browse-product img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 20px; border: 1px solid #e5e7eb; background: #fff; }
  .browse-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .category-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-page { padding-top: 20px; }
}
@media (min-width: 1024px) and (max-width: 1250px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1350px) { .has-recent .browse-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
