/* ============================================================
   SINGLE PRODUCT PAGE
   ------------------------------------------------------------
   One layout for all three product types (Collection, Semi
   Customised, Design Your Own) — see
   woocommerce/content-single-product.php.

     [ thumbs | main image ]   [ type · title · price · buy area ]
     [ tabs: Description | Additional information | Reviews      ]
     [ related products                                          ]

   Most selectors start `.woocommerce div.product.sky-single-product`
   on purpose: WooCommerce's own stylesheet styles the gallery, the
   tabs and the cart form with selectors that long
   (`.woocommerce div.product div.images .flex-control-thumbs li`),
   and a shorter one silently loses to it.
   ============================================================ */

.sky-single-product{padding-block:var(--sp-4) 0;}

.sky-single-product .sky-breadcrumbs,
.sky-single-product__notices,
.sky-single-product__grid{
  max-width:1500px;margin-inline:auto;
  padding-inline:clamp(1.25rem,4vw,2.5rem);
}
.sky-single-product .sky-breadcrumbs{
  text-transform:none;letter-spacing:0;font-size:.85rem;font-weight:500;
  margin-bottom:clamp(1.5rem,4vw,3rem);
}

.sky-single-product__notices .woocommerce-notices-wrapper:empty{display:none;}
.sky-single-product__notices .woocommerce-message,
.sky-single-product__notices .woocommerce-error,
.sky-single-product__notices .woocommerce-info{margin:0 0 1.5rem;border-radius:12px;}

/* ---------- 1. THE TWO COLUMNS ---------- */
.sky-single-product__grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:clamp(2rem,5vw,4.5rem);
  align-items:start;
  padding-bottom:clamp(3rem,6vw,5.5rem);
}
/* WooCommerce core ships `.summary{width:48%;float:left}` (and the same
   for `div.images`) for its own float-based two-column layout. Floats are
   ignored inside a grid, but the explicit width is not. */
.sky-single-product__grid > .sky-single-product__summary,
.sky-single-product__grid > .sky-single-product__gallery{
  width:auto !important;float:none !important;min-width:0;
}
.sky-single-product__grid > .sky-single-product__gallery{position:relative;}
@media (min-width:1025px){
  /* The gallery stays in view while a long buy area scrolls past it. */
  .sky-single-product__grid > .sky-single-product__gallery{
    position:sticky;
    top:calc(var(--nav-h,68px) + var(--topstrip-h,34px) + 1.25rem);
  }
}
@media (max-width:1024px){
  .sky-single-product__grid{grid-template-columns:minmax(0,1fr);}
}

/* ---------- 2. GALLERY ---------- */
.woocommerce div.product.sky-single-product div.images,
.sky-single-product__gallery .woocommerce-product-gallery{
  position:relative;width:100%;float:none;margin:0;
}

/* The main image: a tall card, the garment shown whole inside it. */
.sky-single-product__gallery .flex-viewport,
.sky-single-product__gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper{
  border:1px solid var(--line-paper);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#ececec 100%);
}
/* Once the slider is running the wrapper sits inside .flex-viewport, and
   the card is the viewport — not both. */
.sky-single-product__gallery .flex-viewport .woocommerce-product-gallery__wrapper{
  border:0;border-radius:0;background:none;
}
.sky-single-product__gallery .woocommerce-product-gallery__wrapper{margin:0;}
.woocommerce div.product.sky-single-product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product.sky-single-product div.images .woocommerce-product-gallery__image--placeholder img{
  display:block;width:100%;height:auto;
  aspect-ratio:var(--sky-ar,4/5);
  object-fit:contain;
}
/* A picture far from the frame's shape fills it instead — see the
   `sky-img--fill` filter in inc/product-page.php. */
.woocommerce div.product.sky-single-product div.images .woocommerce-product-gallery__image img.sky-img--fill{object-fit:cover;}
.woocommerce div.product.sky-single-product div.images .woocommerce-product-gallery__trigger{
  top:1rem;right:1rem;
}

/* Thumbnails: a vertical rail on the LEFT of the main image. */
.sky-single-product__gallery .sky-gallery--has-thumbs{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.sky-single-product__gallery .sky-gallery--has-thumbs > .flex-viewport,
.sky-single-product__gallery .sky-gallery--has-thumbs > .woocommerce-product-gallery__wrapper{
  grid-column:2;grid-row:1;
}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs{
  grid-column:1;grid-row:1;
  align-self:stretch;
  display:flex;flex-direction:column;gap:12px;
  margin:0;padding:0;list-style:none;
  /* As tall as the main image and no taller: `contain:size` stops a long
     list of thumbnails from stretching the row, so extra ones scroll. */
  contain:size;
  overflow-y:auto;overflow-x:hidden;
  scrollbar-width:none;
}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs::-webkit-scrollbar{display:none;}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs li{
  width:auto;float:none;margin:0;padding:0;flex:none;clear:none;
}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs li img{
  display:block;width:100%;height:auto;
  aspect-ratio:4/5;object-fit:cover;object-position:center;
  background:#f3f3f3;
  border:1px solid var(--line-paper);
  border-radius:14px;
  opacity:1;cursor:pointer;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs li img:hover{border-color:rgba(10,10,10,.5);}
.woocommerce div.product.sky-single-product div.images .flex-control-thumbs li img.flex-active{
  border-color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--ink);
}

/* Phones: the same vertical rail on the left, just narrower; extra
   thumbnails scroll up and down inside it. */
@media (max-width:640px){
  .sky-single-product__gallery .sky-gallery--has-thumbs{
    grid-template-columns:58px minmax(0,1fr);
    gap:8px;
  }
  .woocommerce div.product.sky-single-product div.images .flex-control-thumbs{
    gap:8px;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .woocommerce div.product.sky-single-product div.images .flex-control-thumbs li img{border-radius:10px;}
  .woocommerce div.product.sky-single-product .sky-single-product__gallery:has(.sky-gallery--has-thumbs) span.onsale{left:calc(58px + 8px + 1rem);}
}

.woocommerce div.product.sky-single-product span.onsale{
  position:absolute;top:1rem;left:1rem;right:auto;z-index:5;
  min-height:0;min-width:0;line-height:1;margin:0;
  background:var(--yellow);color:#000;
  font-family:var(--font-body);font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:.45rem .8rem;border-radius:100px;
}
/* With a thumbnail rail the badge belongs on the image, not on the rail. */
@media (min-width:641px){
  .woocommerce div.product.sky-single-product .sky-single-product__gallery:has(.sky-gallery--has-thumbs) span.onsale{left:calc(92px + 14px + 1rem);}
}

/* ---------- 3. SUMMARY ---------- */
.sky-pdp__eyebrow{
  margin:0 0 .6rem;
  font-family:var(--font-body);
  font-size:.74rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--on-paper-muted);
}
.woocommerce div.product.sky-single-product .product_title{
  font-size:clamp(1.9rem,3.2vw,2.9rem);
  line-height:1.08;
  margin:0 0 .75rem;
  text-wrap:balance;
}
/* Size the title to its column (not the whole window), so product names
   fit on one line beside the gallery. */
.woocommerce div.product.sky-single-product .sky-single-product__summary{container-type:inline-size;}
@container (min-width: 380px){
  .woocommerce div.product.sky-single-product .sky-single-product__summary .product_title{
    font-size:clamp(1.5rem,5.2cqi,2.4rem);
    white-space:normal;
  }
}
.woocommerce div.product.sky-single-product .woocommerce-product-rating{
  display:flex;align-items:center;gap:.6rem;margin:0 0 1.1rem;
}
.woocommerce div.product.sky-single-product .woocommerce-product-rating .star-rating{margin:0;float:none;color:var(--yellow);}
.woocommerce div.product.sky-single-product .woocommerce-review-link{font-size:.85rem;color:var(--on-paper-muted);}
.woocommerce div.product.sky-single-product .sky-single-product__summary p.price,
.woocommerce div.product.sky-single-product .sky-single-product__summary span.price{
  display:block;margin:0 0 .5rem;
  font-size:1.75rem;line-height:1.2;color:var(--on-paper);
}
.sky-single-product__summary .price del{color:var(--c-muted-2);font-size:1.1rem;font-weight:500;margin-right:.5rem;}
.sky-single-product__summary .price ins{text-decoration:none;}
.sky-single-product__summary .woocommerce-product-details__short-description{
  color:var(--on-paper-muted);font-size:1.02rem;line-height:1.75;font-weight:500;
  margin-bottom:1.75rem;
}
.sky-single-product__summary .woocommerce-product-details__short-description p:last-child{margin-bottom:0;}

/* --- Variants: label on the left, current choice (or the size guide)
       on the right, buttons underneath. --- */
.woocommerce div.product.sky-single-product form.cart table.variations{
  display:block;width:100%;margin:0 0 .5rem;border:0;
}
.woocommerce div.product.sky-single-product form.cart table.variations tbody{display:block;}
.woocommerce div.product.sky-single-product form.cart table.variations tr{
  display:block;position:relative;margin-bottom:1.4rem;
}
.woocommerce div.product.sky-single-product form.cart table.variations th,
.woocommerce div.product.sky-single-product form.cart table.variations td{
  display:block;padding:0;border:0;text-align:left;line-height:1.3;
}
.woocommerce div.product.sky-single-product form.cart table.variations th.label{margin-bottom:.75rem;}
.woocommerce div.product.sky-single-product form.cart table.variations label{
  font-family:var(--font-body);
  font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);
}
.woocommerce div.product.sky-single-product form.cart table.variations select{
  width:100%;min-width:0;margin:0;
  padding:.85rem 1rem;
  border:1px solid var(--line-paper);border-radius:10px;background:#fff;
  font-family:var(--font-body);font-size:.95rem;
}
/* With the buttons in charge the dropdown is taken out of sight, not out
   of the page: WooCommerce's variation script still reads and writes it. */
.sky-swatches-on table.variations select{
  position:absolute !important;
  width:1px !important;height:1px !important;
  padding:0 !important;margin:-1px !important;border:0 !important;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}
/* No JavaScript, no buttons — the dropdown is the control. */
.sky-swatches{display:none;}
.sky-swatches-on .sky-swatches{display:block;}

.sky-swatches__aside{
  position:absolute;top:0;right:0;
  font-size:.9rem;font-weight:500;line-height:1.3;color:var(--on-paper-muted);
}
a.sky-swatches__aside{
  color:var(--on-paper);font-weight:700;
  text-decoration:underline;text-underline-offset:3px;
}
.sky-swatches__list{display:flex;flex-wrap:wrap;gap:.6rem;}
.sky-swatches--pill .sky-swatches__list{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));
}
.sky-swatch{
  -webkit-appearance:none;appearance:none;
  margin:0;cursor:pointer;
  font-family:var(--font-body);font-size:.85rem;font-weight:700;line-height:1.2;
  color:var(--on-paper);
  background:#fff;
  border:1px solid var(--line-paper);
  border-radius:10px;
  padding:.85rem .75rem;
  transition:border-color .2s ease,background-color .2s ease,color .2s ease,box-shadow .2s ease;
}
.sky-swatch:hover{border-color:var(--ink);}
.sky-swatch.is-active{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
.sky-swatch:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}
.sky-swatch.is-unavailable{
  opacity:.4;cursor:not-allowed;text-decoration:line-through;
}
.sky-swatches--colour .sky-swatch{
  width:44px;height:44px;padding:3px;
  border-radius:50%;border:2px solid transparent;background:transparent;
}
.sky-swatches--colour .sky-swatch:hover{border-color:rgba(10,10,10,.35);}
.sky-swatches--colour .sky-swatch.is-active{background:transparent;border-color:var(--ink);}
.sky-swatch__dot{
  display:block;width:100%;height:100%;border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);
}
.woocommerce div.product.sky-single-product form.cart .reset_variations{
  display:inline-block;margin-top:.6rem;
  font-size:.8rem;color:var(--on-paper-muted);text-decoration:underline;
}
.sky-variation-hint{
  margin:0 0 1.1rem;font-size:.88rem;color:var(--on-paper-muted);
}
.sky-variation-hint[hidden]{display:none;}
.woocommerce div.product.sky-single-product .woocommerce-variation-price{margin-bottom:.75rem;}
.woocommerce-variation-availability .stock,
.sky-single-product__summary p.stock{font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;}
.sky-single-product__summary p.stock.in-stock{color:var(--c-success);}
.sky-single-product__summary p.stock.out-of-stock{color:#B3261E;}

/* --- Buy row: quantity stepper + Add to Cart ---
   A simple product's form IS the row. A variable product's form also
   holds the variants above it, so there the row is WooCommerce's inner
   `.woocommerce-variation-add-to-cart` wrapper instead. */
.woocommerce div.product.sky-single-product form.cart{margin:1.75rem 0 0;}
.woocommerce div.product.sky-single-product form.cart:not(.variations_form):not(.grouped_form),
.woocommerce div.product.sky-single-product .woocommerce-variation-add-to-cart{
  display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;
}
.woocommerce div.product.sky-single-product form.cart div.quantity{
  float:none;margin:0;flex:none;
  display:inline-flex;align-items:center;
  height:56px;padding:0 .35rem;
  border:1px solid var(--line-paper);border-radius:100px;background:#fff;
}
.woocommerce div.product.sky-single-product form.cart div.quantity .qty{
  width:2.6rem;height:100%;padding:0;margin:0;
  border:0;background:transparent;text-align:center;
  font-family:var(--font-body);font-size:1rem;font-weight:700;color:var(--on-paper);
  -moz-appearance:textfield;appearance:textfield;
}
.woocommerce div.product.sky-single-product form.cart div.quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product.sky-single-product form.cart div.quantity .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
/* Without the stepper buttons (JavaScript off) the field needs its own room. */
.woocommerce div.product.sky-single-product form.cart div.quantity:not(.sky-qty) .qty{width:4rem;}
.sky-qty__btn{
  -webkit-appearance:none;appearance:none;
  width:40px;height:40px;flex:none;
  display:grid;place-items:center;
  border:0;border-radius:50%;background:transparent;
  font-size:1.25rem;line-height:1;color:var(--on-paper);cursor:pointer;
  transition:background-color .2s ease;
}
.sky-qty__btn:hover{background:rgba(0,0,0,.06);}
.sky-qty__btn:focus-visible{outline:2px solid var(--ink);outline-offset:1px;}
.sky-qty__btn[disabled]{opacity:.3;cursor:default;background:transparent;}

.woocommerce div.product.sky-single-product form.cart .single_add_to_cart_button{
  float:none;flex:1 1 150px;
  height:56px;padding:0 2rem;
  border-radius:100px;border:0;
  font-family:var(--font-body);font-size:1rem;font-weight:700;
  letter-spacing:0;text-transform:none;line-height:1;
  color:#000;
  transition:transform .2s var(--ease),filter .2s ease,box-shadow .2s ease;
}
.woocommerce div.product.sky-single-product form.cart .single_add_to_cart_button:hover{transform:translateY(-2px);}
.woocommerce div.product.sky-single-product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product.sky-single-product form.cart .single_add_to_cart_button:disabled{
  /* WooCommerce repaints a disabled button purple-on-white; keep ours. */
  background-color:var(--yellow);background-image:var(--yellow-grad);color:#000;
  opacity:.5;cursor:not-allowed;transform:none;
}

/* --- Design Your Own: the one button, on its own. --- */
.sky-single-product__summary .sky-studio-only{margin:1.75rem 0 0;}
.sky-single-product__summary .devexhub-3d-studio-cta{min-height:56px;}

/* --- Reassurance notes --- */
.sky-pdp-notes{
  list-style:none;margin:1.9rem 0 0;padding:1.75rem 0 0;
  border-top:1px solid var(--line-paper);
  display:grid;gap:1.15rem;
}
.sky-pdp-notes li{display:flex;gap:.85rem;align-items:flex-start;}
.sky-pdp-notes svg{width:20px;height:20px;flex:none;margin-top:.15rem;color:var(--ink);}
.sky-pdp-notes strong{display:block;font-size:.95rem;font-weight:700;color:var(--on-paper);line-height:1.35;}
.sky-pdp-notes span{display:block;font-size:.92rem;color:var(--on-paper-muted);line-height:1.55;}
.sky-pdp-notes a{color:var(--on-paper);text-decoration:underline;text-underline-offset:3px;}

.woocommerce div.product.sky-single-product .product_meta{
  margin-top:1.75rem;padding-top:1.25rem;
  border-top:1px solid var(--line-paper);
  font-size:.82rem;color:var(--on-paper-muted);
}
.woocommerce div.product.sky-single-product .product_meta > span{display:block;}
.sky-single-product__summary .product_meta a{color:var(--ink);}

/* ---------- 4. TABS (full width, under the product) ---------- */
.sky-pdp-details{
  background:#fff;
  border-top:1px solid var(--line-paper);
  padding-block:clamp(2.5rem,5vw,4rem) clamp(3rem,6vw,5rem);
}
.woocommerce div.product.sky-single-product .woocommerce-tabs{margin:0;padding:0;}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs{
  display:flex;gap:0 clamp(1.25rem,4vw,3rem);
  list-style:none;margin:0 0 clamp(1.75rem,3vw,2.5rem);padding:0;
  border-bottom:2px solid var(--on-paper);
  overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar{display:none;}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li::after{display:none;content:none;}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li{
  flex:1 1 0;min-width:max-content;
  display:block;margin:0;padding:0;
  border:0;border-radius:0;background:none;
}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li a{
  display:inline-block;
  padding:.35rem 0 1rem;
  font-family:var(--font-body);font-size:1.02rem;font-weight:500;
  color:var(--on-paper-muted);
  white-space:nowrap;
  box-shadow:inset 0 -5px 0 transparent;
  transition:color .2s ease,box-shadow .2s ease;
}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li a:hover{color:var(--on-paper);}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li.active{background:none;border:0;}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li.active a{
  color:var(--on-paper);font-weight:600;
  box-shadow:inset 0 -5px 0 var(--on-paper);
}
.woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;}

.woocommerce div.product.sky-single-product .woocommerce-tabs .panel{
  margin:0;padding:0;
  color:var(--on-paper);font-size:1rem;line-height:1.75;
}
.sky-pdp-details .panel > *:first-child{margin-top:0;}
.sky-pdp-details .panel > *:last-child{margin-bottom:0;}
.sky-pdp-details .panel p{margin:0 0 1.15em;}
.sky-pdp-details .panel h2,
.sky-pdp-details .panel h3,
.sky-pdp-details .panel h4{font-size:1.1rem;margin:1.75em 0 .7em;}
.sky-pdp-details .panel ul,
.sky-pdp-details .panel ol{margin:0 0 1.15em;padding-left:1.4em;}
.sky-pdp-details .panel ul{list-style:disc;}
.sky-pdp-details .panel ol{list-style:decimal;}
.sky-pdp-details .panel li{margin-bottom:.55em;}
.sky-pdp-details .panel a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.sky-pdp-details .panel img{max-width:100%;height:auto;border-radius:12px;}
.woocommerce div.product.sky-single-product .woocommerce-tabs table.shop_attributes{
  width:100%;max-width:820px;margin:0;border:0;border-collapse:collapse;
}
.woocommerce div.product.sky-single-product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product.sky-single-product .woocommerce-tabs table.shop_attributes td{
  padding:.9rem 0;border:0;border-bottom:1px solid var(--line-paper);
  background:none;text-align:left;font-style:normal;vertical-align:top;
}
.woocommerce div.product.sky-single-product .woocommerce-tabs table.shop_attributes th{
  width:34%;padding-right:1.5rem;font-weight:700;color:var(--on-paper);
}
.woocommerce div.product.sky-single-product .woocommerce-tabs table.shop_attributes td p{margin:0;padding:0;}

/* Fabric & care / Size guide / Shipping & returns — text written in the
   editor (inc/product-info-tabs.php), so tables need a style of their own. */
.sky-info-tab{max-width:980px;}
.sky-info-tab table{
  width:100%;margin:0 0 1.5em;
  border-collapse:collapse;font-size:.95rem;line-height:1.5;
}
.sky-info-tab th,
.sky-info-tab td{
  padding:.8rem 1rem;
  border:1px solid var(--line-paper);
  text-align:left;vertical-align:top;
}
.sky-info-tab th{font-weight:700;color:var(--on-paper);}
.sky-info-tab thead th,
.sky-info-tab tbody:first-child tr:first-child th{
  background:var(--ink);color:var(--on-ink);border-color:var(--ink);
}
.sky-info-tab tbody tr:nth-child(even) td{background:var(--paper);}
@media (max-width:640px){
  /* A size chart is wider than a phone: let it scroll, not squash. */
  .sky-info-tab table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;}
}

@media (max-width:640px){
  .woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li{flex:none;}
  .woocommerce div.product.sky-single-product .woocommerce-tabs ul.tabs li a{font-size:.95rem;}
}

/* ---------- 5. RELATED ---------- */
.sky-related{background:var(--paper-2);}
.sky-related__head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
  margin-bottom:clamp(1.75rem,3vw,2.75rem);
}
.sky-related__head .eyebrow{margin-bottom:.6rem;}
.sky-related__title{margin:0;}
.sky-related__all{
  font-weight:700;font-size:.95rem;color:var(--on-paper);
  border-bottom:1px solid currentColor;padding-bottom:.3rem;white-space:nowrap;
}
.sky-related__all span{display:inline-block;transition:transform .2s ease;}
.sky-related__all:hover span{transform:translateX(3px);}
.sky-related section.related,
.sky-related section.upsells{margin:0;}
.sky-related section.upsells{margin-bottom:var(--sp-5);}
.sky-related ul.products{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;
  list-style:none;margin:0;padding:0;
}
.sky-related ul.products::before,
.sky-related ul.products::after{display:none;}
.woocommerce .sky-related ul.products li.product{width:auto;float:none;margin:0;}
@media (max-width:1200px){ .sky-related ul.products{grid-template-columns:repeat(3,1fr);} }
@media (max-width:900px){ .sky-related ul.products{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .sky-related ul.products{grid-template-columns:1fr;} }

.sky-inline-customiser-promo{margin-top:0;}

/* ---------- 6. STICKY PRODUCT BAR (Design Your Own products) ----------
   Markup: inc/product-sticky-bar.php, printed at wp_footer.
   Behaviour: assets/js/skye-design.js adds `is-shown` once the summary's
   own "Customise & Order" button has scrolled out of view, and
   `is-over-footer` when the footer's link columns come into view. */
.sky-sticky-bar{
  position:fixed;left:50%;bottom:1rem;z-index:90;
  width:min(1100px,calc(100% - 2rem));
  transform:translate(-50%,calc(100% + 2rem));
  opacity:0;visibility:hidden;pointer-events:none;
  transition:transform .35s var(--ease),opacity .25s ease,visibility 0s linear .35s;
}
.sky-sticky-bar[hidden]{display:none;}
.sky-sticky-bar.is-shown{
  transform:translate(-50%,0);
  opacity:1;visibility:visible;pointer-events:auto;
  transition:transform .35s var(--ease),opacity .25s ease,visibility 0s;
}
.sky-sticky-bar.is-shown.is-over-footer{
  transform:translate(-50%,calc(100% + 2rem));
  opacity:0;visibility:hidden;pointer-events:none;
}
.sky-sticky-bar__inner{
  display:flex;align-items:center;gap:1rem 1.5rem;
  padding:.5rem .5rem .5rem 1.6rem;
  background:var(--ink);color:var(--on-ink);
  border:1px solid var(--line-ink);
  border-radius:100px;
  box-shadow:0 18px 40px rgba(10,10,10,.35);
}
.sky-sticky-bar__title{
  flex:1 1 auto;min-width:0;margin:0;
  font-family:var(--font-display);font-weight:700;font-size:1rem;line-height:1.3;
  color:var(--on-ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sky-sticky-bar__links{display:flex;align-items:center;gap:1.25rem;flex:none;}
.sky-sticky-bar__link{
  -webkit-appearance:none;appearance:none;
  margin:0;padding:.4rem 0;border:0;background:none;cursor:pointer;
  font-family:var(--font-body);font-size:.85rem;font-weight:500;line-height:1.2;
  color:var(--on-ink-muted);white-space:nowrap;text-decoration:none;
  transition:color .2s ease;
}
.sky-sticky-bar__link[hidden]{display:none;}
.sky-sticky-bar__link:hover,
.sky-sticky-bar__link:focus-visible{color:var(--yellow);}
.sky-sticky-bar__cta{
  flex:none;display:inline-flex;align-items:center;gap:.35em;
  padding:.85rem 1.5rem;border-radius:100px;
  background-color:var(--yellow);background-image:var(--yellow-grad);
  color:#000;font-family:var(--font-body);font-size:.92rem;font-weight:500;line-height:1.2;
  white-space:nowrap;text-decoration:none;
  transition:filter .2s ease,transform .2s var(--ease);
}
.sky-sticky-bar__cta strong{font-weight:800;}
.sky-sticky-bar__cta:hover{filter:brightness(.95);transform:translateY(-1px);color:#000;}
.sky-sticky-bar__link:focus-visible,
.sky-sticky-bar__cta:focus-visible{outline:2px solid var(--yellow);outline-offset:3px;}

/* The back-to-top button would sit on top of the bar. */
.sky-has-sticky-bar .sk-to-top{bottom:5.75rem;}

@media (max-width:760px){
  .sky-sticky-bar{bottom:.75rem;width:calc(100% - 1.5rem);}
  .sky-sticky-bar__inner{padding:.45rem .45rem .45rem 1.15rem;gap:.75rem;}
  .sky-sticky-bar__links{display:none;}
  .sky-sticky-bar__title{font-size:.92rem;}
  .sky-sticky-bar__cta{padding:.75rem 1.1rem;font-size:.86rem;}
}
@media (prefers-reduced-motion:reduce){
  .sky-sticky-bar,.sky-sticky-bar.is-shown{transition:none;}
}

/* Gallery height cap: the photo is never taller than about 3/4 of the
   screen (720px at most). The gallery narrows to match the photo's shape
   (--sky-gallery-ar, set in inc/product-page.php) and sits centred in its
   column. The thumbnail rail (92px + 14px gap) is added when present. */
.sky-single-product{--sky-gallery-h:min(76vh,720px);}
.sky-single-product__gallery .woocommerce-product-gallery{
  max-width:calc(var(--sky-gallery-h) * var(--sky-gallery-ar,.8));
  margin-inline:auto;
}
.sky-single-product__gallery .woocommerce-product-gallery.sky-gallery--has-thumbs{
  max-width:calc(var(--sky-gallery-h) * var(--sky-gallery-ar,.8) + 106px);
}

/* Phones: the narrower thumbnail rail (58px + 8px gap, see section 2). */
@media (max-width:640px){
  .sky-single-product__gallery .woocommerce-product-gallery.sky-gallery--has-thumbs{
    max-width:calc(var(--sky-gallery-h) * var(--sky-gallery-ar,.8) + 66px);
  }
}
