/* TWorld 3.1.3: scoped WooCommerce collision fixes and responsive refinements. */
/* Woo's product_list_widget uses floats and clearfix pseudo-elements. They must
   not become auto-placed grid cells in our custom mini cart. */
[data-tw-drawer="cart"] .tw-mc {display:flex;flex-direction:column;gap:10px;list-style:none;margin:0;padding:0;width:100%;min-width:0}
[data-tw-drawer="cart"] .tw-mc::before,[data-tw-drawer="cart"] .tw-mc::after,
[data-tw-drawer="cart"] .tw-mc__item::before,[data-tw-drawer="cart"] .tw-mc__item::after {content:none!important;display:none!important}
[data-tw-drawer="cart"] .tw-mc > li.tw-mc__item {display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-areas:"image info";align-items:start;gap:12px;padding:12px;position:relative;float:none;clear:none;width:100%;min-width:0;margin:0;list-style:none;overflow:visible}
[data-tw-drawer="cart"] .tw-mc__item > .tw-mc__img {grid-area:image;display:block;float:none;clear:none;margin:0;width:80px;height:80px;min-width:0;max-width:100%;aspect-ratio:auto;align-self:start;border-radius:10px;background:#fff;overflow:hidden}
[data-tw-drawer="cart"] .tw-mc__img img {display:block;float:none!important;clear:none!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;margin:0!important;object-fit:contain;box-shadow:none}
[data-tw-drawer="cart"] .tw-mc__info {grid-area:info;display:flex;flex-direction:column;min-width:0;padding:0;gap:4px}
[data-tw-drawer="cart"] .tw-mc__name {display:block;width:auto;float:none;clear:none;max-width:100%;font-size:15px;font-weight:600;line-height:1.35;padding-right:34px;overflow-wrap:anywhere}
[data-tw-drawer="cart"] .tw-mc__meta {min-width:0;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
[data-tw-drawer="cart"] .tw-mc__meta dl.variation {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:2px 6px;padding:0;margin:0;border:0}
[data-tw-drawer="cart"] .tw-mc__meta dl.variation::before,[data-tw-drawer="cart"] .tw-mc__meta dl.variation::after {display:none;content:none}
[data-tw-drawer="cart"] .tw-mc__meta dl.variation dt,[data-tw-drawer="cart"] .tw-mc__meta dl.variation dd {float:none;clear:none;display:block;padding:0;margin:0;border:0;min-width:0}
[data-tw-drawer="cart"] .tw-mc__meta dl.variation dd p {margin:0;line-height:inherit}
[data-tw-drawer="cart"] .tw-mc__row {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 10px;padding-top:6px;min-width:0}
[data-tw-drawer="cart"] .tw-mc__price {white-space:normal;overflow-wrap:anywhere;font-size:14px;font-weight:600}
[data-tw-drawer="cart"] .tw-qty {display:inline-flex;flex:0 0 auto;max-width:100%;height:38px}
[data-tw-drawer="cart"] .tw-qty button {width:32px;flex:0 0 32px;touch-action:manipulation}
[data-tw-drawer="cart"] .tw-qty input {width:32px;min-width:0;max-width:32px;flex:0 0 32px;font-size:16px;appearance:textfield}
[data-tw-drawer="cart"] .tw-mc__item > .tw-mc__remove {top:8px;right:8px;left:auto;bottom:auto;margin:0;float:none;z-index:2;width:32px!important;height:32px!important;color:var(--tw-ink)!important;box-shadow:none;touch-action:manipulation}
[data-tw-drawer="cart"] .tw-mc__item > .tw-mc__remove:hover {color:#fff!important}
[data-tw-drawer="cart"] .tw-mc-rec {grid-template-columns:56px minmax(0,1fr) auto;gap:10px}
[data-tw-drawer="cart"] .tw-mc-rec > * {min-width:0;overflow-wrap:anywhere}
[data-tw-drawer="cart"] .tw-mc-rec .button {max-width:100%;height:auto!important;min-height:40px;white-space:normal;text-align:center;line-height:1.25}
[data-tw-drawer="cart"] .tw-mc-total {gap:12px;overflow-wrap:anywhere}
[data-tw-drawer="cart"] .tw-mc-total > :last-child {text-align:right}
.tw-drawer {min-width:0;visibility:hidden;pointer-events:none;transition:transform .45s var(--tw-ease),visibility .45s}
.tw-drawer.is-open {visibility:visible;pointer-events:auto}
.tw-drawer__head {gap:12px;min-width:0}
.tw-drawer__close {flex:0 0 44px;touch-action:manipulation}
.tw-drawer__body {min-height:0;min-width:0;overflow-x:hidden;overscroll-behavior:contain}
.tw-drawer__foot {min-width:0}
.tw-drawer__foot .tw-btn {min-width:0;white-space:normal;text-align:center;line-height:1.2}
.admin-bar .tw-drawer {top:42px}
/* Order-confirmation option uses theme type and does not change other gateways. */
.tw-wa-confirm {max-width:760px;margin:20px 0 32px;padding:clamp(18px,4vw,30px);background:#f2f8f4;border:1px solid #c6e6d1;border-radius:var(--tw-r);color:var(--tw-ink);overflow-wrap:anywhere}
.tw-wa-confirm h2 {font-size:clamp(23px,4vw,32px);line-height:1.15;letter-spacing:-.03em;margin:0 0 10px}
.tw-wa-confirm p {margin:0 0 16px;font-size:15px;line-height:1.55}
.tw-wa-confirm small {display:block;margin-top:12px;color:var(--tw-soft)}
.tw-wa-confirm .tw-wa-button {background:#146c43;border-color:#146c43;color:#fff;width:100%;height:auto;min-height:52px;white-space:normal;text-align:center;line-height:1.3;padding:12px 16px}
.tw-wa-confirm .tw-wa-button:hover {background:#fff;color:#146c43}
.tw-wa-label {overflow-wrap:anywhere}
/* Intrinsic width constraints, including Woo's clearfix on grid containers. */
.tw-feature .tw-buy > *, .tw-feature__gal > *, .tw-look > *, .tw-card__row > *, .tw-sec__head > *, .tw-footer__cols > *, .tw-toolbar > *, .tw-arch > *, .tw-details__grid > * {min-width:0}
.tw-feature__thumbs {min-width:0}
.tw-card__name,.tw-footer__col,.tw-footer__contact a,.tw-footer__legal-links,.tw-titlerow,.tw-page__head h1 {overflow-wrap:anywhere}
.tw-card__price {white-space:normal;flex-wrap:wrap}
.tw-footer__legal-links ul {flex-wrap:wrap}
.tw-search input[type=search] {min-width:0;width:100%}
.tw-search form .tw-btn {flex-shrink:0}
.woocommerce-cart .tw-page .woocommerce::before,.woocommerce-cart .tw-page .woocommerce::after,
.woocommerce-account .tw-page .woocommerce::before,.woocommerce-account .tw-page .woocommerce::after,
.woocommerce-checkout .woocommerce form.checkout::before,.woocommerce-checkout .woocommerce form.checkout::after {content:none;display:none}
.woocommerce-cart .tw-page .woocommerce > *, .woocommerce-account .tw-page .woocommerce > *, .woocommerce-checkout form.checkout > * {min-width:0;max-width:100%}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals {min-width:0}
.woocommerce-checkout form.checkout #order_review {min-width:0}
.woocommerce-checkout #order_review td,.woocommerce-checkout #order_review th,.woocommerce-order-details td,.woocommerce-order-details th {overflow-wrap:anywhere}
.woocommerce table.shop_table {max-width:100%}
.wc-block-components-sidebar-layout > * {min-width:0;max-width:100%}
.wc-block-components-product-name,.wc-block-components-product-metadata,.woocommerce-MyAccount-content {overflow-wrap:anywhere}
.tw-sticky-buy {bottom:max(10px,env(safe-area-inset-bottom,0px))}
/* Tablet and mobile layouts. */
@media(max-width:1023px){
  .woocommerce-cart .tw-page .woocommerce,.woocommerce-account .tw-page .woocommerce {display:block}
  .woocommerce-cart .cart-collaterals,.woocommerce-account .woocommerce-MyAccount-content {margin-top:24px}
  .woocommerce-checkout .woocommerce form.checkout {display:block}
  .woocommerce-checkout form.checkout #order_review_heading {margin-top:24px}
  .woocommerce-checkout form.checkout #customer_details {margin:0 0 24px}
  .woocommerce div.product.tw-buy,.tw-feature .tw-buy,.tw-look {grid-template-columns:minmax(0,1fr)}
  .tw-feature__gal {grid-template-columns:minmax(0,1fr)}
  .tw-feature__media {grid-column:1;grid-row:1}
  .tw-feature__thumbs {grid-column:1;grid-row:2;flex-direction:row;overflow-x:auto}
  .tw-feature__thumbs button {width:64px;flex:0 0 64px}
  .tw-feature .tw-summary {grid-column:1}
  .tw-side {visibility:hidden;pointer-events:none;transition:transform .45s var(--tw-ease),visibility .45s}
  .tw-side.is-open {visibility:visible;pointer-events:auto}
  .admin-bar .tw-side {top:42px}
  .tw-side .tw-filters {min-height:0;overscroll-behavior:contain}
}
@media(max-width:782px){.admin-bar .tw-drawer,.admin-bar .tw-side {top:46px}}
@media(max-width:768px){
  .woocommerce-cart .woocommerce table.cart,.woocommerce-cart .woocommerce table.cart tbody {display:block;width:100%}
  .woocommerce-cart .woocommerce table.cart thead {display:none}
  .woocommerce-cart .woocommerce table.cart tr {display:block;margin:0 0 14px;background:var(--tw-card);border-radius:var(--tw-r);padding:12px;position:relative}
  .woocommerce-cart .woocommerce table.cart tr td {display:flex;align-items:center;justify-content:space-between;text-align:right!important;gap:12px;width:100%;padding:8px 0;border:0;background:transparent;float:none;min-width:0;overflow-wrap:anywhere}
  .woocommerce-cart .woocommerce table.cart tr td::before {content:attr(data-title);font-weight:500;text-align:left;float:none;flex-shrink:0}
  .woocommerce-cart .woocommerce table.cart tr td.product-remove {position:absolute;right:10px;top:8px;width:auto;padding:0}
  .woocommerce-cart .woocommerce table.cart tr td.product-thumbnail {display:flex;justify-content:flex-start;width:auto;padding:0 40px 8px 0}
  .woocommerce-cart .woocommerce table.cart tr td.product-remove::before,.woocommerce-cart .woocommerce table.cart tr td.product-thumbnail::before,.woocommerce-cart .woocommerce table.cart tr td.actions::before {content:none}
  .woocommerce-cart .woocommerce table.cart tr td.product-name {display:block;text-align:left!important;padding-right:30px}
  .woocommerce-cart .woocommerce table.cart tr td.product-name::before {content:none}
  .woocommerce-cart .woocommerce table.cart tr td.product-name dl.variation {margin:4px 0}
  .woocommerce-cart .woocommerce table.cart tr td.actions {display:block;padding:0}
  .woocommerce-cart .woocommerce table.cart tr:has(td.actions) {background:none;padding:0}
  .woocommerce-cart .woocommerce table.cart td.actions .coupon {display:flex;float:none;width:100%;gap:8px;flex-wrap:wrap;padding:0 0 10px}
  .woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {width:auto!important;flex:1 1 140px;min-width:0;margin:0}
  .woocommerce-cart .woocommerce table.cart td.actions .coupon .button {flex:1 1 120px;margin:0;width:auto;white-space:normal}
  .woocommerce-cart .woocommerce table.cart td.actions > .button {width:100%;float:none}
  .woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals {padding:20px}
  .woocommerce-checkout form.checkout #order_review_heading {padding:20px 16px 0;font-size:26px}
  .woocommerce-checkout form.checkout #order_review {padding:12px 16px 20px}
  .woocommerce-checkout form.checkout .form-row-first,.woocommerce-checkout form.checkout .form-row-last,.woocommerce-account .woocommerce form .form-row-first,.woocommerce-account .woocommerce form .form-row-last {float:none;width:100%}
  .woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select {font-size:16px}
  .wc-block-components-sidebar-layout .wc-block-components-sidebar {padding:16px!important}
  .woocommerce-account .woocommerce form.login,.woocommerce-account .woocommerce form.register {padding:18px!important}
  .woocommerce-MyAccount-content .woocommerce-orders-table {display:block;overflow-x:auto}
  .woocommerce-order-details table.shop_table {table-layout:fixed}
}
@media(max-width:640px){
  .tw-drawer {top:0;bottom:0;right:0;left:auto;width:100%;max-width:100%;border-radius:0;max-height:100dvh}
  .tw-drawer--left {left:0;right:auto}
  .tw-drawer__head {padding:14px 16px 12px}
  .tw-drawer__title {font-size:clamp(25px,7vw,32px)}
  .tw-drawer__body {padding:0 14px}
  .tw-drawer__foot {padding:12px 14px max(14px,env(safe-area-inset-bottom,0px));gap:8px}
  .tw-cart-foot .tw-btn {height:46px}
  .tw-mc-note {font-size:12px;line-height:1.35}
  .tw-side {top:0;bottom:0;left:0;width:100%;border-radius:0;max-height:100dvh}
  .tw-side .tw-filters {padding:0 16px}
  .tw-bar--checkout .tw-bar__in {gap:8px;padding:0 12px;height:62px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .tw-bar--checkout .tw-logo img {height:18px;max-width:100px;object-fit:contain}
  .tw-bar--checkout .tw-back,.tw-bar--checkout .tw-secure {font-size:12px;line-height:1.2;min-width:0}
  .tw-bar--checkout .tw-secure {text-align:right;gap:4px}
  .tw-bar--checkout .tw-secure svg {flex:0 0 14px}
  [data-tw-header] .tw-bar__in {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px;padding:0 10px;height:62px}
  [data-tw-header] .tw-logo img {max-width:clamp(96px,30vw,130px);height:auto;max-height:22px}
  [data-tw-header] .tw-actions {gap:0}
  [data-tw-header] .tw-icon-btn {width:40px;height:44px}
  .tw-announce {padding:8px 12px;font-size:12px}
  .tw-hero {min-height:360px;height:clamp(360px,65svh,540px);border-radius:16px}
  .tw-hero__ui {padding:0 16px;bottom:20px}
  .tw-hero__title {font-size:clamp(32px,9vw,48px);overflow-wrap:anywhere}
  .tw-hero__copy {gap:10px}
  .tw-hero__copy p {font-size:14px}
  .tw-hero__copy .tw-btn {height:auto;min-height:46px;max-width:100%;white-space:normal;padding:10px 16px;text-align:center}
  .tw-sec__head {flex-wrap:wrap;align-items:flex-start;gap:8px}
  .tw-sec__head .tw-h2 {font-size:clamp(26px,7.5vw,36px);overflow-wrap:anywhere}
  .tw-sec__tools {flex-wrap:wrap}
  .tw-cat__name {font-size:25px;padding:18px 16px 22px;overflow-wrap:anywhere}
  .tw-card__body {padding:12px;gap:8px}
  .tw-card__add .button,.tw-card__add .added_to_cart {white-space:normal;text-align:center;line-height:1.2!important;height:auto;min-height:42px;font-size:13px!important;padding:6px!important}
  .tw-card__price {font-size:14px}
  .tw-look__item {grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px}
  .tw-look__item .button {grid-column:1/-1;max-width:100%;white-space:normal}
  .tw-footer__cols {gap:30px;padding:40px var(--tw-pad)}
  .tw-footer__contact {padding-top:18px}
  .tw-page__head h1 {font-size:clamp(36px,10vw,52px)}
  .tw-search form {gap:6px;padding:10px}
  .tw-search input[type=search] {font-size:16px;padding:0 10px;height:48px}
  .tw-search form .tw-btn {padding:0 12px;height:48px}
  .tw-toolbar {gap:8px}
  .tw-toolbar select.orderby {max-width:100%;font-size:14px;padding:0 30px 0 10px;background-position:right 10px center}
  .tw-filter-btn {font-size:14px;padding:0 12px;gap:8px}
  .woocommerce div.product .tw-summary .product_title {font-size:clamp(30px,8vw,44px);overflow-wrap:anywhere}
  .woocommerce div.product .tw-summary p.price,.woocommerce div.product .tw-summary span.price {white-space:normal;flex-wrap:wrap;font-size:20px}
  .woocommerce div.product .tw-summary form.cart .single_add_to_cart_button {min-width:0;white-space:normal;line-height:1.2;height:auto;min-height:52px;padding:10px 16px}
  .tw-sticky-buy__in {gap:8px;padding:8px}
  .tw-sticky-buy__img {width:44px;height:44px}
  .tw-sticky-buy__in .tw-btn {padding:0 12px;height:44px;font-size:13px}
  .woocommerce ul.order_details {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .woocommerce ul.order_details li {padding:12px;overflow-wrap:anywhere}
  .woocommerce ul.order_details li strong {font-size:14px;overflow-wrap:anywhere}
}
@media(max-width:380px){
  [data-tw-drawer="cart"] .tw-mc > li.tw-mc__item {grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px}
  [data-tw-drawer="cart"] .tw-mc__item > .tw-mc__img {width:64px;height:64px}
  [data-tw-drawer="cart"] .tw-mc-rec {grid-template-columns:48px minmax(0,1fr)}
  [data-tw-drawer="cart"] .tw-mc-rec .button {grid-column:2}
  .tw-drawer__body {padding:0 10px}
  .tw-card__body {padding:9px}
  .tw-card__name {font-size:14px}
  .tw-hero__copy .tw-eyebrow {font-size:12px}
  .tw-bar--checkout .tw-secure svg {display:none}
  .tw-cart-foot .tw-btn {min-height:42px;height:auto;padding:10px 12px}
}
@media(max-height:500px) and (max-width:900px){
  .tw-drawer__head {padding-top:8px;padding-bottom:8px}
  .tw-drawer__foot {padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom,0px));gap:5px}
  .tw-cart-foot .tw-mc-note {display:none}
  .tw-cart-foot .tw-btn {height:40px;min-height:40px}
}
@media(hover:none){.tw-card__add .button {opacity:1;transform:none}}

/* Homepage: distinct product types, wrapping rather than hidden overflow. */
.tw-cats__row--types{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;overflow:visible;scroll-snap-type:none}
.tw-cats__row--types .tw-cat{flex:0 0 calc((100% - 72px)/4);min-width:0;scroll-snap-align:none}
.tw-cats__row--types .tw-cat__name{flex:1;align-items:center;font-size:clamp(22px,2.5vw,40px);padding:clamp(16px,2vw,30px);line-height:1.12;overflow-wrap:anywhere}
.tw-cats__row--types .tw-cat__name>span{min-width:0}
.tw-cats__row--types .tw-cat__img img{display:block;width:100%;height:100%;object-fit:cover}
.tw-cats__row--types .tw-ph{text-align:center;padding:12px}
@media(max-width:1100px){.tw-cats__row--types .tw-cat{flex-basis:calc((100% - 48px)/3)}}
@media(max-width:767px){.tw-cats__row--types{gap:12px}.tw-cats__row--types .tw-cat{flex-basis:calc((100% - 12px)/2);border-radius:16px}.tw-cats__row--types .tw-cat__name{font-size:clamp(17px,4.5vw,25px);padding:14px 12px;gap:5px}.tw-cats__row--types .tw-cat__name sup{font-size:11px}.tw-cats__row--types .tw-cat__name svg{width:16px;height:16px}}
