/* LETO 1.1.11.18 — GLOBAL UI SOURCE OF TRUTH
   One shared system for Home + Shop product cards and category tabs.
   No page-specific product-card geometry. */

:root{
  --leto-card-navy:#173f60;
  --leto-card-beige:#f2e4d4;
  --leto-card-page:#dceef8;
  --leto-card-line:rgba(7,60,92,.10);
}

/* --------------------------------------------------------------------------
   Purpose tagline + purpose section
   -------------------------------------------------------------------------- */
body.leto-site .leto-purpose-tagline{
  margin:0!important;
  padding:14px 0!important;
  background:var(--leto11-light)!important;
  border-top:1px solid var(--leto11-line)!important;
  border-bottom:1px solid var(--leto11-line)!important;
}
body.leto-site .leto-purpose-tagline .leto-ref-container{
  width:min(100% - 56px,1480px)!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.leto-site .leto-purpose-tagline p{
  position:relative!important;
  margin:0!important;
  padding:0 42px!important;
  color:var(--leto11-dark)!important;
  font:600 clamp(18px,1.8vw,26px)/1.2 'Playfair Display',Georgia,serif!important;
  letter-spacing:.015em!important;
  text-align:center!important;
}
body.leto-site .leto-purpose-tagline p:before,
body.leto-site .leto-purpose-tagline p:after{
  content:''!important;
  position:absolute!important;
  top:50%!important;
  width:26px!important;
  height:1px!important;
  background:var(--leto11-dark)!important;
  opacity:.55!important;
}
body.leto-site .leto-purpose-tagline p:before{left:0!important}
body.leto-site .leto-purpose-tagline p:after{right:0!important}

body.leto-site .leto-purpose-section{
  margin:0!important;
  padding:52px 0!important;
  background:var(--leto11-light-2)!important;
}
body.leto-site .leto-purpose-section>.leto-ref-container{
  width:min(100% - 56px,1480px)!important;
  margin:0 auto!important;
}
body.leto-site .leto-purpose-card{
  width:100%!important;
  margin:0!important;
  padding:46px 52px!important;
  display:grid!important;
  grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr)!important;
  gap:62px!important;
  align-items:center!important;
  text-align:left!important;
  background:var(--leto11-beige-2)!important;
  border:1px solid var(--leto-card-line)!important;
  border-radius:22px!important;
  box-shadow:none!important;
}
body.leto-site .leto-purpose-heading{
  min-width:0!important;
  padding-right:34px!important;
  border-right:1px solid rgba(7,60,92,.13)!important;
}
body.leto-site .leto-purpose-kicker{
  margin:0 0 12px!important;
  color:var(--leto11-dark)!important;
  font:700 11px/1.2 'DM Sans',Arial,sans-serif!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
}
body.leto-site .leto-purpose-card h2{
  margin:0!important;
  color:var(--leto11-dark)!important;
  font:700 clamp(38px,4vw,58px)/.98 'Playfair Display',Georgia,serif!important;
  letter-spacing:-.025em!important;
}
body.leto-site .leto-purpose-rule{
  display:block!important;
  width:68px!important;
  height:3px!important;
  margin-top:20px!important;
  border-radius:99px!important;
  background:var(--leto11-dark)!important;
}
body.leto-site .leto-purpose-copy{min-width:0!important;max-width:900px!important}
body.leto-site .leto-purpose-copy p{
  margin:0 0 13px!important;
  color:var(--leto11-text)!important;
  font:400 16px/1.68 'DM Sans',Arial,sans-serif!important;
}
body.leto-site .leto-purpose-copy .leto-purpose-lead{
  color:var(--leto11-dark)!important;
  font-size:19px!important;
  line-height:1.5!important;
  font-weight:600!important;
}
body.leto-site .leto-purpose-copy p:last-child{margin-bottom:0!important}

/* --------------------------------------------------------------------------
   GLOBAL CATEGORY TABS — Home + Shop
   -------------------------------------------------------------------------- */
body.leto-site .leto-v117-category-bar,
body.leto-site .leto-v117-shop-toolbar{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
}
body.leto-site .leto-v117-category-inner,
body.leto-site .leto-v117-shop-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
}
body.leto-site .leto-v117-category-inner::-webkit-scrollbar,
body.leto-site .leto-v117-shop-toolbar::-webkit-scrollbar{display:none!important}
body.leto-site .leto-v117-category-inner a,
body.leto-site .leto-v117-shop-toolbar .chip{
  flex:0 0 auto!important;
  min-width:0!important;
  min-height:38px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  font:700 12px/1 'DM Sans',Arial,sans-serif!important;
}

/* --------------------------------------------------------------------------
   GLOBAL PRODUCT GRID + CARD SYSTEM
   Same markup + geometry on Home, Shop, product-category and search.
   -------------------------------------------------------------------------- */
body.leto-site .leto-v117-grid,
body.leto-site .leto-v117-shop-grid,
body.leto-site .leto-related .products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  grid-auto-rows:1fr!important;
  align-items:stretch!important;
  overflow:visible!important;
}

body.leto-site .product-card.leto-v117-card{
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  box-shadow:none!important;
  background:var(--leto-card-navy)!important;
  transform:none!important;
}

/* Never rely on Safari flex/aspect-ratio alone: media gets an explicit block size. */
body.leto-site .product-card.leto-v117-card .leto-v117-card-media{
  display:block!important;
  position:relative!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:clamp(210px,20vw,310px)!important;
  min-width:0!important;
  min-height:210px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:var(--leto-card-beige)!important;
  visibility:visible!important;
  opacity:1!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-media>a{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-media img{
  display:block!important;
  position:static!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:center var(--leto-card-media-y,50%)!important;
  transform:translateY(var(--leto-card-media-shift,0)) scale(var(--leto-card-media-scale,1))!important;
  transform-origin:center center!important;
  filter:none!important;
  visibility:visible!important;
  opacity:1!important;
}

body.leto-site .product-card.leto-v117-card .leto-v117-card-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  min-height:0!important;
  padding:14px 15px 14px!important;
  overflow:visible!important;
  background:var(--leto-card-navy)!important;
  color:#fff!important;
  text-align:left!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-body h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  min-height:2.36em!important;
  max-height:2.36em!important;
  margin:0 0 6px!important;
  color:#fff!important;
  font:600 clamp(17px,1.45vw,21px)/1.18 'Playfair Display',Georgia,serif!important;
  letter-spacing:-.015em!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-body h3 a{color:#fff!important;text-decoration:none!important}
body.leto-site .product-card.leto-v117-card .leto-v117-card-body p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
  min-height:4.2em!important;
  max-height:4.2em!important;
  margin:0 0 9px!important;
  color:#f6f3ef!important;
  font:400 12.5px/1.4 'DM Sans',Arial,sans-serif!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-price{
  display:block!important;
  flex:0 0 auto!important;
  min-height:1.35em!important;
  margin:auto 0 0!important;
  padding:0!important;
  color:#fff!important;
  font:700 15px/1.35 'DM Sans',Arial,sans-serif!important;
  text-align:left!important;
  visibility:visible!important;
  opacity:1!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-card-price *{color:#fff!important;font:inherit!important}
body.leto-site .product-card.leto-v117-card .leto-v117-cart-button{
  display:flex!important;
  position:static!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  height:auto!important;
  margin:9px 0 0!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--leto-card-beige)!important;
  color:#123b5b!important;
  font:700 13px/1.1 'DM Sans',Arial,sans-serif!important;
  text-align:center!important;
  text-decoration:none!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:visible!important;
  clip:auto!important;
}
body.leto-site .product-card.leto-v117-card .leto-v117-cart-button:hover{background:#fff!important;color:#123b5b!important}

@media(max-width:1100px){
  body.leto-site .leto-v117-grid,
  body.leto-site .leto-v117-shop-grid,
  body.leto-site .leto-related .products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-media{height:clamp(210px,28vw,290px)!important}
}

@media(max-width:782px){
  body.leto-site .leto-purpose-tagline{padding:11px 0!important}
  body.leto-site .leto-purpose-tagline .leto-ref-container{width:min(100% - 24px,780px)!important}
  body.leto-site .leto-purpose-tagline p{padding:0 26px!important;font-size:16px!important}
  body.leto-site .leto-purpose-tagline p:before,
  body.leto-site .leto-purpose-tagline p:after{width:16px!important}

  body.leto-site .leto-purpose-section{padding:30px 0!important}
  body.leto-site .leto-purpose-section>.leto-ref-container{width:min(100% - 24px,780px)!important}
  body.leto-site .leto-purpose-card{
    grid-template-columns:1fr!important;
    gap:16px!important;
    padding:24px 20px!important;
    border-radius:18px!important;
  }
  body.leto-site .leto-purpose-heading{padding:0 0 16px!important;border-right:0!important;border-bottom:1px solid rgba(7,60,92,.13)!important}
  body.leto-site .leto-purpose-card h2{font-size:32px!important}
  body.leto-site .leto-purpose-rule{width:52px!important;height:2px!important;margin-top:14px!important}
  body.leto-site .leto-purpose-copy .leto-purpose-lead{font-size:15.5px!important;line-height:1.48!important}
  body.leto-site .leto-purpose-copy p{font-size:13px!important;line-height:1.55!important;margin-bottom:9px!important}

  /* Compact six main tabs: all visible on standard phones, still scrollable on narrower screens. */
  body.leto-site .leto-v117-category-inner,
  body.leto-site .leto-v117-shop-toolbar{
    justify-content:flex-start!important;
    gap:5px!important;
    padding:7px 8px!important;
    scroll-padding-inline:8px!important;
  }
  body.leto-site .leto-v117-category-inner a,
  body.leto-site .leto-v117-shop-toolbar .chip{
    min-height:32px!important;
    padding:0 10px!important;
    font-size:10.5px!important;
    letter-spacing:-.01em!important;
  }

  body.leto-site .leto-v117-grid,
  body.leto-site .leto-v117-shop-grid,
  body.leto-site .leto-related .products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    grid-auto-rows:1fr!important;
    align-items:stretch!important;
  }
  body.leto-site .product-card.leto-v117-card{height:100%!important;min-height:0!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-media{
    display:block!important;
    width:100%!important;
    height:clamp(148px,43vw,205px)!important;
    min-height:148px!important;
    flex:0 0 auto!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-card-media>a,
  body.leto-site .product-card.leto-v117-card .leto-v117-card-media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body{
    display:flex!important;
    flex:1 1 auto!important;
    min-height:0!important;
    padding:10px 9px 9px!important;
    overflow:visible!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body h3{
    min-height:2.34em!important;
    max-height:2.34em!important;
    margin-bottom:5px!important;
    font-size:13.5px!important;
    line-height:1.17!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body p{
    min-height:3.75em!important;
    max-height:3.75em!important;
    margin-bottom:7px!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-card-price{
    display:block!important;
    min-height:1.25em!important;
    margin:auto 0 0!important;
    font-size:12px!important;
    line-height:1.25!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.leto-site .product-card.leto-v117-card .leto-v117-cart-button{
    display:flex!important;
    width:100%!important;
    min-height:34px!important;
    margin-top:7px!important;
    padding:7px 5px!important;
    border-radius:7px!important;
    font-size:10.5px!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

@media(max-width:390px){
  body.leto-site .leto-v117-category-inner a,
  body.leto-site .leto-v117-shop-toolbar .chip{padding:0 8px!important;font-size:9.5px!important}
  body.leto-site .leto-v117-grid,
  body.leto-site .leto-v117-shop-grid,
  body.leto-site .leto-related .products{gap:8px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-media{height:clamp(142px,42vw,172px)!important;min-height:142px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body{padding:9px 8px 8px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body h3{font-size:12.5px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-body p{font-size:10px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-card-price{font-size:11.5px!important}
  body.leto-site .product-card.leto-v117-card .leto-v117-cart-button{font-size:10px!important;min-height:32px!important}
}

/* --------------------------------------------------------------------------
   Locations page
   -------------------------------------------------------------------------- */
body.leto-site .leto-locations-hero{
  padding:68px 0 42px!important;
  background:var(--leto11-light)!important;
  border-bottom:1px solid var(--leto11-line)!important;
}
body.leto-site .leto-locations-hero .leto-ref-container,
body.leto-site .leto-locations-section .leto-ref-container{
  width:min(100% - 56px,1480px)!important;
  margin:0 auto!important;
}
body.leto-site .leto-locations-hero .eyebrow{margin-bottom:10px!important;color:var(--leto11-dark)!important}
body.leto-site .leto-locations-hero h1{
  max-width:760px!important;
  margin:0 0 16px!important;
  color:var(--leto11-dark)!important;
  font:500 clamp(46px,6vw,82px)/.96 'DM Sans',Arial,sans-serif!important;
  letter-spacing:-.055em!important;
}
body.leto-site .leto-locations-hero p{
  max-width:670px!important;
  margin:0!important;
  color:#31536c!important;
  font:400 17px/1.6 'DM Sans',Arial,sans-serif!important;
}
body.leto-site .leto-locations-section{
  padding:42px 0 72px!important;
  background:var(--leto11-light-2)!important;
}
body.leto-site .leto-locations-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:28px!important;
}
body.leto-site .leto-location-filters{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body.leto-site .leto-location-filters button{
  min-height:42px!important;
  padding:0 18px!important;
  border:1px solid rgba(7,60,92,.12)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--leto11-dark)!important;
  font:700 13px/1 'DM Sans',Arial,sans-serif!important;
  cursor:pointer!important;
}
body.leto-site .leto-location-filters button.active{
  background:var(--leto11-dark)!important;
  border-color:var(--leto11-dark)!important;
  color:#fff!important;
}
body.leto-site .leto-location-search{display:block!important;min-width:min(380px,100%)!important}
body.leto-site .leto-location-search input{
  width:100%!important;
  height:46px!important;
  padding:0 16px!important;
  border:1px solid rgba(7,60,92,.16)!important;
  border-radius:12px!important;
  outline:0!important;
  background:#fff!important;
  color:var(--leto11-dark)!important;
  font:500 14px/1 'DM Sans',Arial,sans-serif!important;
}
body.leto-site .leto-location-search input:focus{border-color:var(--leto11-dark)!important;box-shadow:0 0 0 3px rgba(7,60,92,.08)!important}
body.leto-site .leto-locations-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:24px!important;
  align-items:stretch!important;
}
body.leto-site .leto-location-card{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(270px,.85fr)!important;
  min-width:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(7,60,92,.11)!important;
  border-radius:22px!important;
}
body.leto-site .leto-location-card[hidden]{display:none!important}
body.leto-site .leto-location-map{min-height:330px!important;background:#d9eaf3!important}
body.leto-site .leto-location-map iframe{display:block!important;width:100%!important;height:100%!important;min-height:330px!important;border:0!important}
body.leto-site .leto-location-body{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
  padding:34px!important;
  background:var(--leto11-beige-2)!important;
}
body.leto-site .leto-location-city{
  margin:0 0 12px!important;
  color:var(--leto11-dark)!important;
  font:800 11px/1 'DM Sans',Arial,sans-serif!important;
  text-transform:uppercase!important;
  letter-spacing:.16em!important;
}
body.leto-site .leto-location-body h2{
  margin:0 0 12px!important;
  color:var(--leto11-dark)!important;
  font:600 clamp(27px,2.4vw,38px)/1.06 'Playfair Display',Georgia,serif!important;
  letter-spacing:-.025em!important;
}
body.leto-site .leto-location-body p{
  margin:0 0 22px!important;
  color:#31536c!important;
  font:400 14px/1.55 'DM Sans',Arial,sans-serif!important;
}
body.leto-site .leto-location-directions{margin-top:auto!important;min-height:44px!important}
body.leto-site .leto-location-empty{
  margin:28px 0 0!important;
  padding:24px!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--leto11-dark)!important;
  text-align:center!important;
}
body.leto-site .leto-location-empty[hidden]{display:none!important}

@media(max-width:1180px){
  body.leto-site .leto-locations-grid{grid-template-columns:1fr!important}
}
@media(max-width:782px){
  body.leto-site .leto-locations-hero{padding:42px 0 28px!important}
  body.leto-site .leto-locations-hero .leto-ref-container,
  body.leto-site .leto-locations-section .leto-ref-container{width:min(100% - 24px,780px)!important}
  body.leto-site .leto-locations-hero h1{font-size:46px!important}
  body.leto-site .leto-locations-hero p{font-size:14px!important;line-height:1.55!important}
  body.leto-site .leto-locations-section{padding:26px 0 46px!important}
  body.leto-site .leto-locations-toolbar{align-items:stretch!important;flex-direction:column!important;gap:12px!important;margin-bottom:18px!important}
  body.leto-site .leto-location-filters{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:2px!important;-webkit-overflow-scrolling:touch!important}
  body.leto-site .leto-location-filters button{flex:0 0 auto!important;min-height:38px!important;padding:0 15px!important;font-size:12px!important}
  body.leto-site .leto-location-search{min-width:0!important;width:100%!important}
  body.leto-site .leto-location-search input{height:44px!important}
  body.leto-site .leto-locations-grid{gap:16px!important}
  body.leto-site .leto-location-card{grid-template-columns:1fr!important;border-radius:18px!important}
  body.leto-site .leto-location-map,
  body.leto-site .leto-location-map iframe{min-height:260px!important;height:260px!important}
  body.leto-site .leto-location-body{padding:22px 20px 24px!important}
  body.leto-site .leto-location-body h2{font-size:29px!important}
  body.leto-site .leto-location-body p{margin-bottom:18px!important;font-size:13px!important}
}


/* 1.1.11.26 — client-requested subject alignment.
   Keep the shared card frame unchanged; only correct focal position where the
   supplied source photo places the cake noticeably lower than neighboring cakes. */
body.leto-site .product-card.leto-v117-card[data-product-slug="german-fudge-cake"]{
  --leto-card-media-shift:-7%;
  --leto-card-media-scale:1.04;
}
@media(max-width:782px){
  body.leto-site .product-card.leto-v117-card[data-product-slug="german-fudge-cake"]{
    --leto-card-media-shift:-6%;
    --leto-card-media-scale:1.03;
  }
}
