/* Line-card page styles (task-57): taxonomy hubs, brand/series hubs, PDPs, mega-menu, pagers.
   Additive only - nothing here overrides the existing storefront styles. */

/* ---- mega menu (generated from the taxonomy) */
.has-mega { position: relative; }
.has-mega > a::after { content: " \25BE"; font-size: 10px; opacity: .7; }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff;
  border-top: 1px solid var(--line, #e5e8ef); border-bottom: 1px solid var(--line, #e5e8ef);
  box-shadow: 0 18px 40px rgba(11, 18, 32, .12); }
.mega-panel[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; padding: 22px 0 26px; }
.mega-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.mega-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.mega-col a { font-size: 13px; }
.mega-col .muted { font-size: 11px; }
@media (max-width: 900px) { .mega-panel { position: static; box-shadow: none; } .mega-grid { grid-template-columns: 1fr 1fr; } }

/* ---- breadcrumbs already styled; keep the last crumb readable */
.crumbs li[aria-current="page"] { color: var(--ink, #0b1220); font-weight: 600; }

/* ---- product grids */
.product-grid, .offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.offer-card h3 { font-size: 14px; line-height: 1.35; margin: 6px 0 4px; }
.offer-sku { font-size: 11.5px; color: var(--muted, #5b6478); overflow-wrap: anywhere; }
.offer-price { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.offer-price small { font-size: 11px; font-weight: 500; color: var(--muted, #5b6478); }
.offer-cb { display: flex; flex-wrap: wrap; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

/* ---- lede */
.lede { font-size: 15px; color: #333a52; line-height: 1.65; margin: 0 0 8px; }

/* ---- pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 4px; }
.pager .btn-sm { padding: 6px 11px; }
.pager .muted { font-size: 12px; }

/* ---- PDP layout (two columns on desktop) */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 34px; margin-top: 10px; }
.pdp-grid h1 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.18; letter-spacing: -.4px; margin: 0 0 10px; }
.pdp-grid h2 { font-size: 17px; margin: 22px 0 10px; }
.pdp-aside { background: #f6f8fc; border: 1px solid var(--line, #e5e8ef); border-radius: 14px; padding: 20px; height: fit-content; }
.pdp-aside h2 { margin-top: 0; }
.pdp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.pdp-list li { position: relative; padding-left: 16px; }
.pdp-list li::before { content: "\2713"; position: absolute; left: 0; color: #2f8f5b; font-size: 12px; }
.pdp-stock-line { font-size: 13px; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; } }

/* ---- spec table */
.pdp-specs { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 0; }
.pdp-specs th, .pdp-specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line, #e5e8ef); vertical-align: top; }
.pdp-specs th { width: 34%; font-weight: 600; color: var(--muted, #5b6478); background: #f8fafc; }
.pdp-specs tr:last-child th, .pdp-specs tr:last-child td { border-bottom: 0; }

/* ---- brand / category cards */
.brand-card { border: 1px solid var(--line, #e5e8ef); border-radius: 14px; padding: 16px 18px; background: #fff; }
.brand-card h3 { font-size: 15px; margin: 0 0 6px; }
.brand-card .muted { font-size: 12px; display: block; margin-bottom: 8px; }

/* ---- product A-Z index */
#main .pdp-list + h2 { margin-top: 26px; }

/* ---- facet bar (brand / attribute / sort) generated from populated attributes */
.lc-facets { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 4px 0 18px;
  padding: 14px 16px; border: 1px solid var(--line, #e5e8ef); border-radius: 12px; background: #f8fafc; }
.lc-facets label { display: grid; gap: 4px; font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted, #5b6478); }
.lc-facets select { min-width: 180px; padding: 7px 9px; font-size: 13px; border-radius: 8px;
  border: 1px solid var(--line, #e5e8ef); background: #fff; }
.lc-facets [data-f-count] { font-size: 12px; }
@media (max-width: 640px) { .lc-facets select { min-width: 140px; } }
