/* =========================================================
   OPTV HD — Store product group pages   v1.0
   File: templates/lagom2/optv/optv-store.css
   Scoped under .op — same design language as the homepage.
   ========================================================= */

.op {
  --op-accent: #0369A1;
  --op-accent-dark: #075985;
  --op-ink: #0B2239;
  --op-text: #1E3247;
  --op-muted: #41566E;
  --op-sky: #E0F2FE;
  --op-sky-2: #BAE6FD;
  --op-light: #7DD3FC;
  --op-line: #DCEAF5;
  --op-bg: #F7FBFF;

  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--op-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 24px;
}

/* ---------- Reset inside .op (beats Lagom) ---------- */
.op *, .op *::before, .op *::after { box-sizing: border-box; }
body .op h1, body .op h2, body .op h3 { margin: 0; color: inherit; font-family: inherit; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-transform: none; }
body .op p { margin: 0; color: inherit; font-family: inherit; }
body .op ul { margin: 0; padding: 0; list-style: none; }
body .op a { text-decoration: none; }
.op svg { flex-shrink: 0; }
.op :focus-visible { outline: 3px solid var(--op-light); outline-offset: 2px; }
.op-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
body .op .op-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body .op a.op-btn:hover { transform: translateY(-1px); }
body .op a.op-btn--primary { background: var(--op-accent); color: #fff; box-shadow: 0 14px 26px -14px rgba(3,105,161,.75); }
body .op a.op-btn--primary:hover { background: var(--op-accent-dark); color: #fff; }
body .op a.op-btn--light { background: #fff; color: var(--op-ink); }
body .op a.op-btn--light:hover { color: var(--op-ink); box-shadow: 0 12px 24px -12px rgba(0,0,0,.35); }
body .op a.op-btn--white { background: #fff; color: var(--op-ink); }
body .op a.op-btn--white:hover { color: var(--op-ink); }
body .op a.op-btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
body .op a.op-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
body .op .op-btn--disabled { background: #EEF2F6; color: #64748B; cursor: not-allowed; }

/* =========================================================
   HEADER
   ========================================================= */
.op-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 34px 36px 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(125,211,252,.6), transparent 42%),
    linear-gradient(160deg, #E8F6FF 0%, #D3EEFE 100%);
  display: flex; flex-direction: column; gap: 22px;
}
.op-hero__glow { position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(3,105,161,.12); z-index: -1; }
.op-hero__glow::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 1px solid rgba(3,105,161,.1); }

.op-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--op-muted); }
body .op .op-crumbs a { color: var(--op-accent); }
body .op .op-crumbs a:hover { color: var(--op-accent-dark); text-decoration: underline; }

.op-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.op-hero__copy { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
body .op .op-hero__title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; color: var(--op-ink); }
body .op .op-hero__tagline { font-size: 15px; line-height: 1.6; color: var(--op-muted); font-weight: 500; }

.op-hero__kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--op-accent); }
.op--no-title .op-hero__row { align-items: center; }

.op-hero__tools { display: flex; align-items: center; gap: 10px; }
body .op a.op-cartbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--op-line); color: var(--op-ink); font-weight: 700; font-size: 14px; }
body .op a.op-cartbtn:hover { border-color: var(--op-accent); color: var(--op-ink); }
.op-cartbtn svg { color: var(--op-accent); }
.op-cartbtn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--op-accent); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.op-currency select {
  appearance: none; -webkit-appearance: none;
  padding: 11px 36px 11px 16px; border-radius: 999px; border: 1px solid var(--op-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit; font-weight: 700; font-size: 14px; color: var(--op-ink); cursor: pointer; height: auto; box-shadow: none;
}

/* Category tabs */
.op-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); width: max-content; max-width: 100%; backdrop-filter: blur(8px); }
body .op a.op-tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; color: var(--op-muted); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
body .op a.op-tab:hover { color: var(--op-ink); background: rgba(255,255,255,.8); }
body .op a.op-tab.is-active { background: var(--op-ink); color: #fff; }
.op-tab svg { color: currentColor; }

.op-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 700; color: #0B3A57; }
.op-trust span { display: inline-flex; align-items: center; gap: 6px; }
.op-trust svg { color: var(--op-accent); }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.op-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.op-card {
  position: relative;
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 0;
  display: flex; flex-direction: column;
  border-radius: 28px; background: #fff; border: 1px solid var(--op-line);
  padding: 26px; gap: 18px; color: var(--op-ink);
  box-shadow: 0 18px 40px -34px rgba(11,34,57,.45);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.op-card:hover { transform: translateY(-4px); border-color: #B9D9EF; box-shadow: 0 28px 50px -30px rgba(11,34,57,.4); }
.op-card--featured {
  background: linear-gradient(160deg, #0284C7 0%, #0369A1 50%, #0B3A5E 100%);
  border-color: #0369A1; color: #fff;
  box-shadow: 0 30px 50px -26px rgba(3,105,161,.75);
}
.op-card--featured:hover { border-color: #0369A1; }

.op-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
body .op .op-card__name { font-size: 19px; letter-spacing: -.01em; color: var(--op-ink); }
body .op .op-card--featured .op-card__name { color: #fff; }
.op-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: #FDE68A; color: #713F12; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.op-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-bottom: 18px; border-bottom: 1px solid var(--op-line); }
.op-card--featured .op-card__price { border-bottom-color: rgba(255,255,255,.2); }
.op-price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--op-ink); }
.op-card--featured .op-price { color: #fff; }
.op-price__code { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--op-muted); margin-left: 4px; }
.op-card--featured .op-price__code { color: #CFE9FA; }
.op-from { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--op-muted); }
.op-cycle { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--op-sky); color: var(--op-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.op-card--featured .op-cycle, .op-card--featured .op-from { background: rgba(255,255,255,.16); color: #fff; }
.op-card--featured .op-from { background: none; }

/* body / description */
.op-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.op-desc { font-size: 14.5px; line-height: 1.6; color: var(--op-text); }
.op-card--featured .op-desc { color: #EAF6FE; }

/* enhanced description (built by optv-store.js) */
.op-desc--enhanced { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.op-list { display: flex; flex-direction: column; gap: 9px; }
.op-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--op-text); line-height: 1.4; }
.op-list li svg { margin-top: 1px; color: var(--op-accent); }
.op-list li.is-no svg { color: #B45309; }
.op-card--featured .op-list li { color: #F0F9FF; }
.op-card--featured .op-list li svg { color: var(--op-light); }
.op-card--featured .op-list li.is-no svg { color: #FDE68A; }

.op-label { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--op-accent); }
.op-card--featured .op-label { color: var(--op-light); }

.op-credits { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 16px; background: var(--op-sky); color: var(--op-accent-dark); font-weight: 700; font-size: 15px; }
.op-credits b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.op-card--featured .op-credits { background: rgba(255,255,255,.14); color: #fff; }

.op-table { border-radius: 16px; border: 1px solid var(--op-line); overflow: hidden; }
.op-table div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--op-muted); }
.op-table div:nth-child(odd) { background: var(--op-bg); }
.op-table b { color: var(--op-ink); font-weight: 800; white-space: nowrap; }
.op-card--featured .op-table { border-color: rgba(255,255,255,.22); }
.op-card--featured .op-table div { color: #D6EEFC; }
.op-card--featured .op-table div:nth-child(odd) { background: rgba(255,255,255,.07); }
.op-card--featured .op-table b { color: #fff; }

.op-note { font-size: 13px; line-height: 1.55; color: var(--op-muted); padding: 10px 12px; border-radius: 12px; background: var(--op-bg); }
.op-card--featured .op-note { background: rgba(255,255,255,.08); color: #D6EEFC; }

/* WHMCS "feature: value" list */
.op-feats { display: flex; flex-direction: column; gap: 9px; }
.op-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--op-text); }
.op-feats svg { color: var(--op-accent); margin-top: 1px; }
.op-card--featured .op-feats li { color: #F0F9FF; }
.op-card--featured .op-feats svg { color: var(--op-light); }

.op-card__foot { display: flex; flex-direction: column; gap: 10px; }
body .op .op-card__foot .op-btn { width: 100%; }
.op-stock { font-size: 12.5px; font-weight: 700; color: var(--op-muted); text-align: center; }
.op-card--featured .op-stock { color: #D6EEFC; }

.op-empty { padding: 48px 24px; border-radius: 28px; background: var(--op-bg); border: 1px dashed var(--op-line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--op-muted); font-weight: 600; }

/* =========================================================
   INCLUDED
   ========================================================= */
.op-incl { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
body .op .op-h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; color: var(--op-ink); text-align: center; }
.op-incl__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.op-incl__list li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--op-line); font-weight: 700; font-size: 14.5px; color: var(--op-ink); }
.op-incl__list svg { color: var(--op-accent); }

.op-incl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.op-incl__item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--op-line); }
.op-incl__item b { display: block; font-size: 15px; color: var(--op-ink); }
.op-incl__item span:not(.op-ico) { display: block; font-size: 13px; color: var(--op-muted); font-weight: 600; }
.op-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--op-sky); color: var(--op-accent); display: flex; align-items: center; justify-content: center; }

/* =========================================================
   HELP STRIP (gradient)
   ========================================================= */
.op-help {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 30px; padding: 36px 38px; color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(125,211,252,.5), transparent 40%),
    linear-gradient(125deg, #0B2239 0%, #075985 50%, #0284C7 100%);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px;
}
.op-help::after { content: ""; position: absolute; right: -90px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); z-index: -1; }
.op-help__text { display: flex; flex-direction: column; gap: 8px; max-width: 600px; }
body .op .op-help h2 { font-size: clamp(22px, 2.8vw, 30px); color: #fff; letter-spacing: -.02em; }
body .op .op-help p { color: #D6EEFC; font-size: 15.5px; line-height: 1.6; }
.op-help__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .op-card { flex-basis: calc((100% - 18px) / 2); }
  .op-incl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .op { gap: 20px; }
  .op-hero { padding: 24px 18px 20px; border-radius: 24px; gap: 18px; }
  .op-hero__row { align-items: flex-start; }
  .op-hero__tools { width: 100%; }
  body .op a.op-cartbtn { flex: 1 1 auto; justify-content: center; }
  .op-tabs { width: 100%; padding: 4px; gap: 4px; }
  body .op a.op-tab { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: 13px; gap: 6px; }
  .op-tab svg { width: 15px; height: 15px; }
  .op-trust { font-size: 12.5px; gap: 6px 14px; }

  .op-card { flex-basis: 100%; padding: 22px; border-radius: 24px; gap: 16px; }
  .op-card:hover { transform: none; }
  .op-price { font-size: 38px; }

  .op-incl__grid { grid-template-columns: 1fr; gap: 10px; }
  .op-incl__item { padding: 14px; }

  .op-help { padding: 28px 20px; border-radius: 24px; }
  .op-help__btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  body .op .op-help__btns .op-btn { padding: 13px 8px; font-size: 14px; }
}

@media (max-width: 480px) {
  .op-tab svg { display: none; }
}

@media (max-width: 360px) {
  body .op a.op-tab { font-size: 12px; padding: 10px 4px; }
  .op-help__btns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .op *, .op *::before, .op *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   OPTIONAL: hide Lagom's own store sidebar / page title so the
   page uses the full width. Selectors differ between Lagom
   versions — confirm them with right-click > Inspect, then
   remove the comment markers.
   ========================================================= */
/*
body:has(.op) .main-sidebar { display: none !important; }
body:has(.op) .main-content { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
body:has(.op) .main-header-title,
body:has(.op) .main-header-subtitle { display: none !important; }
*/

/* Store page: align content to the shared 50px desktop gutters */
@media (min-width: 701px) {
  body.page-products .main-body .container:has(> .op) {
    width: calc(100% - 100px);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}
