/* Home layout. Service details inherit the original desktop styles. */
#home {
 --catalog-border: #d6e2ed;
 --catalog-ink: #122c47;
 --catalog-muted: #4a6079;
 color: var(--catalog-ink);
 min-width: 0;
}

.catalog-intro {
 display: flex;
 align-items: end;
 justify-content: space-between;
 gap: 22px;
 padding: clamp(21px, 2.2vw, 31px) 0 19px;
 border-bottom: 1px solid var(--catalog-border);
}
.catalog-intro h1 {
 margin: 0 0 7px;
 font-size: clamp(29px, 3.1vw, 46px);
 line-height: 1.06;
 letter-spacing: -.037em;
}
.catalog-intro p { color: var(--catalog-muted); font-size: 16px; margin: 0; }
.catalog-intro .catalog-calc { background: #fff; border: 1px solid #ccdbe9; color: #214b72; box-shadow: none; }
.catalog-calc svg { width: 16px; height: 20px; }
.primary-nav .calculator-shortcut {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 min-height: 40px;
 padding: 8px 12px;
 border: 1px solid #c7d9e8;
 border-radius: 10px;
 background: #eef5fb;
 color: #183d63;
}
.calculator-shortcut svg { width: 16px; height: 20px; flex: none; }
.calculator-shortcut:hover { background: #deedf8; border-color: #9ebdd5; }
.primary-nav a { white-space: nowrap; }
@media (min-width: 851px) and (max-width: 1100px) {
 .head-row { height: auto; min-height: 73px; flex-wrap: wrap; padding-block: 8px; row-gap: 2px; }
 .primary-nav { width: 100%; order: 3; }
}

.catalog-layout {
 padding: 19px 0 26px;
 scroll-margin-top: 24px;
}
.catalog-visually-hidden {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 35px; gap: 12px; }
.catalog-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.catalog-filters button {
 min-height: 35px;
 border: 1px solid transparent;
 border-radius: 7px;
 background: transparent;
 color: #e0eaf4;
 padding: 7px 13px;
 font: inherit;
 font-size: 14px;
 font-weight: 830;
 cursor: pointer;
}
.catalog-filters button:hover { background: #263f58; }
.catalog-filters button[aria-pressed="true"] { color: #fff; background: #2a4762; border-color: #507090; }
.catalog-controls { display: flex; align-items: center; gap: 5px; }
.icon-key {
 display: grid;
 place-items: center;
 padding: 0;
 width: 34px;
 height: 34px;
 border-radius: 8px;
 background: #fff;
 color: #254664;
 border: 1px solid #cfddea;
 cursor: pointer;
 transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.icon-key svg { width: 17px; height: 17px; }
.icon-key.prev-key svg { transform: rotate(180deg); }
.icon-key:hover:not(:disabled) { color: #fff; background: #2562a3; border-color: #2562a3; }
.icon-key:active:not(:disabled) { transform: scale(.94); }
.icon-key:disabled { opacity: .34; cursor: default; }

/* The image, shell and carousel move on separate layers. */
.catalog-stage {
 border-radius: 17px;
 background: #132b44;
 color: #edf5ff;
 overflow: hidden;
 padding: 13px 0 7px;
}
.catalog-stage .catalog-toolbar { padding: 0 17px; margin-bottom: 0; }
.catalog-stage .icon-key { border-color: #49627a; background: #223e59; color: #eff5ff; }
.catalog-stage .icon-key:hover:not(:disabled) { background: #3a5a78; }
.catalog-viewport {
 position: relative;
 overflow: hidden;
 height: 184px;
 touch-action: pan-y;
 cursor: grab;
}
.catalog-viewport:not(:focus-visible) .catalog-track {
 mask-image: linear-gradient(to right, transparent, #000 min(8%, 63px), #000 max(92%, calc(100% - 63px)), transparent);
}
.catalog-viewport.is-dragging { cursor: grabbing; }
.catalog-viewport:focus-visible { outline-offset: -3px; }
.catalog-track { position: absolute; inset: 0; perspective: 950px; }
.catalog-tile {
 position: absolute;
 left: 50%;
 top: 9px;
 width: clamp(154px, 16.9vw, 245px);
 height: 164px;
 border: 0;
 border-radius: 13px;
 background: transparent;
 padding: 0;
 text-align: left;
 color: #18344c;
 cursor: inherit;
 transform: translate3d(calc(-50% + var(--deck-x, 0px)), var(--deck-y, 0px), 0)
   rotateY(var(--deck-angle, 0deg)) scale(var(--deck-scale, 1));
}
.catalog-tile .tile-face {
 display: block;
 position: absolute;
 inset: 0;
 border: 1px solid #d3e4f1;
 border-radius: inherit;
 overflow: hidden;
 background: var(--tile-colour, #e7eef7);
 box-shadow: 0 12px 20px #0a20366e;
 transition: transform 220ms ease-out, border-color 220ms ease-out, background-color 220ms ease-out;
 transform: perspective(580px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.catalog-tile .tile-face::before {
 content: "";
 position: absolute;
 width: 155px;
 height: 95px;
 right: -29px;
 bottom: -13px;
 border-radius: 50%;
 background: #ffffff68;
 transform: translateX(var(--background-shift, 0px)) rotate(-22deg);
 transition: transform 200ms ease-out;
}
.catalog-tile img {
 position: absolute;
 right: 0;
 bottom: -8%;
 width: 70%;
 height: 95%;
 object-fit: contain;
 pointer-events: none;
 transform: translate3d(calc(var(--deck-shift, 0px) + var(--art-x, 0px)), var(--art-y, 0px), 0);
 transition: transform 180ms ease-out;
}
.catalog-tile .tile-text {
 position: absolute;
 left: 15px;
 top: 13px;
 max-width: 70%;
 pointer-events: none;
}
.catalog-tile strong { display: block; line-height: 1.07; font-size: 21px; font-weight: 950; letter-spacing: -.022em; }
.catalog-tile small { display: block; color: #365572; font-size: 12px; font-weight: 840; margin-top: 5px; }
.catalog-tile[data-service="seller"] { --tile-colour: #dceaff; }
.catalog-tile[data-service="cargo"] { --tile-colour: #e1ebf5; }
.catalog-tile[data-service="ecom"] { --tile-colour: #fff2c9; }
.catalog-tile[data-service="warehouse"] { --tile-colour: #dcefe7; }
.catalog-tile[data-service="seller"] img { width: 67%; right: -1%; bottom: -10%; }
.catalog-tile[data-service="seller"] .tile-text { max-width: 64%; }
.catalog-tile[aria-pressed="true"] .tile-face { border: 2px solid #ffe16b; background: #ffe278; }
.catalog-tile[aria-pressed="true"] small { color: #514429; }
.catalog-tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 2px; }
.catalog-pagination[hidden] { display: none; }
.catalog-page {
 display: grid;
 place-items: center;
 width: 22px;
 height: 25px;
 border: 0;
 border-radius: 4px;
 background: transparent;
 cursor: pointer;
}
.catalog-page::before {
 content: "";
 display: block;
 width: 6px;
 height: 6px;
 border-radius: 5px;
 background: #8aa6be;
 transition: width 180ms ease-out, background-color 180ms ease-out;
}
.catalog-page[aria-pressed="true"]::before { width: 15px; background: #ffe16b; }
.catalog-page:hover::before { background: #fff; }

.catalog-detail {
 --story-background: #e2edf8;
 display: grid;
 grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
 overflow: hidden;
 border: 1px solid var(--catalog-border);
 border-radius: 17px;
 background: var(--story-background);
 margin-top: 13px;
 min-height: 300px;
}
.catalog-detail[data-service="seller"] { --story-background: #e5ebfa; }
.catalog-detail[data-service="warehouse"],
.catalog-detail[data-service="fulfillment"] { --story-background: #e0eee9; }
.catalog-detail[data-service="ecom"] { --story-background: #fcf0c9; }
.catalog-detail[data-service="fbs"] { --story-background: #e9edf8; }
.catalog-detail[data-service="import"] { --story-background: #deebf4; }
.catalog-summary {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 gap: 16px;
 padding: clamp(22px, 2.5vw, 36px);
 min-width: 0;
}
.catalog-copy {
 max-height: 210px;
 overflow: auto;
 scrollbar-width: thin;
 scrollbar-color: #91acc5 transparent;
 touch-action: pan-y;
}
.catalog-copy:focus-visible { outline-offset: -2px; }
.catalog-copy-list { padding-left: 19px; margin: 6px 0 12px; color: #344e67; line-height: 1.42; }
.catalog-copy-list li + li { margin-top: 5px; }
.catalog-summary-footer {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 8px;
}
.catalog-summary h2 {
 font-size: clamp(31px, 3.55vw, 52px);
 line-height: 1.02;
 letter-spacing: -.035em;
 margin: 0 0 12px;
 font-weight: 950;
}
.catalog-description { color: #344e67; font-size: 16px; line-height: 1.55; max-width: 46ch; margin: 0; }
.catalog-terms {
 display: inline-block;
 font-size: 13px;
 font-weight: 900;
 color: #234e75;
 background: #ffffff87;
 padding: 6px 11px;
 border-radius: 6px;
 margin: 0 0 11px;
}
.catalog-terms[hidden] { display: none; }
.catalog-action { white-space: normal; }
.catalog-action:hover { background: #ffe263; }

.catalog-gallery {
 position: relative;
 isolation: isolate;
 margin: 0;
 min-width: 0;
 min-height: 300px;
 color: #fff;
 background: #142a41;
}
.catalog-gallery-image {
 position: absolute;
 inset: 0;
 overflow: hidden;
 cursor: grab;
 touch-action: pan-y;
}
.catalog-gallery-image:active { cursor: grabbing; }
.catalog-gallery-image:focus-visible { outline: 3px solid #ffe16b; outline-offset: -5px; z-index: 3; }
.catalog-gallery-slide { position: absolute; inset: -5px; }
.catalog-gallery-slide img {
 width: 100%;
 height: 100%;
 display: block;
 object-fit: cover;
 object-position: center 48%;
 transform: translate3d(var(--gallery-x, 0px), var(--gallery-y, 0px), 0);
 transition: transform 210ms ease-out;
}
.catalog-gallery-image.demo-shot .catalog-gallery-slide { inset: 0; }
.catalog-gallery-image.demo-shot img { object-fit: contain; object-position: center 35%; background: #142a41; }
.catalog-gallery::after {
 content: "";
 position: absolute;
 inset: 0;
 pointer-events: none;
 background: linear-gradient(180deg, #081a2c66, transparent 32%, transparent 44%, #08192cea 100%);
}
.catalog-gallery figcaption {
 position: absolute;
 z-index: 2;
 inset: auto 21px 8px;
 pointer-events: none;
}
.catalog-gallery-caption { margin: 0 0 4px; }
.catalog-gallery-name {
 display: block;
 font-size: clamp(20px, 2.05vw, 29px);
 line-height: 1.13;
 font-weight: 930;
}
.catalog-gallery-copy { color: #eef4f9; max-width: 58ch; font-size: 14px; font-weight: 750; line-height: 1.32; margin: 5px 0 0; }
.catalog-gallery-controls {
 position: absolute;
 z-index: 2;
 top: 14px;
 right: 14px;
 padding: 3px;
 border-radius: 9px;
 background: #142b43ed;
}
.catalog-gallery-controls .icon-key { border-color: transparent; background: transparent; color: #fff; }
.catalog-gallery-controls .icon-key:hover:not(:disabled) { background: #345571; }
.catalog-frame-count { min-width: 35px; text-align: center; color: #f3f7fd; font-size: 12px; font-weight: 850; white-space: nowrap; }
.catalog-copy-count { min-width: 33px; text-align: center; font-size: 12px; color: #3b556e; font-weight: 850; white-space: nowrap; }
.catalog-copy-controls .icon-key { background: #ffffff9e; }
.catalog-copy-controls .icon-key:hover:not(:disabled) { background: #2562a3; }
.catalog-gallery-progress { display: flex; gap: 5px; }
.catalog-gallery-step {
 flex: 1;
 min-height: 20px;
 border: 0;
 padding: 0;
 background: transparent;
 cursor: pointer;
 pointer-events: auto;
}
.catalog-gallery-step::before { content: ""; display: block; height: 3px; border-radius: 2px; background: #c7dbec87; }
.catalog-gallery-step[aria-pressed="true"]::before { background: #ffe16b; }
.catalog-gallery-step:hover:not([aria-pressed="true"])::before { background: #e8f2fb; }

@media (max-width: 1000px) {
 .catalog-intro { align-items: center; }
}
@media (max-width: 760px) {
 .catalog-intro { display: block; padding-block: 24px 17px; }
 .catalog-intro .catalog-calc { margin-top: 13px; }
 .catalog-layout { padding-top: 16px; }
 .catalog-stage .catalog-toolbar { padding-inline: 10px; gap: 5px; }
 .catalog-filters { gap: 2px; }
 .catalog-filters button { font-size: 13px; padding-inline: 7px; }
 .catalog-detail { grid-template-columns: minmax(0, 1fr); }
 .catalog-gallery { min-height: clamp(222px, 47vw, 300px); }
 .catalog-summary { padding: 20px; }
}
@media (max-width: 480px) {
 .catalog-intro p { font-size: 14px; }
 .catalog-stage .catalog-toolbar { align-items: stretch; }
 .catalog-stage .catalog-controls { align-self: center; }
 .catalog-stage .icon-key { width: 29px; height: 32px; }
 .catalog-gallery figcaption { inset-inline: 14px; }
 .catalog-gallery-copy, .catalog-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
 .catalog-tile .tile-face, .catalog-tile .tile-face::before, .catalog-tile img, .icon-key {
  transform: none;
  transition: none;
 }
 .catalog-page::before, .catalog-gallery-slide img { transition: none; }
}

/* Keep the storefront visible around the delivery form, including on short laptops. */
html:has(#delivery-dialog[open]) { overflow: hidden; }
#delivery-dialog {
 position: fixed;
 inset: 0;
 margin: auto;
 width: min(1136px, calc(100% - 64px));
 height: min(var(--form-height, 735px), calc(100dvh - 52px));
 max-width: none;
 max-height: none;
 padding: 0;
 border: 0;
 border-radius: 24px;
 overflow: hidden;
 background: #fdfdfb;
 box-shadow: 0 24px 80px -26px rgb(8 20 42 / .5);
}
#delivery-dialog::backdrop { background: rgb(12 26 44 / .48); }
#delivery-dialog iframe { display: block; height: 100%; width: 100%; border: 0; visibility: hidden; opacity: 0; }
#delivery-dialog iframe.is-ready { visibility: visible; opacity: 1; }
#delivery-dialog .delivery-status, #delivery-dialog .delivery-fallback {
 position: absolute;
 inset: 46% 20px auto;
 color: #465b72;
 text-align: center;
 font-size: 16px;
}
#delivery-dialog .delivery-fallback { z-index: 1; text-decoration: underline; }
#close-calculator {
 position: absolute;
 z-index: 1;
 top: 12px;
 right: 14px;
 width: 40px;
 height: 40px;
 display: grid;
 place-items: center;
 border: 1px solid #d3dcd9;
 border-radius: 50%;
 color: #35433f;
 background: #fff;
 cursor: pointer;
}
#close-calculator:hover { color: #142e28; background: #eef4f1; }
#close-calculator:focus-visible { outline: 2px solid #246d5a; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
 #delivery-dialog iframe { transition: opacity 140ms ease-out; }
 #delivery-dialog[open] { animation: delivery-in 280ms cubic-bezier(.16,1,.3,1) both; }
 #delivery-dialog[open]::backdrop { animation: delivery-veil-in 220ms ease-out both; }
 #delivery-dialog[data-closing] { animation: delivery-out 150ms ease-in both; }
 #delivery-dialog[data-closing]::backdrop { animation: delivery-veil-out 150ms ease-in both; }
}
@keyframes delivery-in { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes delivery-out { from { opacity: 1; } to { opacity: 0; transform: translateY(9px) scale(.995); } }
@keyframes delivery-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes delivery-veil-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 900px) {
 #delivery-dialog { width: calc(100% - 32px); height: min(var(--form-height, 735px), calc(100dvh - 32px)); border-radius: 18px; }
}
