/* ILBM V252: marketplace-inspired storefront. Scoped to the live products view. */
body.c67-public-open {
  --ilbm-market-orange: var(--shop-accent,#ff4000);
  --ilbm-market-orange-soft: color-mix(in srgb,var(--shop-accent,#ff4000) 9%,white);
  --ilbm-market-graphite: #3d434a;
  --ilbm-market-blue: #1674df;
  --ilbm-market-blue-hover: #075ec2;
  --ilbm-market-border: #e4e7eb;
  --ilbm-market-canvas: #f2f3f5;
}

body.c67-public-open > header {
  background: #3e444b !important;
  border-bottom: 3px solid var(--ilbm-market-orange) !important;
  box-shadow: 0 3px 14px rgb(0 0 0 / 13%) !important;
  backdrop-filter: none !important;
}
body.c67-public-open > header .navlinks a {
  color: #f8fafc !important;
  text-shadow: none !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 7px !important;
}
body.c67-public-open > header .navlinks a:hover,
body.c67-public-open > header .navlinks a.active,
body.c67-public-open > header .navlinks a[aria-current="page"] {
  background: rgb(255 255 255 / 12%) !important;
  border-color: rgb(255 255 255 / 20%) !important;
  color: #fff !important;
}
body.c67-public-open > header .navlinks a.active {
  box-shadow: inset 0 -3px var(--ilbm-market-orange) !important;
}
body.c67-public-open > header .v250-support-top {
  color: #fff !important;
  background: rgb(255 255 255 / 9%) !important;
  border-color: rgb(255 255 255 / 20%) !important;
}
body.c67-public-open > header .student-top-btn {
  background: var(--ilbm-market-orange) !important;
  color: white !important;
  border-color: var(--ilbm-market-orange) !important;
}

body :is(#ilbmPhysicalProducts, #v201Student .c67-products) {
  background: var(--ilbm-market-canvas, #f2f3f5) !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-layout {
  max-width: 1640px;
  padding: 14px clamp(14px, 3vw, 42px) 32px;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-heading {
  border: 1px solid var(--ilbm-market-border, #e4e7eb) !important;
  background: #fff !important;
  padding: 14px 20px !important;
  margin-bottom: 12px !important;
  border-radius: 9px;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-heading h1 {
  color: #20252d !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-top-navigation {
  border-color: #e0e3e6 !important;
  border-radius: 9px !important;
  box-shadow: 0 2px 10px rgb(29 38 51 / 4%) !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-category-row button[aria-current="page"] {
  background: var(--ilbm-market-orange-soft, color-mix(in srgb,var(--shop-accent,#ff4000) 9%,white)) !important;
  color: var(--shop-ink,#a92b00) !important;
  box-shadow: inset 0 -3px var(--ilbm-market-orange, var(--shop-accent,#ff4000)) !important;
}

/* The promotional area uses original product photos already published by ILBM. */
#ilbmPhysicalProducts .c96-marketplace-zone,
#v201Student .c96-marketplace-zone {
  margin: 4px 0 18px;
}
.c96-marketplace-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  min-height: 270px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(117deg, #41474e 0%, #2c323a 51%, #555c66 100%);
  box-shadow: 0 9px 23px rgb(25 35 44 / 10%);
  color: #fff;
}
.c96-marketplace-hero::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--shop-rgb,255,64,0),.3), rgba(var(--shop-rgb,255,64,0),0) 70%);
  right: 8%;
  top: -160px;
  z-index: -1;
}
.c96-hero-copy { padding: 32px clamp(25px, 5vw, 70px); }
.c96-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 999px;
  color: color-mix(in srgb,var(--shop-accent,#ff4000) 20%,white);
  font: 700 11px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.c96-hero-copy h2 {
  max-width: 690px;
  margin: 14px 0 10px;
  font: 800 clamp(29px, 3.4vw, 51px)/1.1 Inter, Arial, sans-serif;
  letter-spacing: -.045em;
  color: #fff !important;
  text-shadow: none !important;
}
.c96-hero-copy h2 em { color: color-mix(in srgb,var(--shop-accent,#ff4000) 48%,white); font-style: normal; }
/* The legacy course heading rules are intentionally stronger than generic h2 rules. */
body #ilbmPhysicalProducts .c96-marketplace-hero .c96-hero-copy h2,
body #v201Student .c67-products .c96-marketplace-hero .c96-hero-copy h2 {
  color:#fff !important;
  font-size:clamp(30px, 3.4vw, 51px) !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  letter-spacing:-.045em !important;
  background:transparent !important;
  text-shadow:none !important;
}
body #ilbmPhysicalProducts .c96-marketplace-hero .c96-hero-copy h2 em,
body #v201Student .c67-products .c96-marketplace-hero .c96-hero-copy h2 em {
  color:color-mix(in srgb,var(--shop-accent,#ff4000) 48%,white) !important;
}
.c96-hero-copy p {
  max-width: 560px;
  margin: 0 0 21px;
  color: #e5e9ee !important;
  font-size: 14px !important;
  line-height: 1.55;
}
.c96-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.c96-hero-actions button {
  min-height: 45px;
  padding: 11px 19px;
  border-radius: 7px;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}
.c96-hero-actions button:first-child {
  color: #fff;
  background: var(--shop-accent,#ff4000);
  border: 1px solid var(--shop-accent,#ff4000);
}
.c96-hero-actions button:last-child {
  color: #fff;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 45%);
}
.c96-hero-actions button:hover { filter: brightness(1.08); }
.c96-hero-showcase {
  min-width: 0;
  min-height: 258px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.6vw, 22px);
  padding: 22px clamp(15px, 3vw, 45px) 22px 0;
}
.c96-hero-product {
  width: 31%;
  max-width: 170px;
  aspect-ratio: .82;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgb(255 255 255 / 20%);
  background: #fff;
  box-shadow: 0 13px 25px rgb(0 0 0 / 15%);
  display: grid;
  place-items: center;
  transform: rotate(-7deg) translateY(13px);
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: box-shadow .22s ease, filter .22s ease;
}
.c96-hero-product:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 16px 30px rgb(0 0 0 / 23%); }
.c96-hero-product:focus-visible { outline: 3px solid var(--shop-accent,#ff4000); outline-offset: 4px; }
.c96-hero-product:disabled { opacity: 1; cursor: default; }
@keyframes c98-cover-fade { from { opacity: .35; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.c96-hero-product.c98-updated img { animation: c98-cover-fade .42s ease both; }
@media (prefers-reduced-motion: reduce) { .c96-hero-product.c98-updated img { animation: none; } }
.c96-hero-product:nth-child(2) { width: 35%; max-width: 196px; transform: translateY(-6px); }
.c96-hero-product:nth-child(3) { transform: rotate(8deg) translateY(17px); }
.c96-hero-product img { display:block; width:100%; height:100%; object-fit:contain; padding:8px; }

.c96-category-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 19px 0 11px;
}
.c96-category-heading h3 { margin:0; color:#2b3138; font-size:19px; letter-spacing:-.02em; }
.c96-category-heading span { font-size:12px; color:#6b7280; }
.c96-category-tiles { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:11px; }
.c96-category-tile {
  display:flex;
  gap:9px;
  min-width:0;
  min-height:90px;
  padding:10px;
  align-items:center;
  text-align:left;
  background:#fff;
  border:1px solid #e4e7eb;
  border-radius:9px;
  box-shadow:0 2px 7px rgb(0 0 0 / 3%);
  color:#343b43;
  cursor:pointer;
  transition:border-color .16s, transform .16s, box-shadow .16s;
}
.c96-category-tile:hover { border-color:var(--shop-accent,#ff4000); transform:translateY(-2px); box-shadow:0 7px 18px rgb(0 0 0 / 8%); }
.c96-category-tile img { flex:0 0 59px; width:59px; height:64px; object-fit:contain; border-radius:7px; background:#f6f7f8; }
.c96-category-glyph { flex:0 0 59px; height:64px; display:grid; place-items:center; border-radius:7px; background:#f5f6f7; font-size:29px; }
.c96-category-tile strong { display:block; overflow-wrap:anywhere; font-size:12px; line-height:1.3; }
.c96-category-tile small { display:block; margin-top:5px; color:#a13a20; font-size:10px; }
.c96-marketplace-benefits {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin-top:12px;
  background:#fff;
  border:1px solid #e4e7eb;
  border-radius:8px;
  overflow:hidden;
}
.c96-marketplace-benefits div {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:13px 10px;
  color:#56616e;
  font-size:12px;
  text-align:center;
}
.c96-marketplace-benefits div+div { border-left:1px solid #e9ebee; }
.c96-marketplace-benefits b { color:var(--shop-accent,#ff4000); font-size:16px; }

/* More compact marketplace cards, while preserving all native product data/actions. */
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-grid,.c67-grid) { gap:12px !important; }
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-card,.c67-card) {
  border-radius:8px !important;
  border-color:#e3e5e8 !important;
  box-shadow:0 2px 6px rgb(0 0 0 / 4%) !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-card,.c67-card):hover {
  border-color:#d1d5dc !important;
  box-shadow:0 10px 27px rgb(0 0 0 / 11%) !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-photo,.c67-card-media) {
  padding:13px !important;
  background:#fff !important;
  border-bottom:1px solid #f0f1f3 !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-card-body,.c67-card-body) { padding:13px !important; gap:8px !important; }
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-title,.c67-card h2 button) {
  color:#32363b !important;
  font-size:13px !important;
  line-height:1.42 !important;
  font-weight:550 !important;
  min-height:52px;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-price,.c67-card-price strong) {
  font-size:clamp(20px, 1.6vw, 26px) !important;
  font-weight:650 !important;
  color:#242a31 !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c90-card-body > .c90-btn,
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-card-body > .c67-primary {
  background:#e8f2ff !important;
  color:#1265c7 !important;
  border:1px solid #cfe4ff !important;
  border-radius:6px !important;
  box-shadow:none !important;
  font-weight:700 !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c90-card-body > .c90-btn:hover,
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-card-body > .c67-primary:hover {
  background:#d9eaff !important;
  border-color:#b5d6ff !important;
}
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c90-menu { background:#fff; border-color:#e2e5e8; }
body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c90-state {
  color:#747d85 !important;
  background:transparent !important;
  border:0 !important;
  font-size:11px !important;
}

/* Product details: image gallery, purchase panel and blue purchase action. */
.c90-dialog[open] {
  width:min(1280px, 96vw) !important;
  max-height:94dvh !important;
  padding:28px !important;
  border-radius:12px !important;
  box-shadow:0 25px 100px rgb(15 23 42 / 28%) !important;
  color:#252a30;
}
.c90-dialog .c90-detail { grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); gap:28px; align-items:start; }
.c90-dialog .c90-detail > div:first-child { display:grid; grid-template-columns:64px minmax(0,1fr); gap:9px; align-items:start; }
.c90-dialog .c90-main-photo { grid-row:1; grid-column:2; border-radius:8px; border-color:#e8ebef; max-height:650px; }
.c90-dialog .c90-thumbs { grid-row:1; grid-column:1; display:flex; flex-direction:column; max-height:570px; gap:8px; margin:0; }
.c90-dialog .c90-thumbs button { width:62px; height:62px; display:grid; place-items:center; padding:3px; border-radius:6px; }
.c90-dialog .c90-thumbs img { width:54px; height:54px; }
.c90-dialog .c90-thumbs button[aria-pressed="true"] { border-color:var(--shop-accent,#ff4000); }
.c90-dialog .c90-detail > section { border:1px solid #e3e7eb; border-radius:10px; padding:24px; box-shadow:0 4px 12px rgb(0 0 0 / 4%); background:#fff; }
.c90-dialog .c90-detail h2 { font-size:23px !important; line-height:1.27; margin:12px 0 10px; color:#262b32; }
.c90-dialog .c90-detail-price { font-size:36px !important; margin:16px 0 8px; color:#262b32; letter-spacing:-.04em; }
.c90-dialog .c90-detail form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.c90-dialog .c90-detail form .c90-btn.primary {
  min-height:48px !important;
  flex:1;
  border:1px solid #1674df !important;
  border-radius:7px !important;
  background:#1674df !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:14px !important;
  font-weight:750 !important;
}
.c90-dialog .c90-detail form .c90-btn.primary:hover:not(:disabled) {
  border-color:#075ec2 !important;
  background:#075ec2 !important;
}
.c90-dialog .c90-detail form input { width:92px; min-height:48px; }
.c90-dialog .c90-tech-grid { gap:8px; }
.c90-dialog .c90-tech-cell { background:#f8f9fa; border-color:#e5e7eb; }
.c90-dialog .c90-guarantee-note { border-color:var(--shop-accent,#ff4000); background:color-mix(in srgb,var(--shop-accent,#ff4000) 7%,white); }
.c90-dialog .c90-close { background:#f0f2f5; color:#39414b; }

@media(max-width:1250px) {
  .c96-category-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-grid,.c67-grid) { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media(max-width:900px) {
  .c96-marketplace-hero { grid-template-columns:minmax(0,1fr) minmax(0,.75fr); }
  .c96-hero-copy { padding:26px; }
  .c96-hero-showcase { padding-right:16px; }
  .c96-marketplace-benefits { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .c96-marketplace-benefits div:nth-child(3) { border-left:0; border-top:1px solid #e9ebee; }
  .c96-marketplace-benefits div:nth-child(4) { border-top:1px solid #e9ebee; }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-grid,.c67-grid) { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .c90-dialog .c90-detail { grid-template-columns:1fr; }
  .c90-dialog .c90-main-photo { max-height:420px; }
}
@media(max-width:650px) {
  .c96-marketplace-hero { display:flex; flex-direction:column; align-items:stretch; min-height:0; }
  .c96-hero-copy { padding:25px 22px 8px; }
  .c96-hero-copy h2 { font-size:31px; }
  .c96-hero-copy p { font-size:13px !important; }
  .c96-hero-showcase { min-height:165px; padding:2px 28px 18px; }
  .c96-hero-product { aspect-ratio:1; max-width:118px; }
  .c96-hero-product:nth-child(2) { max-width:126px; }
  .c96-category-tiles { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
  .c96-category-tile { flex:0 0 174px; min-height:76px; }
  .c96-category-tile img { width:47px; flex-basis:47px; height:55px; }
  .c96-category-glyph { flex-basis:47px; height:55px; font-size:25px; }
  .c96-category-heading { align-items:flex-start; flex-direction:column; gap:3px; }
  .c96-marketplace-benefits div { font-size:11px; }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) .c67-layout { padding:10px !important; }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-grid,.c67-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-card-body,.c67-card-body) { padding:10px !important; }
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-photo,.c67-card-media) { padding:8px !important; }
  .c90-dialog[open] { width:100vw !important; max-height:100dvh !important; padding:18px 12px !important; border-radius:0 !important; }
  .c90-dialog .c90-detail > div:first-child { grid-template-columns:1fr; }
  .c90-dialog .c90-main-photo { grid-column:1; grid-row:1; max-height:350px; }
  .c90-dialog .c90-thumbs { grid-column:1; grid-row:2; flex-direction:row; max-height:80px; overflow-x:auto; }
  .c90-dialog .c90-detail > section { padding:15px; }
  .c90-dialog .c90-detail-price { font-size:30px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .c96-category-tile,
  body :is(#ilbmPhysicalProducts, #v201Student .c67-products) :is(.c90-card,.c67-card) { transition:none !important; }
}

