/* Templates library: calculator-inspired category system */
.template-library-hero .finance-hero-copy > p {
  max-width:740px;
}
.template-hero-panel > strong {
  color:var(--teal);
}
.template-listing-head {
  align-items:end;
  gap:24px;
}
.template-category-toolbar {
  position:static;
}
.template-main-category-row {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  overflow:visible!important;
}
.template-main-category-row button {
  width:100%;
  min-width:0;
  min-height:48px!important;
  padding:10px 14px!important;
  justify-content:space-between;
  text-align:left;
  white-space:normal;
}
.template-main-category-row button span {
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  line-height:1.35;
}
.template-category-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.template-category-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:285px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:17px;
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--teal) 9%,transparent),transparent 36%),
    var(--surface);
  box-shadow:0 15px 34px rgba(20,56,52,.05);
}
.template-category-card[hidden] {
  display:none!important;
}
.template-category-card .finance-card-icon {
  background:color-mix(in srgb,var(--teal) 11%,var(--paper));
  color:var(--teal);
}
.template-category-card .finance-card-category {
  margin-top:24px;
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.template-category-card h2 {
  margin:9px 0 10px;
  color:var(--ink);
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.template-category-card > p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}
.template-category-status {
  display:block;
  margin-top:auto;
  padding-top:22px;
  color:var(--teal);
  font-size:9px;
  font-weight:850;
  letter-spacing:.02em;
}
.template-standards-section {
  border-top:1px solid var(--line);
}
@media (max-width:980px) {
  .template-main-category-row {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .template-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px) {
  .template-listing-head {
    align-items:start;
  }
  .template-main-category-row {
    grid-template-columns:1fr;
  }
  .template-main-category-row button {
    flex:initial!important;
  }
  .template-category-grid {
    grid-template-columns:1fr;
  }
  .template-category-card {
    min-height:245px;
  }
}

/* Canva digital-product ecosystem */
.template-library-section .template-category-toolbar { gap:14px; padding:15px; }
.template-main-category-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
.template-main-category-row button small,
.template-subcategory-grid button small,
.template-subcategory-all-row button small {
  display:inline-grid;
  place-items:center;
  min-width:22px;
  min-height:22px;
  padding:0 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--ink) 8%,transparent);
  color:inherit;
  font-size:8px;
  font-weight:900;
}
.template-main-category-row button.active small,
.template-subcategory-grid button.active small,
.template-subcategory-all-row button.active small { background:rgba(255,255,255,.2); }
.template-subcategory-panel { margin-top:0; }
.template-subcategory-panel[hidden] { display:none!important; }
.template-subcategory-all-row { display:flex; }
.template-subcategory-all-row button,
.template-subcategory-grid button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 11px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
  font-size:9px;
  font-weight:850;
  text-align:left;
}
.template-subcategory-all-row button { min-width:210px; border-color:color-mix(in srgb,var(--teal) 30%,var(--line)); }
.template-subcategory-all-row button:hover,
.template-subcategory-grid button:hover,
.template-subcategory-all-row button:focus-visible,
.template-subcategory-grid button:focus-visible { border-color:var(--teal); color:var(--teal); }
.template-subcategory-all-row button.active,
.template-subcategory-grid button.active { border-color:var(--teal); background:var(--teal); color:#fff; }
.template-subcategory-accordions { display:grid; gap:8px; }
.template-subcategory-accordions details { border:1px solid var(--line); border-radius:11px; background:var(--surface); overflow:hidden; }
.template-subcategory-accordions summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  min-height:44px;
  padding:10px 13px;
  color:var(--ink);
  cursor:pointer;
  list-style:none;
  font-size:10px;
  font-weight:900;
}
.template-subcategory-accordions summary::-webkit-details-marker { display:none; }
.template-subcategory-accordions summary small { color:var(--muted); font-size:8px; font-weight:800; }
.template-subcategory-accordions details[open] summary { border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--teal) 4%,var(--paper)); }
.template-subcategory-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:11px; }
.template-sort-row { display:flex; align-items:end; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.template-sort-row label { display:grid; gap:6px; color:var(--muted); font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.template-sort-row select {
  min-width:225px;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:0 36px 0 12px;
  background:var(--surface);
  color:var(--ink);
  font-size:10px;
  font-weight:750;
}
.template-catalog-download {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:0 14px;
  border:1px solid color-mix(in srgb,var(--teal) 34%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--teal) 5%,var(--surface));
  color:var(--teal);
  font-size:9px;
  font-weight:900;
}
.template-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.template-product-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 16px 40px rgba(20,56,52,.055);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.template-product-card:hover { transform:translateY(-4px); border-color:color-mix(in srgb,var(--teal) 38%,var(--line)); box-shadow:0 22px 50px rgba(20,56,52,.095); }
.template-product-card[hidden] { display:none!important; }
.template-product-preview { display:block; aspect-ratio:4/3; overflow:hidden; background:color-mix(in srgb,var(--teal) 5%,var(--paper)); }
.template-product-preview img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.template-product-card:hover .template-product-preview img { transform:scale(1.025); }
.template-product-body { display:flex; flex:1; flex-direction:column; padding:18px; }
.template-product-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.055em; text-transform:uppercase; }
.template-product-meta small { color:var(--muted); font-size:8px; white-space:nowrap; }
.template-product-card h2 { margin:10px 0 9px; color:var(--ink); font-size:18px; line-height:1.25; letter-spacing:-.03em; }
.template-product-card h2 a { color:inherit; }
.template-product-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.template-product-specs { display:flex; flex-wrap:wrap; gap:6px; margin:15px 0; }
.template-product-specs span { padding:6px 8px; border-radius:999px; background:color-mix(in srgb,var(--teal) 7%,var(--paper)); color:var(--ink); font-size:8px; font-weight:800; }
.template-product-link { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:14px; border-top:1px solid var(--line); color:var(--teal); font-size:9px; font-weight:900; }
.template-bundle-section { padding:90px 0; border-top:1px solid var(--line); background:color-mix(in srgb,var(--teal) 2%,var(--paper)); }
.template-bundle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.template-bundle-card { padding:22px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.template-bundle-card > div { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.template-bundle-card > div span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.08em; }
.template-bundle-card > div strong { color:var(--ink); font-size:20px; }
.template-bundle-card h2 { margin:14px 0 8px; color:var(--ink); font-size:20px; letter-spacing:-.03em; }
.template-bundle-card > p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.template-bundle-card > small { display:block; margin-top:10px; color:var(--ink); font-size:9px; font-weight:800; }
.template-bundle-card details { margin-top:16px; border-top:1px solid var(--line); }
.template-bundle-card summary { display:flex; justify-content:space-between; padding:14px 0 0; color:var(--teal); cursor:pointer; font-size:9px; font-weight:900; }
.template-bundle-card ol { margin:12px 0 0; padding-left:20px; color:var(--muted); font-size:10px; line-height:1.8; }
.template-source-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.template-source-links a { padding:7px 9px; border:1px solid #2d4b47; border-radius:8px; color:#d9f4ef; font-size:8px; font-weight:850; }
.template-faq-section { border-top:1px solid var(--line); }

/* Template blueprint detail page */
.template-detail-page { position:relative; z-index:5; }
.template-detail-hero { padding:80px 0 70px; background:linear-gradient(150deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--paper) 58%); border-bottom:1px solid var(--line); }
.template-detail-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.88fr); gap:60px; align-items:center; }
.template-breadcrumbs { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:24px; color:var(--muted); font-size:9px; }
.template-breadcrumbs a { color:var(--teal); font-weight:800; }
.template-detail-copy h1 { max-width:780px; margin:12px 0 16px; color:var(--ink); font-size:clamp(38px,5.2vw,68px); line-height:.98; letter-spacing:-.055em; }
.template-detail-lead { max-width:760px; margin:0; color:var(--muted); font-size:15px; line-height:1.75; }
.template-detail-badges { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.template-detail-badges span { padding:8px 11px; border:1px solid color-mix(in srgb,var(--teal) 22%,var(--line)); border-radius:999px; background:var(--surface); color:var(--ink); font-size:9px; font-weight:800; }
.template-detail-actions { display:flex; flex-wrap:wrap; gap:10px; }
.template-blueprint-disclaimer { max-width:760px; margin:18px 0 0; padding:12px 14px; border-left:3px solid var(--teal); background:color-mix(in srgb,var(--teal) 5%,var(--surface)); color:var(--muted); font-size:10px; line-height:1.65; }
.template-detail-preview { margin:0; }
.template-detail-preview img { display:block; width:100%; border:1px solid var(--line); border-radius:24px; box-shadow:0 30px 80px rgba(20,56,52,.14); }
.template-detail-preview figcaption { margin-top:10px; color:var(--muted); font-size:8px; line-height:1.5; }
.template-detail-content { padding:76px 0 100px; background:var(--paper); }
.template-detail-layout { display:grid; grid-template-columns:minmax(0,780px) minmax(250px,320px); justify-content:center; gap:64px; align-items:start; }
.template-detail-main { display:grid; gap:20px; }
.template-detail-section { padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.template-detail-eyebrow { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.09em; }
.template-detail-section > h2 { margin:8px 0 22px; color:var(--ink); font-size:27px; line-height:1.16; letter-spacing:-.04em; }
.template-strategy-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.template-strategy-grid > div { padding:15px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.template-strategy-grid small,.template-strategy-grid strong { display:block; }
.template-strategy-grid small { color:var(--teal); font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.template-strategy-grid strong { margin-top:7px; color:var(--ink); font-size:11px; line-height:1.55; }
.template-two-column-lists { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.template-two-column-lists > div { padding:17px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.template-two-column-lists h3 { margin:0 0 12px; color:var(--ink); font-size:14px; }
.template-two-column-lists ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.template-two-column-lists li { position:relative; padding-left:17px; color:var(--muted); font-size:10px; line-height:1.55; }
.template-two-column-lists li::before { content:'✓'; position:absolute; left:0; color:var(--teal); font-weight:900; }
.template-spec-table { margin:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.template-spec-table > div { display:grid; grid-template-columns:160px 1fr; gap:18px; padding:14px 16px; border-bottom:1px solid var(--line); }
.template-spec-table > div:last-child { border-bottom:0; }
.template-spec-table dt { color:var(--teal); font-size:9px; font-weight:900; }
.template-spec-table dd { margin:0; color:var(--ink); font-size:10px; line-height:1.55; }
.template-copy-block { margin-top:12px; border:1px solid var(--line); border-radius:13px; overflow:hidden; }
.template-copy-block > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; background:color-mix(in srgb,var(--teal) 5%,var(--paper)); border-bottom:1px solid var(--line); }
.template-copy-block > div span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-copy-block button,.template-list-heading button { border:0; background:transparent; color:var(--teal); cursor:pointer; font-size:8px; font-weight:900; }
.template-copy-block > p { margin:0; padding:16px; color:var(--ink); font-size:11px; line-height:1.75; }
.template-description-copy > p { color:var(--muted); }
.template-keyword-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.template-keyword-columns > div { min-width:0; padding:16px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.template-list-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.template-list-heading h3 { margin:0; color:var(--ink); font-size:13px; }
.template-chip-list { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.template-chip-list li { padding:6px 8px; border-radius:8px; background:var(--surface); color:var(--muted); font-size:8px; line-height:1.35; }
.template-tag-list li { border:1px solid color-mix(in srgb,var(--teal) 20%,var(--line)); color:var(--teal); }
.template-workflow-list { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.template-workflow-list li { display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:start; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.template-workflow-list span { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:var(--teal); color:#fff; font-size:9px; font-weight:900; }
.template-workflow-list p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.template-bundle-callout { background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 8%,var(--surface)),var(--surface)); }
.template-bundle-callout > p { color:var(--muted); font-size:11px; line-height:1.7; }
.template-bundle-callout > a { display:inline-flex; margin-top:13px; color:var(--teal); font-size:9px; font-weight:900; }
.template-detail-aside { position:sticky; top:100px; display:grid; gap:12px; }
.template-aside-card { padding:19px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.template-aside-card > span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.08em; }
.template-aside-card > strong { display:block; margin-top:8px; color:var(--ink); font-size:28px; }
.template-aside-card > p { margin:9px 0 0; color:var(--muted); font-size:9px; line-height:1.65; }
.template-aside-card dl { display:grid; gap:10px; margin:14px 0 0; }
.template-aside-card dl div { padding-bottom:9px; border-bottom:1px solid var(--line); }
.template-aside-card dt { color:var(--muted); font-size:8px; }
.template-aside-card dd { margin:4px 0 0; color:var(--ink); font-size:9px; font-weight:800; }
.template-licence-card a { display:inline-flex; margin-top:12px; color:var(--teal); font-size:8px; font-weight:900; }
.template-related-section { padding:80px 0 100px; border-top:1px solid var(--line); background:color-mix(in srgb,var(--teal) 2%,var(--paper)); }
.template-related-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.template-view-all { color:var(--teal)!important; font-weight:850; }

@media (max-width:1100px) {
  .template-subcategory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .template-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-detail-hero-grid { grid-template-columns:1fr 420px; gap:36px; }
}
@media (max-width:900px) {
  .template-main-category-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-subcategory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-detail-hero-grid,.template-detail-layout { grid-template-columns:1fr; }
  .template-detail-preview { max-width:650px; }
  .template-detail-aside { position:static; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .template-product-grid,.template-related-grid,.template-bundle-grid { grid-template-columns:1fr; }
  .template-subcategory-grid { grid-template-columns:1fr; }
  .template-sort-row,.template-detail-actions { align-items:stretch; flex-direction:column; }
  .template-sort-row label,.template-sort-row select,.template-catalog-download { width:100%; }
  .template-strategy-grid,.template-two-column-lists,.template-keyword-columns,.template-detail-aside { grid-template-columns:1fr; }
  .template-spec-table > div { grid-template-columns:1fr; gap:6px; }
  .template-detail-section { padding:21px 18px; }
}
@media (max-width:520px) {
  .template-main-category-row { grid-template-columns:1fr; }
  .template-detail-hero { padding-top:58px; }
  .template-detail-copy h1 { font-size:38px; }
  .template-subcategory-all-row button { width:100%; min-width:0; }
}
.template-catalog-table-wrap { margin-top:28px; border:1px solid var(--line); border-radius:15px; background:var(--surface); overflow:hidden; }
.template-catalog-table-wrap > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; color:var(--teal); cursor:pointer; list-style:none; font-size:10px; font-weight:900; }
.template-catalog-table-wrap > summary::-webkit-details-marker { display:none; }
.template-catalog-table-wrap[open] > summary { border-bottom:1px solid var(--line); }
.template-catalog-table-scroll { overflow:auto; max-height:720px; }
.template-catalog-table { width:100%; min-width:1250px; border-collapse:collapse; }
.template-catalog-table th,.template-catalog-table td { padding:11px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.template-catalog-table th { position:sticky; top:0; z-index:2; background:var(--paper); color:var(--teal); font-size:8px; letter-spacing:.05em; text-transform:uppercase; }
.template-catalog-table td { color:var(--muted); font-size:8px; line-height:1.55; }
.template-catalog-table td a { color:var(--ink); font-weight:850; }

/* Template storefront: free/paid access, protected formats and on-site workspace */
.template-product-preview { position:relative; }
.template-access-badge {
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  box-shadow:0 8px 24px rgba(15,35,32,.14);
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
}
.template-access-badge.free { background:rgba(8,121,108,.9); }
.template-access-badge.paid { background:rgba(15,23,42,.9); }
.template-access-section {
  padding:54px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--paper));
}
.template-access-grid {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  gap:32px;
  align-items:center;
}
.template-access-copy h2 { max-width:760px; margin:10px 0 12px; font-size:36px; letter-spacing:-.045em; }
.template-access-copy > p { max-width:720px; color:var(--muted); font-size:14px; line-height:1.75; }
.template-access-price { display:flex; align-items:baseline; gap:14px; margin-top:22px; }
.template-access-price small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-access-price strong { color:var(--teal); font-size:34px; letter-spacing:-.04em; }
.template-access-card {
  padding:24px;
  border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line));
  border-radius:20px;
  background:var(--surface);
  box-shadow:0 24px 70px rgba(21,61,56,.12);
}
.template-format-label { display:block; margin-bottom:8px; color:var(--ink); font-size:10px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.template-format-select {
  width:100%;
  min-height:52px;
  margin-bottom:14px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  font-weight:750;
}
.template-access-card .button { width:100%; justify-content:center; }
.template-access-note { margin:12px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.template-no-file { padding:18px; border:1px dashed var(--line); border-radius:14px; background:var(--paper); }
.template-no-file strong { display:block; color:var(--ink); font-size:16px; }
.template-no-file p { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.template-workspace-section { padding:78px 0; background:var(--paper); }
.template-workspace-grid { display:grid; grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr); gap:28px; align-items:stretch; }
.template-workspace-controls {
  display:grid;
  gap:14px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 18px 50px rgba(20,56,52,.07);
}
.template-workspace-controls label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.template-workspace-controls input[type="text"],
.template-workspace-controls textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  resize:vertical;
}
.template-workspace-colours { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.template-workspace-colours label { grid-template-columns:1fr auto; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:11px; }
.template-workspace-colours input { width:42px; height:32px; border:0; background:transparent; cursor:pointer; }
.template-workspace-actions { display:flex; flex-wrap:wrap; gap:9px; }
.template-live-preview {
  --workspace-accent:#08796c;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:560px;
  overflow:hidden;
  padding:78px 84px 78px 112px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#f2f0ea;
  box-shadow:0 28px 80px rgba(20,56,52,.12);
}
.template-live-preview::before { content:""; position:absolute; inset:48px auto 48px 58px; width:12px; border-radius:99px; background:var(--workspace-accent); }
.template-live-preview::after { content:""; position:absolute; right:-90px; top:-90px; width:280px; height:280px; border:48px solid color-mix(in srgb,var(--workspace-accent) 18%,transparent); border-radius:50%; }
.template-live-preview span { position:relative; z-index:1; color:var(--workspace-accent); font-size:16px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.template-live-preview strong { position:relative; z-index:1; display:block; max-width:760px; margin-top:30px; color:#10201e; font-size:54px; line-height:1.02; letter-spacing:-.055em; overflow-wrap:anywhere; }
.template-live-preview p { position:relative; z-index:1; max-width:680px; margin:28px 0 0; color:#4c5e5a; font-size:20px; line-height:1.55; }
.template-live-preview em { position:relative; z-index:1; align-self:flex-start; margin-top:38px; padding:15px 24px; border-radius:999px; background:var(--workspace-accent); color:#fff; font-size:12px; font-style:normal; font-weight:900; }
.template-checkout-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(5,18,17,.66);
  backdrop-filter:blur(12px);
}
.template-checkout-modal-backdrop[hidden] { display:none!important; }
.template-modal-open { overflow:hidden; }
.template-checkout-modal {
  position:relative;
  width:min(560px,100%);
  max-height:90vh;
  overflow:auto;
  padding:30px;
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 36px 120px rgba(0,0,0,.3);
}
.template-checkout-modal h2 { margin:10px 0 10px; font-size:30px; letter-spacing:-.04em; }
.template-checkout-modal > p { color:var(--muted); font-size:12px; line-height:1.7; }
.template-checkout-modal form { display:grid; gap:13px; margin-top:22px; }
.template-checkout-modal form label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.template-checkout-modal input { min-height:48px; padding:0 13px; border:1px solid var(--line); border-radius:11px; background:var(--paper); color:var(--ink); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; }
.template-checkout-modal > small { display:block; margin-top:14px; color:var(--muted); font-size:9px; line-height:1.55; }
.template-checkout-close { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--ink); font-size:22px; cursor:pointer; }
.template-checkout-page { min-height:70vh; }
.template-checkout-section { padding:100px 0; background:linear-gradient(140deg,color-mix(in srgb,var(--teal) 8%,var(--paper)),var(--paper)); }
.template-checkout-shell { max-width:860px; }
.template-checkout-card { padding:38px; border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:0 30px 90px rgba(20,56,52,.13); }
.template-checkout-card > span { color:var(--teal); font-size:9px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.template-checkout-card h1 { margin:12px 0; font-size:42px; letter-spacing:-.05em; }
.template-checkout-card > p { color:var(--muted); font-size:13px; line-height:1.75; }
.template-order-summary { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; margin:28px 0; border:1px solid var(--line); border-radius:14px; background:var(--line); }
.template-order-summary div { padding:16px; background:var(--paper); }
.template-order-summary dt { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-order-summary dd { margin:6px 0 0; color:var(--ink); font-size:13px; font-weight:850; overflow-wrap:anywhere; }
.template-payment-instructions,.template-status-link,.template-order-state { margin-top:20px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.template-payment-instructions strong,.template-status-link strong,.template-order-state strong { display:block; color:var(--ink); font-size:13px; }
.template-payment-instructions p,.template-status-link p,.template-order-state p { margin:7px 0 0; color:var(--muted); font-size:11px; line-height:1.65; }
.template-status-link a { display:block; margin-top:10px; color:var(--teal); font-size:10px; font-weight:800; overflow-wrap:anywhere; }
.template-checkout-note { margin-top:18px!important; font-size:10px!important; }
.template-pay-button { margin-top:2px; }
.template-order-paid { border-color:color-mix(in srgb,#0a9f6f 35%,var(--line)); background:color-mix(in srgb,#0a9f6f 5%,var(--paper)); }
.template-order-pending { border-color:color-mix(in srgb,#d29424 35%,var(--line)); background:color-mix(in srgb,#d29424 5%,var(--paper)); }
.template-order-cancelled,.template-checkout-error { border-color:color-mix(in srgb,#c94c4c 35%,var(--line)); }
.template-return-link { display:inline-block; margin-top:22px; color:var(--teal); font-size:11px; font-weight:850; }
@media (max-width:900px) {
  .template-access-grid,.template-workspace-grid { grid-template-columns:1fr; }
  .template-live-preview { min-height:500px; }
}
@media (max-width:620px) {
  .template-access-copy h2 { font-size:30px; }
  .template-live-preview { min-height:450px; padding:60px 42px 60px 72px; }
  .template-live-preview::before { left:32px; }
  .template-live-preview strong { font-size:38px; }
  .template-live-preview p { font-size:16px; }
  .template-order-summary { grid-template-columns:1fr; }
  .template-checkout-card { padding:24px; }
  .template-checkout-card h1 { font-size:32px; }
}

/* Premium template previews and calculator-style modal workspace */
.template-product-preview {
  position:relative;
  width:100%;
  padding:0;
  border:0;
  cursor:pointer;
  text-align:left;
}
.template-product-preview::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 52%,rgba(5,18,17,.68));
  opacity:0;
  transition:opacity .25s ease;
}
.template-preview-hover {
  position:absolute;
  left:18px;
  bottom:16px;
  z-index:3;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:rgba(8,25,23,.72);
  color:#fff;
  font-size:9px;
  font-weight:900;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease;
  backdrop-filter:blur(10px);
}
.template-product-card:hover .template-product-preview::after,
.template-product-preview:focus-visible::after,
.template-product-card:hover .template-preview-hover,
.template-product-preview:focus-visible .template-preview-hover { opacity:1; }
.template-product-card:hover .template-preview-hover,
.template-product-preview:focus-visible .template-preview-hover { transform:none; }
.template-product-card h2 button,
.template-product-link,
.template-table-product-button {
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
.template-product-card h2 button:hover,
.template-product-card h2 button:focus-visible,
.template-table-product-button:hover,
.template-table-product-button:focus-visible { color:var(--teal); }
.template-product-link { width:100%; }
.template-product-noscript { display:block; margin-top:10px; color:var(--teal); font-size:9px; font-weight:850; }
.template-table-product-button { color:var(--ink); font-weight:850; }

.template-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:1600;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(4,15,14,.76);
  backdrop-filter:blur(18px);
}
.template-modal-backdrop[hidden] { display:none!important; }
.template-modal {
  width:min(1440px,100%);
  max-height:94vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.14);
  border-radius:26px;
  background:var(--surface);
  box-shadow:0 44px 150px rgba(0,0,0,.42);
  outline:none;
}
.template-modal-header {
  position:sticky;
  top:0;
  z-index:7;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:22px 26px 18px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter:blur(18px);
}
.template-modal-header > div { min-width:0; }
.template-modal-header span {
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.template-modal-header h2 {
  margin:6px 0 6px;
  color:var(--ink);
  font-size:clamp(24px,3vw,38px);
  line-height:1.05;
  letter-spacing:-.045em;
}
.template-modal-header p { max-width:850px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; }
.template-modal-close {
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper);
  color:var(--ink);
  font-size:27px;
  cursor:pointer;
}
.template-modal-tabs {
  position:sticky;
  top:109px;
  z-index:6;
  display:flex;
  gap:8px;
  padding:12px 26px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 95%,transparent);
  backdrop-filter:blur(18px);
}
.template-modal-tabs button {
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.template-modal-tabs button.active {
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}
.template-modal-panel { padding:24px; }
.template-modal-panel[hidden] { display:none!important; }
.template-modal-editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(340px,.7fr);
  gap:24px;
  align-items:start;
}
.template-modal-preview-column { display:grid; gap:18px; min-width:0; }
.template-modal-composite {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--paper);
  box-shadow:0 22px 60px rgba(20,56,52,.1);
}
.template-modal-composite img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.template-modal-live-frame {
  display:grid;
  place-items:center;
  padding:26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:
    linear-gradient(45deg,color-mix(in srgb,var(--teal) 4%,transparent) 25%,transparent 25%) 0 0/24px 24px,
    linear-gradient(-45deg,color-mix(in srgb,var(--teal) 4%,transparent) 25%,transparent 25%) 0 12px/24px 24px,
    var(--paper);
}
.template-modal-live-canvas {
  --template-bg:#f7f4ee;
  --template-text:#111318;
  --template-accent:#c8a96b;
  --template-heading-font:"Cormorant Garamond",Georgia,serif;
  --template-body-font:"Manrope",Arial,sans-serif;
  --template-heading-size:66px;
  --template-body-size:20px;
  --template-align:left;
  position:relative;
  display:grid;
  width:min(100%,720px);
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:12px;
  background:var(--template-bg);
  color:var(--template-text);
  box-shadow:0 28px 80px rgba(8,22,20,.2);
  isolation:isolate;
}
.template-live-photo {
  position:relative;
  overflow:hidden;
  min-height:0;
  background:
    radial-gradient(circle at 68% 34%,color-mix(in srgb,var(--template-accent) 60%,transparent) 0 15%,transparent 16%),
    linear-gradient(145deg,color-mix(in srgb,var(--template-text) 7%,var(--template-bg)),color-mix(in srgb,var(--template-accent) 26%,var(--template-bg)));
  background-position:center;
  background-size:cover;
}
.template-live-photo::before {
  content:"";
  position:absolute;
  width:42%;
  aspect-ratio:1;
  left:29%;
  top:22%;
  border-radius:48% 52% 42% 58%;
  background:var(--template-text);
  opacity:.08;
  transform:rotate(-12deg);
}
.template-live-photo span {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:var(--template-text);
  font:800 12px/1 var(--template-body-font);
  letter-spacing:.12em;
  opacity:.45;
}
.template-live-photo.has-image span { display:none; }
.template-live-copy {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:8%;
  text-align:var(--template-align);
}
.template-live-copy small {
  display:block;
  color:var(--template-accent);
  font:800 13px/1.2 var(--template-body-font);
  letter-spacing:.13em;
}
.template-live-copy strong {
  display:block;
  margin-top:18px;
  color:var(--template-text);
  font-family:var(--template-heading-font);
  font-size:clamp(30px,var(--template-heading-size),78px);
  font-weight:700;
  line-height:.94;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
}
.template-live-copy p {
  max-width:620px;
  margin:22px 0 0;
  color:var(--template-text);
  font-family:var(--template-body-font);
  font-size:clamp(13px,var(--template-body-size),30px);
  line-height:1.45;
  opacity:.74;
}
.template-live-copy em {
  align-self:var(--template-align);
  display:inline-flex;
  margin-top:28px;
  padding:13px 20px;
  border-radius:999px;
  background:var(--template-accent);
  color:var(--template-text);
  font:800 11px/1 var(--template-body-font);
  font-style:normal;
  letter-spacing:.08em;
}
.template-live-ornament { position:absolute; z-index:1; pointer-events:none; }
.template-modal-live-canvas[data-layout="split"] { grid-template-rows:54% 46%; }
.template-modal-live-canvas[data-layout="split"] .template-live-photo { grid-row:1; }
.template-modal-live-canvas[data-layout="split"] .template-live-copy { grid-row:2; }
.template-modal-live-canvas[data-layout="poster"] { grid-template-columns:63% 37%; }
.template-modal-live-canvas[data-layout="poster"] .template-live-photo { grid-column:2; grid-row:1; }
.template-modal-live-canvas[data-layout="poster"] .template-live-copy { grid-column:1; grid-row:1; }
.template-modal-live-canvas[data-layout="poster"] .template-live-ornament { right:30%; top:0; width:7%; height:100%; background:var(--template-accent); }
.template-modal-live-canvas[data-layout="minimal"] { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:9%; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-photo { order:1; flex:0 0 43%; width:62%; min-height:0; border-radius:50%; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy { order:2; align-items:center; padding:8% 0 0; text-align:center; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy p { text-align:center; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy em { align-self:center; }
.template-modal-live-canvas[data-layout="card"] { padding:7%; background:linear-gradient(145deg,var(--template-bg),color-mix(in srgb,var(--template-accent) 22%,var(--template-bg))); }
.template-modal-live-canvas[data-layout="card"] .template-live-photo { position:absolute; inset:7% 7% 46%; border-radius:26px; }
.template-modal-live-canvas[data-layout="card"] .template-live-copy { align-self:end; min-height:45%; padding:8%; border-radius:26px; background:color-mix(in srgb,var(--template-bg) 88%,transparent); backdrop-filter:blur(18px); }
.template-modal-live-canvas[data-family="notes-chic"] .template-live-ornament { left:6%; bottom:7%; width:38%; height:13px; background:var(--template-accent); transform:rotate(-3deg); }
.template-modal-live-canvas[data-family="bold-block"] .template-live-copy strong { text-transform:uppercase; font-weight:900; }
.template-modal-live-canvas[data-family="tactile-collage"]::after { content:""; position:absolute; inset:0; opacity:.11; background-image:radial-gradient(var(--template-text) .65px,transparent .65px); background-size:6px 6px; pointer-events:none; }
.template-modal-live-canvas[data-family="saas-ui"] { border-radius:30px; }
.template-modal-live-canvas[data-family="saas-ui"] .template-live-copy em { border-radius:12px; }
.template-modal-live-canvas[data-family="luxury-editorial"] .template-live-copy strong { font-weight:500; }

.template-modal-controls {
  position:sticky;
  top:177px;
  display:grid;
  gap:13px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  box-shadow:0 20px 60px rgba(20,56,52,.08);
}
.template-control-heading { padding-bottom:13px; border-bottom:1px solid var(--line); }
.template-control-heading span { display:block; color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.1em; }
.template-control-heading strong { display:block; margin-top:5px; color:var(--ink); font-size:17px; }
.template-modal-controls label {
  display:grid;
  gap:6px;
  color:var(--ink);
  font-size:8px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.template-modal-controls input[type="text"],
.template-modal-controls input[type="email"],
.template-modal-controls textarea,
.template-modal-controls select,
.template-modal-access-card input,
.template-modal-access-card select {
  width:100%;
  min-height:43px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 11px;
  background:var(--paper);
  color:var(--ink);
  font:500 11px/1.4 Arial,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
.template-modal-controls textarea { resize:vertical; }
.template-control-grid { display:grid; gap:9px; }
.template-control-grid.two { grid-template-columns:1fr 1fr; }
.template-control-grid.three { grid-template-columns:repeat(3,1fr); }
.template-control-grid input[type="color"] { width:100%; height:44px; padding:3px; border:1px solid var(--line); border-radius:10px; background:var(--paper); cursor:pointer; }
.template-control-grid input[type="range"] { width:100%; accent-color:var(--teal); }
.template-control-grid output { justify-self:end; margin-top:-17px; color:var(--muted); font-size:8px; }
.template-image-upload { padding:12px; border:1px dashed color-mix(in srgb,var(--teal) 42%,var(--line)); border-radius:11px; background:color-mix(in srgb,var(--teal) 4%,var(--paper)); }
.template-image-upload input { margin-top:4px; font-size:9px; }
.template-modal-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.template-editor-note { margin:0; color:var(--muted); font-size:8px; line-height:1.55; }

.template-modal-details-grid { display:grid; gap:18px; }
.template-modal-details-grid > section {
  padding:24px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.template-modal-eyebrow { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.1em; }
.template-modal-details-grid h3 { margin:7px 0 18px; color:var(--ink); font-size:23px; letter-spacing:-.035em; }
.template-modal-specs { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--line); }
.template-modal-specs div { padding:13px; background:var(--paper); }
.template-modal-specs dt { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-modal-specs dd { margin:5px 0 0; color:var(--ink); font-size:11px; font-weight:750; line-height:1.45; }
.template-modal-swatches { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.template-modal-swatches span { display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:8px; font-weight:800; }
.template-modal-swatches span::before { content:""; width:20px; height:20px; border:1px solid rgba(0,0,0,.1); border-radius:50%; background:var(--swatch); }
.template-modal-list-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.template-modal-list-columns > div { padding:16px; border-radius:13px; background:var(--paper); }
.template-modal-list-columns h4 { margin:0 0 10px; color:var(--ink); font-size:12px; }
.template-modal-list-columns ul { margin:0; padding-left:18px; color:var(--muted); font-size:10px; line-height:1.75; }
.template-modal-seo-section p { color:var(--muted); font-size:11px; line-height:1.75; }
.template-modal-chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.template-modal-chips span { padding:6px 9px; border-radius:999px; background:color-mix(in srgb,var(--teal) 7%,var(--paper)); color:var(--ink); font-size:8px; font-weight:800; }

.template-modal-download-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(350px,.8fr);
  gap:28px;
  align-items:center;
  min-height:480px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--surface));
}
.template-modal-download-grid h3 { margin:8px 0 10px; color:var(--ink); font-size:34px; letter-spacing:-.045em; }
.template-modal-download-grid p { max-width:700px; color:var(--muted); font-size:12px; line-height:1.7; }
.template-modal-price { display:flex; align-items:baseline; gap:14px; margin-top:24px; }
.template-modal-price small { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-modal-price strong { color:var(--teal); font-size:38px; letter-spacing:-.045em; }
.template-modal-access-card { display:grid; gap:13px; padding:22px; border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line)); border-radius:18px; background:var(--surface); box-shadow:0 22px 70px rgba(20,56,52,.12); }
.template-modal-access-card > label,
.template-modal-access-card form label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-modal-access-card .button { width:100%; justify-content:center; }
.template-modal-access-card form { display:grid; gap:12px; }
.template-modal-no-files { padding:18px; border:1px dashed var(--line); border-radius:13px; background:var(--paper); }
.template-modal-no-files strong { display:block; color:var(--ink); }
.template-modal-no-files p { margin:7px 0 0; font-size:10px; }

@media (max-width:1100px) {
  .template-modal-editor-grid { grid-template-columns:1fr; }
  .template-modal-controls { position:static; }
  .template-modal-download-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .template-modal-backdrop { padding:0; align-items:end; }
  .template-modal { width:100%; max-height:96vh; border-radius:24px 24px 0 0; }
  .template-modal-header { padding:18px; }
  .template-modal-header p { display:none; }
  .template-modal-tabs { top:89px; overflow-x:auto; padding:10px 18px; }
  .template-modal-tabs button { flex:0 0 auto; }
  .template-modal-panel { padding:14px; }
  .template-modal-editor-grid { gap:14px; }
  .template-modal-live-frame { padding:12px; }
  .template-modal-controls { padding:15px; }
  .template-control-grid.two,.template-control-grid.three { grid-template-columns:1fr; }
  .template-modal-specs,.template-modal-list-columns { grid-template-columns:1fr; }
  .template-modal-download-grid { min-height:0; padding:18px; }
  .template-modal-download-grid h3 { font-size:27px; }
  .template-modal-composite img { aspect-ratio:4/3; }
}

/* Cache-independent modal link and fallback fixes */
a.template-product-preview,
.template-product-card h2 a,
a.template-product-link,
a.template-table-product-button {
  text-decoration:none;
}
.template-product-card h2 a,
a.template-product-link,
a.template-table-product-button {
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.template-product-card h2 a:hover,
.template-product-card h2 a:focus-visible,
a.template-table-product-button:hover,
a.template-table-product-button:focus-visible {
  color:var(--teal);
}
a.template-product-link {
  color:var(--teal);
}
