/* ── Petwebly Brand Showcase — Public Styles ────────────────── */
:root {
  --pbs-navy:   #1a237e;
  --pbs-amber:  #f59e0b;
  --pbs-light:  #f0f4ff;
  --pbs-border: #e5e7eb;
  --pbs-grey:   #6b7280;
  --pbs-radius: 14px;
  --pbs-shadow: 0 4px 20px rgba(26,35,126,.10);
}

/* ── Showcase Wrapper ── */
.pbs-showcase { font-family: inherit; }

/* ── Hero ── */
.pbs-hero { background: linear-gradient(135deg, var(--pbs-navy) 0%, #283593 100%); color: #fff; padding: 56px 24px; text-align: center; border-radius: var(--pbs-radius); margin-bottom: 36px; }
.pbs-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin: 0 0 12px; }
.pbs-hero p  { font-size: 17px; opacity: .85; max-width: 560px; margin: 0 auto 28px; }
.pbs-search-bar { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.pbs-search-bar input { flex: 1; border: none; padding: 14px 20px; font-size: 15px; outline: none; color: #111; }
.pbs-search-bar button { background: var(--pbs-amber); border: none; padding: 14px 24px; font-weight: 800; font-size: 14px; color: var(--pbs-navy); cursor: pointer; transition: background .2s; }
.pbs-search-bar button:hover { background: #d97706; }

/* ── Filter Bar ── */
.pbs-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; align-items: center; }
.pbs-filter-btn { padding: 8px 18px; border-radius: 50px; border: 2px solid var(--pbs-border); background: #fff; font-size: 13px; font-weight: 700; color: var(--pbs-grey); cursor: pointer; transition: all .2s; }
.pbs-filter-btn:hover, .pbs-filter-btn.active { background: var(--pbs-navy); border-color: var(--pbs-navy); color: #fff; }
.pbs-filter-count { display: inline-block; background: var(--pbs-amber); color: var(--pbs-navy); font-size: 10px; font-weight: 900; border-radius: 50px; padding: 1px 7px; margin-left: 4px; }

/* ── Section Heading ── */
.pbs-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pbs-section-heading h2 { font-size: 22px; font-weight: 900; color: var(--pbs-navy); margin: 0; }
.pbs-section-heading h2 span { color: var(--pbs-amber); }

/* ── Brand Grid ── */
.pbs-brand-grid { display: grid; grid-template-columns: repeat(var(--pbs-cols, 3), 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 900px) { .pbs-brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pbs-brand-grid { grid-template-columns: 1fr; } }

/* ── Brand Card ── */
.pbs-brand-card { background: #fff; border-radius: var(--pbs-radius); box-shadow: var(--pbs-shadow); overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; border: 1px solid var(--pbs-border); }
.pbs-brand-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(26,35,126,.18); }
.pbs-brand-card-cover { height: 120px; background: var(--pbs-light); overflow: hidden; position: relative; }
.pbs-brand-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.pbs-brand-card-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--pbs-navy), #3949ab); }
.pbs-brand-card-featured-badge { position: absolute; top: 10px; right: 10px; background: var(--pbs-amber); color: var(--pbs-navy); font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 50px; }
.pbs-brand-card-body { padding: 20px; }
.pbs-brand-card-logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pbs-brand-card-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--pbs-border); background: #fff; padding: 4px; }
.pbs-brand-card-logo-placeholder { width: 52px; height: 52px; background: var(--pbs-navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 18px; flex-shrink: 0; }
.pbs-brand-card-name { font-size: 17px; font-weight: 900; color: var(--pbs-navy); margin: 0 0 2px; }
.pbs-brand-card-tagline { font-size: 12px; color: var(--pbs-grey); margin: 0; }
.pbs-brand-card-desc { font-size: 13px; color: #4b5563; line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbs-brand-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pbs-brand-card-product-count { font-size: 12px; color: var(--pbs-grey); }
.pbs-brand-card-cta { background: var(--pbs-navy); color: #fff; border: none; padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s; }
.pbs-brand-card-cta:hover { background: #0d1457; }

/* ── Featured Strip ── */
.pbs-featured-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 40px; scrollbar-width: thin; }
.pbs-featured-strip::-webkit-scrollbar { height: 4px; }
.pbs-featured-strip::-webkit-scrollbar-thumb { background: var(--pbs-border); border-radius: 4px; }
.pbs-featured-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--pbs-border); border-radius: 50px; padding: 8px 18px 8px 8px; cursor: pointer; white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.pbs-featured-chip:hover { border-color: var(--pbs-navy); background: var(--pbs-light); }
.pbs-featured-chip img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; border: 1px solid var(--pbs-border); }
.pbs-featured-chip span { font-size: 13px; font-weight: 700; color: var(--pbs-navy); }

/* ── Modal ── */
.pbs-modal-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); overflow-y: auto; padding: 40px 16px; }
.pbs-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.pbs-modal-panel { background: #fff; border-radius: 20px; width: 100%; max-width: 860px; box-shadow: 0 32px 80px rgba(0,0,0,.25); animation: pbs-pop .3s cubic-bezier(.34,1.56,.64,1); overflow: hidden; }
@keyframes pbs-pop { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Brand Modal Header */
.pbs-modal-brand-header { position: relative; height: 180px; overflow: hidden; }
.pbs-modal-brand-header img.cover { width: 100%; height: 100%; object-fit: cover; }
.pbs-modal-brand-header .cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--pbs-navy), #3949ab); }
.pbs-modal-brand-header .pbs-modal-close-btn { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.4); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.pbs-modal-brand-header .pbs-modal-close-btn:hover { background: rgba(0,0,0,.7); }
.pbs-modal-brand-logo-row { position: absolute; bottom: -28px; left: 28px; display: flex; align-items: flex-end; gap: 16px; }
.pbs-modal-brand-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; border: 3px solid #fff; background: #fff; padding: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.pbs-modal-brand-logo-placeholder { width: 64px; height: 64px; background: var(--pbs-navy); border-radius: 14px; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 22px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* Brand Modal Body */
.pbs-modal-body { padding: 44px 28px 28px; }
.pbs-modal-brand-name { font-size: 26px; font-weight: 900; color: var(--pbs-navy); margin: 0 0 4px; }
.pbs-modal-brand-tagline { font-size: 14px; color: var(--pbs-grey); margin: 0 0 16px; }
.pbs-modal-brand-desc { font-size: 15px; color: #374151; line-height: 1.7; margin-bottom: 28px; }
.pbs-modal-brand-cta-row { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.pbs-modal-shop-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--pbs-amber); color: var(--pbs-navy); padding: 12px 28px; border-radius: 50px; font-weight: 900; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: background .2s; }
.pbs-modal-shop-btn:hover { background: #d97706; color: var(--pbs-navy); }
.pbs-modal-website-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--pbs-navy); padding: 12px 24px; border-radius: 50px; font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid var(--pbs-border); transition: all .2s; }
.pbs-modal-website-btn:hover { border-color: var(--pbs-navy); }

/* Product Grid inside modal */
.pbs-modal-products-heading { font-size: 18px; font-weight: 900; color: var(--pbs-navy); margin: 0 0 16px; }
.pbs-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pbs-product-card { background: var(--pbs-light); border-radius: 12px; overflow: hidden; border: 1px solid var(--pbs-border); transition: transform .2s, box-shadow .2s; }
.pbs-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,35,126,.12); }
.pbs-product-card-img { height: 160px; overflow: hidden; position: relative; background: #fff; }
.pbs-product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pbs-product-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--pbs-grey); font-size: 32px; }
.pbs-product-badge { position: absolute; top: 8px; left: 8px; background: var(--pbs-amber); color: var(--pbs-navy); font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 50px; }
.pbs-product-card-body { padding: 14px; }
.pbs-product-card-name { font-size: 14px; font-weight: 800; color: var(--pbs-navy); margin: 0 0 4px; line-height: 1.3; }
.pbs-product-card-pet { font-size: 11px; color: var(--pbs-grey); margin-bottom: 8px; }
.pbs-product-card-price { font-size: 13px; font-weight: 700; color: #059669; margin-bottom: 12px; }
.pbs-product-card-btn { display: block; text-align: center; background: var(--pbs-navy); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.pbs-product-card-btn:hover { background: #0d1457; color: #fff; }

/* Product Detail Modal */
.pbs-product-detail { padding: 28px; }
.pbs-product-detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--pbs-navy); font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 20px; background: none; border: none; padding: 0; }
.pbs-product-detail-back:hover { text-decoration: underline; }
.pbs-product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .pbs-product-detail-inner { grid-template-columns: 1fr; } }
.pbs-product-detail-img { border-radius: 12px; overflow: hidden; background: var(--pbs-light); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pbs-product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pbs-product-detail-info { display: flex; flex-direction: column; }
.pbs-product-detail-brand { font-size: 12px; color: var(--pbs-grey); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.pbs-product-detail-name { font-size: 22px; font-weight: 900; color: var(--pbs-navy); margin: 0 0 8px; line-height: 1.2; }
.pbs-product-detail-price { font-size: 20px; font-weight: 900; color: #059669; margin-bottom: 16px; }
.pbs-product-detail-desc { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.pbs-product-detail-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--pbs-amber); color: var(--pbs-navy); padding: 14px 32px; border-radius: 50px; font-weight: 900; font-size: 16px; text-decoration: none; transition: background .2s; }
.pbs-product-detail-btn:hover { background: #d97706; color: var(--pbs-navy); }
.pbs-product-detail-disclosure { font-size: 11px; color: var(--pbs-grey); margin-top: 10px; text-align: center; }

/* ── Disclosure Footer ── */
.pbs-disclosure { background: var(--pbs-light); border: 1px solid var(--pbs-border); border-radius: 10px; padding: 16px 20px; font-size: 12px; color: var(--pbs-grey); line-height: 1.6; margin-top: 40px; }
.pbs-disclosure strong { color: var(--pbs-navy); }

/* ── No Results ── */
.pbs-no-results { text-align: center; padding: 60px 20px; color: var(--pbs-grey); }
.pbs-no-results .icon { font-size: 48px; margin-bottom: 12px; }
.pbs-no-results h3 { color: var(--pbs-navy); font-size: 20px; margin: 0 0 8px; }
