/* PC Waha visual reference — draft implementation (2026-11-09).
   Only enhance existing real data and actions; no demo carts, ratings or inventory. */
:root { --pw-ref-cyan:#36c9ff; --pw-ref-glow:rgba(40,197,255,.26); }
body {
  background:radial-gradient(ellipse at 80% 8%,rgba(17,87,173,.20),transparent 42%),
             linear-gradient(180deg,#051121 0%,#081b30 48%,#061422 100%);
}
.site-header { border-bottom:1px solid #226c9c; box-shadow:0 3px 24px rgba(13,143,241,.13); }
.site-header .brand strong { font-weight:900; font-size:clamp(1.06rem,1.6vw,1.43rem); }
.pw-ref-hero {
  position:relative; overflow:hidden; background:
  repeating-linear-gradient(128deg,transparent 0 78px,rgba(26,156,251,.08) 79px 81px,transparent 82px 150px),
  radial-gradient(ellipse at 23% 72%,rgba(4,117,213,.34),transparent 54%),
  linear-gradient(145deg,#061326,#0c2a4a 60%,#030c1c);
  border-bottom:1px solid #1e648f; min-height:340px;
}
.pw-ref-hero:before { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(135deg,transparent 43%,rgba(16,174,255,.10) 44%,transparent 46%),
  linear-gradient(135deg,transparent 64%,rgba(16,174,255,.10) 65%,transparent 67%);
}
.pw-ref-hero .hero-content { position:relative; z-index:1; }
.pw-ref-hero .hero-copy h1 { font-size:clamp(2rem,4.4vw,4rem); margin:12px 0; line-height:1.16; }
.pw-ref-hero .hero-copy h1 span { color:#34baff; text-shadow:0 0 22px rgba(30,165,253,.28); }
.pw-ref-hero .hero-copy h1 small { display:inline-block; max-width:24ch; font-size:clamp(1.02rem,1.6vw,1.45rem); font-weight:760; color:#f3f8ff; line-height:1.55; }
.pw-ref-hero .hero-lead { font-size:1.02rem; max-width:58ch; color:#c5ddef; }
.pw-ref-hero .hero-illustration { justify-self:center; position:relative; }
.pw-ref-hero .hero-illustration:before { content:""; position:absolute; inset:13%; border-radius:50%; filter:blur(36px); background:rgba(12,143,255,.30); }
.pw-ref-hero .hero-illustration img { position:relative; display:block; width:min(290px,32vw); height:auto; border:1px solid #65caff; border-radius:26px; box-shadow:0 0 32px rgba(15,148,246,.36); }
.pw-ref-hero .hero-search { max-width:780px; border-color:#48c7ff; box-shadow:0 0 0 2px rgba(41,187,251,.14),0 0 22px rgba(29,175,245,.31); }
.pw-ref-trust { display:flex; flex-wrap:wrap; gap:9px 20px; margin:18px 0 0; }
.pw-ref-trust span { color:#b5e6ff; font-weight:800; font-size:.85rem; }
.pw-ref-category-section { padding-top:25px; }
.pw-ref-category-section .visual-category-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:15px; }
.pw-ref-category-section .pw-ref-category-tile {
  min-height:156px; border:1px solid rgba(137,228,255,.6); box-shadow:inset 0 1px rgba(255,255,255,.16),0 5px 18px rgba(0,0,0,.23);
  background:radial-gradient(circle at 26% 13%,rgba(255,255,255,.28),transparent 65%),linear-gradient(155deg,#1779dc,#034da3);
}
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+2) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#26b755,#007a3c); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+3) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#fa9d0a,#ba5100); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+4) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#964ce5,#5527a0); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+5) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#09bac0,#007b8b); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+6) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#ed3f55,#ac163d); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+7) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#77899b,#354253); }
.pw-ref-category-section .pw-ref-category-group:nth-child(8n+8) .pw-ref-category-tile { background:radial-gradient(circle at 24% 13%,rgba(255,255,255,.25),transparent 65%),linear-gradient(155deg,#dbba32,#a57609); }
.pw-ref-category-section .category-illustration { background:rgba(0,20,52,.16); width:82px; height:82px; }
.pw-ref-category-section .category-picture { stroke:#fff; color:#fff; filter:drop-shadow(0 0 5px rgba(255,255,255,.42)); }
.pw-ref-category-section .visual-category-tile strong { color:#fff; font-size:.99rem; }
.pw-ref-category-section .visual-category-tile:hover,.pw-ref-category-section .visual-category-tile:focus-visible {
  transform:translateY(-3px); box-shadow:0 0 0 2px #73d7ff,0 8px 27px rgba(31,179,255,.27);
}
.pw-ref-offers-section,.pw-ref-stores-section { margin-top:18px; margin-bottom:28px; padding:18px 18px 24px; border:1px solid #286f9f; border-radius:20px; background:linear-gradient(145deg,#0d2945,#081a31); box-shadow:0 0 22px rgba(28,139,217,.10); }
.pw-ref-offers-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:13px; }
.pw-ref-offer { overflow:hidden; min-width:0; border-radius:15px; border:1px solid #538bb4; background:#e8f1fb; color:#0a2540; }
.pw-ref-offer-image { height:145px; display:grid; place-items:center; background:#fff; text-align:center; font-size:.85rem; color:#36526b; overflow:hidden; }
.pw-ref-offer-image img { width:100%; height:100%; object-fit:contain; }
.pw-ref-offer-detail { display:flex; flex-direction:column; align-items:stretch; padding:12px; gap:5px; min-height:190px; }
.pw-ref-offer-detail h3 { margin:0; font-size:.92rem; line-height:1.55; }
.pw-ref-offer-detail h3 a { color:#062744; }
.pw-ref-offer-detail small { color:#60768b; text-align:right; overflow-wrap:anywhere; }
.pw-ref-offer-detail>strong { font-size:1.12rem; color:#aa4c06; }
.pw-ref-offer-store { font-size:.78rem; font-weight:750; color:#355b80; }
.pw-ref-offer-action.btn { margin-top:auto; width:100%; text-align:center; padding:7px 5px; min-height:40px; font-size:.78rem; background:linear-gradient(120deg,#0054bd,#128ad5); color:#fff; border-color:#137fc8; }
.pw-ref-stores-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.pw-ref-store-card { display:grid; grid-template-columns:65px 1fr; grid-template-rows:auto auto; gap:3px 14px; align-items:center; border:1px solid #367ab2; background:#102e4e; padding:14px; border-radius:14px; color:#fff; }
.pw-ref-store-card img,.pw-ref-store-placeholder { grid-row:1/3; width:65px; height:65px; object-fit:contain; border-radius:12px; background:#fff; display:grid; place-items:center; }
.pw-ref-store-placeholder { color:#168dd3; background:#17446b; font-size:1.7rem; }
.pw-ref-store-placeholder .pw-icon { width:34px; height:34px; }
.pw-ref-store-card strong { min-width:0; font-size:1rem; }
.pw-ref-store-card span:not(.pw-ref-store-placeholder) { color:#a9cce8; font-size:.84rem; }
.pw-ref-request { display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #2c89b9; border-radius:17px; background:linear-gradient(110deg,#09365e,#071b31); padding:19px 22px; margin-block:25px; }
.pw-ref-request h2 { margin:0; } .pw-ref-request p { margin:3px 0 0; color:#c1d3e6; }
.pw-ref-request .btn { flex:0 0 auto; }

/* Results page: actual catalogue results are laid out like the desktop reference. */
.pw-ref-search .search-bar.compact { border:2px solid #31c6fb; box-shadow:0 0 22px var(--pw-ref-glow); }
.pw-ref-search .search-page-intro { margin-bottom:10px; }
.pw-ref-search-layout { display:grid; grid-template-columns:230px minmax(0,1fr); align-items:start; gap:17px; }
.pw-ref-search-sidebar { border:1px solid #248ac7; border-radius:18px; background:#0b233b; padding:12px; box-shadow:0 0 16px rgba(27,166,235,.12); }
.pw-ref-search-sidebar h2 { margin:5px 8px 12px; font-size:1.03rem; }
.pw-ref-search-sidebar nav { display:grid; gap:7px; }
.pw-ref-search-sidebar .pw-ref-category-link { display:flex; align-items:center; gap:9px; padding:11px 9px; min-height:49px; border:1px solid #335d7d; border-radius:11px; background:linear-gradient(145deg,#103451,#0a203a); color:#e7f5ff; font-weight:800; font-size:.86rem; }
.pw-ref-search-sidebar .pw-ref-category-link .pw-icon { width:23px; height:23px; color:#66c9ff; }
.pw-ref-search-sidebar .pw-ref-category-link:hover,.pw-ref-search-sidebar .pw-ref-category-link.selected { border-color:#39d6ff; background:#125a87; box-shadow:0 0 11px rgba(34,203,255,.30); color:#fff; }
.pw-ref-search-content { min-width:0; }
.pw-ref-search .results-heading { border:1px solid #285d86; border-radius:12px; padding:11px 15px; margin:0 0 13px; background:#0b2137; }
.pw-ref-search .search-results-grid { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:12px; }
.pw-ref-search .search-results-grid .search-offer-card {
  display:grid!important; grid-template-columns:175px minmax(0,1fr) 170px!important;
  grid-template-rows:1fr auto; align-items:center; gap:12px 15px; min-width:0;
  padding:13px; margin:0; border:1px solid #2875a8; border-radius:16px;
  background:linear-gradient(130deg,#0c2c4e,#091d32 70%,#0a2036);
  box-shadow:0 2px 12px rgba(2,14,33,.30);
}
.pw-ref-search .search-offer-card .search-offer-media { grid-column:1; grid-row:1/3; align-self:stretch; height:158px!important; min-width:0; background:#f6faff; border-radius:11px; }
.pw-ref-search .search-offer-card .search-offer-media img { max-width:100%; object-fit:contain; }
.pw-ref-search .search-offer-card .search-offer-information { grid-column:2; grid-row:1/3; align-self:stretch; gap:4px; }
.pw-ref-search .search-offer-card .search-offer-information h3 { margin:8px 0 3px; font-size:1.18rem; }
.pw-ref-search .search-offer-card .search-offer-information .card-badges { margin:2px 0; }
.pw-ref-search .search-offer-card .search-offer-information .store-line { margin-top:auto; color:#c6e6ff; }
.pw-ref-search .search-offer-card .card-bottom { grid-column:3; grid-row:1; align-self:end; display:flex; flex-direction:column; align-items:flex-start; gap:8px; border:0; margin:0; padding:0; }
.pw-ref-search .search-offer-card .card-bottom strong { color:#ffd044; font-size:1.46rem; white-space:nowrap; }
.pw-ref-search .search-offer-card .card-bottom span { font-size:.82rem; }
.pw-ref-search .search-offer-card .card-compare { grid-column:3; grid-row:2; align-self:start; width:100%; margin:0; border:1px solid #5abdf1; background:#163f64; color:#fff; }
.pw-ref-search .search-offer-card .card-compare:hover { background:#206ba2; box-shadow:0 0 13px rgba(52,184,248,.25); }
.pw-ref-search .pager { border:1px solid #286f9f; padding:12px; border-radius:16px; background:#0b2540; }
.pw-ref-search .pager .page-link.active { border-color:#39dbff; background:#0778bd; box-shadow:0 0 12px rgba(51,216,255,.40); }

/* Owner dashboard uses its actual numbers, offers and edit pages. */
.pw-ref-dashboard .store-admin-heading { border:1px solid #2b85bd; background:linear-gradient(130deg,#102e50,#071d33); border-radius:20px; padding:18px; }
.pw-ref-dashboard .dashboard-store-heading h1 { font-size:clamp(1.35rem,2.5vw,2rem); }
.pw-ref-dashboard .pw-ref-store-location { color:#adcde7; margin:3px 0 8px; font-size:.89rem; }
.pw-ref-dashboard-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:10px 0 17px; }
.pw-ref-dashboard-toolbar strong { font-size:1.3rem; }
.pw-ref-dashboard-toolbar>div { display:flex; gap:9px; flex-wrap:wrap; }
.pw-ref-dashboard .store-admin-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.pw-ref-dashboard .store-admin-stats article { border:1px solid #3576a5; border-radius:15px; background:linear-gradient(140deg,#10375d,#0c233a); box-shadow:0 4px 16px rgba(0,0,0,.14); min-width:0; }
.pw-ref-dashboard .store-admin-stats article>strong { color:#61d4ff; font-size:clamp(1.6rem,3vw,2.2rem); }
.pw-ref-dashboard .admin-panel { border:1px solid #3675a1; background:#10283f; }
.pw-ref-dashboard .dashboard-quick-actions a { border-color:#2d719f; background:#10365a; }
.pw-ref-dashboard .dashboard-quick-actions a:hover { border-color:#64ceff; background:#17466c; }
.pw-ref-dashboard .recent-inventory-list>a { border-bottom-color:#2f6288; }
@media(max-width:1050px) {
 .pw-ref-offers-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .pw-ref-search-layout { grid-template-columns:195px minmax(0,1fr); }
 .pw-ref-search .search-results-grid .search-offer-card { grid-template-columns:125px minmax(0,1fr) 145px!important; gap:10px; }
 .pw-ref-search .search-offer-card .search-offer-media { height:130px!important; }
 .pw-ref-dashboard .store-admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
 .pw-ref-search-layout { display:block; }
 .pw-ref-search-sidebar { margin-bottom:15px; }
 .pw-ref-search-sidebar nav { display:flex; overflow-x:auto; padding-bottom:5px; gap:7px; scrollbar-width:thin; }
 .pw-ref-search-sidebar .pw-ref-category-link { min-width:max-content; padding:9px 12px; }
 .pw-ref-search .search-results-grid .search-offer-card { grid-template-columns:110px minmax(0,1fr)!important; grid-template-rows:auto auto!important; align-items:start; }
 .pw-ref-search .search-offer-card .search-offer-media { grid-column:1;grid-row:1;height:110px!important; }
 .pw-ref-search .search-offer-card .search-offer-information { grid-column:2;grid-row:1; }
 .pw-ref-search .search-offer-card .card-bottom { grid-column:1/3;grid-row:2;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #2c6088;padding-top:10px; }
 .pw-ref-search .search-offer-card .card-compare { grid-column:1/3;grid-row:3; }
 .pw-ref-offers-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .pw-ref-stores-grid { grid-template-columns:1fr; }
 .pw-ref-request { flex-direction:column; align-items:stretch; }
}
@media(max-width:600px) {
 .pw-ref-hero .hero-illustration { display:none; }
 .pw-ref-hero .hero-copy h1 { font-size:2.1rem; }
 .pw-ref-category-section .visual-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .pw-ref-category-section .pw-ref-category-tile { min-height:140px; }
 .pw-ref-category-section .category-illustration { width:64px;height:64px; }
 .pw-ref-category-section .category-picture { width:53px;height:53px; }
 .pw-ref-offers-section,.pw-ref-stores-section { padding:12px; }
 .pw-ref-offer-image { height:120px; }
 .pw-ref-offer-detail { padding:9px; }
 .pw-ref-offer-detail h3 { font-size:.85rem; }
 .pw-ref-search .search-results-grid .search-offer-card { grid-template-columns:90px minmax(0,1fr)!important; padding:10px; gap:8px; }
 .pw-ref-search .search-offer-card .search-offer-media { height:92px!important; }
 .pw-ref-search .search-offer-card .search-offer-information h3 { font-size:.96rem; margin:2px 0; }
 .pw-ref-search .search-offer-card .card-bottom strong { font-size:1.18rem; }
 .pw-ref-dashboard-toolbar>div { display:grid; width:100%; grid-template-columns:1fr; }
 .pw-ref-dashboard-toolbar .btn { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
 .pw-ref-category-section .pw-ref-category-tile,.pw-ref-search .search-offer-card .card-compare { transition:none; transform:none; }
}
