/*
Theme Name: Lambretta Legshield
Theme URI: https://lambretta-images.com/
Description: Standalone pastel theme. Slow outline fade over drifting pastel bands. Speeds are under Appearance, Legshield. Preview without activating.
Author: Lambretta Images Archive
Version: 1.8.51
Text Domain: lia-legshield
Requires at least: 6.0
*/

:root {
  --lia-cream: #f4efe4;
  --lia-ink: #2c3338;
  --lia-muted: #6a726e;
  --lia-gold: #c4a35a;
  --lia-r: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--lia-cream);
  color: var(--lia-ink);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

a { color: #4f7a6b; text-decoration: none; }
a:hover { color: #c47a55; }

/* One surface — no header/body line */
.lia-flow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lia-bands {
  position: absolute;
  inset: -28%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.lia-band {
  position: absolute;
  width: 130%;
  height: 130%;
  left: -8%;
  top: -8%;
}
.lia-band path { opacity: 0.9; }
.lia-band-a {
  animation: lia-drift-a var(--lia-drift, 120s) linear infinite;
}
.lia-band-b {
  animation: lia-drift-b calc(var(--lia-drift, 120s) * 1.4) linear infinite;
}
@keyframes lia-drift-a {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(0, 0, 0) rotate(360deg); }
}
@keyframes lia-drift-b {
  from { transform: translate3d(2%, 1%, 0) rotate(0deg); }
  to { transform: translate3d(2%, 1%, 0) rotate(-360deg); }
}
.lia-flow .lia-shape { z-index: 1; }

.lia-flow .lia-shape {
  position: absolute;
  right: 0;
  top: 4vh;
  width: min(58vw, 760px);
  height: 88vh;
  opacity: 0;
}
.lia-flow .lia-shape svg {
  width: 100%;
  height: 100%;
  position: static;
  display: block;
}
.lia-shape .wash { fill-opacity: 0.46; }
.lia-shape .detail { fill: #c98468; }
.lia-shape .ink { fill: #5f8a7c; fill-opacity: 0.78; }
.lia-wash-duck .wash { fill: #c5ddd4; }
.lia-wash-mint .wash { fill: #d7ebe3; }
.lia-wash-peach .wash { fill: #f0d0b8; }
.lia-wash-cream .wash { fill: #eadcc4; }
.lia-wash-duck .ink { fill: #5f8a7c; }
.lia-wash-mint .ink { fill: #6a9084; }
.lia-wash-peach .ink { fill: #8a7468; }
.lia-wash-cream .ink { fill: #6d7f78; }
@media (max-width: 720px) {
  .lia-flow .lia-shape {
    width: 92vw;
    height: 70vh;
    top: 18vh;
    right: 4vw;
    opacity: 0;
  }
}

.lia-site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lia-header,
.lia-main,
.lia-footer {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lia-header {
  position: relative;
  z-index: 2;
  padding: 22px 22px 8px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.lia-brand {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lia-ink);
  margin: 0 0 4px;
}
.lia-brand a { color: inherit; }
.lia-tagline {
  margin: 0 0 16px;
  color: var(--lia-muted);
  font-style: italic;
}

.lia-header nav,
.lia-header .menu {
  position: static;
  float: none;
  width: 100%;
  clear: both;
}
.lia-header nav ul,
.lia-nav,
.lia-header .menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: flex-start;
  padding: 0;
  margin: 2px 0 12px;
  list-style: none;
  background: none;
  border: 0;
  position: static;
  float: none;
  width: 100%;
}
.lia-header nav li,
.lia-nav li {
  position: static !important;
  float: none !important;
  display: block;
  margin: 0;
  padding: 0;
}
.lia-header nav ul ul,
.lia-nav .sub-menu {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  list-style: none;
}
.lia-nav li.is-open > .sub-menu,
.lia-header nav li.is-open > ul {
  display: flex !important;
  height: auto !important;
  min-height: 0;
  margin: 4px 0 2px;
}
.lia-nav > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px 4px;
}
.lia-nav {
  flex-wrap: nowrap;
  align-items: center;
  overflow: visible;
}
.lia-nav > li.menu-item-has-children {
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  align-content: flex-start;
}
.lia-nav.is-stacked {
  flex-wrap: wrap;
}
.lia-nav.is-stacked > li.menu-item-has-children,
.lia-nav.is-stacked > li.lia-nav-account {
  flex: 0 0 100%;
  width: 100%;
}
.lia-header nav {
  position: relative;
}
.lia-nav:not(.is-stacked) > li.is-open {
  display: flex;
  position: relative;
  flex-wrap: nowrap;
}
.lia-nav:not(.is-stacked) > li.is-open > .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  flex: none;
  width: max-content;
  max-width: 100%;
  z-index: 5;
  margin: 0;
}
.lia-nav > li.menu-item-has-children > a {
  margin-left: 0;
}
.lia-nav > li.lia-nav-account {
  flex-basis: auto;
  width: auto;
}
.lia-nav.is-stacked > li.lia-nav-account {
  flex-basis: 100%;
  width: 100%;
}

.lia-sub-toggle {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lia-muted);
  cursor: pointer;
  position: relative;
}
.lia-sub-toggle::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 4px auto 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.lia-nav li.is-open > .lia-sub-toggle {
  color: #c47a55;
}
.lia-nav li.is-open > .lia-sub-toggle::before {
  transform: rotate(225deg);
  margin-top: 8px;
}
.lia-nav a {
  display: inline-block;
  background: var(--lia-gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 16px;
  text-decoration: none;
}
.lia-nav .sub-menu a {
  padding: 6px 12px;
  font-size: 0.85rem;
}
.lia-nav a:hover,
.lia-nav .current-menu-item > a,
.lia-nav .current-menu-ancestor > a {
  background: #c47a55;
  color: #fff;
}

.lia-header-media {
  margin: 8px auto 0;
  max-width: 1080px;
  border-radius: 0 0 48px 48px;
  overflow: hidden;
}
.lia-header-media img {
  display: block;
  width: 100%;
  height: auto;
}

.lia-main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px 48px;
  width: 100%;
}

.lia-main h1,
.lia-main h2,
.entry-title,
.page-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}

.lia-main article,
.lia-hub-block,
.lia-tuner-search,
.widget {
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: var(--lia-r);
  box-shadow: 0 14px 32px rgba(44, 51, 56, 0.07);
  padding: 16px 18px;
  margin: 0 0 18px;
}

.lia-hub-card,
.lia-shop-child,
.lia-ebay-card,
.lia-hdr-card,
.lia-cat-teaser-img,
.entry-content img,
.post-thumbnail img {
  border-radius: var(--lia-r);
  overflow: hidden;
}

.lia-hub-card,
.lia-shop-child,
.lia-ebay-card {
  background: #243034;
  box-shadow: 0 12px 28px rgba(44, 51, 56, 0.1);
}

button:not(.menu-toggle):not(.lia-sub-toggle),
.button,
input[type="submit"],
.lia-hdr-search button,
.lia-ebay-buy {
  background: var(--lia-gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
}

.lia-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 22px 36px;
  color: var(--lia-muted);
  width: 100%;
}
.lia-site-by {
  margin: 2px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.lia-site-by a {
  color: var(--lia-muted);
  text-decoration: none;
}
.lia-site-by a:hover { color: #c47a55; }

.lia-hdr-search-wrap .lia-hdr-search {
  background: rgba(44, 51, 56, 0.45);
  border-radius: 999px;
}

body.category #primary,
body.category .content-area,
body.archive #primary,
body.archive .content-area {
  float: none;
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
  box-sizing: border-box;
}
body.category #secondary,
body.category #sidebar,
body.archive #secondary,
body.archive #sidebar,
body.category .widget-area {
  display: none;
}
.lia-archive-ebay {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}







.lia-colour-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}
button.lia-colour-stop,
button.lia-subscribe-open {
  display: inline-block;
  width: auto;
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 2px 8px;
  background: var(--lia-gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}
button.lia-colour-stop:hover,
button.lia-subscribe-open:hover { background: #c47a55; color: #fff; }
body.lia-colours-paused .lia-band-a,
body.lia-colours-paused .lia-band-b {
  animation-play-state: paused;
}

.lia-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 16px;
}
.lia-shop-links a {
  color: var(--lia-ink);
}
.lia-shop-links a:hover {
  color: #c47a55;
}
body.woocommerce #sidebar,
body.woocommerce-page #sidebar,
body.woocommerce .widget_pages,
body.woocommerce .widget_categories,
body.woocommerce .widget_archive,
body.woocommerce .widget_nav_menu,
body.woocommerce .widget_search,
body.woocommerce-page .widget_pages,
body.woocommerce-page .widget_categories,
body.woocommerce-page .widget_archive,
body.woocommerce-page .widget_nav_menu,
body.woocommerce-page .widget_search {
  display: none;
}

.lia-guess-line {
  margin: 4px 0 10px;
  color: var(--lia-muted);
}
.lia-guess {
  max-width: 420px;
  margin: 0 0 12px;
}
.lia-guess-q {
  margin: 0 0 8px;
  color: var(--lia-ink);
}
.lia-guess-input {
  width: 100%;
  max-width: 320px;
}
.lia-guess-answer,
.lia-guess-score {
  margin: 8px 0 0;
  color: var(--lia-ink);
}
.lia-guess-score {
  color: var(--lia-muted);
}

.lia-child-links {
  margin: 22px 0 18px;
}
.lia-child-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lia-child-links a {
  color: var(--lia-ink);
}
.lia-child-links a:hover {
  color: #c47a55;
}

.lia-hub-bc {
  margin: 4px 0 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--lia-muted);
}
.lia-hub-bc a {
  color: var(--lia-ink);
}
.lia-hub-bc a:hover {
  color: var(--lia-gold);
}
.lia-bc-current {
  color: var(--lia-ink);
}

.lia-pages .nav-links,
.lia-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.lia-pages .page-numbers {
  display: inline-block;
  min-width: 2.1rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--lia-ink);
  text-align: center;
  box-shadow: 0 8px 18px rgba(44, 51, 56, 0.06);
}
.lia-pages .page-numbers.current {
  background: #e7a98a;
  color: #fff;
}
.lia-pages a.page-numbers:hover {
  background: #8fbfb0;
  color: #fff;
}

.page-links.lia-pages {
  margin-top: 28px;
}
.page-links a,
.page-links .current,
.page-links .post-page-numbers {
  display: inline-block;
  min-width: 2.1rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--lia-ink);
  text-align: center;
  box-shadow: 0 8px 18px rgba(44, 51, 56, 0.06);
}
.page-links .current,
.page-links span.post-page-numbers {
  background: #e7a98a;
  color: #fff;
}
.page-links a:hover {
  background: #8fbfb0;
  color: #fff;
}
.lia-pages .dots {
  background: transparent;
  box-shadow: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

body.lia-gallery-view .lia-main article {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
body.lia-gallery-view .entry-content img,
body.lia-gallery-view .foogallery img {
  border-radius: 0;
}

#gearbox,
#tyre {
  appearance: auto;
  -webkit-appearance: menulist;
  display: inline-block;
  min-width: 16rem;
  max-width: 100%;
  background: #fff;
  color: var(--lia-ink);
  position: relative;
  z-index: 2;
}

.lia-main .foogallery,
.lia-main .foogallery-container,
.lia-main .gallery,
.lia-main .wp-block-gallery,
.entry-content .foogallery,
.entry-content .foogallery-container,
.entry-content .gallery,
.entry-content .wp-block-gallery {
  clear: both;
  display: block !important;
  position: relative !important;
  height: auto !important;
  width: 100%;
  max-width: 100%;
  margin: 16px 0 20px;
  overflow: visible;
  z-index: 1;
}
.lia-main .foogallery .fg-item,
.lia-main .foogallery .fg-thumb,
.lia-main .gallery-item,
.entry-content .foogallery .fg-item,
.entry-content .foogallery .fg-thumb,
.entry-content .gallery-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none;
  display: inline-block;
  vertical-align: top;
  margin: 0 8px 8px 0;
}
.lia-main .foogallery img,
.lia-main .gallery img,
.entry-content .foogallery img,
.entry-content .gallery img {
  position: static !important;
  max-width: 100%;
  height: auto;
}

/* Product photos are shot on white. Blend the white into the cream page
   and clip the photos only to circles. Variation dropdowns stay normal. */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link {
  background: transparent;
  isolation: isolate;
}
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a,
.woocommerce div.product div.images .flex-control-thumbs li {
  background: var(--lia-cream);
}
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image img,
.woocommerce div.product div.images .flex-control-thumbs img {
  mix-blend-mode: multiply;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a,
.woocommerce div.product div.images .flex-control-thumbs li {
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
}
.woocommerce ul.products li.product form,
.woocommerce ul.products li.product select,
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .woocommerce-variation-add-to-cart,
.woocommerce ul.products li.product a:not(.woocommerce-loop-product__link):not(.woocommerce-LoopProduct-link) {
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  border-radius: 8px;
  clip-path: none;
  mix-blend-mode: normal;
  isolation: auto;
  background: #fff;
  color: var(--lia-ink);
}
.woocommerce ul.products li.product select,
.woocommerce-page ul.products li.product select {
  display: block;
  margin: 8px 0 0;
  padding: 6px 8px;
}
.pswp__zoom-wrap,
.fbx-item,
.fbx-modal .fbx-stage {
  background: var(--lia-cream);
  isolation: isolate;
}
.pswp__img,
.pswp__img--placeholder,
.fbx-item img,
.fbx-modal img.fbx-item-img {
  mix-blend-mode: multiply;
  background: transparent;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.lia-book-grid,
.lia-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}
.lia-book {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f3f1ea;
}
.lia-book img,
.lia-hub-ph {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #2a3140;
}
.lia-book span {
  padding: 10px 12px 0;
  font-weight: 650;
  font-size: 0.95rem;
}
.lia-book small {
  padding: 4px 12px 12px;
  color: #c9d0c8;
}

button.lia-burger {
  display: none;
  width: auto;
  position: relative;
  z-index: 6;
  margin: 8px 0 6px 8px;
  padding: 2px 8px;
  background: var(--lia-gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}
@media (max-width: 760px) {
  button.lia-burger { display: inline-block; }
  .lia-header nav { display: none; }
  .lia-header nav.is-open { display: block; }
  .lia-nav.is-burger,
  .lia-header nav.is-open .lia-nav {
    flex-wrap: wrap;
  }
  .lia-header nav.is-open .lia-nav > li {
    flex: 0 0 100%;
    width: 100%;
  }
}

.entry-content.is-cut .lia-more-rest { display: none; }
.entry-content.is-open .lia-more-rest { display: block; }
button.lia-read-more {
  display: inline-block;
  width: auto;
  margin: 4px 0 14px;
  padding: 2px 10px;
  font-size: 0.72rem;
}
