/* B-09: the store card and the category tile (public/js/shopora-cards.js),
   the same on the home page, the Stores page and the Categories page. */

.sc-card { position: relative; height: 100%; background: #fff; border: 1px solid #eef0f2; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.sc-card .list-card-image { position: relative; padding: 0 !important; }
.sc-badge { position: absolute; left: 8px; top: 8px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: #E8834A; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }
.sc-nophoto { display: flex !important; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #FFE8D9; }
.sc-nophoto .sc-logo { width: 55%; max-width: 170px; height: auto; }
.sc-body { padding: 9px 11px 11px; }
.sc-name { display: block; color: #1f2933 !important; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none !important; }
.sc-meta { margin-top: 3px; font-size: 13px; color: #4b5563; }
.sc-meta .fa-star { color: #f5a623; }
.sc-open { color: #1e8e3e; font-weight: 600; }
.sc-closed { color: #8a8f98; font-weight: 600; }

/* Page grids: stores 2 across on a phone, 4 on a computer. */
.sc-grid { display: flex; flex-wrap: wrap; margin: 0 -7px; }
.sc-grid > .sc-col { flex: 0 0 50%; max-width: 50%; padding: 0 7px; margin-bottom: 14px; }
@media (min-width: 768px) { .sc-grid > .sc-col { flex-basis: 25%; max-width: 25%; } }

/* Category tile: our picture in a rounded square, our full name (two lines,
   smaller text when long, never "..."), and the number of items. */
.ct-tile { display: flex; flex-direction: column; align-items: center; text-align: center; color: #1f2933 !important; text-decoration: none !important; }
.ct-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; background: #fff; border: 1px solid #F0E4D8; overflow: hidden; }
.ct-img img { width: 88%; height: 88%; object-fit: contain; }
.ct-img.ct-nophoto { background: #FFE8D9; border-color: #FFE8D9; }
.ct-img.ct-nophoto img { width: 70%; height: auto; }
.ct-tile:hover .ct-img { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ct-name { margin: 8px 0 2px; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.ct-name.ct-long { font-size: 12px; }
.ct-count { font-size: 12px; color: #8a8f98; }
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
@media (min-width: 768px) { .ct-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .ct-grid { grid-template-columns: repeat(7, 1fr); } }

/* Filter buttons (Stores page) */
.sc-filters { --sr-gap: 8px; }
.sc-filter { flex: 0 0 auto; white-space: nowrap; border: 1px solid #d9dde1; background: #fff; color: #1f2933; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.sc-filter.active { background: #E8834A; border-color: #E8834A; color: #fff; }
.sc-filter:focus { outline: none; }
.sc-filter:focus-visible { outline: 2px solid #E8834A; outline-offset: 2px; }
/* Store names show whole, wrapping instead of "...". */
.sc-card .sc-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
