/* ==========================================================================
   All products page and product category pages — 50 Star products design.
   Scoped to .pak-shop. 3 products per row on desktop and laptop.
   ========================================================================== */
.pak-shop {
  --navy: #2a3775; --navy-2: #1c2654; --navy-3: #141c40;
  --red: #e21d38; --red-2: #c4142c; --pink: #fde6ea;
  --lav: #e9ecf5; --lav-2: #f5f6fa; --line: #dfe3ec;
  --ink: #182238; --muted: #5c6677;
  --sh: 0 24px 60px -26px rgba(42, 55, 117, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}
.pak-shop *, .pak-shop *::before, .pak-shop *::after { box-sizing: border-box; }
.pak-shop :is(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.pak-shop :is(h1, h2, h3) { color: var(--navy); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.pak-shop p { color: var(--muted); }
.pak-shop a { color: inherit; text-decoration: none; }
.pak-shop svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pak-shop .ps-wrap { width: min(var(--pak-container, 1272px), 100% - 48px); margin-inline: auto; }
@media (max-width: 767px) { .pak-shop .ps-wrap { width: calc(100% - 32px); } }

/* Spacing: 70px, 50px on phones; joined when the background repeats */
.pak-shop .pe-sec { padding: 70px 0; margin: 0; }
.pak-shop .pe-sec.is-joined { padding-top: 0; }
.pak-shop .pe-bg-white { background: #fff; }
.pak-shop .pe-bg-soft { background: var(--lav-2); }
@media (max-width: 767px) { .pak-shop .pe-sec { padding: 50px 0; } .pak-shop .pe-sec.is-joined { padding-top: 0; } }

/* Buttons */
.pak-shop .ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; min-height: 44px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.pak-shop .ps-btn--red { background: var(--red); color: #fff; box-shadow: 0 14px 26px -14px rgba(226, 29, 56, .7); }
.pak-shop .ps-btn--red:hover { background: var(--red-2); color: #fff; transform: translateY(-2px); }
.pak-shop .ps-btn--line { background: #fff; color: var(--navy); border-color: var(--line); }
.pak-shop .ps-btn--line:hover { border-color: var(--navy); color: var(--navy); background: #fff; transform: translateY(-2px); }

/* Hero */
@keyframes ps-up { to { opacity: 1; transform: none; } }
@keyframes ps-breathe { 50% { transform: scale(1.15) translate(-30px, 20px); } }
.pak-shop .ps-hero { position: relative; background: var(--navy-3); color: #fff; padding: 56px 0 64px; overflow: hidden; isolation: isolate; }
.pak-shop .ps-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%); z-index: -1; }
.pak-shop .ps-glow { position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(226,29,56,.35), transparent 62%); z-index: -1; animation: ps-breathe 10s ease-in-out infinite; }
.pak-shop .ps-crumbs { font-size: 12px; letter-spacing: .14em; color: #8e97c8; text-transform: uppercase; }
.pak-shop .ps-crumbs a:hover { color: #fff; }
.pak-shop .ps-crumbs b { color: #fff; font-weight: 600; }
.pak-shop .ps-hero__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-top: 22px; }
.pak-shop .ps-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: 2.08px; text-transform: uppercase; color: #ff8a9a; }
.pak-shop .ps-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.pak-shop .ps-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 76px) !important; line-height: .95 !important; letter-spacing: -.045em !important; margin-top: 18px; }
.pak-shop .ps-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.pak-shop .ps-hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: ps-up 1.1s var(--ease) forwards; }
.pak-shop .ps-hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.pak-shop .ps-hero h1 .out { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); }
.pak-shop .ps-hero__right p { color: #c3c9e8; font-size: 17.5px; }
.pak-shop .ps-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pak-shop .ps-stat { padding: 10px 16px; border-radius: 30px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 14.5px; }
.pak-shop .ps-stat b { color: #ff8a9a; margin-right: 4px; }
@media (max-width: 860px) { .pak-shop .ps-hero__top { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 767px) { .pak-shop .ps-hero { padding: 50px 0; } }

/* Layout */
.pak-shop .ps-lay { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .pak-shop .ps-lay { grid-template-columns: minmax(0, 1fr); } }

/* Sidebar */
.pak-shop .ps-side { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 14px 14px; scrollbar-width: thin; scrollbar-gutter: stable; }
.admin-bar .pak-shop .ps-side { top: 128px; max-height: calc(100vh - 142px); }
.pak-shop .ps-side__top { display: none; }
.pak-shop .ps-fg { border-bottom: 1px solid var(--line); }
.pak-shop .ps-fg:last-of-type { border-bottom: 0; }
.pak-shop .ps-fg__h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px 4px 12px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.pak-shop .ps-fg__h:hover, .pak-shop .ps-fg__h:focus { background: none; color: var(--navy); }
.pak-shop .ps-fg__h svg { width: 18px; height: 18px; color: var(--red); }
.pak-shop .ps-fg__h svg:last-child { margin-left: auto; color: var(--muted); transition: transform .3s; }
.pak-shop .ps-fg__h[aria-expanded="false"] svg:last-child { transform: rotate(-90deg); }
.pak-shop .ps-fg__b { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.pak-shop .ps-fg__h[aria-expanded="false"] + .ps-fg__b { grid-template-rows: 0fr; }
.pak-shop .ps-fg__b > div { overflow: hidden; display: grid; gap: 2px; padding-bottom: 10px; }
.pak-shop .ps-fg__h[aria-expanded="false"] + .ps-fg__b > div { padding-bottom: 0; }
.pak-shop .ps-fo { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; background: none; border: 0; font: inherit; font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--ink); cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.pak-shop .ps-fo:hover, .pak-shop .ps-fo:focus { background: var(--lav-2); color: var(--navy); }
.pak-shop .ps-fo__l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pak-shop .ps-fo__l svg { width: 18px; height: 18px; color: var(--muted); }
.pak-shop .ps-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #b5bccf; flex: none; margin: 0 5px; }
.pak-shop .ps-fo__n { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--lav-2); border-radius: 20px; padding: 1px 9px; flex: none; }
.pak-shop .ps-fo.is-on, .pak-shop .ps-fo.is-on:hover { background: var(--navy); color: #fff; }
.pak-shop .ps-fo.is-on .ps-fo__l svg { color: #fff; }
.pak-shop .ps-fo.is-on .ps-dot { background: var(--red); border-color: var(--red); }
.pak-shop .ps-fo.is-on .ps-fo__n { background: var(--red); color: #fff; }
.pak-shop .ps-fo.is-zero { opacity: .55; }
.pak-shop a.ps-fo { text-decoration: none; }
.pak-shop .ps-fo__go { display: inline-flex; flex: none; color: var(--muted); }
.pak-shop .ps-fo__go svg { width: 16px; height: 16px; }
.pak-shop a.ps-fo:hover .ps-fo__go { color: var(--red); }
.pak-shop a.ps-fo.is-link:hover, .pak-shop a.ps-fo.is-link:focus { opacity: 1; }
.pak-shop .ps-fo__sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px 40px; }
.pak-shop .ps-fo__sub span { font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--lav); border-radius: 20px; padding: 3px 10px; }
.pak-shop .ps-help { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--navy-3); color: #fff; }
.pak-shop .ps-help b { display: block; font-size: 16px; }
.pak-shop .ps-help p { font-size: 14px; color: #b9c0e0; margin: 4px 0 12px; }
.pak-shop .ps-help .ps-btn { width: 100%; }

/* Toolbar */
.pak-shop .ps-tb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pak-shop .ps-tb__h { flex: 1; min-width: 220px; }
.pak-shop h2.ps-tb__title { font-size: 26px !important; line-height: 1.2 !important; letter-spacing: -.01em !important; color: var(--navy); margin: 0 !important; }
.pak-shop .ps-tb__h p { font-size: 15px; margin-top: 2px; }
.pak-shop .ps-tb__h p a { color: var(--red); font-weight: 600; }
.pak-shop .ps-srch { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; min-width: 0; width: 260px; margin: 0; }
.pak-shop .ps-srch svg { width: 18px; height: 18px; color: var(--muted); }
.pak-shop .ps-srch input { border: 0 !important; outline: 0; font: inherit; font-size: 15px; width: 100%; min-width: 0; background: none; box-shadow: none !important; padding: 0 !important; height: 44px; }
.pak-shop .ps-sort { height: 46px; padding: 0 36px 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 15px; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3775' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; appearance: none; cursor: pointer; width: auto; }
.pak-shop .ps-fbtn { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pak-shop .ps-fbtn svg { width: 18px; height: 18px; }
.pak-shop .ps-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.pak-shop .ps-chips:empty { display: none; }
.pak-shop .ps-achip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 14px; border-radius: 30px; background: #fff; border: 1.5px solid var(--navy); font-weight: 600; font-size: 14px; color: var(--navy); }
.pak-shop .ps-achip button { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: var(--lav); display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.pak-shop .ps-achip svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* Grid: 3 per row on desktop and laptop */
.pak-shop .ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 767px) { .pak-shop .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) { .pak-shop .ps-grid { grid-template-columns: minmax(0, 1fr); } }
@keyframes ps-pin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pak-shop .ps-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; animation: ps-pin .45s var(--ease) both; }
.pak-shop .ps-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.pak-shop .ps-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--lav); overflow: hidden; }
.pak-shop .ps-card__img img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform .6s var(--ease); }
.pak-shop .ps-card:hover .ps-card__img img { transform: scale(1.05); }
.pak-shop .ps-card__img.is-noimg { background: var(--lav) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5bccf' stroke-width='1.4'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E") no-repeat center / 64px; }
.pak-shop .ps-pill { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11.5px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--navy); padding: 5px 10px; border-radius: 20px; box-shadow: 0 4px 12px -6px rgba(20,28,64,.4); }
.pak-shop .ps-pill--static { position: static; display: inline-block; background: var(--pink); color: var(--red); box-shadow: none; }
.pak-shop .ps-card__b { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pak-shop .ps-card__title { font-size: 19px !important; line-height: 1.3 !important; }
.pak-shop .ps-card__title a:hover { color: var(--red); }
.pak-shop .ps-card__b p { font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
/* Description: two lines max. Without JS the browser clamps it; the script then
   cuts it so line 2 ends about 60–70% across, followed by "..". */
.pak-shop .ps-card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pak-shop .ps-card__desc.is-cut { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.pak-shop .ps-fo__l { white-space: nowrap; }
.pak-shop .ps-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pak-shop .ps-card__tags span { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--lav-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; }
.pak-shop .ps-card__acts { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.pak-shop .ps-card__acts .ps-btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 14px; }
.pak-shop .ps-card__acts .ps-btn--red { flex: 0 1 40%; }
.pak-shop [hidden] { display: none !important; }

/* Add-on card */
.pak-shop .ps-ac { grid-column: 1 / -1; display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; animation: ps-pin .45s var(--ease) both; }
.pak-shop .ps-ac > i { width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.pak-shop .ps-ac > i svg { width: 30px; height: 30px; }
.pak-shop .ps-ac h3 { font-size: 26px; margin-top: 10px; }
.pak-shop .ps-ac p { margin-top: 6px; font-size: 16px; }
.pak-shop .ps-ac ul { list-style: none; display: grid; gap: 8px; margin: 16px 0 20px; }
.pak-shop .ps-ac li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink); margin: 0; }
.pak-shop .ps-ac li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #dcf5e5; color: #0f7a37; stroke-width: 3; }
.pak-shop .ps-ac__acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 560px) { .pak-shop .ps-ac { flex-direction: column; padding: 22px; } }

/* Empty */
.pak-shop .ps-empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1.5px dashed var(--line); border-radius: 22px; padding: 44px 20px; }
.pak-shop .ps-empty i { width: 60px; height: 60px; border-radius: 50%; background: var(--lav); display: grid; place-items: center; margin: 0 auto 14px; color: var(--navy); }
.pak-shop .ps-empty h3 { font-size: 22px; }
.pak-shop .ps-empty p { margin: 6px auto 18px; max-width: 420px; }
.pak-shop .ps-empty__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Category slider below: keep its own look, use the page spacing */
.pak-shop .pak-parchive__cats.pe-sec { padding: 70px 0; }
.pak-shop .pak-parchive__cats.pe-sec.is-joined { padding-top: 0; }
@media (max-width: 767px) { .pak-shop .pak-parchive__cats.pe-sec { padding: 50px 0; } }

/* Mobile drawer */
.pak-shop .ps-ov { display: none; }
@media (max-width: 1000px) {
  .pak-shop .ps-fbtn { display: inline-flex; }
  .pak-shop .ps-srch { flex: 1; width: auto; }
  .pak-shop .ps-tb__h { flex-basis: 100%; }
  .pak-shop .ps-side, .admin-bar .pak-shop .ps-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); max-height: none; border-radius: 0 22px 22px 0; z-index: 100000; transform: translateX(-105%); transition: transform .4s var(--ease); padding-top: 0; }
  .pak-shop .ps-side.is-open, .admin-bar .pak-shop .ps-side.is-open { transform: none !important; box-shadow: 30px 0 60px -30px rgba(20,28,64,.5); }
  .pak-shop .ps-side__top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 16px 4px; border-bottom: 1px solid var(--line); z-index: 1; }
  .pak-shop .ps-side__top b { font-size: 19px; color: var(--navy); }
  .pak-shop .ps-side__top button { width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
  .pak-shop .ps-side__top svg { width: 18px; height: 18px; }
  .pak-shop .ps-ov { display: block; position: fixed; inset: 0; background: rgba(20,28,64,.5); z-index: 99999; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .pak-shop .ps-ov.is-open { opacity: 1; visibility: visible; }
}
@media (max-width: 600px) { .pak-shop .ps-tb .ps-srch { flex: none; width: 100%; flex-basis: 100%; order: 1; } .pak-shop .ps-fbtn, .pak-shop .ps-sort { order: 2; flex: 1; justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  .pak-shop *, .pak-shop *::before, .pak-shop *::after { animation: none !important; transition-duration: .01s !important; }
  .pak-shop .ps-hero h1 .ln > span { transform: none; }
}

/* Product categories filter: sub-categories indented. */
.pak-shop .ps-fo--cat[data-depth="1"] { padding-left: 28px; font-size: 14.5px; }
.pak-shop .ps-fo--cat[data-depth="2"] { padding-left: 44px; font-size: 14px; }
.pak-shop .ps-fo--cat[data-depth="3"] { padding-left: 58px; font-size: 14px; }
.pak-shop .ps-fo--cat[data-depth] .ps-dot { width: 6px; height: 6px; }
.pak-shop .ps-fg + .ps-fg { margin-top: 6px; }

/* Pagination (18 cards per page) */
.pak-shop .ps-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 36px 0 0; }
.pak-shop .ps-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1.5px solid var(--line, #e3e6ee); border-radius: 12px; background: #fff; color: var(--navy, #2a3775); font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pak-shop .ps-pg:hover:not(:disabled):not(.is-on) { border-color: var(--navy, #2a3775); background: var(--lav-2, #eef0f8); }
.pak-shop .ps-pg.is-on { background: var(--navy, #2a3775); border-color: var(--navy, #2a3775); color: #fff; cursor: default; }
.pak-shop .ps-pg--nav { font-size: 22px; }
.pak-shop .ps-pg:disabled { opacity: .4; cursor: default; }
.pak-shop .ps-pg--gap { border: 0; background: none; min-width: 20px; padding: 0; cursor: default; color: var(--muted, #5c6677); }
