/* Store surfaces share the home page's locked desert-night visual system. */
.store-page { background: #1C1713; color: #EDE3D1; }
.store-main { position: relative; isolation: isolate; min-height: 70vh; overflow: clip; }
.store-main:before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 85% 500px at 90% 0, rgba(215,174,98,.07), transparent); }
.store-section, .product-page { position: relative; padding-block: 76px 108px; }
.store-section.narrow { max-width: 860px; }
.store-page .store-title { font-size: clamp(46px, 5.5vw, 80px); line-height: 1.02; margin: 8px 0 30px; }
.store-title em { color: #D7AE62; }
.store-page .eyebrow { color: #D7AE62; margin-bottom: 22px; }
.store-page .eyebrow a { font-size: 16px; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.store-page .section-heading { position: relative; padding-bottom: 30px; margin-bottom: 44px; }
.store-page .section-heading:after, .shop-category-title:after, .product-video h2:after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, #D7AE62, #92703C, #554637); transform-origin: left; }
.store-page .section-heading:after { position: absolute; inset: auto 0 0; }
.store-page .section-heading .store-title { margin: 0; }
.store-nav { display: flex; gap: 28px; align-items: center; }
.store-nav a { position: relative; color: #EDE3D1; font-size: 16px; font-weight: 600; min-height: 44px; }
.store-nav a:hover { color: #F0D7A2; }
.cart-link { display: inline-flex; gap: 8px; align-items: center; }
.cart-count { background: #D7AE62; color: #1C1713; border-radius: 999px; min-width: 25px; height: 25px; display: inline-grid; place-items: center; font-size: 15px; font-weight: 700; padding: 0 6px; }
.store-page .text-link { background: none; padding: 6px 0; color: #F0D7A2; border: 0; border-bottom: 1px solid #92703C; font-family: inherit; font-size: 16px; font-weight: 600; min-height: 44px; }
.store-page .button, .store-page .text-link, .store-nav a { transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease; }
.store-page .button:disabled { background: #554637; border-color: #BBAA91; color: #EDE3D1; }
.store-page :is(input, select, textarea, button) { font-family: inherit; }
.store-page :is(p, dd, li, code, a, h1, h2, h3) { overflow-wrap: anywhere; }
.store-page :is(.product-layout, .account-grid, .product-grid, .inline-form) > * { min-width: 0; }
.notice, .empty { border: 1px solid #92703C; background: radial-gradient(ellipse at 0 0, rgba(215,174,98,.08), transparent 80%), #2A211B; padding: 22px 26px; margin: 24px 0; font-size: 18px; color: #EDE3D1; box-shadow: 0 16px 38px rgba(28,23,19,.35); }
.notice p { margin: 0 0 12px; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { border-color: #C98267; }
/* Alternating category bands, with a shared baseline for every card stage. */
.shop-category { position: relative; isolation: isolate; padding-block: 40px 46px; margin-top: 28px; }
.shop-category:before { content: ""; position: absolute; inset: 0 calc((min(1280px, 100vw - 128px) - 100vw) / 2); z-index: -1; background: radial-gradient(ellipse at 10% 0, rgba(215,174,98,.06), transparent 60%), #2A211B; border-block: 1px solid #554637; }
.shop-category:nth-of-type(odd):before { background: #1C1713; }
.shop-category-title { font-size: clamp(34px, 3.3vw, 48px); margin: 0 0 28px; }
.shop-category-title:after { width: 88px; margin-top: 20px; }
.store-page .product-grid { border: 0; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.store-page .product.product-link { display: grid; grid-template-rows: auto 1fr 270px auto; gap: 18px; padding: 28px 24px; border: 1px solid #554637; background: radial-gradient(ellipse at 50% 0, rgba(215,174,98,.06), transparent 65%), #2A211B; box-shadow: 0 18px 40px rgba(28,23,19,.5), inset 0 1px rgba(237,227,209,.05); color: inherit; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.store-page .product h3 { font-size: 34px; margin: 0; min-height: 2.08em; }
.store-page .product-description { font-size: 18px; line-height: 1.65; margin: 0; color: #EDE3D1; }
.store-page .placeholder { color: #EDE3D1; border: 1px dashed #D7AE62; background: #1C1713; font-size: 15px; font-weight: 500; line-height: 1.6; }
.store-page .description-placeholder { margin: 0; min-height: 0; align-self: start; padding: 14px; }
.product-cta { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 16px; border-top: 1px solid #554637; color: #F0D7A2; font-weight: 600; font-size: 16px; }
.product-cta:after { content: "↗"; margin-left: 12px; }
.product-stage, .store-page .photo-placeholder { position: relative; isolation: isolate; background: radial-gradient(ellipse at 50% 46%, #EDE3D1 0%, rgba(240,215,162,.8) 20%, rgba(215,174,98,.24) 43%, #2A211B 70%, #1C1713 100%); display: grid; place-items: center; padding: 22px; min-height: 270px; overflow: hidden; box-shadow: inset 0 0 30px #2A211B; }
.product-stage img { display: block; max-width: 100%; max-height: 250px; width: auto; height: auto; object-fit: contain; transition: transform .6s ease; }
/* Feather the perimeter of the white-backed company photo, preserving the label. */
.product-stage img[src$="prism-prf-tubes-box.png"], .gallery-thumbnail img[src$="prism-prf-tubes-box.png"] { mask-image: linear-gradient(90deg, transparent, #1C1713 10%, #1C1713 90%, transparent), linear-gradient(transparent, #1C1713 1%, #1C1713 98%, transparent); mask-composite: intersect; }
.store-page .photo-placeholder { text-align: center; background: radial-gradient(ellipse at 50% 42%, rgba(215,174,98,.17), #2A211B 66%, #1C1713); }
.store-page .product .photo-placeholder { height: 270px; }
/* Product showpiece: a large, fixed-size light stage alongside a calm buy box. */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 58px; margin-top: 24px; align-items: start; }
.product-gallery { position: sticky; top: 112px; min-width: 0; }
.gallery-content { display: grid; gap: 18px; }
.product-gallery .is-main { border: 1px solid #92703C; min-height: 480px; height: clamp(480px, 42vw, 620px); box-shadow: 0 28px 65px rgba(28,23,19,.6), inset 0 0 40px #2A211B; }
.product-gallery .is-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 12px; }
.gallery-thumbnail { display: grid; place-items: center; min-height: 88px; padding: 12px; border: 1px solid #554637; background: radial-gradient(ellipse at center, rgba(240,215,162,.35), #2A211B 72%); transition: border-color .25s ease, transform .25s ease; }
.gallery-thumbnail img { width: 100%; height: 70px; object-fit: contain; }
.gallery-thumbnail.is-selected { border-color: #D7AE62; box-shadow: inset 0 -3px #D7AE62, 0 0 24px rgba(215,174,98,.08); }
.gallery-thumbnail:hover { border-color: #D7AE62; }
.product-info .store-title { font-size: clamp(44px, 4.3vw, 64px); margin-top: 0; }
.buy-box { position: relative; border: 1px solid #92703C; border-top: 2px solid #D7AE62; background: radial-gradient(ellipse at 0 0, rgba(215,174,98,.09), transparent 80%), #2A211B; padding: 28px; margin: 30px 0; display: grid; gap: 16px; font-size: 18px; box-shadow: 0 20px 45px rgba(28,23,19,.45); }
.buy-box p { margin: 0; }
.price { font-family: Cormorant, Georgia, serif; font-size: 38px; font-weight: 600; }
.price .placeholder { display: block; padding: 12px; font-family: Manrope, sans-serif; }
.add-to-cart { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.qty { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.qty input { width: 88px; }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid #554637; font-size: 18px; line-height: 1.6; }
.specs dt { color: #F0D7A2; font-weight: 600; }
.specs dd { margin: 0; }
.product-video { position: relative; margin-top: 88px; padding: 36px; border: 1px solid #554637; background: radial-gradient(ellipse at 50% 100%, rgba(215,174,98,.08), transparent 65%), #2A211B; box-shadow: 0 24px 60px rgba(28,23,19,.5); }
.product-video h2 { font-size: clamp(38px, 4vw, 56px); margin-bottom: 28px; }
.product-video h2:after { width: 90px; margin-top: 22px; }
.product-video video, .product-video .video-placeholder { width: 100%; aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 24px; text-align: center; border: 1px dashed #D7AE62; background: radial-gradient(ellipse at 50% 42%, rgba(215,174,98,.19), #1C1713 72%); }
.product-video .video-placeholder:before { content: "▶"; display: grid; place-items: center; justify-self: center; width: 68px; height: 68px; border: 1px solid #D7AE62; border-radius: 50%; color: #F0D7A2; box-shadow: 0 0 55px rgba(215,174,98,.12); }
/* Forms and account surfaces. */
.store-form { display: grid; gap: 20px; max-width: 560px; }
.store-section > .store-form { padding: 32px; border: 1px solid #92703C; background: radial-gradient(ellipse at 0 0, rgba(215,174,98,.08), transparent 70%), #2A211B; box-shadow: 0 24px 55px rgba(28,23,19,.55); }
.store-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.store-page :is(input:not([type="hidden"]), select, textarea) { min-width: 0; max-width: 100%; min-height: 50px; border: 1px solid #92703C; border-radius: 0; padding: 12px 14px; background: #1C1713; color: #EDE3D1; font-size: 16px; font-weight: 500; line-height: 1.5; transition: border-color .25s ease; }
.store-page textarea { width: 100%; resize: vertical; }
.store-page input::placeholder, .store-page textarea::placeholder { color: #BBAA91; opacity: 1; }
.store-page :is(input, select, textarea):focus-visible { outline: 2px solid #D7AE62; outline-offset: 3px; }
.kind-choice { min-width: 0; margin: 0; border: 1px solid #554637; padding: 14px 16px; display: grid; gap: 8px; font-size: 15px; }
.kind-choice legend { padding-inline: 8px; color: #F0D7A2; }
.kind-choice label { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.store-page .kind-choice input { appearance: auto; accent-color: #D7AE62; width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; padding: 0; margin: 0; }
.form-help { color: #EDE3D1; font-size: 15px; font-weight: 500; line-height: 1.65; margin: 0; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.account-card { border: 1px solid #554637; background: radial-gradient(ellipse at 0 0, rgba(215,174,98,.06), transparent 75%), #2A211B; padding: 32px; box-shadow: 0 20px 48px rgba(28,23,19,.5), inset 0 1px rgba(237,227,209,.04); }
.account-card h2, .orders h2 { font-size: 38px; margin: 0 0 26px; }
.account-card > form + form, .account-card .specs + form { margin-top: 20px; }
.orders { margin-top: 56px; }
.orders h2 { padding-top: 26px; border-top: 1px solid #92703C; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.order-list li, .order-list li a { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: center; font-size: 18px; }
.order-list li { border: 1px solid #554637; background: #2A211B; padding: 22px; box-shadow: 0 12px 28px rgba(28,23,19,.35); transition: border-color .25s ease; }
.order-list li:has(> a) { display: block; }
.order-list li a { color: inherit; min-height: 44px; }
.order-list li:hover { border-color: #D7AE62; }
.order-number { font-weight: 700; color: #F0D7A2; }
.status { justify-self: start; border: 1px solid #D7AE62; padding: 6px 12px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.status-delivered { background: #D7AE62; color: #1C1713; }
.status-cancelled { border-color: #C98267; color: #E8BDA5; }
/* Cart and order tracking. */
.cart-lines { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.cart-lines li { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; border: 1px solid #554637; background: #2A211B; padding: 22px; font-size: 18px; box-shadow: 0 14px 32px rgba(28,23,19,.4); }
.cart-lines li a { flex: 1; min-width: 120px; font-size: 18px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.store-page .cart-lines input { width: 80px; }
.cart-flag { color: #E8BDA5; font-size: 15px; width: 100%; }
.note { display: grid; gap: 10px; font-size: 15px; margin-block: 28px 18px; }
.cart-help { color: #EDE3D1; font-size: 18px; line-height: 1.65; max-width: 620px; margin-bottom: 24px; }
.tracker { counter-reset: step; list-style: none; padding: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 32px 0; border: 1px solid #554637; background: #2A211B; box-shadow: 0 18px 36px rgba(28,23,19,.4); }
.tracker li { counter-increment: step; position: relative; padding: 0 12px 0 0; font-size: 15px; font-weight: 500; color: #BBAA91; }
.tracker li:before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border: 1px solid #BBAA91; border-radius: 50%; background: #2A211B; position: relative; z-index: 1; }
.tracker li:not(:last-child):after { content: ""; position: absolute; top: 21px; left: 42px; right: 0; height: 1px; background: #554637; }
.tracker li.is-done { color: #EDE3D1; font-weight: 600; }
.tracker li.is-done:before { border-color: #D7AE62; color: #1C1713; background: #D7AE62; }
.tracker li.is-done:after { background: #D7AE62; }
.tracker li.is-current:before { outline: 1px solid #D7AE62; outline-offset: 5px; box-shadow: 0 0 24px rgba(215,174,98,.14); }
.tracker li.is-current:after { background: #554637; }
.history { list-style: none; padding: 0; display: grid; gap: 0; font-size: 15px; margin-top: 24px; }
.history li { display: flex; flex-wrap: wrap; gap: 10px 24px; border-bottom: 1px solid #554637; padding: 18px 0 18px 20px; border-left: 1px solid #92703C; }
.history li span:first-child { color: #BBAA91; }
.history li span:nth-child(2) { color: #F0D7A2; font-weight: 600; }
/* Rep tools, including long signup URLs and expanded orders. */
.rep-links { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 24px; }
.rep-links li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; align-items: center; font-size: 18px; }
.rep-links code { background: #1C1713; border: 1px solid #554637; padding: 12px 16px; color: #F0D7A2; font-size: 16px; }
.rep-order { border: 1px solid #554637; background: #2A211B; margin-bottom: 16px; box-shadow: 0 14px 32px rgba(28,23,19,.4); }
.rep-order[open] { border-color: #92703C; }
.rep-order summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: center; padding: 22px; cursor: pointer; font-size: 18px; min-height: 66px; }
.rep-order summary:hover { background: rgba(215,174,98,.05); }
.rep-order-body { padding: 0 24px 28px; font-size: 18px; border-top: 1px solid #554637; }
.inline-form { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 16px; margin-top: 26px; }
.outbox-mail { margin-block: 24px; }
.outbox-mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 15px; color: #EDE3D1; }
.store-footer { border-top: 1px solid #554637; background: #2A211B; color: #EDE3D1; padding-bottom: 100px; }
.store-footer .placeholder { margin-top: 14px; padding: 10px 14px; }
/* Shared motion control. Content remains readable without JavaScript. */
.store-motion-button { position: fixed; right: 24px; bottom: 20px; z-index: 30; background: #1C1713; border-color: #92703C; box-shadow: 0 6px 24px rgba(28,23,19,.65); }
.store-motion-button:disabled { cursor: default; }
.store-dust { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.store-dust i { position: absolute; top: 15%; left: 12%; width: 2px; height: 2px; border-radius: 50%; background: #D7AE62; box-shadow: 0 0 8px rgba(215,174,98,.4); animation: store-drift 38s linear infinite; animation-play-state: paused; }
.store-dust i:nth-child(2) { left: 82%; top: 30%; animation-delay: -12s; }
.store-dust i:nth-child(3) { left: 45%; top: 56%; animation-delay: -24s; }
.store-dust i:nth-child(4) { left: 8%; top: 78%; animation-delay: -6s; }
.store-dust i:nth-child(5) { left: 92%; top: 93%; animation-delay: -18s; }
@keyframes store-drift { 0%,100% { opacity: 0; transform: translate3d(0,0,0); } 20%,80% { opacity: .35; } 99% { transform: translate3d(20px,-140px,0); } }
.store-dust i.is-visible { animation-play-state: running; }
.store-motion-idle .store-dust i, .motion-paused .store-dust i { animation-play-state: paused; }
.motion-paused .store-page .reveal { opacity: 1; translate: none; }
.motion-paused .store-page :is(.product-link, .gallery-thumbnail, .button, .product-stage img):hover { transform: none; }
@media (hover: hover) {
  .store-page .product-link:hover { transform: translateY(-5px); border-color: #D7AE62; box-shadow: 0 24px 48px rgba(28,23,19,.65), inset 0 1px rgba(215,174,98,.12); }
  .product-link:hover .product-stage img { transform: scale(1.025); }
  .store-page .button:not(:disabled):hover, .gallery-thumbnail:hover { transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .store-page .main-nav { display: flex; }
  .shop-category:before { inset-inline: -36px; }
  .store-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { gap: 32px; }
  .product-gallery .is-main { min-height: 400px; height: 440px; }
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-nav { gap: 20px; }
}
@media (max-width: 900px) {
  .product-layout, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .product-gallery { position: static; }
  .product-gallery .is-main { height: 520px; }
  .store-page .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; }
  .store-nav { order: 3; width: 100%; justify-content: center; margin: 0; gap: 34px; border-top: 1px solid #554637; }
  .order-list li, .order-list li a, .rep-order summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .store-page { font-size: 17px; }
  .store-section, .product-page { padding-block: 42px 72px; }
  .store-page .store-title { font-size: clamp(44px, 12.4vw, 68px); margin-bottom: 26px; }
  .store-page .section-heading { padding-bottom: 26px; margin-bottom: 28px; }
  .store-page .header-inner { gap: 4px 6px; }
  .store-page .main-nav { display: flex; }
  .store-nav { gap: 32px; }
  .shop-category { padding-block: 30px 34px; margin-top: 18px; }
  .shop-category:before { inset-inline: -22px; }
  .store-page .product-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .store-page .product.product-link { padding: 24px 20px; grid-template-rows: auto auto 265px auto; }
  .store-page .product h3 { font-size: 32px; min-height: 0; }
  .store-page .product-description { font-size: 17px; }
  .store-page .product .photo-placeholder, .product-stage { height: 265px; min-height: 265px; }
  .product-layout { gap: 30px; margin-top: 16px; }
  .product-gallery .is-main { height: 350px; min-height: 350px; padding: 20px; }
  .gallery-thumbnails { gap: 10px; }
  .gallery-thumbnail { min-height: 76px; padding: 8px; }
  .gallery-thumbnail img { height: 60px; }
  .buy-box { padding: 22px; font-size: 17px; }
  .buy-box .button { width: 100%; }
  .add-to-cart { align-items: stretch; }
  .add-to-cart .qty { width: 100%; }
  .specs > div { grid-template-columns: 1fr; gap: 6px; font-size: 17px; padding-block: 16px; }
  .product-video { margin-top: 48px; padding: 22px 18px; }
  .product-video .video-placeholder { min-height: 220px; padding: 20px; }
  .product-video .video-placeholder:before { width: 52px; height: 52px; }
  .store-section > .store-form, .account-card { padding: 24px 20px; }
  .notice, .empty { padding: 20px; font-size: 17px; }
  .account-grid { gap: 20px; }
  .orders { margin-top: 40px; }
  .account-card h2, .orders h2 { font-size: 34px; }
  .cart-lines li { gap: 12px; padding: 20px; font-size: 17px; }
  .cart-lines li a { flex-basis: 100%; font-size: 17px; }
  .cart-lines .text-link { margin-left: auto; }
  .cart-help { font-size: 17px; }
  .order-list li, .order-list li a, .rep-order summary { gap: 14px; font-size: 17px; }
  .tracker { grid-template-columns: 1fr; padding: 26px 22px; }
  .tracker li { padding: 0 0 28px 62px; min-height: 70px; display: flex; align-items: center; }
  .tracker li:last-child { padding-bottom: 0; min-height: 42px; }
  .tracker li:before { position: absolute; left: 0; top: 0; margin: 0; }
  .tracker li:not(:last-child):after { top: 42px; left: 21px; right: auto; width: 1px; height: calc(100% - 42px); }
  .rep-links li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rep-links code { font-size: 15px; padding: 12px; }
  .rep-order summary { padding: 20px; }
  .rep-order-body { padding-inline: 20px; font-size: 17px; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .store-motion-button { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-page .reveal { opacity: 1 !important; translate: none !important; }
  .store-dust { display: none; }
  .store-page :is(.product-link, .gallery-thumbnail, .button, .product-stage img):hover { transform: none !important; }
}

/* Buy through Juventix (individuals and visitors) */
.juventix-buy { border-top: 1px solid #554637; margin-top: 8px; padding-top: 18px; display: grid; gap: 10px; }
.juventix-buy p { margin: 0; }
.juventix-button { justify-self: start; background: transparent; color: #EDE3D1; border: 1px solid #D7AE62; }
.juventix-button:hover, .juventix-button:focus-visible { background: #D7AE62; color: #1C1713; }
.juventix-code { font-size: 16px; }
.juventix-code strong { color: #F0D7A2; letter-spacing: .06em; }
