/* ==========================================================================
IndoSealer — Category archive page (Band Sealers etc.)
Source: indosealer-category-bandsealers-DEMO_6.html — every rule below
is a direct, exact port of that file's CSS (pulled straight from the
source file, not reconstructed from memory), scoped under .cat-page.

Additive on top of home-style.css / shop-style.css:
- Reuses the same --ink/--orange/etc. custom properties, defined once
  in header-footer-style.css (loads on every page ahead of this file).
- Reuses .price-list/.price-table from shop-style.css for the Top
  Sellers table — not redefined here.
- Scoped under .cat-page so it can't collide with the homepage/shop
  shelf cards, which reuse the same base class names (.prod-grid/
  .prod-card/.prod-badge/etc.) with a simpler, unrelated structure.

Adopts two patterns proven on home-style.css's 2026-08-08 fix pass:
1. The anchor text-decoration reset (root cause of every underlined
   link there was "nothing ever resets it for this content area" —
   fixed here the same way, at the .cat-page level).
2. box-sizing:border-box safety net on this stylesheet's own content.
========================================================================== */

/* :root tokens, .badge-mfg/.badge-src colors, and the " + GST" price
   suffix now live once in assets/header-footer-style.css (loads on
   every page) — do not redeclare them here. */

.cat-page, .cat-page *{ box-sizing:border-box; }
.cat-page a{ text-decoration:none; color:inherit; }

/* ---- Toolbar: result count + grid/list view toggle ---- */
.cat-page .cat-toolbar{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--panel); flex-wrap:wrap; gap:12px; }
.cat-page .cat-toolbar .left{ display:flex; align-items:center; gap:16px; font-size:13.5px; color:var(--ink-soft); }
.cat-page .cat-view-toggle{ display:flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.cat-page .cat-view-toggle button{ width:34px; height:34px; border:none; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.cat-page .cat-view-toggle button.active{ background:var(--orange); }
/* Forced with !important — fighting a theme-level SVG stroke/fill reset
   that isn't otherwise inspectable on the live theme; DEMO_6 (a
   standalone page) didn't need this, but the live site does. */
.cat-page .cat-view-toggle svg,
.cat-page .cat-view-toggle svg *{ stroke:var(--ink-soft) !important; fill:none !important; stroke-width:2 !important; }
.cat-page .cat-view-toggle button.active svg,
.cat-page .cat-view-toggle button.active svg *{ stroke:#fff !important; }

/* ---- Page layout: filters sidebar + grid area ---- */
.cat-page .cat-layout{ display:grid; grid-template-columns:220px 1fr; gap:0; align-items:start; max-width:1400px; margin:0 auto; }
.cat-page .cat-filters{ padding:22px 18px; border-right:1px solid var(--line); }
.cat-page .cat-filters h3{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:16px 0 10px; }
.cat-page .cat-filters h3:first-child{ margin-top:0; }
.cat-page .cat-filter-group{ margin-bottom:6px; }
.cat-page .cat-filter-group label{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13.5px; color:var(--ink-soft); margin-bottom:9px; cursor:pointer; }
.cat-page .cat-filter-group input[type=checkbox]{ accent-color:var(--orange); }
.cat-page .grid-area{ padding:22px 16px 40px; }

/* ---- GRID VIEW: 4 columns desktop, matching Toolsvilla ---- */
.cat-page .prod-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.cat-page .prod-card{ display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; position:relative; }
.cat-page .wish{ position:absolute; top:10px; right:10px; width:28px; height:28px; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.15); font-size:15px; color:var(--orange); cursor:pointer; z-index:2; transition:transform .12s ease; }
.cat-page .wish.active{ transform:scale(1.08); }
.cat-page .wish:active{ transform:scale(.92); }
.cat-page .prod-photo{ height:auto; aspect-ratio:4/3; display:block; background:#fff; border-bottom:1px solid var(--line); flex:0 0 auto; }
.cat-page .prod-photo img{ width:100%; height:100%; object-fit:contain; padding:8px; box-sizing:border-box; }
.cat-page .prod-body{ padding:12px 14px 14px; display:flex; flex-direction:column; flex:1; }
.cat-page .prod-info{ display:contents; }
.cat-page .btn-col{ display:contents; }
.cat-page .prod-desc{ display:none; }
.cat-page .prod-badge{ display:inline-flex; align-items:center; align-self:flex-start; font-size:11px; font-weight:700; line-height:1.3; padding:3px 9px; border-radius:20px; margin:0 0 7px; max-width:100%; white-space:nowrap; text-align:left; justify-content:flex-start; }
.cat-page .prod-name{ font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:5px; line-height:1.3; min-height:35px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cat-page .mini-rating{ font-size:12px; color:var(--muted); margin-bottom:8px; height:16px; overflow:hidden; }
.cat-page .mini-rating .stars{ color:#e0a020; margin-right:4px; letter-spacing:-1px; }
.cat-page .mini-sold{ font-size:11px; color:var(--muted); margin-bottom:6px; }
.cat-page .prod-price-block{ min-height:38px; margin-bottom:2px; }
.cat-page .prod-price-row{ display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.cat-page .prod-price{ font-size:17px; font-weight:700; color:var(--ink); white-space:nowrap; }
.cat-page .prod-price del{ font-size:12px; color:var(--muted); font-weight:400; text-decoration:line-through; }
.cat-page .prod-price ins{ text-decoration:none; color:var(--ink); font-weight:700; }
.cat-page .prod-strike{ font-size:12px; color:var(--muted); text-decoration:line-through; }
.cat-page .prod-save{ font-size:11px; color:#3c6b2e; font-weight:700; }
.cat-page .stock-pill{ display:inline-block; font-size:11px; font-weight:700; color:#3c6b2e; background:#eaf3e6; border-radius:12px; padding:2px 9px; margin:4px 0 6px; width:fit-content; }
.cat-page .stock-pill.out-of-stock{ color:#a33; background:#fbeaea; }
.cat-page .delivery-note{ display:flex; align-items:center; gap:4px; font-size:10.5px; color:var(--muted); margin-bottom:10px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; height:14px; }
.cat-page .delivery-note svg{ flex:0 0 auto; stroke:#3c6b2e; width:12px; height:12px; }
.cat-page .prod-actions{ display:flex; gap:6px; margin-top:auto; }
.cat-page .prod-actions .add{ flex:1; background:#fff; border:1.5px solid var(--orange); color:var(--orange); padding:8px 2px; border-radius:6px; font-weight:700; font-size:11.5px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:background .15s ease, border-color .15s ease, color .15s ease; display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; }
.cat-page .prod-actions .buy{ flex:1; background:var(--orange); border:none; color:#fff; padding:8px 2px; border-radius:6px; font-weight:700; font-size:11.5px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none; display:flex; align-items:center; justify-content:center; }
.cat-page .prod-actions .add.added{ background:#eaf3e6; border-color:#3c6b2e; color:#3c6b2e; }
.cat-page .prod-actions .added_to_cart{ display:none !important; }
.cat-page .prod-actions .add{ flex-shrink:0; }

/* ---- LIST VIEW: full-width rows, matching Toolsvilla ---- */
.cat-page .prod-grid.list-view{ grid-template-columns:1fr; gap:14px; }
.cat-page .list-view .prod-card{
  display:grid;
  grid-template-columns:160px 1fr 200px;
  grid-template-areas:"photo info price" "actions actions actions";
  align-items:start;
  column-gap:20px; row-gap:12px;
  padding:16px 20px;
  height:auto;
}
.cat-page .list-view .prod-photo{ grid-area:photo; height:130px; aspect-ratio:auto; width:100%; border:1px solid var(--line); border-radius:8px; align-self:start; }
.cat-page .list-view .prod-body{ display:contents; }
.cat-page .list-view .prod-info{ grid-area:info; display:block; align-self:start; }
.cat-page .list-view .prod-badge{ margin-bottom:6px; }
.cat-page .list-view .prod-name{ min-height:0; font-size:15.5px; margin-bottom:5px; -webkit-line-clamp:2; }
.cat-page .list-view .mini-rating{ margin-bottom:8px; }
.cat-page .list-view .prod-desc{ display:block; font-size:13px; color:var(--ink-soft); line-height:1.7; margin:0; max-width:100%; }
/* Row 1, col 3: price / stock / delivery only — bottoms line up with the photo & info column */
.cat-page .list-view .btn-col{ grid-area:price; display:flex; flex-direction:column; align-items:flex-end; gap:6px; align-self:start; }
.cat-page .list-view .btn-col .prod-price-block{ text-align:right; }
.cat-page .list-view .btn-col .prod-price-row{ justify-content:flex-end; }
.cat-page .list-view .btn-col .prod-price{ font-size:19px; }
.cat-page .list-view .btn-col .stock-pill{ align-self:flex-end; }
.cat-page .list-view .btn-col .delivery-note{ justify-content:flex-end; white-space:normal; height:auto; }
/* Row 2: Wishlist + Add to Cart + Buy Now — one full-width row at the bottom of the card */
.cat-page .list-view .prod-actions{ grid-area:actions; display:flex; align-items:center; justify-content:center; gap:10px; width:100%; margin-top:0; border-top:1px solid var(--line); padding-top:12px; }
.cat-page .list-view .wish{ position:static; flex:0 0 auto; }
.cat-page .list-view .prod-actions .add, .cat-page .list-view .prod-actions .buy{ flex:0 1 200px; padding:10px 14px; font-size:13.5px; }

.cat-page .pagination{ display:flex; align-items:center; justify-content:center; gap:6px; padding:30px 0 10px; flex-wrap:wrap; }
.cat-page .pagination .nav-links{ display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; width:100%; }
.cat-page .pagination a, .cat-page .pagination span{ min-width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; font-size:13.5px; font-weight:600; color:var(--ink-soft); border:1px solid var(--line); background:#fff; cursor:pointer; padding:0 10px; text-decoration:none; }
.cat-page .pagination a:hover{ border-color:var(--orange); color:var(--orange-dark); }
.cat-page .pagination .current, .cat-page .pagination span.current{ background:var(--orange); color:#fff; border-color:var(--orange); cursor:default; }
.cat-page .pagination .dots{ border:none; background:none; cursor:default; }

/* ---- Responsive: tablet ---- */
@media (max-width: 980px){
  .cat-page .cat-layout{ grid-template-columns:1fr; }
  .cat-page .cat-filters{ display:none; }
  .cat-page .prod-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
/* FIX 2026-08-18 (pt.11): the sitewide "recently viewed / popular machines
   horizontal scroll" rule added to home-style.css (which loads on every page,
   including this one) targets .prod-grid with !important, so it started
   overriding this page's own grid-view layout on mobile/tablet -- the category
   grid was never meant to horizontally scroll, it's supposed to stay a fixed
   2-column grid. Higher-specificity !important override restores that, scoped
   strictly to grid view here (:not(.list-view), which has its own separate
   mobile/tablet fix -- see pt.12) so nothing else on the site is touched. */
.cat-page .prod-grid:not(.list-view){
  display:grid !important;
  overflow-x:visible !important;
  flex-wrap:wrap !important;
}
.cat-page .prod-grid:not(.list-view) .prod-card{ flex:none !important; }
  .cat-page .prod-photo{ height:auto; aspect-ratio:4/3; }
  .cat-page .prod-name{ font-size:12.5px; min-height:32px; }
  .cat-page .mini-rating{ font-size:11px; }
  .cat-page .prod-price{ font-size:15px; }
  .cat-page .prod-actions .add, .cat-page .prod-actions .buy{ font-size:11px; padding:7px 2px; }
  .cat-page .delivery-note{ font-size:10px; }

  /* Tablet default (601–980px): image left, name/rating, then price/stock/
     delivery, then Add to Cart + Buy Now — all stacked in the right-hand
     column, parallel to the price block. */
  .cat-page .list-view .prod-card{
    display:grid;
    grid-template-columns:96px 1fr;
    grid-template-areas:"photo info" ".     details" "actions actions";
    column-gap:12px; row-gap:4px;
    padding:12px;
  }
  .cat-page .list-view .prod-photo{ grid-area:photo; height:96px; width:96px; aspect-ratio:auto; align-self:start; }
  .cat-page .list-view .prod-photo img{ padding:6px; }
  .cat-page .list-view .prod-info{ grid-area:info; }
  .cat-page .list-view .prod-badge{ font-size:10px; padding:2px 7px; margin-bottom:4px; }
  .cat-page .list-view .prod-name{ font-size:13px; margin-bottom:3px; -webkit-line-clamp:2; }
  .cat-page .list-view .mini-rating{ font-size:11px; margin-bottom:0; }
  .cat-page .list-view .prod-desc{ display:none; }
  .cat-page .list-view .btn-col{ grid-area:details; align-items:flex-start; margin-top:4px; }
  .cat-page .list-view .btn-col .prod-price-block{ text-align:left; min-height:0; }
  .cat-page .list-view .btn-col .prod-price-row{ justify-content:flex-start; }
  .cat-page .list-view .btn-col .prod-price{ font-size:16px; }
  .cat-page .list-view .btn-col .stock-pill{ align-self:flex-start; margin:2px 0 4px; }
  .cat-page .list-view .btn-col .delivery-note{ justify-content:flex-start; }
  .cat-page .list-view .prod-actions{ grid-area:actions; display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:8px; margin-top:6px; border-top:1px solid var(--line); padding-top:10px; width:100%; margin-left:0; }
  .cat-page .list-view .prod-actions .add, .cat-page .list-view .prod-actions .buy{ flex:0 1 150px; padding:8px 6px; font-size:11.5px; }
  .cat-page .list-view .wish{ top:8px; left:8px; }

  .cat-page .cat-toolbar{ padding-left:16px; padding-right:16px; }


  /* FIX 2026-08-18 (pt.12): same root cause as pt.11 -- the sitewide horizontal-
     scroll rule in home-style.css (!important, loads on every page) was
     overriding this page's own already-correct tablet/mobile List View layout
     (the image-left row design right above, matching the original intent this
     was built against). Restoring it here with matching !important, so List
     View goes back to full-width stacked rows instead of a horizontal-scrolling
     strip of narrow flex cards. Grid View (pt.11) and every other page's cards
     are untouched -- this only targets .list-view. */
  .cat-page .prod-grid.list-view{
    display:grid !important;
    overflow-x:visible !important;
    flex-wrap:wrap !important;
  }
  .cat-page .list-view .prod-card{
    display:grid !important;
    flex:none !important;
    width:100% !important;
  }
}

/* Phone-only: titles allow a 3rd line so full names fit in the narrower
   2-column card; grid badge stays on one line. */
@media (max-width: 600px){
  .cat-page .prod-name{ font-size:12px; line-height:1.35; -webkit-line-clamp:3; min-height:48px; }
  .cat-page .prod-grid:not(.list-view) .prod-badge{ font-size:9.5px; padding:2.5px 6px; letter-spacing:-.01em; }

  /* Add to Cart / Buy Now move to the left, stacked directly below the
     photo, instead of sitting under price/stock/delivery on the right. */
  .cat-page .list-view .prod-card{ grid-template-areas:"photo info" "actions details"; row-gap:6px; }
  .cat-page .list-view .prod-actions{ grid-area:actions; flex-direction:column; align-self:start; width:96px; gap:6px; margin-top:0; }
  .cat-page .list-view .prod-actions .add, .cat-page .list-view .prod-actions .buy{ flex:0 0 auto; width:100%; }
  .cat-page .list-view .wish{ position:absolute; top:8px; left:8px; z-index:2; margin-top:0; }
  /* FIX 2026-08-30 (pt.13, list-view overlap): the shared .prod-actions component CSS (used by the new card markup on Home/Shop/Cart) sets a fixed height:34px for its normal horizontal row layout. That same class name is reused here for the OLD list-view card's wishlist+Add+Buy row, so when this phone rule switches it to a stacked column (flex-direction:column), the inherited height:34px squashed everything into one row's worth of height, collapsing the Buy Now button to 0px tall -- this override restores a natural stacked height. */
  .cat-page .list-view .prod-actions{ height:auto !important; align-items:stretch !important; }
  .cat-page .list-view .prod-actions .add, .cat-page .list-view .prod-actions .buy{ height:auto !important; min-height:34px; flex:0 0 auto !important; }
}

/* ---- Filter button + Sort dropdown (toolbar) ---- */
.cat-page .filter-btn{ display:none; align-items:center; gap:6px; background:#fff; border:1px solid var(--line); border-radius:6px; padding:8px 14px; font-weight:700; font-size:13.5px; cursor:pointer; font-family:inherit; color:var(--ink); }
.cat-page .cat-sort{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-soft); }
.cat-page .sort-select{ border:1px solid var(--line); border-radius:6px; padding:8px 12px; font-size:13.5px; background:#fff; font-family:inherit; color:var(--ink); cursor:pointer; }
.cat-page .cat-filters-head{ display:none; }
.cat-page .cat-filter-overlay{ display:none; }

/* ---- Filters drawer: desktop static sidebar, mobile/tablet slide-in ---- */
@media (max-width: 980px){
  .cat-page .filter-btn{ display:flex; }
  .cat-page .cat-layout{ grid-template-columns:1fr; }
  .cat-page .cat-filters{
    display:block;
    position:fixed; top:0; left:0; height:100%; width:82%; max-width:320px;
    background:#fff; z-index:100; overflow-y:auto;
    border-right:none; box-shadow:4px 0 24px rgba(44,36,24,.18);
    transform:translateX(-100%); transition:transform .25s ease;
    padding:18px 18px 90px;
  }
  .cat-page .cat-filters.open{ transform:translateX(0); }
  .cat-page .cat-filter-overlay{ display:none; position:fixed; inset:0; background:rgba(20,16,8,.45); z-index:99; }
  .cat-page .cat-filter-overlay.open{ display:block; }
  .cat-page .cat-filters-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  .cat-page .cat-filters-head span{ font-size:15px; font-weight:700; color:var(--ink); }
  .cat-page .cat-filters-head button{ background:none; border:none; font-size:22px; line-height:1; cursor:pointer; color:var(--ink-soft); padding:4px; }
  .cat-page .cat-toolbar{ flex-wrap:wrap; gap:10px 12px; }
  .cat-page .cat-sort{ flex-wrap:wrap; }
}


/* ADDED 2026-08-17 (pt.2, card unification): Grid view on category pages now
   renders the same shared indosealer_render_rel_card() component used
   everywhere else on the site (Home, Product page, Cart page), instead of its
   own separate hand-built card markup. Per explicit instruction, List view is
   left completely untouched -- it keeps the exact same markup/behavior it
   already had (including the product description text grid view never showed).
   Both versions are rendered for every product; only one is ever visible,
   controlled by the existing .list-view class toggle. display:contents is used
   on the visible wrapper so it doesn't add an extra layout level to the CSS
   Grid (.prod-grid's direct children stay effectively the same as before);
   display:none on the hidden one removes it from layout entirely, so it never
   affects grid sizing. */
.prod-grid .cat-grid-card{ display:contents; }
.prod-grid .cat-list-card{ display:none; }
.prod-grid.list-view .cat-grid-card{ display:none; }
.prod-grid.list-view .cat-list-card{ display:contents; }


/* ---- Category content push 2026-09-27 ---- */
/* Filter sidebar hidden until real filtering exists (labels were band-sealer-only on every category). */
.cat-page:not(.has-filters) .cat-filters, .cat-page:not(.has-filters) .filter-btn{ display:none !important; }
.cat-page:not(.has-filters) .cat-layout{ grid-template-columns:1fr; }
/* Working filter options */
.cat-page .cat-filters .cf-opt{ display:flex; align-items:center; gap:9px; padding:6px 2px; font-size:14px; color:var(--ink-soft); text-decoration:none; line-height:1.3; }
.cat-page .cat-filters .cf-box{ width:16px; height:16px; flex:0 0 16px; border:1.5px solid #bfb5a0; border-radius:4px; background:#fff; position:relative; }
.cat-page .cat-filters .cf-opt.on .cf-box{ background:var(--orange); border-color:var(--orange); }
.cat-page .cat-filters .cf-opt.on .cf-box::after{ content:""; position:absolute; left:4.5px; top:1px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.cat-page .cat-filters .cf-lbl{ flex:1; }
.cat-page .cat-filters .cf-opt.on .cf-lbl{ color:var(--ink); font-weight:700; }
.cat-page .cat-filters .cf-n{ font-size:12px; color:var(--muted); }
.cat-page .cat-filters .cf-clear{ display:inline-block; margin:0 0 4px; font-size:13px; font-weight:700; color:var(--orange-dark); }
@media (hover:hover) and (pointer:fine){ .cat-page .cat-filters .cf-opt:hover .cf-lbl{ color:var(--orange-dark); } }
/* Buying guide below the grid */
.cat-guide ul, .cat-guide ol{ margin:0 0 14px; padding-left:20px; }
.cat-guide li{ font-size:14px; color:var(--ink-soft); line-height:1.8; margin-bottom:4px; }
.cat-table-wrap{ overflow-x:auto; margin:6px 0 18px; -webkit-overflow-scrolling:touch; }
.cat-table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:520px; }
.cat-table th, .cat-table td{ border:1px solid var(--line); padding:9px 12px; text-align:left; vertical-align:top; color:var(--ink-soft); }
.cat-table th{ background:var(--panel, #f7f4ee); color:var(--ink); font-weight:700; }
.page-head .cat-intro p{ font-size:14.5px; color:var(--muted); max-width:760px; line-height:1.75; }
