/* Storefront catalogue: categories and purchasable products deliberately have
   separate visual roles. The strip browses; product cards open checkout. */
.shop-categories { position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 84px; padding: clamp(34px, 4vw, 58px) 0 0; background: #061a30 url("/assets/images/shop/category-explore-background-v1.png") center / 100% 100% no-repeat; }
.shop-categories::before { position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(1,11,24,.18), rgba(1,16,30,0) 48%, rgba(247,251,254,.16)); content: ""; pointer-events: none; }
.shop-categories-inner { position: relative; z-index: 1; }
.shop-category-head { align-items: end; padding-bottom: 14px; border-color: rgba(188,225,246,.42); }
.shop-category-head .shop-kicker { color: #9bdcff; }
.shop-category-head h2 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.8rem); text-shadow: 0 4px 30px rgba(0,0,0,.24); }
.shop-category-head > p { color: #d6eafb; text-shadow: 0 1px 15px rgba(0,0,0,.42); }
.shop-category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(7px, .9vw, 15px); align-items: stretch; overflow: visible; padding: clamp(22px, 2.6vw, 38px) 0 clamp(20px, 2.8vw, 40px); scrollbar-width: none; scroll-snap-type: x proximity; }
.shop-category-strip::-webkit-scrollbar { display: none; }
.shop-category { display: grid; min-width: 0; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 86px; padding: 13px 10px; border: 1px solid rgba(207,224,236,.9); border-bottom: 2px solid transparent; border-radius: 14px; background: rgba(255,255,255,.92); color: #143c5f; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; box-shadow: 0 10px 28px rgba(3,25,45,.12); transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.shop-category:hover, .shop-category.active { border-color: rgba(28,132,195,.75); border-bottom-color: #197ec0; background: #fff; box-shadow: 0 15px 34px rgba(3,25,45,.18); color: #0d5a91; transform: translateY(-2px); }
.shop-category-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #0f6fae; }
.shop-category-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.shop-category strong, .shop-category small { display: block; }
.shop-category strong { font-size: .88rem; line-height: 1.35; }
.shop-category small { margin-top: 5px; color: #587992; font-size: .67rem; line-height: 1.45; }
.shop-category.active small { color: #4d7697; }

.shop-products { min-height: 0; margin: 0 0 clamp(72px, 9vw, 132px); padding: clamp(34px, 4vw, 58px) 0 clamp(38px, 5vw, 72px); background: linear-gradient(135deg, rgba(247,251,254,.96), var(--catalog-tint, #edf6fb)); }
.shop-showcase-head { align-items: end; gap: 25px; padding-bottom: 20px; }
.shop-showcase-head h2 { margin-bottom: 4px; }
.shop-category-description { max-width: 620px; margin: 9px 0 0; color: #6d8398; font-size: .86rem; line-height: 1.6; }
.shop-showcase-actions { display: flex; gap: 17px; align-items: center; padding-bottom: 4px; }
#shop-product-count { color: #71869a; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.shop-carousel-controls { display: flex; gap: 8px; }
.shop-carousel-controls button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #cfdae3; border-radius: 50%; background: #fff; color: #1d5f92; font: inherit; font-size: 1rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.shop-carousel-controls button:hover:not(:disabled) { border-color: #1378bb; background: #1378bb; color: #fff; }
.shop-carousel-controls button:disabled { opacity: .35; cursor: not-allowed; }
.shop-product-grid { display: flex; gap: clamp(12px, 1.4vw, 22px); width: 100%; margin-top: 24px; padding: 0 clamp(16px, 4.75vw, 92px) 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-behavior: smooth; scroll-padding-inline: clamp(16px, 4.75vw, 92px); scroll-snap-type: x mandatory; }
.shop-product-grid::-webkit-scrollbar { display: none; }
.shop-product-skeleton { flex: 0 0 clamp(280px, 20.5vw, 380px); height: clamp(365px, 24vw, 455px); border-radius: clamp(18px, 1.7vw, 27px); }
.shop-product-card, .shop-product-card:only-child { position: relative; display: block; flex: 0 0 clamp(280px, 20.5vw, 380px); min-height: clamp(365px, 24vw, 455px); overflow: hidden; border-radius: clamp(18px, 1.7vw, 27px); background: #0a1b2d; color: var(--card-copy-color, #fff); isolation: isolate; scroll-snap-align: start; scroll-snap-stop: always; }
.shop-product-art, .shop-product-card:only-child .shop-product-art { position: absolute; z-index: 0; inset: 0; display: block; min-height: 0; height: auto; background: #0a1b2d; }
.shop-product-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,15,29,.66) 0%, rgba(3,15,29,.12) 53%, rgba(3,15,29,.58) 100%); content: ""; pointer-events: none; transition: opacity .25s ease; }
.shop-product-card[data-copy-visible="false"] .shop-product-art::after { opacity: 0; }
.shop-product-art img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-info, .shop-product-card:only-child .shop-product-info { position: relative; z-index: 1; display: flex; min-height: clamp(365px, 24vw, 455px); height: 100%; flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: clamp(20px, 2vw, 29px); background: transparent; color: var(--card-copy-color, #fff); text-align: left; text-shadow: 0 1px 16px rgba(0,0,0,.42); }
.shop-product-info[hidden] { display: none !important; }
.shop-product-info h3, .shop-product-card:only-child .shop-product-info h3 { margin: 6px 0 8px; color: inherit; font-size: clamp(1.36rem, 1.55vw, 1.8rem); letter-spacing: -.048em; line-height: 1.08; }
.shop-product-info p, .shop-product-card:only-child .shop-product-info p { display: -webkit-box; overflow: hidden; max-width: 27ch; margin: 0; color: inherit; font-size: .82rem; line-height: 1.55; opacity: .9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shop-product-price, .shop-product-card:only-child .shop-product-price { position: static; margin-top: 14px; padding: 0; color: inherit; font-size: .78rem; font-weight: 800; }
.shop-product-state, .shop-product-card:only-child .shop-product-state { margin: 0; color: inherit; font-size: .67rem; font-weight: 900; letter-spacing: .12em; opacity: .93; }
.shop-product-card[data-copy-position="top_center"] .shop-product-info, .shop-product-card[data-copy-position="bottom_center"] .shop-product-info { align-items: center; text-align: center; }
.shop-product-card[data-copy-position="top_right"] .shop-product-info, .shop-product-card[data-copy-position="bottom_right"] .shop-product-info { align-items: flex-end; text-align: right; }
.shop-product-card[data-copy-position="bottom_left"] .shop-product-info, .shop-product-card[data-copy-position="bottom_center"] .shop-product-info, .shop-product-card[data-copy-position="bottom_right"] .shop-product-info { justify-content: flex-end; }
.shop-product-card[data-copy-size="compact"] .shop-product-info h3 { font-size: clamp(1.05rem, 1.2vw, 1.35rem); }
.shop-product-card[data-copy-size="compact"] .shop-product-info p { font-size: .72rem; }
.shop-product-card[data-copy-size="large"] .shop-product-info h3 { font-size: clamp(1.7rem, 2.2vw, 2.4rem); }
.shop-product-card[data-copy-size="large"] .shop-product-info p { font-size: .92rem; }
.shop-empty { flex: 0 0 min(100%, 700px); min-height: 220px; padding: 70px 34px; border: 1px dashed #bfcfdb; background: #f7fafc; color: #668095; text-align: center; }

#shop-main[data-category="all"] { --catalog-tint: #edf5fa; --catalog-deep: #143d62; }
#shop-main[data-category="software"] { --catalog-tint: #e5f3fb; --catalog-deep: #0b4777; }
#shop-main[data-category="servers"] { --catalog-tint: #edf0f7; --catalog-deep: #344b83; }
#shop-main[data-category="network"] { --catalog-tint: #e6f6f3; --catalog-deep: #16685f; }
#shop-main[data-category="cloud"] { --catalog-tint: #f0edff; --catalog-deep: #5b4992; }
#shop-main[data-category="devices"] { --catalog-tint: #fff1e6; --catalog-deep: #8b4d20; }
#shop-main .shop-product-placeholder { background: radial-gradient(circle at 70% 22%, rgba(103,199,247,.62), transparent 0 18%), linear-gradient(140deg, var(--catalog-deep, #174c7d), #071b31); }
#shop-main[data-category="servers"] .shop-product-placeholder { background: radial-gradient(circle at 28% 26%, rgba(174,192,255,.68), transparent 0 16%), linear-gradient(140deg, #273a70, #08152b); }
#shop-main[data-category="network"] .shop-product-placeholder { background: radial-gradient(circle at 70% 26%, rgba(93,231,193,.55), transparent 0 16%), linear-gradient(140deg, #0d605b, #092b3a); }
#shop-main[data-category="cloud"] .shop-product-placeholder { background: radial-gradient(circle at 65% 28%, rgba(199,166,255,.64), transparent 0 18%), linear-gradient(140deg, #493b83, #101d4e); }
#shop-main[data-category="devices"] .shop-product-placeholder { background: radial-gradient(circle at 68% 24%, rgba(255,188,119,.65), transparent 0 16%), linear-gradient(140deg, #814114, #20253e); }

.shop-order-form[hidden], .shop-order-success[hidden] { display: none !important; }
.shop-order-success { display: grid; min-height: 390px; align-content: center; justify-items: start; gap: 14px; padding: 22px 0; }
.shop-order-success-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #e9f8ef; color: #227252; font-size: 1.75rem; font-weight: 900; }
.shop-order-success h3 { margin: 4px 0 0; color: #173f70; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.shop-order-success p { max-width: 460px; margin: 0; color: #638096; line-height: 1.7; }
.shop-order-success strong { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; background: #edf6fb; color: #176eab; font-size: .82rem; }

/* Short desktop viewports need a denser first screen so the product collection is
   not clipped below the fold. Width breakpoints alone cannot solve this. */
@media (min-width: 621px) and (max-height: 1050px) {
  .shop-categories { padding-top: 29px; }
  .shop-category-head { padding-bottom: 10px; }
  .shop-category-head h2 { font-size: clamp(1.7rem, 2.35vw, 2.35rem); }
  .shop-category-strip { padding-top: 17px; padding-bottom: 20px; }
  .shop-category { min-height: 76px; padding-block: 9px; }
  .shop-category-icon { width: 38px; height: 38px; }
  .shop-category-icon svg { width: 34px; height: 34px; }
  .shop-products { padding-top: 28px; padding-bottom: 34px; }
  .shop-showcase-head { padding-bottom: 14px; }
  .shop-product-grid { margin-top: 18px; }
  .shop-product-skeleton { height: clamp(300px, 37vh, 355px); }
  .shop-product-card, .shop-product-card:only-child { min-height: clamp(300px, 37vh, 355px); }
  .shop-product-info, .shop-product-card:only-child .shop-product-info { min-height: clamp(300px, 37vh, 355px); padding: clamp(17px, 1.6vw, 23px); }
}

@media (max-width: 620px) {
  .shop-categories { padding-top: 29px; background-size: auto 100%; }
  .shop-category-strip { display: flex; gap: 8px; margin-right: -16px; padding-top: 20px; padding-bottom: 22px; overflow-x: auto; }
  .shop-category { flex: 0 0 154px; grid-template-columns: 38px 1fr; min-height: 76px; padding: 9px 7px; background: rgba(255,255,255,.77); }
  .shop-category-icon { width: 38px; height: 38px; }
  .shop-category-icon svg { width: 34px; height: 34px; }
  .shop-category small { display: none; }
  .shop-showcase-head { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .shop-showcase-head > div:first-child { grid-column: 1 / -1; }
  .shop-showcase-actions { justify-content: space-between; grid-column: 1 / -1; padding-top: 6px; }
  .shop-products { margin: 0 0 54px; padding: 28px 0 34px; }
  .shop-showcase-head { width: var(--store-shell); }
  .shop-product-grid { gap: 12px; margin-top: 18px; padding: 0 16px 18px; scroll-padding-inline: 16px; }
  .shop-product-skeleton { flex-basis: min(82vw, 350px); height: clamp(430px, 123vw, 530px); border-radius: 22px; }
  .shop-product-card, .shop-product-card:only-child { flex-basis: min(82vw, 350px); min-height: clamp(430px, 123vw, 530px); border-radius: 22px; }
  .shop-product-info, .shop-product-card:only-child .shop-product-info { min-height: clamp(430px, 123vw, 530px); padding: 20px; }
  .shop-product-info h3, .shop-product-card:only-child .shop-product-info h3 { font-size: 1.12rem; }
  .shop-product-info p, .shop-product-card:only-child .shop-product-info p { font-size: .7rem; }
  .shop-product-card[data-copy-size="large"] .shop-product-info h3 { font-size: 1.42rem; }
}
