/* QFX v1.3 — 24 actual product layouts. All styles respond to data-qfx-layout.
   Changing campaign rotates geometry as well as colors / logo / hero. The product
   content, ID, action attributes, review state and order semantics are unchanged. */
.premium-products-grid {transition:gap .22s ease;}
.premium-product-card {min-width:0;}
.premium-product-body {min-width:0;}
.premium-product-media {min-width:0;}
.premium-product-title {text-wrap:balance;}

/* 01 Signature Violet: flagship 4-column gallery */
html[data-qfx-layout="gallery"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;}
html[data-qfx-layout="gallery"] .premium-product-media {height:190px;}

/* 02 Ocean Blue: horizontal side-image comparison cards */
html[data-qfx-layout="horizontal"] .premium-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
html[data-qfx-layout="horizontal"] .premium-product-card {display:grid;grid-template-columns:minmax(130px,34%) minmax(0,1fr);min-height:232px;}
html[data-qfx-layout="horizontal"] .premium-product-media {height:100%;min-height:220px;}
html[data-qfx-layout="horizontal"] .premium-product-body {padding:23px 18px;}
html[data-qfx-layout="horizontal"] .premium-product-title {font-size:20px;}
html[data-qfx-layout="horizontal"] .premium-product-fav {top:12px;left:10px;right:auto;}

/* 03 Emerald: 2-column detailed trading catalog */
html[data-qfx-layout="split"] .premium-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;}
html[data-qfx-layout="split"] .premium-product-media {height:235px;}
html[data-qfx-layout="split"] .premium-product-body {padding:22px 24px;}
html[data-qfx-layout="split"] .premium-product-title {font-size:24px;}
html[data-qfx-layout="split"] .premium-product-desc {min-height:0;font-size:13px;}

/* 04 Noir: one feature poster then two premium tiles */
html[data-qfx-layout="showcase"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
html[data-qfx-layout="showcase"] .premium-product-card:first-child {grid-column:span 2;display:grid;grid-template-columns:56% 44%;min-height:315px;}
html[data-qfx-layout="showcase"] .premium-product-card:first-child .premium-product-media {height:100%;}
html[data-qfx-layout="showcase"] .premium-product-card:first-child .premium-product-title {font-size:27px;}
html[data-qfx-layout="showcase"] .premium-product-media {height:165px;}
html[data-qfx-layout="showcase"] .premium-product-body {padding:19px;}

/* 05 Clean Minimal: typography-led flat editorial tiles */
html[data-qfx-layout="editorial"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--q-line);border-left:1px solid var(--q-line);}
html[data-qfx-layout="editorial"] .premium-product-card {border-radius:0!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--q-line)!important;border-right:1px solid var(--q-line)!important;}
html[data-qfx-layout="editorial"] .premium-product-media {height:112px;}
html[data-qfx-layout="editorial"] .premium-product-body {padding:27px 18px;}
html[data-qfx-layout="editorial"] .premium-product-title {font-size:18px;font-weight:600;}
html[data-qfx-layout="editorial"] .premium-product-desc {min-height:0;}

/* 06 Finance Terminal: table-like single-line listing */
html[data-qfx-layout="terminal"] .premium-products-grid {grid-template-columns:1fr;gap:5px;}
html[data-qfx-layout="terminal"] .premium-product-card {display:grid;grid-template-columns:120px minmax(0,1fr);min-height:130px;border-radius:2px!important;}
html[data-qfx-layout="terminal"] .premium-product-media {height:130px;}
html[data-qfx-layout="terminal"] .premium-product-body {display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(125px,.85fr) minmax(140px,.8fr);grid-template-rows:auto auto;align-items:center;gap:3px 16px;padding:13px 23px;}
html[data-qfx-layout="terminal"] .premium-product-title {grid-column:1;grid-row:1;font-size:18px;}
html[data-qfx-layout="terminal"] .premium-product-rating {grid-column:2;grid-row:1;}
html[data-qfx-layout="terminal"] .premium-product-desc {grid-column:1;grid-row:2;min-height:0;max-height:38px;margin:0;}
html[data-qfx-layout="terminal"] .premium-product-tags {grid-column:2;grid-row:2;margin:0;}
html[data-qfx-layout="terminal"] .premium-product-bottom {grid-column:3;grid-row:1/3;margin:0;padding:0;border:0;}
html[data-qfx-layout="terminal"] .premium-product-fav {left:6px;right:auto;}

/* 07 Luxury Gold: oversized side-by-side editorial collection */
html[data-qfx-layout="luxury"] .premium-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;}
html[data-qfx-layout="luxury"] .premium-product-card {display:grid;grid-template-columns:42% 58%;min-height:285px;}
html[data-qfx-layout="luxury"] .premium-product-media {height:100%;min-height:285px;}
html[data-qfx-layout="luxury"] .premium-product-body {padding:30px 25px;}
html[data-qfx-layout="luxury"] .premium-product-title {font-size:23px;font-family:Georgia,serif;}
html[data-qfx-layout="luxury"] .premium-product-fav {left:12px;right:auto;}

/* 08 Neon: tight, high-density storefront with square tiles */
html[data-qfx-layout="compact"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
html[data-qfx-layout="compact"] .premium-product-media {height:139px;}
html[data-qfx-layout="compact"] .premium-product-body {padding:12px;}
html[data-qfx-layout="compact"] .premium-product-title {font-size:15px;}
html[data-qfx-layout="compact"] .premium-product-desc {min-height:0;max-height:38px;margin:5px 0 8px;}
html[data-qfx-layout="compact"] .premium-product-bottom {margin-top:7px;padding-top:7px;}

/* 09 Corporate: spacious three-up professional cards */
html[data-qfx-layout="corporate"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
html[data-qfx-layout="corporate"] .premium-product-media {height:215px;}
html[data-qfx-layout="corporate"] .premium-product-body {padding:21px;}
html[data-qfx-layout="corporate"] .premium-product-title {font-size:21px;}
html[data-qfx-layout="corporate"] .premium-product-card {border-radius:6px!important;}

/* 10 Dashboard: ledger lines with action panel aligned right */
html[data-qfx-layout="ledger"] .premium-products-grid {grid-template-columns:1fr;gap:11px;}
html[data-qfx-layout="ledger"] .premium-product-card {display:grid;grid-template-columns:105px 1fr;min-height:117px;}
html[data-qfx-layout="ledger"] .premium-product-media {height:117px;}
html[data-qfx-layout="ledger"] .premium-product-body {display:grid;grid-template-columns:1fr minmax(170px,.6fr);gap:1px 22px;padding:13px 18px;align-items:center;}
html[data-qfx-layout="ledger"] .premium-product-title {font-size:19px;grid-column:1;}
html[data-qfx-layout="ledger"] .premium-product-rating {grid-column:1;margin:0;}
html[data-qfx-layout="ledger"] .premium-product-desc {display:none;}
html[data-qfx-layout="ledger"] .premium-product-tags {grid-column:1;margin-top:0;}
html[data-qfx-layout="ledger"] .premium-product-bottom {grid-column:2;grid-row:1/4;margin:0;padding:0;border:0;}
html[data-qfx-layout="ledger"] .premium-product-fav {left:8px;right:auto;}

/* 11 AI Tech: showcase first tile and three supporting cards */
html[data-qfx-layout="spotlight"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
html[data-qfx-layout="spotlight"] .premium-product-card:first-child {grid-column:span 2;display:grid;grid-template-columns:55% 45%;}
html[data-qfx-layout="spotlight"] .premium-product-card:first-child .premium-product-media {height:100%;min-height:300px;}
html[data-qfx-layout="spotlight"] .premium-product-card:first-child .premium-product-title {font-size:27px;}
html[data-qfx-layout="spotlight"] .premium-product-media {height:185px;}
html[data-qfx-layout="spotlight"] .premium-product-body {padding:20px;}

/* 12 Glass: spacious floating 4-up tiles */
html[data-qfx-layout="glass"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
html[data-qfx-layout="glass"] .premium-product-media {height:220px;}
html[data-qfx-layout="glass"] .premium-product-body {padding:22px;}
html[data-qfx-layout="glass"] .premium-product-card {border-radius:26px!important;}

/* 13 Red Edition: two-column magazine mosaic */
html[data-qfx-layout="mosaic"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;}
html[data-qfx-layout="mosaic"] .premium-product-card:nth-child(4n + 1) {grid-column:span 2;display:grid;grid-template-columns:50% 50%;min-height:285px;}
html[data-qfx-layout="mosaic"] .premium-product-card:nth-child(4n + 1) .premium-product-media {height:100%;}
html[data-qfx-layout="mosaic"] .premium-product-media {height:168px;}
html[data-qfx-layout="mosaic"] .premium-product-title {font-size:20px;}

/* 14 Modern Light: light app-store tiles with image as icon */
html[data-qfx-layout="apps"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
html[data-qfx-layout="apps"] .premium-product-card {display:grid;grid-template-columns:112px 1fr;min-height:216px;}
html[data-qfx-layout="apps"] .premium-product-media {width:88px;height:88px;margin:20px 0 0 20px;border-radius:19px;}
html[data-qfx-layout="apps"] .premium-product-category {display:none;}
html[data-qfx-layout="apps"] .premium-product-body {padding:20px 17px 20px 0;}
html[data-qfx-layout="apps"] .premium-product-title {font-size:18px;}
html[data-qfx-layout="apps"] .premium-product-desc {min-height:0;max-height:40px;margin:5px 0;}
html[data-qfx-layout="apps"] .premium-product-fav {right:8px;top:9px;color:var(--q-accent);background:transparent;border:0;}

/* 15 Elite: two large flagship cards followed by two narrow partners */
html[data-qfx-layout="premier"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
html[data-qfx-layout="premier"] .premium-product-card:nth-child(-n + 2) {grid-column:span 2;}
html[data-qfx-layout="premier"] .premium-product-card:nth-child(-n + 2) .premium-product-media {height:220px;}
html[data-qfx-layout="premier"] .premium-product-media {height:150px;}
html[data-qfx-layout="premier"] .premium-product-body {padding:20px;}

/* 16 Editorial magazine: full-width long stories */
html[data-qfx-layout="magazine"] .premium-products-grid {grid-template-columns:1fr;gap:30px;}
html[data-qfx-layout="magazine"] .premium-product-card {display:grid;grid-template-columns:39% 61%;min-height:260px;box-shadow:none!important;border-radius:0!important;}
html[data-qfx-layout="magazine"] .premium-product-media {height:100%;min-height:260px;}
html[data-qfx-layout="magazine"] .premium-product-body {padding:30px 40px;}
html[data-qfx-layout="magazine"] .premium-product-title {font-size:31px;font-family:Georgia,serif;font-weight:580;}
html[data-qfx-layout="magazine"] .premium-product-desc {font-size:14px;max-width:480px;min-height:0;}
html[data-qfx-layout="magazine"] .premium-product-fav {left:10px;right:auto;}

/* 17 Soft Fintech: three large gentle cards */
html[data-qfx-layout="soft"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
html[data-qfx-layout="soft"] .premium-product-card {border-radius:28px!important;}
html[data-qfx-layout="soft"] .premium-product-media {height:189px;}
html[data-qfx-layout="soft"] .premium-product-body {padding:27px;}
html[data-qfx-layout="soft"] .premium-product-title {font-size:23px;}

/* 18 Monochrome: Swiss grid no shadows */
html[data-qfx-layout="mono"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--q-line);border:1px solid var(--q-line);}
html[data-qfx-layout="mono"] .premium-product-card {box-shadow:none!important;border:0!important;border-radius:0!important;}
html[data-qfx-layout="mono"] .premium-product-media {height:156px;filter:grayscale(1);}
html[data-qfx-layout="mono"] .premium-product-body {padding:22px 17px;}
html[data-qfx-layout="mono"] .premium-product-title {font-size:20px;}

/* 19 Modular: bento, lead product twice as large */
html[data-qfx-layout="modular"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
html[data-qfx-layout="modular"] .premium-product-card:first-child {grid-column:span 2;grid-row:span 2;}
html[data-qfx-layout="modular"] .premium-product-card:first-child .premium-product-media {height:300px;}
html[data-qfx-layout="modular"] .premium-product-card:first-child .premium-product-title {font-size:27px;}
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) {display:grid;grid-template-columns:100px 1fr;min-height:145px;}
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-media {height:100%;}
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-body {padding:12px;}
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-desc {display:none;}

/* 20 Midnight: immersive portrait gallery */
html[data-qfx-layout="night"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
html[data-qfx-layout="night"] .premium-product-media {height:290px;}
html[data-qfx-layout="night"] .premium-product-body {padding:22px;}
html[data-qfx-layout="night"] .premium-product-title {font-size:21px;}

/* 21 Pearl: elegant two-up split catalog */
html[data-qfx-layout="pearl"] .premium-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;}
html[data-qfx-layout="pearl"] .premium-product-card {display:grid;grid-template-columns:41% 59%;min-height:248px;}
html[data-qfx-layout="pearl"] .premium-product-media {height:100%;min-height:248px;}
html[data-qfx-layout="pearl"] .premium-product-body {padding:25px;}
html[data-qfx-layout="pearl"] .premium-product-title {font-size:22px;}
html[data-qfx-layout="pearl"] .premium-product-fav {left:12px;right:auto;}

/* 22 Obsidian: minimalist horizontal one-per-row */
html[data-qfx-layout="bare"] .premium-products-grid {grid-template-columns:1fr;gap:0;border-top:1px solid var(--q-line);}
html[data-qfx-layout="bare"] .premium-product-card {display:grid;grid-template-columns:94px minmax(0,1fr);border:0!important;border-radius:0!important;box-shadow:none!important;border-bottom:1px solid var(--q-line)!important;min-height:112px;}
html[data-qfx-layout="bare"] .premium-product-media {height:88px;margin:12px 0;width:90px;}
html[data-qfx-layout="bare"] .premium-product-body {display:grid;grid-template-columns:1fr minmax(180px,.7fr);gap:0 17px;padding:18px;}
html[data-qfx-layout="bare"] .premium-product-title {font-size:18px;grid-column:1;}
html[data-qfx-layout="bare"] .premium-product-rating {grid-column:1;margin:0;}
html[data-qfx-layout="bare"] .premium-product-desc {display:none;}
html[data-qfx-layout="bare"] .premium-product-tags {grid-column:1;margin:0;}
html[data-qfx-layout="bare"] .premium-product-bottom {grid-column:2;grid-row:1/4;align-self:center;margin:0;padding:0;border:0;}
html[data-qfx-layout="bare"] .premium-product-fav {left:60px;right:auto;top:2px;width:25px;height:25px;font-size:15px;}

/* 23 Copper: classic three-column product boutiques */
html[data-qfx-layout="copper"] .premium-products-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
html[data-qfx-layout="copper"] .premium-product-media {height:238px;}
html[data-qfx-layout="copper"] .premium-product-body {padding:22px 25px;}
html[data-qfx-layout="copper"] .premium-product-title {font-size:24px;font-family:Georgia,serif;}
html[data-qfx-layout="copper"] .premium-product-card {border-top:4px solid var(--q-accent)!important;}

/* 24 Arctic: compact four-column utilities marketplace */
html[data-qfx-layout="arctic"] .premium-products-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
html[data-qfx-layout="arctic"] .premium-product-media {height:118px;}
html[data-qfx-layout="arctic"] .premium-product-body {padding:15px 13px;}
html[data-qfx-layout="arctic"] .premium-product-title {font-size:16px;}
html[data-qfx-layout="arctic"] .premium-product-desc {max-height:37px;min-height:0;margin:5px 0 8px;}
html[data-qfx-layout="arctic"] .premium-product-tags {gap:3px;}
html[data-qfx-layout="arctic"] .premium-product-tags span {padding:2px 5px;}

/* RTL mirrors geometry naturally via inline/grid direction. Accessible responsive fallback:
   desktop asymmetries collapse at tablet/mobile; buttons remain tappable. */
@media (max-width:1250px){
 html[data-qfx-layout] .premium-products-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-qfx-layout="terminal"] .premium-products-grid,html[data-qfx-layout="ledger"] .premium-products-grid,html[data-qfx-layout="bare"] .premium-products-grid,html[data-qfx-layout="magazine"] .premium-products-grid {grid-template-columns:1fr;}
 html[data-qfx-layout="modular"] .premium-product-card:first-child,html[data-qfx-layout="showcase"] .premium-product-card:first-child,html[data-qfx-layout="spotlight"] .premium-product-card:first-child,html[data-qfx-layout="mosaic"] .premium-product-card:nth-child(4n + 1),html[data-qfx-layout="premier"] .premium-product-card:nth-child(-n + 2){grid-column:auto;grid-row:auto;}
 html[data-qfx-layout="terminal"] .premium-product-body{grid-template-columns:1fr 1fr;}
 html[data-qfx-layout="terminal"] .premium-product-bottom{grid-column:2;grid-row:1/4;}
 html[data-qfx-layout="terminal"] .premium-product-rating,html[data-qfx-layout="terminal"] .premium-product-tags{grid-column:1;}
 html[data-qfx-layout="apps"] .premium-product-card{grid-template-columns:90px 1fr;}
 html[data-qfx-layout="apps"] .premium-product-media{width:65px;height:65px;margin:18px 0 0 15px;}
}
@media (max-width:780px){
 html[data-qfx-layout] .premium-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 html[data-qfx-layout] .premium-product-card{display:flex;flex-direction:column;min-height:0;grid-column:auto;grid-row:auto;}
 html[data-qfx-layout] .premium-product-card:first-child,html[data-qfx-layout] .premium-product-card:nth-child(4n + 1){display:flex;flex-direction:column;grid-column:auto;grid-row:auto;}
 html[data-qfx-layout] .premium-product-media,html[data-qfx-layout] .premium-product-card:first-child .premium-product-media,html[data-qfx-layout] .premium-product-card:nth-child(4n + 1) .premium-product-media{width:100%;height:145px;min-height:0;margin:0;border-radius:0;}
 html[data-qfx-layout] .premium-product-body,html[data-qfx-layout] .premium-product-card:not(:first-child) .premium-product-body{display:flex;flex-direction:column;padding:13px;gap:0;}
 html[data-qfx-layout] .premium-product-title,html[data-qfx-layout] .premium-product-card:first-child .premium-product-title{font:750 16px/1.3 system-ui,sans-serif;}
 html[data-qfx-layout] .premium-product-desc{display:block;font-size:12px;min-height:0;max-height:40px;margin:8px 0;}
 html[data-qfx-layout] .premium-product-rating,html[data-qfx-layout] .premium-product-tags,html[data-qfx-layout] .premium-product-bottom{grid-column:auto;grid-row:auto;}
 html[data-qfx-layout] .premium-product-bottom{margin-top:auto;padding-top:12px;border-top:1px solid var(--q-line);width:100%;}
 html[data-qfx-layout] .premium-product-fav{right:10px;left:auto;top:10px;width:32px;height:32px;}
 html[data-qfx-layout] .premium-product-category{display:block;}
}
@media (max-width:530px){
 html[data-qfx-layout] .premium-products-grid{grid-template-columns:1fr!important;gap:14px;}
 html[data-qfx-layout] .premium-product-media{height:175px!important;}
 html[data-qfx-layout] .premium-product-body{padding:17px;}
}
/* Keep small thumbnail-only layouts legible (uploaded product imagery is not modified). */
html[data-qfx-layout="terminal"] .premium-product-category,
html[data-qfx-layout="ledger"] .premium-product-category,
html[data-qfx-layout="bare"] .premium-product-category,
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-category {display:none;}
html[data-qfx-layout="terminal"] .premium-product-art,
html[data-qfx-layout="ledger"] .premium-product-art,
html[data-qfx-layout="bare"] .premium-product-art,
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-art {padding:10px 8px;}
html[data-qfx-layout="terminal"] .premium-product-art strong,
html[data-qfx-layout="ledger"] .premium-product-art strong,
html[data-qfx-layout="bare"] .premium-product-art strong,
html[data-qfx-layout="modular"] .premium-product-card:not(:first-child) .premium-product-art strong {font-size:13px;line-height:1.08;}
html[data-qfx-layout="terminal"] .premium-product-art small,
html[data-qfx-layout="ledger"] .premium-product-art small,
html[data-qfx-layout="bare"] .premium-product-art small,
html[data-qfx-layout="terminal"] .premium-product-art .art-kicker,
html[data-qfx-layout="ledger"] .premium-product-art .art-kicker,
html[data-qfx-layout="bare"] .premium-product-art .art-kicker {display:none;}
@media(max-width:780px){html[data-qfx-layout] .premium-product-category{display:block}}
