/* Pearl glass on a quiet coastal background. The photography keeps its own light. */
body:is(.tethys-store, .tethys-home) {
  --shop-ink: #192f35;
  --shop-muted: #53666a;
  --shop-rim: rgba(116, 130, 126, .24);
  --shop-glass: linear-gradient(145deg, rgba(255,255,255,.93), rgba(255,255,255,.59));
  --shop-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 26px rgba(30,53,59,.045);
  --shop-accent: #79633e;
  --shop-radius: 20px;
}
body.tethys-store:is(.woocommerce, .woocommerce-page) {
  color: var(--shop-ink);
  background: radial-gradient(ellipse 82vw 670px at 1% 90px, #e0eceb 0%, transparent 81%),
              radial-gradient(ellipse 65vw 630px at 100% 290px, #f1e9db 0%, transparent 85%), #f6f7f4;
}
body.tethys-store:is(.woocommerce, .woocommerce-page) .store-shell {
  max-width: 1390px;
  padding-inline: clamp(16px, 5vw, 72px);
}
body.tethys-store .store-shell > .page-title,
body:is(.woocommerce-cart, .woocommerce-checkout) .page-heading {
  text-align: center;
  margin: 10px auto clamp(24px, 3vw, 40px);
}
:is(.woocommerce-cart, .woocommerce-checkout) .page-heading .eyebrow { display: none; }
body:is(.woocommerce-cart, .woocommerce-checkout) .page-heading h1 { margin: 0; }

/* WooCommerce floats and zeroes the card padding in its standard loop. Own the
   grid and its gutters on both the shop archive and the home shortcode. */
body:is(.tethys-home, .tethys-store) ul.products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
  padding: 0;
  list-style: none;
}
body:is(.tethys-home, .tethys-store) ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body:is(.tethys-home, .tethys-store) ul.products::before,
body:is(.tethys-home, .tethys-store) ul.products::after { content: none; }
body:is(.tethys-home, .tethys-store) ul.products[class] li.product {
  float: none !important;
  clear: none;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(12px, 1.2vw, 20px) clamp(12px, 1.2vw, 20px) 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--shop-ink);
  border: 1px solid var(--shop-rim);
  border-radius: var(--shop-radius);
  background: var(--shop-glass);
  box-shadow: var(--shop-shadow);
}
body:is(.tethys-home, .tethys-store) ul.products li.product .woocommerce-loop-product__link {
  align-self: stretch;
  min-width: 0;
  flex: 1 0 auto;
  display: block;
  text-align: center;
}
body:is(.tethys-home, .tethys-store) ul.products li.product .tethys-catalog-visual {
  width: 100%;
  aspect-ratio: 1.6;
  margin: 0 0 16px;
  background: white;
  overflow: hidden;
  border-radius: 12px;
}
body:is(.tethys-home, .tethys-store) ul.products li.product .woocommerce-loop-product__title {
  text-align: center;
  margin: 0 auto;
  padding: 0 5px;
  color: var(--shop-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body:is(.tethys-home, .tethys-store) ul.products li.product .price {
  display: block;
  margin: 8px auto 0;
  color: var(--shop-ink);
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
}
body:is(.tethys-home, .tethys-store) ul.products .price small { color: var(--shop-muted); opacity: 1 !important; }
body:is(.tethys-home, .tethys-store) ul.products li.product :is(.button, .added_to_cart) {
  position: relative;
  float: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 19px;
  border: 1px solid var(--shop-rim) !important;
  border-radius: 99px;
  color: var(--shop-ink) !important;
  background: #e9f0ed !important;
  font-size: 14px;
  line-height: 1.35;
}
body:is(.tethys-home, .tethys-store) ul.products li.product .button:hover { background: #dbe8e3 !important; }
body:is(.tethys-home, .tethys-store) ul.products li.product .added_to_cart { margin-top: 6px; background: transparent !important; }

.tethys-facets { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; margin: 0 0 26px; }
.tethys-facets details, .single-product .store-shell div.product > :is(.images, .summary, .woocommerce-tabs),
.woocommerce-cart .store-shell :is(.woocommerce-cart-form, .cart_totals),
.woocommerce-checkout .store-shell :is(#customer_details, #order_review),
.woocommerce-cart .store-shell .wc-empty-cart-message {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid var(--shop-rim);
  border-radius: var(--shop-radius);
  background: var(--shop-glass);
  box-shadow: var(--shop-shadow);
}
.tethys-facets details { padding: 0; border-radius: 15px; }
.tethys-facets summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 50px;
  padding: 10px 18px; cursor: pointer; font-size: 15px; font-weight: 500; list-style: none;
}
.tethys-facets summary::-webkit-details-marker { display: none; }
.tethys-facets summary::after {
  content: ''; width: 8px; height: 8px; margin-inline: 10px 3px;
  border: solid var(--shop-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.tethys-facets details[open] summary::after { transform: rotate(225deg); }
.tethys-facets .facet-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 14px 16px; }
.tethys-facets .facet-options > * { padding: 9px 12px; font: 400 14px/1.45 var(--tethys-text); color: var(--shop-muted); }
.tethys-facets .facet-options a { background: rgba(221,233,230,.58); color: var(--shop-ink); border-radius: 20px; }
.tethys-facets .facet-options a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.tethys-store .woocommerce-result-count { padding-block: 10px; color: var(--shop-muted); }
.tethys-store form.woocommerce-ordering select { max-width: 100%; border-radius: 12px; color: var(--shop-ink); background-color: #f9faf8; }
.tethys-store .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; border: 0; }
.tethys-store .woocommerce-pagination ul.page-numbers li { border: 0; }
.tethys-store .woocommerce-pagination ul.page-numbers li > * { min-width: 40px; padding: 12px; border-radius: 10px; }
.tethys-store .woocommerce-pagination ul.page-numbers li span.current { background: #243b40; color: white; }

.single-product .store-shell > div.product {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start; gap: clamp(20px, 3vw, 44px);
}
.single-product .store-shell > div.product > * { min-width: 0; grid-column: 1 / -1; }
.single-product .store-shell > div.product > .images { grid-column: 1; padding: clamp(12px, 2vw, 24px); }
.single-product .store-shell > div.product > .summary { grid-column: 2; text-align: center; }
.single-product .store-shell div.product > :is(.images,.summary) { float: none; width: 100%; margin: 0; }
.single-product .store-shell .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: 12px; background: white; }
.single-product .store-shell .images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.single-product .store-shell div.product .images ol.flex-control-thumbs > li { flex: 0 0 min(80px, calc((100% - 24px) / 4)); width: auto; float: none; clear: none; margin: 0; border-radius: 8px; overflow: hidden; }
.single-product .store-shell .summary .product_title { margin: 0 auto 14px; font-size: clamp(32px, 3.9vw, 60px); line-height: 1.07; text-wrap: balance; }
.single-product .store-shell .summary .price { color: var(--shop-ink); }
.single-product .store-shell .summary .woocommerce-product-details__short-description { margin: 19px auto; max-width: 51ch; line-height: 1.65; }
.single-product .store-shell .summary form.cart { justify-content: center; margin: 22px auto; }
.single-product .store-shell .summary .quantity, .woocommerce-cart .store-shell .quantity { display: inline-flex; margin: 0; }
.single-product .store-shell .summary .product_meta { padding-top: 14px; border-top: 1px solid var(--shop-rim); color: var(--shop-muted); overflow-wrap: anywhere; }
.single-product .store-shell .summary .button.alt,
.woocommerce-cart .store-shell .checkout-button.button.alt, .woocommerce-checkout .store-shell #place_order {
  background: #223d43 !important; color: #fff !important; border-radius: 13px;
  border: 1px solid #324d50 !important; min-height: 48px; line-height: 1.45;
}
.single-product .store-shell .woocommerce-tabs ul.tabs { padding-left: 0; margin-bottom: 18px; }
.single-product .store-shell .woocommerce-tabs ul.tabs li { padding-inline: 9px; }
.single-product .store-shell .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid #a48b5f; background: transparent; }
.single-product .store-shell .woocommerce-tabs .panel { margin-bottom: 0; }
.single-product .store-shell .related.products { padding-top: 0; }
.single-product .store-shell .related.products > h2 { text-align: center; }

body:is(.woocommerce-cart, .woocommerce-checkout) .store-shell { max-width: 1230px; }
.woocommerce-cart .store-shell > .woocommerce:has(> .woocommerce-cart-form) {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 22px; align-items: start;
}
.woocommerce-cart .store-shell .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .store-shell .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-cart .store-shell .cart-collaterals { width: 100%; min-width: 0; }
.woocommerce-cart .store-shell .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce-cart .store-shell .cart_totals > h2, .woocommerce-checkout .store-shell form.checkout h3 {
  font-size: clamp(25px, 2.45vw, 36px); margin: 0 0 18px; line-height: 1.15;
}
.woocommerce-cart .store-shell table.shop_table, .woocommerce-checkout .store-shell table.shop_table {
  background: transparent; border: 0; width: 100%; margin: 0; border-collapse: collapse;
}
.woocommerce-cart .store-shell table.shop_table :is(td,th), .woocommerce-checkout .store-shell table.shop_table :is(td,th) {
  padding: 12px 7px; border: 0; border-bottom: 1px solid var(--shop-rim); vertical-align: middle; overflow-wrap: anywhere;
}
.woocommerce-cart .store-shell table.shop_table .product-thumbnail img { width: 66px; max-width: 100%; border-radius: 9px; }
.woocommerce-cart .store-shell .quantity .qty, .single-product .store-shell .quantity .qty {
  width: 70px; min-height: 44px; border: 1px solid #96aaa8; border-radius: 10px; color: var(--shop-ink); background: #fff;
}
.woocommerce-cart .store-shell .wc-proceed-to-checkout { padding: 18px 0 0; }
.woocommerce-cart .store-shell .wc-proceed-to-checkout a { margin: 0; }
.woocommerce-cart .store-shell .wc-empty-cart-message, .woocommerce-cart .store-shell .return-to-shop { max-width: 680px; margin: 0 auto 18px; text-align: center; }
.woocommerce-cart .store-shell .cart-empty { margin: 0; padding: 15px; border: 0; color: var(--shop-ink); background: transparent; }
.woocommerce-cart .store-shell .cart-empty::before { content: none; }
.woocommerce-page .store-shell .return-to-shop .button { border-radius: 99px; }
.woocommerce-checkout .store-shell form.checkout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 3vw, 36px); align-items: start;
}
.woocommerce-checkout .store-shell #customer_details { grid-column: 1; grid-row: 1 / 3; }
.woocommerce-checkout .store-shell #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; }
.woocommerce-checkout .store-shell #order_review { grid-column: 2; grid-row: 2; }
.woocommerce-checkout .store-shell #customer_details :is(.col-1, .col-2) { min-width: 0; float: none; width: 100%; }
.woocommerce-checkout .store-shell #customer_details .col-2 { clear: both; padding-top: 12px; }
.woocommerce-checkout .store-shell form .form-row { min-width: 0; margin-bottom: 14px; padding: 0; }
.woocommerce-checkout .store-shell form .form-row label { color: var(--shop-ink); text-align: start; line-height: 1.45; }
.woocommerce-checkout .store-shell .form-row :is(input.input-text, textarea, select),
.woocommerce-checkout .store-shell .select2-selection--single {
  width: 100%; max-width: 100%; min-height: 46px; border: 1px solid #91a5a4; border-radius: 10px; background: rgba(255,255,255,.85); color: var(--shop-ink); font-size: 16px;
}
.woocommerce-checkout .store-shell #payment { margin-top: 18px; background: rgba(223,233,230,.58); border-radius: 13px; }
.woocommerce-checkout .store-shell #payment :is(.wc_payment_methods,.place-order) { padding: 15px; }
.woocommerce-checkout .store-shell #place_order { width: 100%; margin-top: 10px; white-space: normal; }
.woocommerce-page .store-shell :is(.woocommerce-message,.woocommerce-info,.woocommerce-error):not(.cart-empty) { border-radius: 12px; }
body:is(.woocommerce-cart,.woocommerce-checkout) .store-shell .woocommerce-info:not(.cart-empty) {
  color: var(--shop-ink); background: var(--shop-glass); border: 1px solid var(--shop-rim); border-top: 2px solid #a4906f;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .store-shell .woocommerce-info::before { color: var(--shop-accent); }
.woocommerce-cart .store-shell td.actions :is(.button,.input-text), .woocommerce-cart .store-shell .return-to-shop .button {
  min-height: 44px; border: 1px solid var(--shop-rim); border-radius: 12px; color: var(--shop-ink);
}
.woocommerce-cart .store-shell td.actions .button, .woocommerce-cart .store-shell .return-to-shop .button {
  background: #e9f0ed; line-height: 1.35;
}
.tethys-store .store-shell :is(summary,a,button,input,select,textarea):focus-visible { outline: 2px solid #537575; outline-offset: 3px; }

@media (max-width: 980px) {
  body:is(.tethys-home, .tethys-store) ul.products[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce-cart .store-shell > .woocommerce:has(> .woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body.tethys-store:is(.woocommerce, .woocommerce-page) .store-shell { padding-inline: clamp(14px, 4.5vw, 28px); }
  .single-product .store-shell > div.product, .woocommerce-checkout .store-shell form.checkout { display: flex; flex-direction: column; gap: 18px; }
  .single-product .store-shell > div.product > *, .woocommerce-checkout .store-shell form.checkout > * { width: 100%; }
  .woocommerce-checkout .store-shell #order_review_heading { margin: 8px 0 -5px; }
  .woocommerce-checkout .store-shell .form-row { float: none; width: 100%; }
  .woocommerce-cart .store-shell table.shop_table_responsive tr td { background: transparent; }
  .woocommerce-cart .store-shell table.shop_table_responsive tr td.product-thumbnail { display: block; text-align: center !important; }
  .woocommerce-cart .store-shell table.shop_table_responsive tr td.product-thumbnail::before { content: none; }
  .woocommerce-cart .store-shell td.actions .coupon { display: flex; gap: 6px; flex-wrap: wrap; }
  .woocommerce-cart .store-shell td.actions .coupon > :is(input,button) { flex: 1 1 120px; width: auto !important; min-width: 0; }
}
@media (max-width: 540px) {
  body:is(.tethys-home, .tethys-store) ul.products[class] { grid-template-columns: minmax(0, 1fr); }
  .tethys-facets { gap: 8px; }
  .tethys-facets:has(details[open]) { grid-template-columns: 1fr; }
  .tethys-store .woocommerce-result-count, .tethys-store form.woocommerce-ordering { float: none; width: 100%; margin: 0 0 10px; }
  .tethys-store form.woocommerce-ordering select { width: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  body:is(.tethys-store,.tethys-home) { --shop-glass: #fff; }
}
