/* ---- Public store pages ---- */
body.cb-store-page #primary { max-width: 80rem; }
.cb-store-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.cb-store-banner { height: 190px; background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 45%, #7c3aed 100%) center / cover no-repeat; position: relative; }
.cb-store-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .28)); }
.cb-store-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 26px 18px; margin-top: -46px; position: relative; z-index: 2; }
.cb-store-logo { flex: none; width: 108px; height: 108px; border-radius: 22px; border: 4px solid #fff; background: #e0e7ff; color: #3730a3; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; overflow: hidden; box-shadow: 0 8px 22px rgba(15, 23, 42, .18); animation: cb-store-pop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.cb-store-logo img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.cb-store-id { padding-top: 54px; min-width: 0; }
.cb-store-id h1 { margin: 0 0 2px; font-size: 26px; font-weight: 800; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-store-id h1 .cb-bx-slot { display: inline-flex; }
.cb-store-tagline { margin: 0 0 8px; color: #475569; }
.cb-store-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: 14px; color: #64748b; }
.cb-store-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cb-store-count { color: #94a3b8; }
.cb-store-norating { color: #94a3b8; }
.cb-store-tabs { display: flex; gap: 4px; padding: 0 20px; border-top: 1px solid #eef2f7; overflow-x: auto; }
.cb-store-tabs a { position: relative; padding: 14px 16px; font-weight: 600; font-size: 14px; color: #64748b; text-decoration: none; white-space: nowrap; transition: color .2s; }
.cb-store-tabs a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #2563eb; transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.cb-store-tabs a:hover { color: #0f172a; }
.cb-store-tabs a.is-on { color: #1d4ed8; }
.cb-store-tabs a.is-on::after, .cb-store-tabs a:hover::after { transform: scaleX(1); }

.cb-store-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cb-store-search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; margin: 0; }
.cb-store-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.cb-store-search input[type="search"]:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.cb-store-search button { width: auto; }
.cb-store-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; }
.cb-store-sort select { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.cb-store-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cb-store-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid #dbe3ee; background: #fff; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .18s, border-color .18s, background .18s, color .18s; }
.cb-store-chips a span { font-size: 11px; color: #94a3b8; }
.cb-store-chips a:hover { transform: translateY(-2px); border-color: #93c5fd; }
.cb-store-chips a.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
.cb-store-chips a.is-on span { color: #bfdbfe; }

.cb-store-about { display: grid; gap: 18px; max-width: 820px; }
.cb-store-about section, .cb-store-review { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 22px; }
.cb-store-about h2 { margin: 0 0 8px; font-size: 18px; }
.cb-store-about p { margin: 0 0 10px; }
.cb-store-reviews { display: grid; gap: 12px; max-width: 820px; }
.cb-store-summary { margin: 0 0 4px; font-size: 15px; }
.cb-store-review p { margin: 6px 0 0; }
.cb-store-review-top { display: flex; align-items: center; gap: 10px; }
.cb-store-missing { text-align: center; padding: 60px 16px; }

/* directory */
.cb-store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.cb-store-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.cb-store-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15, 23, 42, .12); border-color: #bfd3ff; }
.cb-store-card-banner { height: 84px; background: linear-gradient(120deg, #1e3a8a, #2563eb 50%, #7c3aed) center / cover no-repeat; }
.cb-store-card-logo { width: 60px; height: 60px; margin: -30px 0 0 18px; border-radius: 16px; border: 3px solid #fff; background: #e0e7ff; color: #3730a3; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 24px; position: relative; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.cb-store-card:hover .cb-store-card-logo { transform: scale(1.1) rotate(-4deg); }
.cb-store-card-logo img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.cb-store-card-name { padding: 10px 18px 0; font-weight: 700; font-size: 17px; }
.cb-store-card-tag { padding: 2px 18px 0; color: #64748b; font-size: 13px; min-height: 18px; }
.cb-store-card-meta { padding: 8px 18px 0; color: #64748b; font-size: 13px; }
.cb-store-card-go { padding: 12px 18px 16px; margin-top: auto; color: #1d4ed8; font-weight: 700; font-size: 14px; }
.cb-store-card-go { transition: padding-left .2s; }
.cb-store-card:hover .cb-store-card-go { padding-left: 24px; }

/* strips on the product page */
.cb-strip { margin-top: 44px; }
.cb-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cb-strip-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.cb-strip-head a { font-weight: 600; font-size: 14px; color: #1d4ed8; text-decoration: none; }
.cb-strip-head a:hover { text-decoration: underline; }
.cb-strip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .cb-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* the store name pill on cards and the product page */
a.cb-badge { text-decoration: none; transition: transform .18s, box-shadow .18s; }
a.cb-badge:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(202, 138, 4, .25); }

/* vendor's profile editor */
.cb-store-profile-form form { max-width: 760px; }
.cb-sp-images { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin: 16px 0; }
.cb-sp-preview { margin: 6px 0; border-radius: 14px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #64748b; font-weight: 700; }
.cb-sp-logo { width: 96px; height: 96px; font-size: 34px; }
.cb-sp-banner { height: 96px; }
.cb-sp-preview img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.cb-sp-check { display: block; margin-top: 4px; font-size: 13px; }
.cb-store-profile-form input[type="text"], .cb-store-profile-form textarea { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }

@keyframes cb-store-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 640px) {
	.cb-store-head { flex-direction: column; align-items: flex-start; padding: 0 16px 14px; }
	.cb-store-id { padding-top: 0; }
	.cb-store-banner { height: 130px; }
	.cb-sp-images { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.cb-store-logo, .cb-store-card, .cb-store-card-logo, .cb-store-chips a, .cb-store-tabs a::after { animation: none !important; transition: none !important; }
}
