/*
 * Tavo Saulė Shop Design 1.4.0
 * Every rule is scoped to .ts-shop. All theme files remain independently owned.
 * Colours reference tavosaule.lt: sunshine yellow, near-black, warm white.
 */

.ts-shop {
  --ts-yellow: #ffb600;
  --ts-yellow-hover: #edaa00;
  --ts-ink: #161917;
  --ts-muted: #686e69;
  --ts-line: #e4e7e1;
  --ts-paper: #ffffff;
  --ts-soft: #f5f6f2;
  --ts-green: #246348;
  --ts-radius: 14px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 0 48px;
  color: var(--ts-ink);
  font: 400 15px/1.65 "Arimo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ts-shop *, .ts-shop *::before, .ts-shop *::after { box-sizing: border-box; }
.ts-shop [hidden] { display: none !important; }
.ts-shop a { color: inherit; text-decoration: none; }
.ts-shop button, .ts-shop input, .ts-shop select { font: inherit; }
.ts-shop button, .ts-shop a, .ts-shop input, .ts-shop select, .ts-shop summary { -webkit-tap-highlight-color: transparent; }
.ts-shop :is(a, button, input, select, summary):focus-visible { outline: 3px solid #946400; outline-offset: 4px; }
.ts-shop h1, .ts-shop h2, .ts-shop h3 { font-family: "Montserrat", Arial, sans-serif; color: var(--ts-ink); text-transform: none; }
.ts-shop p { margin: 0; }
.ts-shop .ts-icon { width: 21px; height: 21px; flex: 0 0 21px; vertical-align: middle; }
.ts-shop .ts-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ts-shop .ts-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .17em; line-height: 1.6; }
.ts-shop .ts-js-only { display: none; }
.ts-shop.ts-shop--enhanced .ts-js-only { display: inline-flex; }
.ts-shop .woocommerce-breadcrumb { margin: 0 0 19px; color: var(--ts-muted); font-size: 12px; }
.ts-shop .woocommerce-breadcrumb a:hover { color: var(--ts-ink); text-decoration: underline; }
.ts-shop .ts-shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ts-shop .ts-shop-heading > .ts-eyebrow { color: var(--ts-muted); }
.ts-shop .ts-shop-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(10px, 2vw, 22px); }
.ts-shop .ts-cart-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 700; }
.ts-shop .ts-cart-link > .ts-icon:last-child { width: 16px; height: 16px; flex-basis: 16px; }
.ts-shop .ts-cart-link:hover { color: #926500; }

/* The shop introduction is rendered by the included PHP loader. */
.ts-shop .ts-hero { display: grid; grid-template-columns: 1.08fr 1fr; overflow: hidden; border-radius: var(--ts-radius); background: var(--ts-yellow); margin-bottom: 56px; }
.ts-shop .ts-hero__copy { padding: clamp(28px, 3.3vw, 48px); position: relative; z-index: 1; }
.ts-shop .ts-hero__label { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.ts-shop .ts-sun-mark { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ts-ink); box-shadow: 0 0 0 4px rgb(22 25 23 / 10%); }
.ts-shop .ts-hero h1 { margin: 0 0 19px; font-size: clamp(28px, 3.05vw, 44px); line-height: 1.16; font-weight: 700; letter-spacing: -.048em; }
.ts-shop .ts-hero h1 span { color: #403713; }
.ts-shop .ts-hero__copy > p { max-width: 355px; margin-bottom: 27px; color: #3b351f; font-size: 14px; line-height: 1.75; }
.ts-shop .ts-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: 13px; line-height: 1.4; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.ts-shop .ts-button--dark { color: #fff; background: var(--ts-ink); }
.ts-shop .ts-button--dark:hover { color: #fff; background: #303831; transform: translateY(-1px); }
.ts-shop .ts-hero__visual { min-height: 330px; position: relative; background: #d8dcd4; }
.ts-shop .ts-hero__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(11 26 20 / 53%), transparent 50%); }
.ts-shop .ts-hero__visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.ts-shop .ts-hero__caption { position: absolute; z-index: 1; bottom: 23px; left: 25px; right: 20px; display: flex; gap: 10px; align-items: center; color: #fff; font-size: 12px; letter-spacing: .015em; }

/* Category links and search use WooCommerce's native server-side catalogue. */
.ts-shop .ts-catalogue-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; scroll-margin-top: 120px; }
.ts-shop .ts-catalogue-heading .ts-eyebrow { color: var(--ts-muted); margin-bottom: 8px; }
.ts-shop .ts-catalogue-heading h2 { margin: 0; font-size: clamp(24px, 2.3vw, 31px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; }
.ts-shop .ts-search { display: flex; align-items: center; flex: 0 1 340px; gap: 0; min-width: 240px; height: 48px; padding-left: 15px; border: 1px solid var(--ts-line); border-radius: 7px; background: var(--ts-paper); }
.ts-shop .ts-search:focus-within { border-color: #946400; box-shadow: 0 0 0 2px rgb(255 182 0 / 15%); }
.ts-shop .ts-search input { flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; padding: 0; border: 0; outline: 0; border-radius: 0; box-shadow: none; color: var(--ts-ink); background: transparent; font-size: 13px; }
.ts-shop .ts-search input::placeholder { color: #737a74; opacity: 1; }
/* Keep the input flush with its form even when the theme paints search fields. */
.ts-shop form.ts-search input#ts-product-search[type="search"] {
  background: transparent !important;
  box-shadow: none !important;
}
.ts-shop .ts-search button { display: flex; align-items: center; justify-content: center; flex: 0 0 47px; width: 47px; height: 44px; padding: 0; border: 0; border-radius: 5px; color: var(--ts-ink); background: transparent; cursor: pointer; }
.ts-shop .ts-search button:hover { background: var(--ts-soft); }
.ts-shop .ts-categories { display: flex; align-items: stretch; gap: 9px; overflow-x: auto; padding: 0 0 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ts-line); scrollbar-width: thin; scrollbar-color: #d0d5cc transparent; }
.ts-shop .ts-category { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 9px; min-height: 45px; padding: 10px 15px; border: 1px solid var(--ts-line); border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #fff; transition: background-color .18s ease, border-color .18s ease; }
.ts-shop .ts-category .ts-icon { width: 18px; height: 18px; flex-basis: 18px; }
.ts-shop .ts-category:hover { background: var(--ts-soft); border-color: #aeb5a8; }
.ts-shop .ts-category.is-active { background: var(--ts-yellow); border-color: var(--ts-yellow); color: var(--ts-ink); }
.ts-shop .ts-category-picker { display: none; position: relative; margin: 0 0 15px; }
.ts-shop .ts-category-picker summary { display: flex; align-items: center; gap: 10px; list-style: none; padding: 12px 15px; border: 1px solid var(--ts-line); border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 700; }
.ts-shop .ts-category-picker summary::-webkit-details-marker { display: none; }
.ts-shop .ts-category-picker summary > .ts-icon:last-child { margin-left: auto; }
.ts-shop .ts-category-picker[open] summary > .ts-icon:last-child { transform: rotate(180deg); }
.ts-shop .ts-category-picker nav { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; padding: 7px; max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--ts-line); border-radius: 8px; box-shadow: 0 12px 32px rgb(22 25 23 / 12%); }
.ts-shop .ts-category-picker nav a { display: block; padding: 11px 12px; min-height: 44px; border-radius: 4px; }
.ts-shop .ts-category-picker nav a:hover, .ts-shop .ts-category-picker nav a[aria-current] { background: var(--ts-soft); }

/* 1.1: search below category navigation, above the product sections. */
.ts-shop .ts-catalogue-search-row { display: flex; justify-content: flex-end; align-items: center; min-height: 48px; margin: -4px 0 22px; }
.ts-shop .ts-catalogue-search-row .ts-search { flex: 0 1 340px; width: 340px; max-width: 100%; min-width: 0; }
.ts-shop .ts-search-empty {
  margin: 20px 0 28px; padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--ts-line); border-radius: var(--ts-radius);
  background: var(--ts-soft); text-align: center;
}
.ts-shop .ts-search-empty h2 { margin: 0 0 8px; font-size: 22px; }
.ts-shop .ts-search-empty p { color: var(--ts-muted); }
.ts-shop .ts-catalogue-heading h1 { overflow-wrap: anywhere; }
.ts-shop .ts-product-section { display: flow-root; clear: both; }
.ts-shop .ts-product-section + .ts-product-section { margin-top: 38px; }
.ts-shop .ts-product-section__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--ts-line); }
.ts-shop .ts-product-section__heading h3 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.035em; }
.ts-shop .ts-product-section__heading > a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ts-muted); font-size: 12px; }
.ts-shop .ts-product-section__heading > a:hover { color: var(--ts-ink); text-decoration: underline; }
.ts-shop .ts-product-section__heading .ts-icon { width: 16px; height: 16px; flex-basis: 16px; }

.ts-shop .ts-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin: 0 0 22px; }
.ts-shop .ts-toolbar::before, .ts-shop .ts-toolbar::after { display: none; }
.ts-shop .ts-toolbar .woocommerce-result-count { float: none; margin: 0 auto 0 0; color: var(--ts-muted); font-size: 12px; }
.ts-shop .ts-toolbar .woocommerce-ordering { float: none; margin: 0; }
.ts-shop .ts-toolbar .woocommerce-ordering select { width: auto; max-width: 240px; min-height: 42px; margin: 0; padding: 8px 35px 8px 12px; border: 1px solid var(--ts-line); border-radius: 6px; color: var(--ts-ink); background-color: #fff; box-shadow: none; font-size: 12px; }

/* Classic WooCommerce product cards; no theme template is copied or replaced. */
.ts-shop ul.products:not(.ts-products) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; clear: both; padding: 0; margin: 0; list-style: none; }
.ts-shop ul.products:not(.ts-products)::before, .ts-shop ul.products:not(.ts-products)::after { display: none !important; }
.ts-shop ul.products:not(.ts-products) > li.product {
  position: relative; display: flex; flex-direction: column; float: none !important;
  width: auto !important; max-width: none; min-width: 0; margin: 0 !important;
  padding: 19px !important; border: 1px solid var(--ts-line); border-radius: 10px;
  background: var(--ts-paper); text-align: left; overflow: visible;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ts-shop ul.products:not(.ts-products) > li.product:hover { border-color: #c2c9bc; box-shadow: 0 8px 25px rgb(22 25 23 / 5%); transform: translateY(-3px); }
.ts-shop ul.products:not(.ts-products) > li.product > :is(a.woocommerce-LoopProduct-link, a.woocommerce-loop-product__link) { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.ts-shop ul.products:not(.ts-products) > li.product a img { display: block; align-self: center; width: 100%; height: 195px; margin: 0 0 21px; padding: 14px; object-fit: contain; border-radius: 5px; background: var(--ts-soft); }
.ts-shop ul.products:not(.ts-products) > li.product .ts-card-category { display: block; margin-bottom: 7px; color: var(--ts-muted); font-size: 10px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; font-weight: 700; }
.ts-shop ul.products:not(.ts-products) > li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) { padding: 0; margin: 0 0 12px; color: var(--ts-ink); font-family: "Montserrat", Arial, sans-serif; font-size: 15px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; }
.ts-shop ul.products:not(.ts-products) > li.product .ts-card-specs { display: flex; flex-direction: column; gap: 3px; margin: 0 0 13px; font-size: 11px; line-height: 1.65; color: var(--ts-muted); }
.ts-shop ul.products:not(.ts-products) > li.product .ts-card-specs span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-shop ul.products:not(.ts-products) > li.product .ts-card-specs b { font-weight: 400; }
.ts-shop ul.products:not(.ts-products) > li.product .ts-card-specs b::after { content: ":"; }
.ts-shop .ts-stock { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: var(--ts-green); font-size: 11px; line-height: 1.5; }
.ts-shop .ts-stock > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.ts-shop .ts-stock--outofstock { color: #7f4946; }
.ts-shop .ts-stock--onbackorder { color: #866000; }
.ts-shop ul.products:not(.ts-products) > li.product .star-rating { margin: 0 0 12px; color: #946400; font-size: 11px; }
.ts-shop ul.products:not(.ts-products) > li.product .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin: auto 0 16px; padding-top: 4px; color: var(--ts-ink); font-family: "Montserrat", Arial, sans-serif; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
.ts-shop ul.products:not(.ts-products) > li.product .price del { order: 2; font-family: "Arimo", Arial, sans-serif; font-size: 12px; color: var(--ts-muted); opacity: 1; font-weight: 400; }
.ts-shop ul.products:not(.ts-products) > li.product .price ins { background: transparent; text-decoration: none; }
.ts-shop ul.products:not(.ts-products) > li.product .price small, .ts-shop ul.products:not(.ts-products) > li.product .price .woocommerce-price-suffix { font-family: "Arimo", Arial, sans-serif; color: var(--ts-muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.ts-shop ul.products:not(.ts-products) > li.product > :is(.button, .added_to_cart) { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 43px; margin: 0; padding: 11px 15px; border: 1px solid var(--ts-yellow); border-radius: 5px; color: var(--ts-ink); background: var(--ts-yellow); font-family: "Arimo", Arial, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; text-transform: none; letter-spacing: 0; white-space: normal; transition: background-color .18s ease; }
.ts-shop ul.products:not(.ts-products) > li.product > .button:hover { color: var(--ts-ink); background: var(--ts-yellow-hover); border-color: var(--ts-yellow-hover); }
.ts-shop ul.products:not(.ts-products) > li.product > .added_to_cart { margin-top: 7px; border-color: var(--ts-line); background: #fff; }
.ts-shop ul.products:not(.ts-products) > li.product .onsale { position: absolute; z-index: 2; top: 28px; left: 28px; right: auto; min-width: 0; min-height: 0; margin: 0; padding: 5px 9px; border-radius: 4px; color: #fff; background: var(--ts-green); font-size: 10px; line-height: 1.5; font-weight: 700; }
.ts-shop ul.products:not(.ts-products) > li.product-category .count { color: var(--ts-muted); background: transparent; }

.ts-shop[data-ts-shop] nav.woocommerce-pagination { margin: 30px 0 0; text-align: center; }
.ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 0; margin: 0; border: 0; list-style: none;
}
.ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers > li {
  display: block; float: none; overflow: visible; margin: 0; padding: 0; border: 0; list-style: none;
}
.ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers > li > .page-numbers {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 8px 12px; margin: 0;
  border: 1px solid var(--ts-line); border-radius: 11px; background: var(--ts-paper);
  color: var(--ts-ink); font-size: 14px; font-weight: 700;
  line-height: 1.35; text-decoration: none; white-space: nowrap;
}
.ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers > li > :is(a:hover, .current) {
  border-color: var(--ts-yellow); background: var(--ts-yellow); color: var(--ts-ink);
}
.ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers > li > .dots {
  min-width: 24px; padding-inline: 3px; border-color: transparent; background: transparent; color: var(--ts-muted);
}
.ts-shop[data-ts-shop] nav.woocommerce-pagination .page-numbers .ts-icon { width: 16px; height: 16px; flex-basis: 16px; }
.ts-shop[data-ts-shop] nav.woocommerce-pagination .prev .ts-icon { transform: rotate(180deg); }
@media (max-width: 639px) {
  .ts-shop[data-ts-shop] nav.woocommerce-pagination ul.page-numbers { gap: 5px; }
  .ts-shop[data-ts-shop] nav.woocommerce-pagination .ts-page-direction {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
.ts-shop .ts-advice { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 52px; padding: 30px 34px; border: 1px solid var(--ts-line); border-radius: 10px; background: var(--ts-soft); }
.ts-shop .ts-advice .ts-eyebrow { color: var(--ts-muted); margin-bottom: 8px; }
.ts-shop .ts-advice h2 { margin: 0 0 7px; font-size: 22px; line-height: 1.3; letter-spacing: -.035em; font-weight: 600; }
.ts-shop .ts-advice p { color: var(--ts-muted); font-size: 13px; }
.ts-shop .ts-advice .ts-button { flex: 0 0 auto; }

/* Native single-product page: gallery, details and add-to-cart stay in WooCommerce. */
.ts-shop[data-ts-page="product"] div.product div.images { border: 1px solid var(--ts-line); border-radius: 10px; padding: 20px; background: var(--ts-soft); }
.ts-shop[data-ts-page="product"] div.product .product_title { margin-bottom: 20px; font-size: clamp(25px, 3vw, 37px); line-height: 1.25; letter-spacing: -.04em; }
.ts-shop[data-ts-page="product"] div.product p.price { color: var(--ts-ink); font: 600 29px/1.4 "Montserrat", Arial, sans-serif; margin-bottom: 20px; }
.ts-shop[data-ts-page="product"] div.product .single_add_to_cart_button { min-height: 48px; padding: 13px 25px; border: 1px solid var(--ts-yellow); border-radius: 6px; color: var(--ts-ink); background: var(--ts-yellow); font-size: 14px; font-weight: 700; }
.ts-shop[data-ts-page="product"] div.product .single_add_to_cart_button:hover { background: var(--ts-yellow-hover); border-color: var(--ts-yellow-hover); }
.ts-shop[data-ts-page="product"] div.product .quantity .qty { min-height: 48px; border: 1px solid var(--ts-line); border-radius: 5px; color: var(--ts-ink); }
.ts-shop[data-ts-page="product"] div.product .woocommerce-tabs ul.tabs { padding: 0; }
.ts-shop[data-ts-page="product"] div.product .woocommerce-tabs ul.tabs li { margin: 0 5px 0 0; border: 1px solid var(--ts-line); border-radius: 6px 6px 0 0; background: var(--ts-soft); }
.ts-shop[data-ts-page="product"] div.product .woocommerce-tabs ul.tabs li::before, .ts-shop[data-ts-page="product"] div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.ts-shop[data-ts-page="product"] div.product .woocommerce-tabs ul.tabs li.active { background: var(--ts-yellow); border-color: var(--ts-yellow); }

@media (min-width: 1500px) {
  .ts-shop .ts-hero h1 { font-size: 45px; }
}
@media (max-width: 1000px) {
  .ts-shop .ts-hero { grid-template-columns: 1.12fr 1fr; }
  .ts-shop .ts-hero__copy { padding: 30px; }
  .ts-shop .ts-hero h1 { font-size: 32px; }
  .ts-shop .ts-search { flex-basis: 290px; }
  .ts-shop ul.products:not(.ts-products) { gap: 14px; }
  .ts-shop ul.products:not(.ts-products) > li.product { padding: 15px !important; }
  .ts-shop ul.products:not(.ts-products) > li.product a img { height: 170px; }
  .ts-shop ul.products:not(.ts-products) > li.product .onsale { top: 23px; left: 23px; }
}
@media (max-width: 767px) {
  .ts-shop { padding-bottom: 30px; }
  .ts-shop .ts-shop-heading { margin-bottom: 15px; }
  .ts-shop .ts-shop-heading > .ts-eyebrow { max-width: 170px; font-size: 9px; }
  .ts-shop .ts-hero { grid-template-columns: 1fr; margin-bottom: 35px; }
  .ts-shop .ts-hero__copy { padding: 30px; }
  .ts-shop .ts-hero h1 { font-size: clamp(30px, 6.5vw, 42px); }
  .ts-shop .ts-hero__copy > p { max-width: 420px; }
  .ts-shop .ts-hero__visual { min-height: 195px; }
  .ts-shop .ts-hero__visual img { object-position: center 58%; }
  .ts-shop .ts-catalogue-heading { flex-direction: column; align-items: stretch; gap: 20px; }
  .ts-shop .ts-search { width: 100%; flex: 0 0 48px; min-width: 0; }
  .ts-shop .ts-catalogue-search-row { margin: 0 0 20px; }
  .ts-shop .ts-catalogue-search-row .ts-search { flex: 1 1 auto; width: 100%; }
  .ts-shop .ts-product-section + .ts-product-section { margin-top: 30px; }
  .ts-shop .ts-product-section__heading h3 { font-size: 20px; }
  .ts-shop .ts-categories { display: none; }
  .ts-shop .ts-category-picker { display: block; }
  .ts-shop .ts-toolbar { gap: 10px; margin: 20px 0 16px; }
  .ts-shop .ts-toolbar .woocommerce-result-count { flex-basis: 100%; }
  .ts-shop .ts-toolbar .woocommerce-ordering { margin-right: auto; }
  .ts-shop .ts-toolbar .woocommerce-ordering select { max-width: 230px; }
  .ts-shop ul.products:not(.ts-products) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ts-shop ul.products:not(.ts-products) > li.product a img { height: 165px; padding: 12px; margin-bottom: 16px; }
  .ts-shop ul.products:not(.ts-products) > li.product .woocommerce-loop-product__title { font-size: 13px; }
  .ts-shop ul.products:not(.ts-products) > li.product .price { font-size: 18px; }
  .ts-shop ul.products:not(.ts-products) > li.product .ts-card-category { font-size: 9px; }
  .ts-shop .ts-advice { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 35px; padding: 24px; }
  .ts-shop .ts-advice h2 { font-size: 21px; }
}
@media (max-width: 390px) {
  .ts-shop .ts-hero__copy { padding: 25px; }
  .ts-shop ul.products:not(.ts-products) { grid-template-columns: 1fr; }
  .ts-shop ul.products:not(.ts-products) > li.product a img { height: 200px; }
  .ts-shop .ts-cart-link { gap: 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-shop *, .ts-shop *::before, .ts-shop *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .ts-shop .ts-stock > span { border: 3px solid currentColor; }
}

/* 1.2: dedicated catalogue cards; isolated from theme hover/quick-view markup. */
.ts-shop ul.ts-products {
  position: relative; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; width: 100%; max-width: none; clear: both; margin: 0 !important;
  padding: 0 !important; list-style: none;
}
.ts-shop ul.ts-products::before, .ts-shop ul.ts-products::after { display: none !important; }
.ts-shop ul.ts-products > li.ts-product-card {
  position: relative; display: flex; flex-direction: column; align-self: stretch;
  float: none !important; clear: none !important; width: auto !important; min-width: 0; max-width: none;
  margin: 0 !important; padding: 0 !important; overflow: hidden;
  border: 1px solid #e5e8e3; border-radius: 18px; background: #fff; text-align: left;
  box-shadow: 0 2px 5px rgb(22 25 23 / 2%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ts-shop ul.ts-products > li.ts-product-card:hover {
  border-color: #c9d0c4; box-shadow: 0 10px 24px rgb(22 25 23 / 7%); transform: translateY(-2px);
}
/* Every card has exactly the same image-area height at each breakpoint.
   Contain preserves the whole image without stretching or automatic CSS crops. */
.ts-shop ul.ts-products .ts-product-card__media {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 100%; height: 236px; margin: 0; padding: 18px; overflow: hidden;
  background: #f6f7f4; border: 0; border-bottom: 1px solid #eceee8; border-radius: 0;
}
.ts-shop ul.ts-products .ts-product-card__media img {
  display: block; position: static; float: none; width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 0;
  object-fit: contain; object-position: center; border: 0; border-radius: 8px; box-shadow: none;
}
.ts-shop .ts-product-card__body {
  display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(95px, .72fr);
  grid-template-rows: auto 1fr auto; gap: 16px 12px; align-content: start; padding: 20px;
}
.ts-shop .ts-product-card__details { grid-column: 1; grid-row: 1; min-width: 0; }
.ts-shop .ts-product-card .ts-card-category {
  display: block; margin: 0 0 7px; color: #686e69; font-size: 9px; font-weight: 700;
  line-height: 1.5; letter-spacing: .09em; text-transform: uppercase;
}
.ts-shop .ts-product-card h2.ts-product-card__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 0 0 10px; padding: 0; min-height: 43px; color: var(--ts-ink);
  font: 600 15px/1.45 "Montserrat", Arial, sans-serif; letter-spacing: -.025em;
}
.ts-shop .ts-product-card__title a { color: inherit; text-decoration: none; }
.ts-shop .ts-product-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ts-shop .ts-product-card .ts-card-specs { display: grid; gap: 3px; margin: 0; color: #686e69; font-size: 11px; line-height: 1.6; }
.ts-shop .ts-product-card .ts-card-specs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-shop .ts-product-card .ts-card-specs b { color: #3c443c; font-weight: 600; }
.ts-shop .ts-product-card .ts-card-specs b::after { content: ":"; }
.ts-shop .ts-product-card__pricing { grid-column: 2; grid-row: 1; min-width: 0; text-align: right; }
.ts-shop ul.ts-products .ts-product-card .price {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 6px;
  margin: 0 0 9px; padding: 0; color: var(--ts-ink); background: transparent;
  font: 600 22px/1.3 "Montserrat", Arial, sans-serif; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.ts-shop ul.ts-products .ts-product-card .price del {
  flex-basis: 100%; order: -1; margin: 0; color: #686e69; opacity: 1;
  font: 400 12px/1.4 "Arimo", Arial, sans-serif; letter-spacing: 0;
}
.ts-shop ul.ts-products .ts-product-card .price ins { margin: 0; color: inherit; background: transparent; text-decoration: none; }
.ts-shop ul.ts-products .ts-product-card .price .amount { white-space: nowrap; }
.ts-shop ul.ts-products .ts-product-card .price :is(small, .woocommerce-price-suffix) {
  flex-basis: 100%; color: #686e69; font: 400 10px/1.5 "Arimo", Arial, sans-serif; letter-spacing: 0;
}
.ts-shop .ts-product-card__pricing .ts-stock { justify-content: flex-end; margin: 0; font-size: 10px; gap: 5px; line-height: 1.5; }
.ts-shop .ts-product-card__pricing .ts-stock > span { width: 5px; height: 5px; flex-basis: 5px; }
.ts-shop .ts-product-card p.ts-product-card__description {
  grid-column: 1 / -1; grid-row: 2; align-self: start; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 42px; margin: 0; padding: 0; color: #686e69; font-size: 12px; line-height: 1.75;
}
.ts-shop .ts-product-card__actions { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.ts-shop .ts-product-card__actions :is(a, button) {
  display: inline-flex; align-items: center; justify-content: center; float: none; min-height: 44px;
  min-width: 126px; width: auto; margin: 0; padding: 11px 18px; border: 1px solid var(--ts-yellow);
  border-radius: 10px; box-shadow: none; color: var(--ts-ink); background: var(--ts-yellow);
  font: 700 12px/1.5 "Arimo", Arial, sans-serif; text-transform: none; letter-spacing: 0;
  text-decoration: none; white-space: normal; text-align: center; transition: background-color .18s ease;
}
.ts-shop .ts-product-card__actions :is(a, button):hover { color: var(--ts-ink); background: var(--ts-yellow-hover); border-color: var(--ts-yellow-hover); }
.ts-shop .ts-product-card__actions .added_to_cart { min-width: 0; background: #fff; border-color: var(--ts-line); }
.ts-shop .ts-product-card__actions .loading { opacity: .65; }

/* Native horizontal scrolling works without JavaScript; JS reveals only useful arrows. */
.ts-shop .ts-carousel { position: relative; min-width: 0; }
.ts-shop .ts-carousel__viewport {
  display: block; overflow-x: auto; overflow-y: hidden; width: 100%; padding: 4px 0 18px;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin;
  scrollbar-color: #d6dbd1 transparent; -webkit-overflow-scrolling: touch;
}
.ts-shop .ts-carousel ul.ts-products { grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 48px) / 3); }
.ts-shop .ts-carousel li.ts-product-card { scroll-snap-align: start; }
.ts-shop .ts-carousel__arrow {
  position: absolute; z-index: 4; top: 100px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0; border: 1px solid #dce1d6;
  border-radius: 50%; color: var(--ts-ink); background: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgb(22 25 23 / 14%); transition: background-color .18s ease, border-color .18s ease;
}
.ts-shop .ts-carousel__arrow:hover { color: var(--ts-ink); background: var(--ts-yellow); border-color: var(--ts-yellow); }
.ts-shop .ts-carousel__arrow--prev { left: -20px; }
.ts-shop .ts-carousel__arrow--prev .ts-icon { transform: rotate(180deg); }
.ts-shop .ts-carousel__arrow--next { right: -20px; }
.ts-shop .ts-carousel__arrow .ts-icon { width: 20px; height: 20px; flex-basis: 20px; }
.ts-shop .ts-product-section + .ts-product-section { margin-top: 40px; }
.ts-shop .ts-product-section__heading { padding-bottom: 15px; margin-bottom: 18px; }
.ts-shop .ts-product-section__heading h3 { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; }
.ts-shop .ts-product-section__heading h3::before { content: ""; width: 4px; height: 22px; flex: 0 0 4px; border-radius: 4px; background: var(--ts-yellow); }
.ts-shop .ts-product-section__heading > a { color: #555e54; font-weight: 600; }
@media (max-width: 1050px) {
  .ts-shop ul.ts-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ts-shop .ts-carousel ul.ts-products { grid-auto-columns: calc((100% - 18px) / 2); }
  .ts-shop .ts-product-card__body { padding: 18px; }
}
@media (max-width: 639px) {
  .ts-shop ul.ts-products { grid-template-columns: 1fr; gap: 14px; }
  .ts-shop .ts-carousel ul.ts-products { grid-auto-columns: 88%; }
  .ts-shop ul.ts-products .ts-product-card__media { height: 220px; padding: 16px; }
  .ts-shop .ts-product-card__body { padding: 16px; gap: 14px 10px; }
  .ts-shop .ts-product-card h2.ts-product-card__title { font-size: 14px; min-height: 41px; }
  .ts-shop ul.ts-products .ts-product-card .price { font-size: 20px; }
  .ts-shop .ts-product-section__heading { gap: 5px 12px; }
  .ts-shop .ts-product-section__heading h3 { font-size: 21px; }
  .ts-shop .ts-product-section__heading > a { font-size: 10px; }
  .ts-shop .ts-carousel__arrow { top: 92px; }
  .ts-shop .ts-carousel__arrow--prev { left: 5px; }
  .ts-shop .ts-carousel__arrow--next { right: 5px; }
}

@media (forced-colors: active) {
  .ts-shop .ts-carousel__arrow, .ts-shop .ts-category.is-active { outline: 2px solid Highlight; }
}

/* Tavo Saule card spacing and price fix — 1.2.1 */
.ts-shop {
  --ts-card-media-height: 290px;
}

.ts-shop ul.ts-products .ts-product-card__media {
  height: var(--ts-card-media-height) !important;
}

.ts-shop .ts-product-card__body {
  gap: 10px 12px !important;
}

.ts-shop .ts-product-card .ts-card-category {
  margin-bottom: 5px !important;
}

.ts-shop .ts-product-card h2.ts-product-card__title {
  min-height: 0 !important;
  margin-bottom: 5px !important;
  font: 700 26px/1.2 "Montserrat", Arial, sans-serif !important;
  letter-spacing: -.035em !important;
}

.ts-shop .ts-product-card .ts-card-specs {
  gap: 2px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.ts-shop .ts-product-card p.ts-product-card__description {
  min-height: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.ts-shop .ts-product-card__actions {
  padding-top: 6px !important;
}

/* Explicit nested amount styling prevents inherited theme price formatting. */
.ts-shop li.ts-product-card .ts-product-card__pricing .price {
  display: block !important;
  float: none !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #161917 !important;
  background: transparent !important;
  font: 700 24px/1.25 Arial, sans-serif !important;
  letter-spacing: -.035em !important;
  text-align: right !important;
}

.ts-shop li.ts-product-card .ts-product-card__pricing .price :where(ins, del, .amount, bdi, .woocommerce-Price-currencySymbol) {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}

.ts-shop li.ts-product-card .ts-product-card__pricing .price del {
  display: block !important;
  float: none !important;
  margin: 0 0 3px !important;
  color: #686e69 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  text-decoration: line-through !important;
}

.ts-shop li.ts-product-card .ts-product-card__pricing .price ins {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.ts-shop .ts-carousel__arrow {
  top: calc(var(--ts-card-media-height) / 2 - 18px) !important;
}

.ts-shop .ts-product-card__title a {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}

@media (max-width: 639px) {
  .ts-shop {
    --ts-card-media-height: 250px;
  }

  .ts-shop .ts-product-card__body {
    gap: 8px 10px !important;
  }

  .ts-shop .ts-product-card h2.ts-product-card__title {
    font-size: 24px !important;
  }

  .ts-shop li.ts-product-card .ts-product-card__pricing .price {
    font-size: 22px !important;
  }
}

/* Tavo Saule single-product layout — 1.3.0 (requires the matching JavaScript) */
body.single-product :is(.on-sale, .on-new, .onsale) { display: none !important; }
body.single-product .ts-single-product {
  width: 100%; max-width: 1320px; margin: 34px auto 0; color: #161917;
  font-family: "Arimo", Arial, sans-serif;
}
body.single-product .ts-single-layout {
  display: grid !important; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: start; gap: 40px; margin: 0 !important;
}
body.single-product .ts-single-product.ts-single-layout { margin: 34px auto 0 !important; }
body.single-product .ts-single-layout::before,
body.single-product .ts-single-layout::after { display: none !important; }
body.single-product .ts-single-layout > :not(.ts-single-gallery-column):not(.ts-single-summary-column) { grid-column: 1 / -1; }
body.single-product :is(.ts-single-gallery-column, .ts-single-summary-column) {
  float: none !important; width: auto !important; max-width: none !important; min-width: 0;
  margin: 0 !important; padding: 0 !important;
}
body.single-product .ts-single-gallery {
  float: none !important; width: 100% !important; max-width: none; margin: 0 !important;
}
body.single-product .ts-single-gallery :is(.single-product-image-main),
body.single-product .ts-single-gallery.woocommerce-product-gallery {
  position: relative; overflow: hidden; padding: 24px !important; border: 1px solid #e3e7df;
  border-radius: 22px; background: #f6f7f3; box-shadow: 0 4px 16px rgb(22 25 23 / 3%);
}
body.single-product .ts-single-gallery .single-product-image-main img:not(.zoomImg),
body.single-product .ts-single-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
  display: block; width: 100% !important; height: auto !important; max-width: 100% !important;
  max-height: 560px; margin: 0 auto !important; padding: 0 !important;
  object-fit: contain; object-position: center; border-radius: 12px; box-shadow: none;
}
body.single-product .ts-single-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
body.single-product .ts-single-gallery .single-product-image-main::before { border-radius: 12px; }
body.single-product .ts-single-gallery :is(.single-product-image-thumb, .flex-control-thumbs) {
  margin: 14px 0 0 !important; padding: 0 !important;
}
body.single-product .ts-single-gallery :is(.single-product-image-thumb .product-image-thumb-item, .flex-control-thumbs li) {
  overflow: hidden; border: 1px solid #dde3d7; border-radius: 11px; background: #fff;
}
body.single-product .ts-single-gallery :is(.single-product-image-thumb img, .flex-control-thumbs img) {
  display: block; width: 100%; height: 78px; margin: 0 !important; padding: 6px;
  object-fit: contain; border-radius: 10px;
}
body.single-product .ts-single-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
body.single-product .ts-single-gallery .flex-control-thumbs li { float: none !important; width: 88px !important; margin: 0 !important; }
body.single-product .ts-single-gallery .woocommerce-product-gallery__trigger { z-index: 3; top: 12px; right: 12px; }
body.single-product .ts-single-summary {
  width: 100% !important; margin: 0 !important; padding: 28px !important; min-width: 0;
  border: 1px solid #e3e7df; border-radius: 22px; background: #fff; box-shadow: 0 4px 18px rgb(22 25 23 / 3%);
}
body.single-product .ts-single-summary .product_title {
  margin: 0 0 18px !important; padding: 0; color: #161917 !important;
  font: 700 clamp(29px, 2.7vw, 39px)/1.18 "Montserrat", Arial, sans-serif !important;
  letter-spacing: -.045em !important; text-transform: none !important;
}
body.single-product .ts-single-summary :is(p.price, span.price) {
  display: block !important; float: none !important; margin: 0 0 20px !important; padding: 0 !important;
  color: #161917 !important; background: transparent !important;
  font: 700 32px/1.25 Arial, sans-serif !important; letter-spacing: -.04em !important;
}
body.single-product .ts-single-summary .price :where(ins, del, .amount, bdi, .woocommerce-Price-currencySymbol) {
  color: inherit !important; font: inherit !important; letter-spacing: inherit !important;
}
body.single-product .ts-single-summary .price del {
  display: block !important; margin: 0 0 5px !important; color: #737a70 !important;
  font-size: 16px !important; font-weight: 400 !important; opacity: 1 !important;
  text-decoration: line-through !important;
}
body.single-product .ts-single-summary .price ins { display: block !important; margin: 0; background: transparent !important; text-decoration: none !important; }
body.single-product .ts-single-summary .price .amount { white-space: nowrap; }
body.single-product .ts-single-summary .price :is(small, .woocommerce-price-suffix) { color: #686e69; font: 400 12px/1.5 "Arimo", Arial, sans-serif; letter-spacing: 0; }
body.single-product .ts-single-summary .woocommerce-product-details__short-description {
  margin: 0 0 18px !important; color: #60685f; font-size: 15px; line-height: 1.7;
}
body.single-product .ts-single-summary .woocommerce-product-details__short-description p { margin: 0 0 10px; }
body.single-product .ts-single-summary .stock {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px !important;
  color: #246348 !important; font: 600 13px/1.5 "Arimo", Arial, sans-serif;
}
body.single-product .ts-single-summary .stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.single-product .ts-single-summary .stock.out-of-stock { color: #964947 !important; }
body.single-product .ts-single-summary .stock.available-on-backorder { color: #866000 !important; }
body.single-product .ts-single-summary form.cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px !important;
  padding: 18px !important; border: 1px solid #e8ebe3; border-radius: 15px; background: #f7f8f5;
}
body.single-product .ts-single-summary :is(form.variations_form, form.grouped_form) { display: block !important; }
body.single-product .ts-single-summary .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body.single-product .ts-single-summary .quantity { flex: 0 0 auto; margin: 0 !important; }
body.single-product .ts-single-summary .quantity .quantity-inner { position: relative; display: inline-block; }
body.single-product .ts-single-summary .quantity .qty {
  width: 112px !important; min-width: 0; height: 50px !important; min-height: 50px;
  margin: 0 !important; padding: 0 32px !important; border: 1px solid #dce2d5 !important;
  border-radius: 10px !important; background: #fff !important; color: #161917 !important;
  font: 600 15px/1.4 "Arimo", Arial, sans-serif; text-align: center;
}
body.single-product .ts-single-summary .quantity .quantity-inner :is(a.fa-minus, a.fa-plus) {
  position: absolute; top: 50%; transform: translateY(-50%); margin: 0; color: #616a5b;
  font-size: 12px; cursor: pointer;
}
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-minus { left: 12px; }
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-plus { right: 12px; }
body.single-product .ts-single-summary .single_add_to_cart_button {
  display: inline-flex; flex: 1 1 160px; align-items: center; justify-content: center; gap: 10px;
  float: none !important; min-width: 160px; min-height: 50px; margin: 0 !important; padding: 13px 22px !important;
  border: 1px solid #ffb600 !important; border-radius: 10px !important; box-shadow: none;
  color: #161917 !important; background: #ffb600 !important;
  font: 700 15px/1.5 "Arimo", Arial, sans-serif; letter-spacing: 0; text-transform: none;
}
body.single-product .ts-single-summary .single_add_to_cart_button:hover { background: #edaa00 !important; border-color: #edaa00 !important; }
body.single-product .ts-single-summary .single_add_to_cart_button:disabled,
body.single-product .ts-single-summary .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
body.single-product .ts-single-summary table.variations { width: 100%; margin: 0 0 18px !important; border: 0; background: transparent; }
body.single-product .ts-single-summary table.variations :is(th, td) { border: 0; padding: 7px 0 !important; background: transparent; }
body.single-product .ts-single-summary table.variations select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #dce2d5; border-radius: 8px; background: #fff; font-size: 14px; }
body.single-product .ts-single-summary .product_meta {
  display: grid; gap: 8px; margin: 0 !important; padding-top: 18px; border-top: 1px solid #e7eae2;
  color: #686e69; font: 400 12px/1.7 "Arimo", Arial, sans-serif; text-transform: none !important;
}
body.single-product .ts-single-summary .product_meta :is(.sku_wrapper, .posted_in, .tagged_as) { display: block; margin: 0 !important; text-transform: none !important; }
body.single-product .ts-single-summary .product_meta :is(.sku, a) { margin-left: 4px !important; color: #343d31; font-weight: 600; }
body.single-product .woocommerce-tabs {
  clear: both; margin: 36px 0 0 !important; padding: 26px !important;
  border: 1px solid #e3e7df; border-radius: 20px; background: #fff;
}
body.single-product .woocommerce-tabs ul.tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 0 16px !important;
  border: 0 !important; border-bottom: 1px solid #e7eae2 !important; background: transparent !important;
}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li {
  float: none; margin: 0 !important; padding: 0 !important; border: 1px solid transparent !important;
  border-radius: 10px !important; background: #f4f6f0 !important; box-shadow: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li.active { border-color: #ffb600 !important; background: #fff7de !important; }
body.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 11px 17px !important; color: #31382e !important; font: 600 13px/1.5 "Arimo", Arial, sans-serif; text-shadow: none; }
body.single-product .woocommerce-tabs .panel { margin: 0 !important; padding: 22px 0 0 !important; border: 0; box-shadow: none; background: transparent; color: #60685f; font-size: 15px; line-height: 1.8; }
body.single-product .woocommerce-tabs .panel h2 { margin: 0 0 16px; color: #161917; font: 600 23px/1.35 "Montserrat", Arial, sans-serif; letter-spacing: -.03em; }
body.single-product .woocommerce-tabs .panel p { margin: 0 0 12px; }
body.single-product .woocommerce-tabs table.shop_attributes { width: 100%; margin: 0; border: 1px solid #e5e9df; border-radius: 10px; overflow: hidden; }
body.single-product .woocommerce-tabs table.shop_attributes :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid #e9ece5; font-size: 14px; font-style: normal; }
body.single-product .woocommerce-tabs table.shop_attributes th { width: 30%; background: #f6f8f3; color: #343d31; font-weight: 600; }
body.single-product .woocommerce-tabs table.shop_attributes td { background: #fff; }
body.single-product .woocommerce-tabs table.shop_attributes td p { margin: 0; }
body.single-product .ts-single-product :is(a, button, input, select):focus-visible { outline: 3px solid #946400; outline-offset: 3px; }
@media (max-width: 1000px) {
  body.single-product .ts-single-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 24px; }
  body.single-product .ts-single-summary { padding: 22px !important; }
  body.single-product .ts-single-summary .single_add_to_cart_button { flex-basis: 100%; }
}
@media (max-width: 767px) {
  body.single-product .ts-single-product { margin-top: 22px; }
  body.single-product .ts-single-product.ts-single-layout { margin-top: 22px !important; }
  body.single-product .ts-single-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body.single-product .ts-single-gallery :is(.single-product-image-main),
  body.single-product .ts-single-gallery.woocommerce-product-gallery { padding: 16px !important; border-radius: 17px; }
  body.single-product .ts-single-gallery .single-product-image-main img:not(.zoomImg),
  body.single-product .ts-single-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { max-height: 460px; }
  body.single-product .ts-single-summary { padding: 22px !important; border-radius: 17px; }
  body.single-product .ts-single-summary .product_title { font-size: 30px !important; }
  body.single-product .ts-single-summary :is(p.price, span.price) { font-size: 28px !important; }
  body.single-product .ts-single-summary form.cart { padding: 14px !important; }
  body.single-product .ts-single-summary .single_add_to_cart_button { flex-basis: 150px; min-width: 150px; }
  body.single-product .woocommerce-tabs { padding: 20px !important; border-radius: 17px; }
  body.single-product .woocommerce-tabs ul.tabs li a { padding: 10px 13px !important; font-size: 12px; }
}

/* Product tabs, quantity alignment and browser spinner fix — 1.3.1 */
body.single-product .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs ul.tabs > li {
  list-style: none !important;
}
body.single-product .woocommerce-tabs ul.tabs > li::marker {
  content: "" !important;
}
body.single-product .ts-single-summary .quantity input.qty {
  box-sizing: border-box !important;
  padding: 0 32px !important;
  text-align: center !important;
  text-indent: 0 !important;
}
body.single-product .ts-single-summary .quantity input.qty[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
body.single-product .ts-single-summary .quantity input.qty[type="number"]::-webkit-inner-spin-button,
body.single-product .ts-single-summary .quantity input.qty[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
body.single-product .woocommerce-breadcrumb a {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #c4c9bc;
  text-underline-offset: 3px;
}
body.single-product .woocommerce-breadcrumb a:hover {
  color: #946400;
  text-decoration-color: currentColor;
}
body.single-product .woocommerce-breadcrumb a:focus-visible {
  outline: 2px solid #946400;
  outline-offset: 3px;
}

/* Product quantity buttons, persistent navigation and success notice — 1.3.2 */
body.single-product .ts-single-summary .quantity .quantity-inner input.qty {
  position: relative;
  z-index: 0;
}
body.single-product .ts-single-summary .quantity .quantity-inner :is(a.fa-minus, a.fa-plus) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  padding: 0 !important;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  color: #343d31 !important;
  text-decoration: none !important;
}
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-minus { left: 3px; right: auto; }
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-plus { right: 3px; left: auto; }
body.single-product .ts-single-summary .quantity .quantity-inner :is(a.fa-minus, a.fa-plus)::before {
  display: block !important;
  font: 600 20px/1 Arial, sans-serif !important;
  color: inherit;
}
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-minus::before { content: "\2212" !important; }
body.single-product .ts-single-summary .quantity .quantity-inner a.fa-plus::before { content: "+" !important; }
body.single-product .ts-product-navigation {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  width: 100%;
  max-width: 1320px;
  margin: 22px auto 20px;
}
body.single-product .ts-product-breadcrumb {
  display: block !important;
  flex: 1 1 240px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: #686e69;
  font: 400 12px/1.8 "Arimo", Arial, sans-serif;
  overflow-wrap: anywhere;
}
body.single-product .ts-product-breadcrumb a {
  color: #343d31;
  text-decoration: underline;
  text-decoration-color: #c4c9bc;
  text-underline-offset: 3px;
}
body.single-product .ts-product-breadcrumb a:hover { color: #946400; text-decoration-color: currentColor; }
body.single-product .ts-product-breadcrumb__separator { padding: 0 4px; color: #8a9283; }
body.single-product .ts-product-cart {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #e1ae24;
  border-radius: 10px;
  background: #fff7de;
  color: #343d31;
  font: 700 13px/1.5 "Arimo", Arial, sans-serif;
  text-decoration: none;
}
body.single-product .ts-product-cart:hover { background: #ffb600; border-color: #ffb600; color: #161917; }
body.single-product .ts-product-cart .ts-icon { width: 18px; height: 18px; flex: 0 0 18px; }
body.single-product :is(.ts-product-breadcrumb a, .ts-product-cart):focus-visible { outline: 2px solid #946400; outline-offset: 3px; }
body.single-product .woocommerce-message {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  min-height: 56px;
  margin: 0 auto 20px !important;
  padding: 16px 20px 16px 50px !important;
  border: 1px solid #d8e6d1 !important;
  border-radius: 12px;
  background: #f2f8ee !important;
  color: #31532a !important;
  font: 400 14px/1.65 "Arimo", Arial, sans-serif;
  box-shadow: none !important;
  outline: none;
}
body.single-product .woocommerce-message::before {
  content: "\2713" !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  left: 17px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #547c3d;
  color: #fff;
  font: 700 12px/1 Arial, sans-serif !important;
}
body.single-product .woocommerce-message a:not(.button) { color: inherit; font-weight: 700; text-decoration: underline; }
body.single-product:has(.ts-product-navigation) .woocommerce-message .button.wc-forward { display: none !important; }
body.single-product .woocommerce-message:focus-visible { outline: 2px solid #547c3d; outline-offset: 3px; }
@media (max-width: 575px) {
  body.single-product .ts-product-navigation { align-items: flex-start; gap: 12px; }
  body.single-product .ts-product-breadcrumb { flex-basis: 100%; }
  body.single-product .woocommerce-message { padding-right: 16px !important; font-size: 13px; }
}

/* Short success notice beside the persistent cart link — 1.3.3 */
body.single-product .woocommerce-message { max-width: 560px; margin-left: 0 !important; }
body.single-product .ts-product-notices { flex: 1 1 420px; min-width: 0; max-width: 560px; }
body.single-product .ts-product-notices[hidden],
body.single-product .ts-product-notices .woocommerce-message[hidden] { display: none !important; }
body.single-product .ts-product-notices .woocommerce-message {
  width: 100%; max-width: 100%; min-height: 48px;
  margin: 0 !important; padding: 12px 44px 12px 46px !important; border-radius: 10px;
}
body.single-product .ts-product-notices .woocommerce-message::before { top: 14px; left: 15px; }
body.single-product .ts-product-navigation--has-notice .ts-product-breadcrumb { flex-basis: 100%; order: -1; }
body.single-product .ts-product-navigation--has-notice .ts-product-cart { margin-left: auto; }
body.single-product .ts-notice-dismiss {
  position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: #547c3d;
  font: 400 25px/1 Arial, sans-serif; cursor: pointer;
}
body.single-product .ts-notice-dismiss:hover { background: #e1eddc; color: #31532a; }
body.single-product .ts-notice-dismiss:focus-visible { outline: 2px solid #547c3d; outline-offset: 2px; }
@media (max-width: 575px) {
  body.single-product .ts-product-notices { flex-basis: 100%; max-width: 100%; }
  body.single-product .ts-product-navigation--has-notice .ts-product-cart { margin-left: 0; }
}

/* Center the top notice; keep breadcrumbs 6px above the product — 1.3.4 */
body.single-product .ts-product-navigation {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
  grid-template-areas: ". notice cart" "breadcrumbs breadcrumbs breadcrumbs";
  align-items: center;
  gap: 10px 16px;
  margin: 14px auto 6px !important;
}
body.single-product .ts-product-navigation .ts-product-notices {
  grid-area: notice;
  justify-self: center;
  width: 100%;
  max-width: 560px;
}
body.single-product .ts-product-navigation .ts-product-breadcrumb {
  grid-area: breadcrumbs;
  align-self: end;
  order: 0;
}
body.single-product .ts-product-navigation .ts-product-cart {
  grid-area: cart;
  justify-self: end;
  margin: 0;
}
body.single-product .ts-single-product,
body.single-product .ts-single-product.ts-single-layout { margin-top: 0 !important; }
@media (max-width: 1000px) {
  body.single-product .ts-product-navigation {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "notice notice" "breadcrumbs cart";
  }
}

/* Reserve notification space to prevent product movement — 1.3.5 */
body.single-product .ts-product-navigation {
  grid-template-rows: 72px auto;
}
body.single-product .ts-product-navigation .ts-product-notices {
  min-height: 0;
  max-height: 72px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
body.single-product .ts-product-notices .woocommerce-message { overflow-wrap: anywhere; }
@media (max-width: 575px) {
  body.single-product .ts-product-navigation { grid-template-rows: 96px auto; }
  body.single-product .ts-product-navigation .ts-product-notices { max-height: 96px; }
}

/* 1.4: category-page controls, with the search ABOVE the divider.
   The main shop keeps its original navigation and search layout. */
.ts-shop .ts-catalogue-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.ts-shop .ts-catalogue-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 20px;
  padding: 0 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--ts-line);
}
.ts-shop .ts-catalogue-controls .ts-categories {
  min-width: 0;
  margin: 0;
  padding: 3px 0;
  border: 0;
}
.ts-shop .ts-catalogue-controls .ts-catalogue-search-row {
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.ts-shop .ts-catalogue-controls .ts-search {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 12px;
  background: #fafbf8;
}
.ts-shop .ts-catalogue-controls .ts-search input[type="search"] {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ts-shop .ts-catalogue-controls .ts-category { border-radius: 10px; }
.ts-shop .ts-catalogue-controls .ts-category-picker { margin: 0; min-width: 0; }

/* Category pages: full-width three-column grid, using the main shop's cards.
   Isolated from the main shop carousel and all single-product/notice rules. */
.ts-shop ul.ts-products--archive {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  gap: 26px;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}
.ts-shop ul.ts-products--archive > li.ts-product-card {
  display: flex !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 20px;
}
.ts-shop ul.ts-products--archive .ts-product-card__media {
  height: 330px !important;
  padding: 24px;
  background: #f5f6f2;
}
.ts-shop ul.ts-products--archive .ts-product-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  gap: 17px !important;
  min-height: 305px;
  padding: 25px;
}
.ts-shop ul.ts-products--archive .ts-product-card__details { grid-column: 1; grid-row: 1; }
.ts-shop ul.ts-products--archive .ts-card-category {
  margin-bottom: 9px !important;
  font-size: 10px;
  letter-spacing: .1em;
}
.ts-shop ul.ts-products--archive h2.ts-product-card__title {
  -webkit-line-clamp: 3;
  min-height: 2.6em !important;
  margin-bottom: 10px !important;
  font: 700 24px/1.3 "Montserrat", Arial, sans-serif !important;
  letter-spacing: -.035em !important;
}
.ts-shop ul.ts-products--archive .ts-card-specs { font-size: 13px !important; }
.ts-shop ul.ts-products--archive p.ts-product-card__description {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px !important;
  line-height: 1.65 !important;
}
.ts-shop ul.ts-products--archive .ts-product-card__pricing {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-top: 17px;
  border-top: 1px solid var(--ts-line);
  text-align: left;
}
.ts-shop ul.ts-products--archive li.ts-product-card .ts-product-card__pricing .price {
  margin: 0 !important;
  font-size: 29px !important;
  text-align: left !important;
}
.ts-shop ul.ts-products--archive .ts-product-card__pricing .ts-stock {
  justify-content: flex-start;
  max-width: 160px;
  font-size: 11px;
}
.ts-shop ul.ts-products--archive .ts-product-card__pricing .ts-stock > span { flex-shrink: 0; }
.ts-shop ul.ts-products--archive .ts-product-card__actions {
  grid-column: 1;
  grid-row: 4;
  padding-top: 0 !important;
}
.ts-shop ul.ts-products--archive .ts-product-card__actions :is(a, button) {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font-size: 14px;
}
@media (max-width: 1050px) {
  .ts-shop ul.ts-products--archive { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px; }
  .ts-shop ul.ts-products--archive .ts-product-card__media { height: 310px !important; }
}
@media (max-width: 767px) {
  .ts-shop .ts-catalogue-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 18px; margin-bottom: 20px; }
  .ts-shop .ts-catalogue-controls .ts-category-picker { grid-row: 2; }
  .ts-shop .ts-catalogue-controls .ts-catalogue-search-row { grid-row: 1; }
}
@media (max-width: 639px) {
  .ts-shop ul.ts-products--archive { grid-template-columns: minmax(0, 1fr) !important; gap: 22px; }
  .ts-shop ul.ts-products--archive .ts-product-card__media { height: 300px !important; padding: 22px; }
  .ts-shop ul.ts-products--archive .ts-product-card__body { min-height: 285px; padding: 22px; gap: 15px !important; }
  .ts-shop ul.ts-products--archive h2.ts-product-card__title { font-size: 23px !important; }
}

/* 1.7.6: hide the confirmed PayPal v6 express control only in the product summary. */
body.single-product .ts-single-summary .ppc-button-wrapper:has(#ppc-button-ppcp-gateway-v6),
body.single-product .ts-single-summary #ppc-button-ppcp-gateway-v6 {
  display: none !important;
}

/* 1.7.3: categories continue down the page; each uses the horizontal carousel above. */
.ts-shop .ts-catalogue-feed .ts-carousel__arrow--prev { left: 8px; }
.ts-shop .ts-catalogue-feed .ts-carousel__arrow--next { right: 8px; }
.ts-shop .ts-catalogue-category + .ts-catalogue-category { margin-top: clamp(42px, 6vw, 72px); }
.ts-shop .ts-catalogue-category > [data-ts-category-sections] > .ts-product-section + .ts-product-section { margin-top: clamp(26px, 4vw, 42px); }
.ts-shop .ts-product-section__heading :is(h2, h4) { margin: 0; font-size: clamp(16px, 2.2vw, 21px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.ts-shop .ts-product-section > .ts-product-section__heading { margin-bottom: 12px; padding-bottom: 6px; }
.ts-shop .ts-catalogue-scroll { display: flex; flex-direction: column; align-items: center; gap: 13px; min-height: 100px; margin: 38px 0 0; padding: 22px 0; text-align: center; }
.ts-shop .ts-catalogue-scroll__status { margin: 0; color: var(--ts-muted); font-size: 13px; line-height: 1.6; }
.ts-shop .ts-catalogue-scroll__button { min-height: 44px; padding: 11px 23px; border: 1px solid var(--ts-line); border-radius: 10px; background: #fff; color: var(--ts-ink); font: 600 13px/1.5 Arial, sans-serif; cursor: pointer; }
.ts-shop .ts-catalogue-scroll__button:hover { border-color: var(--ts-yellow); background: var(--ts-yellow); }
.ts-shop .ts-catalogue-scroll__button:focus-visible { outline: 2px solid var(--ts-ink); outline-offset: 4px; }
.ts-shop .ts-catalogue-scroll__button:disabled { opacity: .6; cursor: wait; }
.ts-shop .ts-catalogue-scroll.is-loading .ts-catalogue-scroll__status::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 9px; vertical-align: -2px; border: 2px solid var(--ts-line); border-top-color: var(--ts-green); border-radius: 50%; animation: ts-catalogue-spin .8s linear infinite; }
.ts-shop .woocommerce-pagination[hidden], .ts-shop .ts-catalogue-scroll [hidden] { display: none !important; }
@keyframes ts-catalogue-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ts-shop .ts-catalogue-scroll.is-loading .ts-catalogue-scroll__status::before { animation: none; } }
