/**
 * Think Joy Studio — WooCommerce four-screen design system
 * Everything is scoped to .tjs-wc-modern; homepage styles are untouched.
 * WooCommerce is the only source of product, shipping, tax and order data.
 */

/* 01. Brand, page shell, navigation */
body.tjs-wc-modern {
  --tjs-navy: #171637;
  --tjs-ink: #24213d;
  --tjs-muted: #68637b;
  --tjs-coral: #ff5c68;
  --tjs-coral-hover: #f44057;
  --tjs-yellow: #ffd52c;
  --tjs-blue: #087dff;
  --tjs-pink: #ffedf4;
  --tjs-blush: #fff6f9;
  --tjs-border: #eee2ee;
  --tjs-shadow: 0 10px 35px rgba(33, 19, 60, .075);
  --tjs-radius: 18px;
  --tjs-control: 44px;
  background: #fff;
  color: var(--tjs-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tjs-wc-modern,
.tjs-wc-modern * { box-sizing: border-box; }
.tjs-wc-modern .tj-container { width: min(calc(100% - 44px), 1280px); max-width: 1280px; }
.tjs-wc-modern :is(.tj-wc-content, .tjs-commerce-layout) { background: #fff; }
.tjs-wc-modern .tj-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #f1e9ef;
  box-shadow: 0 5px 22px rgba(28,18,60,.03);
}
.tjs-wc-modern .tj-header__inner {
  display: flex;
  gap: clamp(12px,1.7vw,24px);
  align-items: center;
  min-height: 93px !important;
}
.tjs-wc-modern .tj-brand.tj-brand--image-only {
  flex: 0 0 158px !important;
  width: 158px !important;
}
.tjs-wc-modern .tj-brand.tj-brand--image-only img {
  width: 158px !important;
  max-width: 158px !important;
  height: auto !important;
  max-height: 76px !important;
  object-fit: contain;
}
.tjs-wc-modern .tj-primary-nav { margin-left: auto; min-width: 0; }
.tjs-wc-modern .tj-primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(1px,.5vw,7px);
}
.tjs-wc-modern .tj-primary-nav__list a {
  color: var(--tjs-navy);
  font-size: clamp(.77rem,.91vw,.93rem);
  font-weight: 750;
  padding: .55rem .6rem;
  white-space: nowrap;
}
.tjs-wc-modern .tj-primary-nav__list a:hover { color: var(--tjs-coral-hover); }
.tjs-wc-modern .tj-header__actions { display: flex; gap: 10px; align-items: center; }
.tjs-wc-modern .tj-header__actions .tj-button--shop {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .56rem 1.2rem;
  background: var(--tjs-blue) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 4px 10px rgba(0,112,245,.15);
  font-weight: 850;
  font-size: .85rem;
}
.tjs-wc-modern .tj-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 11px;
  border: 1.7px solid var(--tjs-navy);
  border-radius: 99px;
  color: var(--tjs-navy);
  background: #fff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}
.tjs-wc-modern .tj-header-cart .tj-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--tjs-yellow);
  font-weight: 850;
  font-size: .76rem;
  color: var(--tjs-navy);
}
.tjs-wc-modern :is(h1,h2,h3,h4) { color: var(--tjs-navy); letter-spacing: -.035em; }
.tjs-wc-modern :is(.woocommerce,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) { min-width: 0; }
.tjs-wc-modern :where(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(a,button,input,select,textarea):focus-visible,
.tjs-wc-modern .tj-header a:focus-visible {
  outline: 3px solid var(--tjs-blue) !important;
  outline-offset: 3px;
}
.tjs-wc-modern .tjs-sunmark {
  display: inline-flex;
  margin-left: .5rem;
  color: #ffc400;
  font-size: .7em;
  transform: rotate(-12deg);
  vertical-align: 15%;
}
.tjs-wc-modern .tj-wc-page-heading {
  padding: clamp(24px,4vw,43px) 0 11px;
}
.tjs-wc-modern .tj-wc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77708a;
  font-size: .81rem;
  font-weight: 600;
  margin: 0 0 9px;
}
.tjs-wc-modern .tj-wc-breadcrumb a {
  text-decoration: none;
  color: #656078;
}
.tjs-wc-modern .tj-wc-breadcrumb a:hover { color: var(--tjs-coral-hover); }
.tjs-wc-modern .tjs-woo-page-title {
  font-size: clamp(2.2rem,4vw,3.35rem);
  line-height: 1.09;
  font-weight: 900;
  margin: 0;
  color: var(--tjs-navy);
}
.tjs-wc-modern .tj-wc-content { padding-bottom: 68px; }
.tjs-wc-modern .tj-wc-content .tj-container { max-width: 1280px; }
.tjs-wc-modern :where(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
  color: var(--tjs-navy);
  font-family: inherit;
}
.tjs-wc-modern .woocommerce .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.tjs-wc-modern .woocommerce :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
  border: 1px solid var(--tjs-border);
  border-top: 4px solid var(--tjs-coral);
  background: var(--tjs-blush);
  border-radius: 14px;
  color: var(--tjs-navy);
}
.tjs-wc-modern .woocommerce :is(input.input-text,textarea,select,input.qty),
.tjs-wc-modern :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input) {
  min-height: var(--tjs-control);
  padding: .65rem .85rem;
  border: 1px solid #ded7e4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--tjs-navy) !important;
  box-shadow: none !important;
  max-width: 100%;
  font-size: 16px;
}
.tjs-wc-modern .woocommerce select { appearance: auto; }
.tjs-wc-modern .woocommerce :is(a.button,button.button,input.button,.button.alt),
.tjs-wc-modern .wc-block-components-button:not(.is-link) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 43px;
  padding: .7rem 1rem;
  color: #fff !important;
  background: var(--tjs-coral) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(255,92,104,.16);
  font-weight: 800 !important;
  text-decoration: none !important;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tjs-wc-modern .woocommerce :is(a.button,button.button,input.button,.button.alt):hover,
.tjs-wc-modern .wc-block-components-button:not(.is-link):hover {
  background: var(--tjs-coral-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.tjs-wc-modern .woocommerce :is(a.button,button.button).disabled {
  opacity: .55;
  transform: none;
}

/* 02. Shop — native WooCommerce product loop and fallback product query */
.tjs-shop-page .woocommerce .woocommerce-result-count,
.tjs-shop-page .woocommerce .woocommerce-ordering {
  float: none !important;
  margin: 0 0 19px;
  color: #55506e;
  font-weight: 700;
  font-size: .9rem;
}
.tjs-shop-page .woocommerce .woocommerce-ordering { margin-left: auto; }
.tjs-shop-page .woocommerce .woocommerce-ordering select {
  width: auto;
  min-width: 170px;
  border-radius: 12px !important;
  cursor: pointer;
  font-size: .9rem;
}
.tjs-shop-page .woocommerce:has(> .woocommerce-result-count),
.tjs-fallback-shop .tjs-catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
.tjs-shop-page .woocommerce > :is(ul.products, .woocommerce-pagination, .woocommerce-notices-wrapper, .products),
.tjs-fallback-shop .tjs-catalog-tools { width: 100%; }
.tjs-shop-page .woocommerce > ul.products { flex-basis: 100%; }
.tjs-shop-page .woocommerce > nav.woocommerce-pagination { flex-basis: 100%; }
.tjs-wc-modern .woocommerce ul.products {
  clear: both;
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  column-gap: clamp(12px,1.8vw,23px);
  row-gap: 25px;
  margin: 0 0 30px;
  padding: 0;
}
.tjs-wc-modern .woocommerce ul.products::before,
.tjs-wc-modern .woocommerce ul.products::after { display: none !important; }
.tjs-wc-modern .woocommerce ul.products li.product {
  float: none !important;
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 11px 11px 16px;
  border: 1px solid #f2eaf0 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(32,19,67,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tjs-wc-modern .woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--tjs-shadow);
}
.tjs-wc-modern .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tjs-navy);
  min-width: 0;
}
.tjs-wc-modern .woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  background: #f4f4f6;
  border-radius: 11px;
  margin: 0 0 10px !important;
}
.tjs-wc-modern .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--tjs-navy);
  font-weight: 850;
  font-size: clamp(.85rem, 1.05vw, 1rem);
  line-height: 1.35;
  min-height: 2.7em;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0 1px;
}
.tjs-wc-modern .woocommerce ul.products li.product .price {
  display: block;
  color: var(--tjs-navy) !important;
  font-weight: 850;
  font-size: 1rem;
  margin: auto 0 10px;
  padding-top: 8px;
}
.tjs-wc-modern .woocommerce ul.products li.product .price :is(del,ins) { color: inherit; }
.tjs-wc-modern .woocommerce ul.products li.product .button {
  align-self: stretch;
  width: 100%;
  margin: auto 0 0 !important;
  padding: .66rem .58rem;
  font-size: .9rem;
}
.tjs-wc-modern .woocommerce ul.products li.product:nth-child(even) .button {
  background: var(--tjs-yellow) !important;
  color: var(--tjs-navy) !important;
  box-shadow: 0 6px 16px rgba(255,213,44,.22);
}
.tjs-wc-modern .woocommerce ul.products li.product:nth-child(even) .button:hover {
  background: #ffc80c !important;
}
.tjs-wc-modern .woocommerce ul.products li.product .added_to_cart {
  text-align: center;
  margin-top: 8px;
  font-size: .81rem;
}
.tjs-wc-modern .woocommerce .star-rating { color: #ffba00; }
.tjs-wc-modern .woocommerce nav.woocommerce-pagination { text-align: center; }
.tjs-wc-modern .woocommerce nav.woocommerce-pagination ul,
.tjs-wc-modern .tjs-catalog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
}
.tjs-wc-modern .woocommerce nav.woocommerce-pagination ul li { border: 0; }
.tjs-wc-modern :is(.tjs-catalog-pagination a,.tjs-catalog-pagination span,.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span) {
  display: inline-flex;
  min-width: 35px;
  min-height: 35px;
  padding: 7px 10px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--tjs-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tjs-navy);
  text-decoration: none;
}
.tjs-wc-modern :is(.tjs-catalog-pagination .current,.woocommerce nav.woocommerce-pagination ul li .current) {
  background: var(--tjs-coral);
  color: #fff;
}

/* 03. Product detail: two-column layout, WooCommerce gallery / variations */
.tjs-product-page .tj-wc-page-heading { padding-bottom: 13px; }
.tjs-product-page .tj-wc-breadcrumb { overflow-wrap: anywhere; }
.tjs-product-page .woocommerce div.product {
  display: flow-root;
  padding: clamp(16px,2.5vw,34px);
  border: 1px solid var(--tjs-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--tjs-shadow);
}
.tjs-product-page .woocommerce div.product::after { content: ""; display: block; clear: both; }
.tjs-product-page .woocommerce div.product div.images {
  width: 53% !important;
  float: left;
  margin: 0 0 25px !important;
}
.tjs-product-page .woocommerce div.product div.summary {
  width: 42.5% !important;
  float: right;
  padding: 4px 0;
  margin: 0 0 25px !important;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery {
  display: grid !important;
  grid-template-columns: clamp(54px,6vw,82px) minmax(0,1fr);
  gap: clamp(9px,1.2vw,17px);
  position: relative;
  align-items: start;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-viewport,
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border-radius: 16px;
  background: #f4f4f6;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
  border-radius: 0;
  background: transparent;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none !important;
  width: 100% !important;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
  border-color: var(--tjs-coral);
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  margin: 0 !important;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery :is(.woocommerce-product-gallery__image img, .wp-post-image) {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f4f4f6;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery__trigger {
  z-index: 3;
  right: 12px;
  top: 12px;
}
.tjs-product-page .woocommerce div.product .product_title {
  font-size: clamp(1.7rem,2.5vw,2.9rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 12px !important;
  color: var(--tjs-navy) !important;
}
.tjs-product-page .woocommerce div.product .summary :is(p.price,span.price,p.price .amount,span.price .amount),
.tjs-product-page .woocommerce div.product .woocommerce-variation-price .price {
  color: #ff2966 !important;
  font-size: clamp(1.4rem,1.9vw,2rem);
  font-weight: 900;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-details__short-description {
  color: #5a5570;
  line-height: 1.55;
  font-size: .95rem;
}
.tjs-product-page .woocommerce div.product table.variations {
  margin: 16px 0;
  border: none;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.tjs-product-page .woocommerce div.product table.variations :is(th,td) {
  padding: 4px;
  line-height: 1.35;
  vertical-align: middle;
  text-align: left;
  background: transparent;
}
.tjs-product-page .woocommerce div.product table.variations th.label {
  width: 105px;
  min-width: 70px;
  font-size: .85rem;
}
.tjs-product-page .woocommerce div.product table.variations label { color: var(--tjs-navy); font-weight: 850; }
.tjs-product-page .woocommerce div.product table.variations select { width: 100%; min-width: 0; margin: 0; }
.tjs-product-page .woocommerce div.product .reset_variations {
  display: inline-block;
  font-size: .8rem;
  color: var(--tjs-coral-hover);
  margin: 7px 0 0;
}
.tjs-product-page .woocommerce div.product form.cart { margin: 14px 0 16px; }
.tjs-product-page .woocommerce div.product form.cart:not(.variations_form),
.tjs-product-page .woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tjs-product-page .woocommerce div.product .woocommerce-variation-add-to-cart .quantity { margin: 0; }
.tjs-wc-modern .woocommerce .tjs-quantity-control {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid #ddd6e4;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.tjs-wc-modern .woocommerce .tjs-quantity-control .qty {
  width: 48px !important;
  min-width: 0 !important;
  min-height: 42px;
  height: 42px;
  padding: 3px !important;
  text-align: center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  -moz-appearance: textfield;
}
.tjs-wc-modern .woocommerce .tjs-quantity-control .qty::-webkit-inner-spin-button,
.tjs-wc-modern .woocommerce .tjs-quantity-control .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tjs-wc-modern .woocommerce .tjs-quantity-control__button {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 35px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--tjs-navy);
  font-size: 19px;
  cursor: pointer;
}
.tjs-wc-modern .woocommerce .tjs-quantity-control__button:hover { background: #fff2f7; }
.tjs-product-page .woocommerce div.product .single_add_to_cart_button {
  flex: 1 1 160px;
  margin: 0 !important;
  min-height: 45px;
}
.tjs-product-page .woocommerce div.product .tjs-buy-now {
  flex: 1 1 160px;
  margin: 0 !important;
  min-height: 45px;
  background: var(--tjs-yellow) !important;
  color: var(--tjs-navy) !important;
  box-shadow: 0 6px 16px rgba(255,213,44,.2);
}
.tjs-product-page .woocommerce div.product .tjs-buy-now:hover {
  background: #ffc80b !important;
  color: var(--tjs-navy) !important;
}
.tjs-product-page .woocommerce div.product .product_meta {
  clear: both;
  margin-top: 21px;
  padding-top: 15px;
  border-top: 1px solid var(--tjs-border);
  font-size: .82rem;
  color: var(--tjs-muted);
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs {
  clear: both;
  padding-top: 17px;
  margin-top: 22px;
  border-top: 1px solid var(--tjs-border);
  width: 100%;
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0 !important;
  border-bottom: 1px solid var(--tjs-border);
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs::before,
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: block;
  border: 1px solid var(--tjs-border) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 0 !important;
  margin: 0 0 -1px !important;
  background: #f5f1f6 !important;
  color: var(--tjs-navy);
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: #ffd6e2 !important;
  border-bottom-color: #fff !important;
  background: #fff !important;
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: .8rem 1rem !important;
  font-size: .85rem;
  font-weight: 800;
  color: #59546d;
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #ff2e65 !important; }
.tjs-product-page .woocommerce div.product .woocommerce-tabs .panel {
  padding: 20px 12px 12px;
  line-height: 1.75;
  color: #4e4964;
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 1.28rem; margin: 0 0 10px; }
.tjs-product-page .woocommerce div.product .related.products { clear: both; padding-top: 22px; }
.tjs-product-page .woocommerce div.product .related.products h2 { margin-bottom: 15px; }

/* 04. Cart and checkout common */
.tjs-wc-modern .tjs-commerce-shell {
  max-width: 1180px;
  padding-top: clamp(26px,4.2vw,53px);
  padding-bottom: 78px;
}
.tjs-wc-modern .tjs-commerce-steps {
  border: 1px solid #f6e3eb;
  border-radius: 15px;
  background: linear-gradient(95deg, #fff1f4, #fff6f7);
  margin: 0 0 24px;
  padding: 12px clamp(10px,2vw,25px);
}
.tjs-wc-modern .tjs-commerce-steps ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tjs-wc-modern .tjs-commerce-steps__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
  color: #646074;
  font-size: .9rem;
}
.tjs-wc-modern .tjs-commerce-steps__number {
  display: inline-grid;
  place-items: center;
  border: 1px solid #d9d0de;
  background: #fff;
  color: var(--tjs-navy);
  border-radius: 99px;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  font-size: .83rem;
}
.tjs-wc-modern .tjs-commerce-steps__item.is-current { color: var(--tjs-navy); }
.tjs-wc-modern .tjs-commerce-steps__item.is-current .tjs-commerce-steps__number {
  border-color: var(--tjs-coral);
  background: var(--tjs-coral);
  color: #fff;
}
.tjs-wc-modern .tjs-commerce-steps__item.is-complete .tjs-commerce-steps__number {
  background: var(--tjs-yellow);
  border-color: var(--tjs-yellow);
}
.tjs-wc-modern .tjs-commerce-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem,2.5vw,2.25rem);
  color: var(--tjs-navy);
  font-weight: 900;
}
.tjs-wc-modern .tjs-commerce-content {
  min-width: 0;
  width: 100%;
}
.tjs-wc-modern .tjs-commerce-content > .woocommerce {
  max-width: none;
  width: 100%;
}
.tjs-wc-modern .woocommerce :is(.cart_totals, .woocommerce-cart-form, #customer_details, #order_review) {
  min-width: 0;
}
.tjs-wc-modern .woocommerce .shop_table { border-collapse: separate; border-spacing: 0; }
.tjs-wc-modern .woocommerce :is(.shop_table th,.shop_table td) { border-color: #f0e5ef; color: var(--tjs-navy); }
.tjs-wc-modern .woocommerce .shop_table a { color: var(--tjs-navy); }
.tjs-wc-modern .woocommerce .shop_table .product-name { overflow-wrap: anywhere; }

/* 05. Cart — classic WooCommerce shortcode */
.tjs-cart-page .tjs-commerce-content { max-width: 1050px; margin-inline: auto; }
.tjs-cart-page .woocommerce .woocommerce-cart-form {
  overflow: visible;
  border: 1px solid var(--tjs-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--tjs-shadow);
  padding: clamp(12px,2vw,24px);
}
.tjs-cart-page .woocommerce .woocommerce-cart-form table.shop_table {
  width: 100%;
  border: none;
  border-radius: 0;
  margin: 0;
}
.tjs-cart-page .woocommerce-cart-form table.shop_table th {
  border-bottom: 1px solid #f0e3ec;
  font-size: .82rem;
  font-weight: 850;
  padding: .7rem;
  color: #69627b;
}
.tjs-cart-page .woocommerce-cart-form table.shop_table td { border-bottom: 1px solid #f0e3ec; padding: 15px 9px; }
.tjs-cart-page .woocommerce-cart-form .product-thumbnail { width: 100px; }
.tjs-cart-page .woocommerce-cart-form .product-thumbnail img {
  width: 86px !important;
  height: 86px !important;
  object-fit: cover;
  border-radius: 12px;
  background: #f5f5f7;
}
.tjs-cart-page .woocommerce-cart-form .product-name a { color: var(--tjs-coral-hover) !important; font-weight: 850; }
.tjs-cart-page .woocommerce-cart-form .variation { font-size: .83rem; color: #514a65; margin-top: 6px; }
.tjs-cart-page .woocommerce-cart-form .product-remove a.remove {
  color: var(--tjs-navy) !important;
  background: transparent !important;
}
.tjs-cart-page .woocommerce-cart-form .product-remove a.remove:hover {
  color: #fff !important;
  background: var(--tjs-coral) !important;
}
.tjs-cart-page .woocommerce-cart-form .actions .coupon {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.tjs-cart-page .woocommerce .coupon input#coupon_code { min-width: 180px; width: min(255px,100%); }
.tjs-cart-page .woocommerce .actions button[name="update_cart"] {
  background: #f4eff5 !important;
  color: var(--tjs-navy) !important;
  box-shadow: none;
}
.tjs-cart-page .woocommerce .cart-collaterals {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.tjs-cart-page .woocommerce .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  padding: clamp(17px,2.8vw,27px);
  border: 1px solid var(--tjs-border);
  background: var(--tjs-blush);
  border-radius: 18px;
}
.tjs-cart-page .woocommerce .cart-collaterals .cart_totals h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 850;
}
.tjs-cart-page .woocommerce .cart-collaterals table.shop_table { width: 100%; margin: 0 0 12px; border: 0; }
.tjs-cart-page .woocommerce .cart-collaterals table.shop_table td { text-align: right; }
.tjs-cart-page .woocommerce .cart-collaterals .order-total :is(th,td) { font-size: 1.2rem; font-weight: 900; }
.tjs-cart-page .woocommerce .wc-proceed-to-checkout { padding: 12px 0 0; }
.tjs-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  margin: 0;
  min-height: 52px;
  font-size: 1rem;
  background: var(--tjs-coral) !important;
  color: #fff !important;
}
.tjs-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button::after {
  content: " →";
  padding-left: 9px;
  font-size: 1.2rem;
}
.tjs-cart-page .tjs-cart-recommendations {
  background: linear-gradient(90deg,#fff3f6,#fff7f9);
  border: 1px solid #fbe8f0;
  border-radius: 17px;
  padding: clamp(15px,2.5vw,24px);
}
.tjs-cart-page .tjs-cart-recommendations h2 { margin: 0 0 15px; font-size: 1.19rem; font-weight: 900; }
.tjs-cart-page .tjs-cart-recommendations ul.products {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product {
  display: grid;
  grid-template-columns: 75px minmax(0,1fr);
  grid-template-rows: 1fr auto;
  gap: 6px 12px;
  padding: 8px;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product > a.woocommerce-LoopProduct-link {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 75px minmax(0,1fr);
  grid-template-rows: min-content min-content;
  column-gap: 12px;
  min-width: 0;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product a img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 75px;
  height: 75px;
  margin: 0 !important;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product .woocommerce-loop-product__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  font-size: .79rem;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product .price {
  grid-column: 2;
  grid-row: 2;
  font-size: .78rem;
  padding: 0;
  margin: 0;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product .button {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  font-size: .75rem;
  min-height: 32px;
  padding: 5px 7px;
}
.tjs-cart-page .tjs-cart-recommendations ul.products li.product:nth-child(even) .button {
  background: var(--tjs-coral) !important;
  color: #fff !important;
}

/* 06. Checkout — classic shortcode uses WooCommerce form and live gateways */
.tjs-checkout-page .woocommerce form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0,1.24fr) minmax(320px,.92fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px,3vw,45px);
  row-gap: 0;
  align-items: start;
}
.tjs-checkout-page .woocommerce form.checkout #customer_details {
  width: 100%;
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  margin: 0;
}
.tjs-checkout-page .woocommerce form.checkout #customer_details :is(.col-1,.col-2) {
  width: 100%;
  float: none;
  margin: 0 0 20px;
  padding: clamp(15px,2vw,25px);
  background: #fff;
  border: 1px solid var(--tjs-border);
  border-radius: 18px;
}
.tjs-checkout-page .woocommerce form.checkout #customer_details h3 {
  font-size: 1.12rem;
  font-weight: 900;
  margin: 0 0 18px;
}
.tjs-checkout-page .woocommerce form.checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  float: none;
  width: 100%;
  margin: 0;
  padding: 20px 22px 0;
  background: var(--tjs-blush);
  border: 1px solid var(--tjs-border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  font-size: 1.18rem;
  font-weight: 900;
}
.tjs-checkout-page .woocommerce form.checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  float: none;
  min-width: 0;
  padding: 10px 20px 22px;
  background: var(--tjs-blush);
  border: 1px solid var(--tjs-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}
.tjs-checkout-page .woocommerce #order_review table.shop_table { border: 0; background: transparent; margin: 0; }
.tjs-checkout-page .woocommerce #order_review table.shop_table td,
.tjs-checkout-page .woocommerce #order_review table.shop_table th {
  padding: 13px 6px;
  line-height: 1.4;
}
.tjs-checkout-page .woocommerce #order_review table.shop_table .order-total :is(th,td) {
  font-size: 1.15rem;
  font-weight: 900;
}
.tjs-checkout-page .tjs-checkout-line { display: flex; align-items: center; gap: 10px; text-align: left; }
.tjs-checkout-page .tjs-checkout-line__thumb { width: 56px; flex: 0 0 56px; }
.tjs-checkout-page .tjs-checkout-line__image { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; }
.tjs-checkout-page .tjs-checkout-line__name { display: block; overflow-wrap: anywhere; font-weight: 800; font-size: .86rem; }
.tjs-checkout-page .woocommerce #order_review #payment {
  border: 1px solid #f1e2eb;
  border-radius: 15px;
  background: #fff;
  margin-top: 17px;
}
.tjs-checkout-page .woocommerce #order_review #payment ul.payment_methods { border-bottom: 1px solid #f2e9f0; }
.tjs-checkout-page .woocommerce #order_review #payment div.place-order { padding: 17px; }
.tjs-checkout-page .woocommerce #order_review #payment #place_order {
  float: none !important;
  width: 100%;
  min-height: 53px;
  margin: 0;
  font-size: 1rem;
}
.tjs-checkout-page .woocommerce :is(form.checkout,form.woocommerce-checkout) .form-row { margin-bottom: 10px; }
.tjs-checkout-page .woocommerce form .form-row label {
  font-size: .85rem;
  font-weight: 800;
  color: var(--tjs-navy);
  margin-bottom: 5px;
}
.tjs-checkout-page .woocommerce .woocommerce-form-coupon-toggle { margin-bottom: 10px; }
.tjs-checkout-page .woocommerce form.checkout_coupon {
  margin: 0 0 25px;
  border: 1px solid var(--tjs-border);
  border-radius: 15px;
  background: var(--tjs-blush);
}
.tjs-checkout-page .tjs-trust-note {
  font-size: .77rem;
  line-height: 1.4;
  color: var(--tjs-muted);
  margin: 8px 0;
  text-align: center;
}
.tjs-checkout-page .woocommerce .woocommerce-terms-and-conditions-wrapper { font-size: .83rem; }

/* Preserve the complete WooCommerce payment container.
   Earlier CSS used display:contents on #payment and moved its children into
   separate grid cells. Gateways can inject their own wrappers, validation
   messages, or event-dependent elements; keeping the native DOM box intact
   is more reliable for both accessibility and payment integrations. */
@media (min-width: 921px) {
  .tjs-checkout-page .woocommerce form.checkout.woocommerce-checkout {
    grid-template-rows: auto minmax(0,1fr);
  }
  .tjs-checkout-page .woocommerce form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .tjs-checkout-page .woocommerce form.checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
  }
  .tjs-checkout-page .woocommerce form.checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    display: block;
  }
  .tjs-checkout-page .woocommerce form.checkout #order_review #payment {
    display: block;
  }
}

/* 07. Cart and Checkout WooCommerce Blocks */
.tjs-wc-modern .wp-block-woocommerce-cart,
.tjs-wc-modern .wp-block-woocommerce-checkout { max-width: 100%; margin-inline: auto; }
.tjs-wc-modern :is(.wc-block-cart__main,.wc-block-cart__sidebar,.wc-block-checkout__main,.wc-block-checkout__sidebar) {
  min-width: 0;
}
.tjs-wc-modern :is(.wc-block-components-sidebar,.wc-block-checkout__sidebar,.wc-block-cart__sidebar) {
  padding: clamp(13px,2vw,23px);
  border: 1px solid var(--tjs-border);
  border-radius: 18px;
  background: var(--tjs-blush);
}
.tjs-wc-modern :is(.wc-block-cart__main,.wc-block-checkout__main) {
  padding: clamp(12px,2vw,22px);
  background: #fff;
  border: 1px solid var(--tjs-border);
  border-radius: 18px;
}
.tjs-wc-modern :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input) { border-radius: 10px !important; }
.tjs-wc-modern .wc-block-components-order-summary-item__image img {
  border-radius: 10px;
  object-fit: cover;
}
.tjs-wc-modern .wc-block-components-order-summary-item__description { overflow-wrap: anywhere; }
.tjs-wc-modern .wc-block-components-totals-wrapper { border-color: var(--tjs-border); }
.tjs-wc-modern .wc-block-components-title { color: var(--tjs-navy); font-weight: 900; }
.tjs-wc-modern :is(.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button) {
  background: var(--tjs-coral) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 52px;
  box-shadow: 0 8px 18px rgba(255,92,104,.13);
  font-weight: 850;
}
.tjs-wc-modern :is(.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button):hover {
  background: var(--tjs-coral-hover) !important;
}
.tjs-wc-modern .wp-block-woocommerce-checkout input[type="checkbox"] { accent-color: var(--tjs-blue); }
.tjs-wc-modern :is(.wc-block-components-quantity-selector,.wc-block-components-quantity-selector input) {
  border-radius: 9px;
}
.tjs-wc-modern .wc-block-cart-items__row :is(.wc-block-cart-item__image img,.wc-block-components-product-image img) {
  border-radius: 12px;
}
.tjs-wc-modern .wc-block-cart-items__row .wc-block-components-product-name {
  color: var(--tjs-coral-hover);
  font-weight: 850;
}

/* No broad widget hiding: transaction templates avoid loading them at source. */
.tjs-wc-modern :is(.tjs-woo-template,.tjs-commerce-layout) :is(#primary,.site-main) { width: 100%; }
.tjs-wc-modern :is(.tjs-woo-template,.tjs-commerce-layout) :is(ul.products,.woocommerce-cart-form) { min-width: 0; }

/* 08. Responsive typography, gallery, cart, checkout, mobile navigation */
@media (max-width: 1120px) {
  .tjs-wc-modern .tj-header__inner { gap: 10px; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only { flex-basis: 132px !important; width: 132px !important; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only img { width: 132px !important; max-width: 132px !important; }
  .tjs-wc-modern .tj-primary-nav__list a { padding: .52rem .44rem; }
  .tjs-product-page .woocommerce div.product div.images { width: 51% !important; }
  .tjs-product-page .woocommerce div.product div.summary { width: 46% !important; }
}
@media (max-width: 920px) {
  .tjs-wc-modern .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tjs-wc-modern .tj-header__inner { min-height: 80px !important; }
  .tjs-wc-modern .tj-primary-nav { inset: 80px 0 auto !important; }
  .tjs-wc-modern .tj-primary-nav__list { flex-wrap: wrap; }
  .tjs-wc-modern .tj-primary-nav__list a { font-size: .95rem; }
  .tjs-product-page .woocommerce div.product div.images,
  .tjs-product-page .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 0 24px !important;
  }
  .tjs-product-page .woocommerce div.product .woocommerce-product-gallery {
    max-width: 720px;
    margin-inline: auto;
  }
  .tjs-checkout-page .woocommerce form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0,1fr);
  }
  .tjs-checkout-page .woocommerce form.checkout #customer_details,
  .tjs-checkout-page .woocommerce form.checkout #order_review_heading,
  .tjs-checkout-page .woocommerce form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }
  .tjs-checkout-page .woocommerce form.checkout #order_review_heading { margin-top: 7px; }
}
@media (max-width: 640px) {
  .tjs-wc-modern .tj-container { width: min(calc(100% - 26px),1280px); }
  .tjs-wc-modern .tj-header__inner { min-height: 74px !important; gap: 8px; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only { flex-basis: 106px !important; width: 106px !important; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only img { width: 106px !important; max-width: 106px !important; }
  .tjs-wc-modern .tj-primary-nav { inset: 74px 0 auto !important; }
  .tjs-wc-modern .tj-header__actions { gap: 6px; }
  .tjs-wc-modern .tj-header-cart { font-size: .75rem; padding: 4px 8px; }
  .tjs-wc-modern .tj-header__actions .tj-button--shop { display: none; }
  .tjs-wc-modern .tj-wc-page-heading { padding-top: 22px; }
  .tjs-wc-modern .tjs-woo-page-title { font-size: 2.1rem; }
  .tjs-wc-modern .woocommerce ul.products { column-gap: 9px; row-gap: 13px; }
  .tjs-wc-modern .woocommerce ul.products li.product { padding: 8px; border-radius: 12px; }
  .tjs-wc-modern .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .81rem; }
  .tjs-wc-modern .woocommerce ul.products li.product .price { font-size: .88rem; }
  .tjs-wc-modern .woocommerce ul.products li.product .button { font-size: .78rem; padding: 8px 4px; min-height: 38px; }
  .tjs-shop-page .woocommerce .woocommerce-result-count { margin-bottom: 4px; }
  .tjs-shop-page .woocommerce .woocommerce-ordering { margin: 0 0 15px; width: 100%; }
  .tjs-shop-page .woocommerce .woocommerce-ordering select { width: 100%; }
  .tjs-product-page .woocommerce div.product { padding: 13px; border-radius: 15px; }
  .tjs-product-page .woocommerce div.product .woocommerce-product-gallery {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 8px;
  }
  .tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs { gap: 6px; }
  .tjs-product-page .woocommerce div.product .product_title { font-size: 1.75rem; }
  .tjs-product-page .woocommerce div.product .tjs-buy-now { flex-basis: 100%; }
  .tjs-product-page .woocommerce div.product table.variations th.label { width: 70px; }
  .tjs-wc-modern .tjs-commerce-shell { padding-top: 19px; padding-bottom: 44px; }
  .tjs-wc-modern .tjs-commerce-steps { padding: 9px 6px; }
  .tjs-wc-modern .tjs-commerce-steps ol { gap: 3px; }
  .tjs-wc-modern .tjs-commerce-steps__item { gap: 5px; font-size: .7rem; }
  .tjs-wc-modern .tjs-commerce-steps__number { width: 25px; height: 25px; flex-basis: 25px; font-size: .7rem; }
  .tjs-cart-page .woocommerce .woocommerce-cart-form { padding: 8px; }
  .tjs-cart-page .woocommerce .woocommerce-cart-form table.shop_table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
  .tjs-cart-page .woocommerce .woocommerce-cart-form table.shop_table th { font-size: .75rem; }
  .tjs-cart-page .woocommerce-cart-form .product-thumbnail img { width: 65px !important; height: 65px !important; }
  .tjs-cart-page .woocommerce .actions .coupon { width: 100%; float: none; }
  .tjs-cart-page .woocommerce .coupon input#coupon_code { width: 100%; }
  .tjs-cart-page .woocommerce .actions button[name="update_cart"] { margin-top: 9px; }
  .tjs-cart-page .tjs-cart-recommendations ul.products { grid-template-columns: minmax(0,1fr); }
  .tjs-cart-page .tjs-cart-recommendations ul.products li.product { grid-template-columns: 70px minmax(0,1fr); }
  .tjs-checkout-page .woocommerce form.checkout #customer_details :is(.col-1,.col-2) { padding: 13px; }
  .tjs-checkout-page .woocommerce form.checkout #order_review { padding: 10px 13px 15px; }
  .tjs-checkout-page .woocommerce form.checkout #order_review_heading { padding: 15px 15px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tjs-wc-modern *, .tjs-wc-modern *::before, .tjs-wc-modern *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   09. Reference fidelity — Think Joy Studio four-screen visual target (v1.6)
   Target: uploaded Shop / Product / Bag / Checkout mockup.
   Only styling: product data, totals, shipping and gateways stay in WooCommerce.
   ========================================================================== */

/* Common commerce frame: clean header, large white cards, playful accents. */
body.tjs-wc-modern {
  --tjs-navy: #191738;
  --tjs-coral: #ff5e6b;
  --tjs-yellow: #ffda2e;
  --tjs-blue: #087dff;
  --tjs-blush: #fff5f8;
  --tjs-border: #eee2ee;
  --tjs-shadow: 0 10px 28px rgba(38, 23, 70, .07);
}
.tjs-wc-modern .tj-header__inner { min-height: 84px !important; }
.tjs-wc-modern .tj-brand.tj-brand--image-only { flex-basis: 145px !important; width: 145px !important; }
.tjs-wc-modern .tj-brand.tj-brand--image-only img { width: 145px !important; max-width: 145px !important; max-height: 68px !important; }
.tjs-wc-modern .tj-wc-page-heading { padding-top: clamp(20px,2.5vw,31px); }
.tjs-wc-modern .tjs-woo-page-title { font-size: clamp(2rem,3.5vw,2.9rem); }
.tjs-wc-modern .tj-wc-content { padding-bottom: 55px; }
.tjs-wc-modern .tj-wc-breadcrumb { font-size: .78rem; }

/* The design shows a three-stroke sunshine accent, not an oversized emoji. */
.tjs-wc-modern .tjs-sunmark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-left: 10px;
  font-size: 0;
  vertical-align: middle;
  transform: rotate(-8deg);
}
.tjs-wc-modern .tjs-sunmark::before,
.tjs-wc-modern .tjs-sunmark::after {
  content: "";
  position: absolute;
  display: block;
  width: 6px;
  height: 16px;
  background: #ffcc00;
  border-radius: 9px;
  left: 7px;
  top: 0;
  transform: rotate(15deg);
}
.tjs-wc-modern .tjs-sunmark::after {
  width: 16px;
  height: 6px;
  left: 13px;
  top: 17px;
  transform: rotate(-18deg);
}

/* Shop: image-first 4-column cards with aligned pricing and buttons. */
.tjs-shop-page .woocommerce ul.products {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(12px,1.6vw,22px);
}
.tjs-shop-page .woocommerce ul.products li.product {
  padding: 11px 11px 13px;
  border-radius: 15px;
  box-shadow: 0 4px 19px rgba(26, 21, 62, .035);
}
.tjs-shop-page .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { flex-grow: 1; }
.tjs-shop-page .woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f8;
  border-radius: 11px;
}
.tjs-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(.86rem,1.0vw,1.02rem);
  line-height: 1.4;
  font-weight: 850;
  min-height: 2.8em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.tjs-shop-page .woocommerce ul.products li.product .price {
  margin-top: auto;
  padding: 9px 0 12px;
  font-size: 1.04rem;
  font-weight: 800;
}
.tjs-shop-page .woocommerce ul.products li.product .button {
  width: min(100%,190px);
  align-self: start;
  padding: 11px 15px;
  min-height: 43px;
}
.tjs-shop-page .woocommerce .woocommerce-result-count {
  color: var(--tjs-navy);
  font-size: .87rem;
  font-weight: 700;
}

/* Product: gallery left / information right, vertically stacked thumbnails,
   side-by-side Size and Type when both attributes exist. */
.tjs-product-page .woocommerce div.product {
  padding: clamp(16px,2.2vw,29px);
  border-radius: 20px;
}
.tjs-product-page .woocommerce div.product div.images { width: 50% !important; }
.tjs-product-page .woocommerce div.product div.summary { width: 46% !important; }
.tjs-product-page .woocommerce div.product .product_title {
  font-size: clamp(1.75rem,2.35vw,2.7rem);
  line-height: 1.13;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-viewport {
  background: #f5f5f7;
  border-radius: 13px;
}
.tjs-product-page .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; }
.tjs-product-page .woocommerce div.product .variations_form table.variations tbody {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.tjs-product-page .woocommerce div.product .variations_form table.variations tbody tr {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tjs-product-page .woocommerce div.product .variations_form table.variations th.label {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}
.tjs-product-page .woocommerce div.product .variations_form table.variations td.value {
  flex: 1 1 auto;
  min-width: 0;
}
.tjs-product-page .woocommerce div.product .variations_form table.variations td.value select { width: 100%; }
.tjs-product-page .woocommerce div.product .tjs-product-qty-label {
  font-size: .86rem;
  color: var(--tjs-navy);
  font-weight: 850;
  flex: 0 0 76px;
}
.tjs-product-page .woocommerce div.product form.cart:not(.variations_form) .quantity,
.tjs-product-page .woocommerce div.product .woocommerce-variation-add-to-cart .quantity {
  flex: 1 1 calc(100% - 95px);
  margin: 0 0 7px;
}
.tjs-product-page .woocommerce div.product :is(.single_add_to_cart_button,.tjs-buy-now) {
  flex: 1 1 44%;
  min-width: 125px;
  min-height: 47px;
}
.tjs-product-page .woocommerce div.product .woocommerce-tabs { margin-top: 12px; }
.tjs-product-page .woocommerce div.product .woocommerce-tabs .panel { font-size: .93rem; }

/* Bag: WooCommerce cart table becomes a clean, compact product card without
   changing any WooCommerce form, nonce, quantity field or total calculation. */
.tjs-cart-page .tjs-commerce-content { max-width: 1050px; }
.tjs-cart-page .woocommerce .woocommerce-cart-form {
  border-radius: 18px;
  box-shadow: none;
  padding: 12px 18px;
}
.tjs-cart-page .woocommerce-cart-form table.shop_table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tjs-cart-page .woocommerce-cart-form table.shop_table tr.cart_item {
  border-bottom: 1px solid var(--tjs-border);
}
.tjs-cart-page .woocommerce-cart-form table.shop_table td {
  border: 0;
  vertical-align: middle;
}
.tjs-cart-page .woocommerce-cart-form .product-name a {
  font-size: .96rem;
  line-height: 1.35;
}
.tjs-cart-page .woocommerce-cart-form .product-thumbnail img {
  width: 98px !important;
  height: 98px !important;
}
.tjs-cart-page .woocommerce-cart-form .actions { padding-top: 13px !important; }
.tjs-cart-page .woocommerce .cart-collaterals { margin-top: 14px; gap: 12px; }
.tjs-cart-page .woocommerce .cart-collaterals .cart_totals {
  padding: 17px clamp(15px,3vw,27px);
  border-radius: 16px;
}
.tjs-cart-page .woocommerce .wc-proceed-to-checkout { padding: 10px 0 0; }
.tjs-cart-page .tjs-cart-recommendations { margin-top: 10px; }

/* Checkout: preserve the gateway's real #payment DOM and form submission.
   The summary retains the pale-pink frame from the visual reference. */
.tjs-checkout-page .tjs-commerce-content { max-width: 1230px; margin-inline: auto; }
.tjs-checkout-page .woocommerce form.checkout.woocommerce-checkout {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .92fr);
  gap: 0 clamp(20px,3.2vw,42px);
}
.tjs-checkout-page .woocommerce form.checkout #customer_details :is(.col-1,.col-2) {
  border: 1px solid #f1e9ef;
  padding: clamp(17px,2.4vw,26px);
}
.tjs-checkout-page .woocommerce form.checkout #order_review_heading {
  background: linear-gradient(130deg,#fff1f6,#fff8fa);
}
.tjs-checkout-page .woocommerce form.checkout #order_review {
  background: linear-gradient(130deg,#fff1f6,#fff8fa);
}
.tjs-checkout-page .woocommerce form.checkout #customer_details h3,
.tjs-checkout-page .woocommerce form.checkout #order_review_heading { font-size: 1.16rem; }
.tjs-checkout-page .woocommerce #order_review table.shop_table td,
.tjs-checkout-page .woocommerce #order_review table.shop_table th { padding-block: 12px; }
.tjs-checkout-page .woocommerce #order_review #payment {
  margin-top: 13px;
  background: #fff;
}
.tjs-checkout-page .woocommerce form .form-row .input-text { width: 100%; }
.tjs-checkout-page .woocommerce .woocommerce-form-coupon-toggle,
.tjs-checkout-page .woocommerce form.checkout_coupon { max-width: 100%; }

/* When WooCommerce's Cart/Checkout blocks are used, style their public
   parent wrappers only; never rearrange the Store API or payment components. */
.tjs-cart-page .wp-block-woocommerce-cart,
.tjs-checkout-page .wp-block-woocommerce-checkout { width: 100%; }
.tjs-wc-modern :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) {
  --wc-blocks-radius: 14px;
}

/* Responsive: do not overflow variations, tables or gateway controls. */
@media (max-width: 1120px) {
  .tjs-wc-modern .tj-brand.tj-brand--image-only { flex-basis: 128px !important; width: 128px !important; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only img { width: 128px !important; max-width: 128px !important; }
}
@media (max-width: 920px) {
  .tjs-shop-page .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tjs-product-page .woocommerce div.product div.images,
  .tjs-product-page .woocommerce div.product div.summary { width: 100% !important; }
  .tjs-checkout-page .woocommerce form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tjs-wc-modern .tj-brand.tj-brand--image-only { flex-basis: 105px !important; width: 105px !important; }
  .tjs-wc-modern .tj-brand.tj-brand--image-only img { width: 105px !important; max-width: 105px !important; }
  .tjs-shop-page .woocommerce ul.products { gap: 11px; }
  .tjs-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 0; }
  .tjs-shop-page .woocommerce ul.products li.product .button { width: 100%; }
  .tjs-product-page .woocommerce div.product .variations_form table.variations tbody { grid-template-columns: 1fr; }
  .tjs-product-page .woocommerce div.product .variations_form table.variations tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 3px;
  }
  .tjs-product-page .woocommerce div.product .variations_form table.variations :is(th.label,td.value) { width: 100%; }
  .tjs-product-page .woocommerce div.product :is(.single_add_to_cart_button,.tjs-buy-now) { flex: 1 1 100%; }
  .tjs-cart-page .woocommerce .woocommerce-cart-form { padding: 10px 12px; }
  .tjs-cart-page .woocommerce-cart-form table.shop_table {
    display: table;
    overflow-x: visible;
    min-width: 0;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table tbody,
  .tjs-cart-page .woocommerce-cart-form table.shop_table tr.cart_item { display: block; }
  .tjs-cart-page .woocommerce-cart-form table.shop_table tr.cart_item {
    position: relative;
    padding: 14px 6px 15px 84px;
    min-height: 110px;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table tr.cart_item td {
    display: block !important;
    width: 100%;
    padding: 3px 0;
    text-align: left !important;
    border: 0;
    background: transparent;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table tr.cart_item td::before { display: none !important; }
  .tjs-cart-page .woocommerce-cart-form table.shop_table td.product-thumbnail {
    display: block !important;
    position: absolute;
    top: 14px;
    left: 2px;
    width: 70px;
  }
  .tjs-cart-page .woocommerce-cart-form .product-thumbnail img {
    width: 69px !important;
    height: 69px !important;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table td.product-remove {
    position: absolute;
    right: 0;
    top: 9px;
    width: 26px;
    text-align: right !important;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table td.product-name {
    padding-right: 31px !important;
  }
  .tjs-cart-page .woocommerce-cart-form table.shop_table td.product-price { color: #655b73; font-size: .85rem; }
  .tjs-cart-page .woocommerce-cart-form table.shop_table td.product-subtotal { font-weight: 800; }
  .tjs-cart-page .woocommerce-cart-form table.shop_table tr:not(.cart_item) td.actions { display: block !important; }
  .tjs-checkout-page .woocommerce form.checkout #order_review_heading { margin-top: 7px; }
}
@media (max-width: 430px) {
  .tjs-product-page .woocommerce div.product .woocommerce-product-gallery { grid-template-columns: 47px minmax(0,1fr); }
  .tjs-shop-page .woocommerce ul.products li.product { padding: 8px; }
  .tjs-cart-page .woocommerce-cart-form .variation { font-size: .77rem; }
}

/* v1.7.1 — standalone Clear Cart control; appears on Bag and Stage 2 Checkout.
   All purchasing forms and totals remain WooCommerce-owned. */
.tjs-wc-modern .tjs-commerce-intro--with-actions {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px;
}
.tjs-wc-modern .tjs-commerce-intro--with-actions h1 { margin: 0; }
.tjs-wc-modern .tjs-commerce-checkout-toolbar {
  display: flex; justify-content: flex-end; margin: 0 0 16px;
}
.tjs-wc-modern .tjs-ca-clear-control {
  position: relative; max-width: min(100%, 340px); z-index: 3;
}
.tjs-wc-modern .tjs-ca-clear-control > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; list-style: none; border: 1.5px solid #dd6170;
  background: #fff; border-radius: 10px; padding: 10px 16px;
  color: #9d3446; font-size: .9rem; font-weight: 800;
  line-height: 1.3; transition: background .18s ease, border-color .18s ease;
}
.tjs-wc-modern .tjs-ca-clear-control > summary::-webkit-details-marker { display:none; }
.tjs-wc-modern .tjs-ca-clear-control > summary:is(:hover,:focus-visible) {
  background: #fff1f3; border-color: #b63f54;
}
.tjs-wc-modern .tjs-ca-clear-control > summary:focus-visible,
.tjs-wc-modern .tjs-ca-clear-control button:focus-visible {
  outline: 3px solid #28437c; outline-offset: 3px;
}
.tjs-wc-modern .tjs-ca-clear-confirm {
  background: #fff; padding: 17px; margin-top: 8px; border-radius: 14px;
  border: 1px solid #efc7d0; box-shadow: 0 10px 28px rgba(32,22,46,.13);
}
.tjs-wc-modern .tjs-ca-clear-confirm p { margin: 0 0 14px; color: #332b46; line-height: 1.5; }
.tjs-wc-modern .tjs-ca-clear-confirm button[type=submit] {
  background: #9d3446; color: #fff; font-weight: 800; border: 0;
  padding: 11px 15px; border-radius: 9px; cursor:pointer; width: 100%;
}
.tjs-wc-modern .tjs-ca-clear-confirm button[type=submit]:hover { background:#80273b; }
.tjs-wc-modern .tjs-ca-clear-hint { display: block; margin-top: 9px; font-size: .76rem; color: #696276; }
@media (max-width: 640px) {
  .tjs-wc-modern .tjs-commerce-intro--with-actions { align-items: stretch; }
  .tjs-wc-modern .tjs-ca-clear-control { width: 100%; max-width: 100%; }
  .tjs-wc-modern .tjs-ca-clear-control > summary { width:100%; }
  .tjs-wc-modern .tjs-commerce-checkout-toolbar { justify-content: stretch; }
}

.tjs-wc-modern .tjs-child-clear-cancel {
  display: block; width: 100%; margin-top: 8px; padding: 10px 15px;
  border: 1px solid #b9b2c1; border-radius: 9px; background: #fff;
  color: #332b46; font-weight: 700; cursor: pointer;
}
.tjs-wc-modern .tjs-child-clear-cancel[hidden] { display: none; }
