/* Shishana product card (0.9.31): one layout for every card. Markup: includes/card.php (server) and assets/card.js (cards drawn
   in the browser). Loads in the head after the live styles, so nothing moves while the page loads.

   Order, top to bottom:  brand  >  name (two lines always reserved)  >  stars and count  >  swatches or flavour line (only
   when the product has them)  >  price  >  price caption  >  button.
   Rhythm: 4px under the brand, 6px above the stars, 8px above swatches and price, 10px above the button.
   The card is a flex column and the price takes the spare height (margin-top:auto), so in a row the price and the button of
   every card sit on the same line, whatever the name length and whether or not a card has swatches.
   The star row is ALWAYS there: five light grey stars and "(0)" with no reviews. No card changes height because of reviews. */

/* ---------- 1. star row (also used as a compact line in the search dropdown) ---------- */
.shs-stars{--shs-star:11px;display:flex;align-items:center;gap:5px;flex:none;box-sizing:border-box;height:16px;min-width:0;margin:6px 0 0;padding:0;line-height:1;color:var(--shs-ink,#111);text-align:left;pointer-events:none}
.shs-stars__row{position:relative;display:block;flex:none;width:calc(var(--shs-star)*5.625);height:var(--shs-star);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.2 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E") left center/calc(var(--shs-star)*1.125) var(--shs-star) repeat-x;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.2 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E") left center/calc(var(--shs-star)*1.125) var(--shs-star) repeat-x}
.shs-stars__row::before{content:"";position:absolute;inset:0;background:currentColor;opacity:.2}
.shs-stars__fill{position:absolute;left:0;top:0;bottom:0;display:block;background:currentColor}
.shs-stars--none .shs-stars__fill{display:none}
.shs-stars__n{flex:none;font:400 11px/16px var(--font--title,sans-serif);letter-spacing:.02em;font-style:normal;font-variant-numeric:lining-nums tabular-nums;color:var(--shs-muted,#6b6b6b);text-decoration:none}
/* a row waiting for its rating (cards drawn in the browser): the space is held, nothing is shown yet */
.shs-stars.is-pending > *{visibility:hidden}
.shs-stars--row{--shs-star:10px;display:flex;height:14px;margin:1px 0}
.shs-stars--row .shs-stars__n{font-size:10.5px;line-height:14px}

/* ---------- 2. the card used by rails, shelves, search results, favourites and the product page ---------- */
.shs-card.shs-card .shs-card__body{row-gap:0;column-gap:0}
.shs-card.shs-card .shs-card__vendor{flex:none;height:14px;margin:0 0 4px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shs-card.shs-card .shs-card__title{flex:none;margin:0;line-height:1.36;min-height:2.72em;max-height:2.72em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shs-card.shs-card .shs-card__meta{flex:none;height:auto;min-height:0;margin:8px 0 0}
.shs-card.shs-card .shs-card__meta:empty{display:none}
.shs-card.shs-card .shs-card__meta:not(:has(*)){display:none}
.shs-card.shs-card .shs-card__body > .shs-card__price{flex:none;height:auto;margin:auto 0 0;padding:8px 0 0;line-height:22px}
.shs-card.shs-card .shs-card__body > .shs-price-cap{flex:none;margin:2px 0 0}
.shs-card.shs-card .shs-card__body > .shs-card__offer{flex:none;margin:4px 0 0}
.shs-card.shs-card .shs-card__body > .shs-card-btn,
.shs-card.shs-card .shs-card__body > .shs-card-add,
.shs-card.shs-card .shs-card__body > .shs-fav-actions{flex:none;margin-top:10px}
.shs-card.shs-card .shs-card-add .shs-card-btn{margin-top:0}

/* ---------- 3. collection and brand grids (theme card): same order, left aligned, rows of equal height ---------- */
.collection__cards{display:flex;flex-wrap:wrap}
.collection__cards > .o-layout__item{display:flex;min-width:0}
.collection__cards > .o-layout__item > .product-card{flex:1 1 auto;width:100%;min-width:0}
.product-card .product-card__details{text-align:left}
.product-card .product-card__details > .shs-card__vendor{flex:none;height:14px;margin:0 0 4px;font:400 10px/14px var(--font--title,sans-serif);letter-spacing:.16em;text-transform:uppercase;color:var(--shs-muted,#6b6b6b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card .product-card__details > .product-card__link{flex:none;display:block}
.product-card .product-card__details > .shs-stars{margin:6px 0 0}
.product-card .product-card__details > .product-card__details__hover{flex:1 1 auto;display:flex;flex-direction:column;margin:0}
.product-card .product-card__details__hover > product-card-variant-swatches{order:1;flex:none;height:auto;margin:8px 0 0;justify-content:flex-start}
.product-card .product-card__details__hover > product-card-variant-swatches:empty{display:none}
.product-card .product-card__swatch,.product-card .product-card__swatch__items{justify-content:flex-start}
.product-card .product-card__details__hover > .product-card__link{order:2;flex:none;height:auto;margin:auto 0 0;padding:8px 0 0;line-height:22px}
.product-card .product-card__details__hover > .shs-price-cap{order:3;flex:none;margin:2px 0 0}
.product-card .product-card__details > .shs-card-btn,
.product-card .product-card__details > .shs-card-add{flex:none;margin-top:10px}
/* the button is added by the site script when the card comes into view: its space (10 + 44) is held until then */
.product-card:not([data-shs-enh]) .product-card__details::after{height:54px}

/* ---------- 4. compact cards: basket recommendations and the search dropdown line ---------- */
.product-card--mini .product-card__details > .shs-stars{margin:4px 0 0}
.shs-so__pt > .shs-stars--row{justify-self:start}

@media (prefers-reduced-motion:reduce){.shs-stars,.shs-stars *{transition:none!important}}

/* ---------- 5. basket drawer and basket page: the pre-order line (class set by card.js) ----------
   "PRE-ORDER" as a small caps label in ink, the note beside it in small grey, as on the cards. The ": " between the two parts is a
   bare text node in the site's template, so the row's own font size is zero and each part sets its size again. */
.cart-item__meta-inline.shs-line-preorder{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:0;margin:6px 0 0;font-size:0;line-height:0}
.cart-item__meta-inline.shs-line-preorder property-name.cart-item__meta{display:inline-block;margin:0;font:400 10px/16px var(--font--title,sans-serif);letter-spacing:.16em;text-transform:uppercase;color:var(--shs-ink,#111)}
.cart-item__meta-inline.shs-line-preorder property-value.cart-item__meta{display:inline-block;margin:0;font:400 12px/16px var(--font--title,sans-serif);letter-spacing:.01em;text-transform:none;color:var(--shs-muted,#6b6b6b)}

/* ---------- Breadcrumbs everywhere = the product page breadcrumb (0.9.32) ----------
   Reference (product page): 30px above (24px up to 767px), 30px below (18px up to 979px), 11.56px text in ink, a thin 8px chevron
   with 9px either side, one line that scrolls sideways on small screens. Brand pages and collection headers used their own
   "shs-breadcrumb" (16/14px padding, slash separators, extra space under it); they now follow the same rhythm. Each breadcrumb stays
   aligned with its own page container, so it lines up with the content below it. */
.shs-breadcrumb:not([hidden]){display:block;margin:0 0 30px!important;padding:30px 0 0!important;font-size:11.56px;line-height:22.5px}
.shs-breadcrumb ol{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.shs-breadcrumb ol::-webkit-scrollbar{display:none}
.shs-breadcrumb li{display:inline-flex;align-items:center;margin:0;padding:0;font-size:11.56px;line-height:12.75px;letter-spacing:normal;color:#111}
.shs-breadcrumb li a,.shs-breadcrumb li span{color:#111;text-decoration:none;font-size:inherit;letter-spacing:inherit}
.shs-breadcrumb li a:hover{text-decoration:underline;text-underline-offset:3px}
.shs-breadcrumb li a:focus-visible{outline:1px solid #111;outline-offset:3px}
.shs-breadcrumb li+li::before{content:""!important;display:inline-block;width:8.16px;height:8.16px;margin:0 9px!important;opacity:1;
  background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M13.87 4.75L33.12 24 13.87 43.25' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M13.87 4.75L33.12 24 13.87 43.25' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat}
/* whatever follows a breadcrumb starts right after its 30px, with no extra space of its own */
.shs-breadcrumb:not([hidden])+*{margin-top:0!important}
@media (max-width:979px){.shs-breadcrumb:not([hidden]){margin-bottom:18px!important}}
@media (max-width:767px){.shs-breadcrumb:not([hidden]){padding-top:24px!important}}

/* No reviews yet: no stars at all (owner, 21 Nov). On grid cards the row keeps its height, so prices and buttons still line up across
   a row; in the one-line search dropdown it takes no space. Screen readers skip it. */
.shs-stars--none{visibility:hidden}
.shs-stars--none.shs-stars--row{display:none}

/* ---------- Basket (drawer and basket page), owner 21 Nov ---------- */
/* 1. Delivery box: the box grows with its text (two lines, larger text, narrow drawer) and the yellow progress line gets its own
      line under the text instead of being laid over it, so nothing is ever cut off. */
.shs-chase--drawer,.shs-chase--page{height:auto!important;max-height:none!important;padding-bottom:0!important}
.shs-chase--drawer .shs-chase__row,.shs-chase--page .shs-chase__row{height:auto!important;max-height:none!important;padding-bottom:12px!important}
.shs-chase--drawer .shs-chase__detail,.shs-chase--page .shs-chase__detail{overflow:visible;white-space:normal;text-overflow:clip}
.shs-chase--drawer .shs-chase__track,.shs-chase--page .shs-chase__track{position:relative!important;left:auto;right:auto;bottom:auto;margin:0 -16px;border-radius:0}
.shs-chase-slot{min-height:0!important}
/* 2. 0.9.53 (owner rule): every product picture in the basket sits on the same grey tile as the rest of the site, lines and
   "You may also like" alike. White-background photos are multiplied into the tile so no white box shows. */
.cart .cart-item__media .o-ratio,#modal-cart .cart-item__media .o-ratio,cart-recommendations .product-card__top,cart-recommendations .product-card__media{background:var(--shs-tile,#f4f4f4)!important;border-radius:var(--shs-radius,8px);overflow:hidden}
.cart .cart-item__image,#modal-cart .cart-item__image,.cart .o-ratio--bg-product .o-ratio__content,#modal-cart .o-ratio--bg-product .o-ratio__content,cart-recommendations .product-card__media .o-ratio,cart-recommendations .product-card__media .o-ratio__content{background:transparent!important}
.cart .cart-item__image,#modal-cart .cart-item__image,cart-recommendations .product-card__img{object-fit:contain!important;mix-blend-mode:multiply;padding:6%;box-sizing:border-box}
/* 3. "You may also like": no grey panel; a hairline above it, quiet white cards with a hairline edge */
cart-recommendations{background:transparent!important;border-top:1px solid var(--shs-line,#e4e4e4);border-radius:0!important;padding-left:0!important;padding-right:0!important}
cart-recommendations .product-card{background:#fff!important;border:1px solid var(--shs-line,#e4e4e4)}
/* desktop basket page: moved under the basket lines by card.js (class set there) */
.cart__contents>cart-recommendations.shs-rec-moved{margin-top:32px;padding-top:28px}
cart-recommendations [class*="o-ratio"],cart-recommendations [class*="o-ratio"]::before,#modal-cart [class*="o-ratio"],#modal-cart [class*="o-ratio"]::before,.cart [class*="o-ratio--bg"],.cart [class*="o-ratio--bg"]::before,cart-recommendations .product-card__img,#modal-cart .product-card__img{background:transparent!important;background-color:transparent!important}

/* 0.9.37 postcode dialog: no empty gap under Check, links centred with a hairline above (desktop popover, iPad and phone sheet) */
.shs-dq__r:empty{min-height:0!important;margin-top:0!important}
.shs-dq__foot{justify-content:center!important;align-items:center;flex-wrap:wrap;gap:6px 22px;margin-top:20px!important;padding-top:16px;border-top:1px solid #ececec}
.shs-dq__foot .shs-more{min-height:32px!important;height:auto!important;display:inline-flex;align-items:center}
.shs-dq__foot .shs-dq__clear{min-height:32px!important}
.shs-dq__skip{display:block!important;margin:6px auto 0!important;text-align:center;min-height:32px;line-height:32px}
/* 0.9.53 free gift line: a quiet tag where the quantity buttons were */
.shs-gift-line .shs-gift-tag{display:inline-block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--shs-ink,#111);padding:6px 0}
/* 0.9.57 (owner): stars show on dark sections too (they were ink on ink, so only the "(1)" was visible); no review count on cards */
.shs-sec--dark .shs-stars,.shs-feature .shs-stars{color:#fff}
.shs-card .shs-stars__n,.product-card .shs-stars__n{display:none}
