/* =========================================================
   TIOSH – ordinary pages, WooCommerce and registration
   Markup: tiosh-page.php, tiosh-shop.php, registration/register.php,
           woocommerce/content-product.php
   ========================================================= */

.tp-page > .t-wrap, .tp-hero > .t-wrap { padding-left: 0; padding-right: 0; max-width: none; }
.tp-hero { padding: 44px 0 52px; }
.tp-hero .t-wrap { display: flex; flex-direction: column; gap: 14px; }
.tp-hero .t-eyebrow { color: #B9C8F5; margin: 4px 0 -2px; }
.tp-hero .tc-lead { max-width: 680px; }

.tp-body { padding: 48px 0 72px; }
.tp-body--prose { max-width: 820px; margin: 0 auto; }
.tp-body--builder { padding: 16px 0 24px; }
.tp-prose { font-family: var(--t-text); }

/* Shared form controls inside TIOSH pages */
.tp-page input[type="text"], .tp-page input[type="email"], .tp-page input[type="password"], .tp-page input[type="tel"],
.tp-page input[type="number"], .tp-page input[type="search"], .tp-page input[type="url"], .tp-page select, .tp-page textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; margin: 0; font-family: var(--t-text); font-size: 15.5px; color: var(--t-ink);
  background: #fff; border: 1.5px solid var(--t-line); border-radius: 10px; box-shadow: none;
}
.tp-page textarea { min-height: 120px; }
.tp-page input:focus, .tp-page select:focus, .tp-page textarea:focus { border-color: var(--t-royal); box-shadow: 0 0 0 3px rgba(42,50,200,.15); outline: none; }
.tp-page label { font-family: var(--t-text); font-weight: 800; font-size: 14px; color: var(--t-ink); text-transform: none; letter-spacing: 0; }

/* Shared WooCommerce buttons */
.tp-page .button, .tp-page button.button, .tp-page input.button, .tp-page a.button, .tp-page .woocommerce-button,
.tp-page input[type="submit"], .tp-page button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px !important; margin: 0;
  border: 0 !important; border-radius: 10px !important; background: var(--t-royal) !important; color: #fff !important;
  font-family: var(--t-text) !important; font-size: 15px !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: .01em;
  line-height: 1.2; text-decoration: none !important; box-shadow: none !important; cursor: pointer; transition: filter .15s;
}
.tp-page .button:hover, .tp-page input[type="submit"]:hover, .tp-page button[type="submit"]:hover { filter: brightness(1.12); }
.tp-page .button:focus-visible, .tp-page input[type="submit"]:focus-visible { outline: 3px solid var(--t-amber); outline-offset: 2px; }

/* WooCommerce notices */
.tp-page .woocommerce-message, .tp-page .woocommerce-info, .tp-page .woocommerce-error, .tp-page .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 0; border-left: 4px solid var(--t-royal); border-radius: 0 12px 12px 0;
  background: var(--t-tint); color: var(--t-ink); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tp-page .woocommerce-error { border-left-color: #D64545; background: #FDEEEE; }
.tp-page .woocommerce-message::before, .tp-page .woocommerce-info::before, .tp-page .woocommerce-error::before { display: none; }

/* ---------- Shop grid ---------- */
.ts-body .woocommerce-result-count { margin: 0; font-size: 15px; color: var(--t-body); }
.ts-body .woocommerce-ordering { margin: 0; }
.ts-body .woocommerce-ordering select { width: auto; min-height: 42px; padding: 0 36px 0 12px; font-weight: 700; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A32C8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ts-body:not(.ts-body--product) > .woocommerce-notices-wrapper + .woocommerce-result-count,
.ts-body .woocommerce-result-count { float: left; padding: 10px 0 24px; }
.ts-body .woocommerce-ordering { float: right; padding-bottom: 24px; }
.ts-body ul.products { clear: both; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ts-body ul.products::before, .ts-body ul.products::after { display: none; }
.ts-body ul.products li.ts-card { float: none; width: auto; margin: 0; padding: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ts-body ul.products li.ts-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(7,26,77,.45); }
.ts-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.ts-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ts-card__sale { position: absolute; top: 12px; left: 12px; background: var(--t-amber); color: var(--t-deep); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.ts-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.ts-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-royal); }
.ts-card__title { margin: 0; font-family: var(--t-head); font-size: 19px; line-height: 1.3; }
.t-page .ts-card__title a { color: var(--t-ink); }
.ts-card__desc { margin: 0; font-size: 14.5px; color: var(--t-body); }
.ts-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--t-tint); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ts-card__price { font-family: var(--t-head); font-weight: 700; font-size: 19px; color: var(--t-navy); }
.ts-card__price del { font-family: var(--t-text); font-size: 14px; font-weight: 400; color: var(--t-body); margin-right: 4px; }
.ts-card__price ins { text-decoration: none; }
.ts-card .button { min-height: 40px !important; padding: 0 16px !important; font-size: 14px !important; }
.ts-card .added_to_cart { font-weight: 800; font-size: 14px; }
.ts-body .woocommerce-pagination { margin-top: 36px; text-align: center; }
.ts-body .woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0 !important; margin: 0; padding: 0; list-style: none; }
.ts-body .woocommerce-pagination li { border: 0 !important; float: none; }
.ts-body .woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px !important; border-radius: 10px; border: 1px solid var(--t-line); background: #fff; color: var(--t-navy) !important; font-weight: 700; }
.ts-body .woocommerce-pagination .page-numbers.current { background: var(--t-navy) !important; border-color: var(--t-navy); color: #fff !important; }

/* Single product */
.ts-body--product div.product > .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 0 0 48px; }
.ts-body--product div.product > .row::before, .ts-body--product div.product > .row::after { display: none; }
.ts-body--product div.product > .row > [class*="col-"] { float: none; width: auto; padding: 0; }
.ts-body--product .woocommerce-product-gallery { float: none !important; width: auto !important; min-height: 320px; background: var(--t-tint); }
.ts-body--product .woocommerce-product-gallery { border-radius: 18px; overflow: hidden; border: 1px solid var(--t-line); }
.ts-body--product .woocommerce-product-gallery img { width: 100%; height: auto; display: block; }
.ts-body--product .summary { display: flex; flex-direction: column; gap: 16px; }
.ts-body--product .summary .product_title { display: none; } /* shown in the hero */
.ts-body--product .summary .price { margin: 0; font-family: var(--t-head); font-size: 30px; font-weight: 700; color: var(--t-navy); }
.ts-body--product .summary .price del { font-size: 18px; color: var(--t-body); font-weight: 400; }
.ts-body--product .summary .price ins { text-decoration: none; }
.ts-body--product .woocommerce-product-details__short-description { font-size: 16.5px; line-height: 1.7; color: var(--t-body); }
.ts-body--product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; padding: 20px; border-radius: 14px; background: var(--t-tint); }
.ts-body--product form.cart .quantity input { width: 80px; text-align: center; }
.ts-body--product form.cart .button { min-height: 50px; flex: 1; }
.ts-body--product .product_meta { font-size: 14px; color: var(--t-body); display: flex; flex-direction: column; gap: 4px; }
.ts-body--product .woocommerce-tabs, .ts-body--product .related, .ts-body--product .upsells { clear: both; margin-top: 40px; }
.ts-body--product .summary .price, .ts-body--product .summary .price * { font-family: var(--t-head); }
.ts-body--product .summary h3, .ts-body--product .summary h4 { font-family: var(--t-head); color: var(--t-navy); font-size: 18px; margin: 8px 0 0; }
.ts-body--product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; padding: 6px !important; margin: 0 0 20px !important; background: var(--t-tint); border-radius: 12px; list-style: none; }
.ts-body--product .woocommerce-tabs ul.tabs::before, .ts-body--product .woocommerce-tabs ul.tabs li::before, .ts-body--product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ts-body--product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 8px !important; }
.ts-body--product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 16px !important; font-weight: 700; color: var(--t-navy) !important; }
.ts-body--product .woocommerce-tabs ul.tabs li.active { background: var(--t-navy) !important; }
.ts-body--product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.ts-body--product .woocommerce-Tabs-panel { font-size: 16px; line-height: 1.7; color: var(--t-body); }
.ts-body--product .woocommerce-Tabs-panel h2, .ts-body--product .related > h2, .ts-body--product .upsells > h2 { font-family: var(--t-head); color: var(--t-navy); font-size: 24px; }

/* ---------- Cart & checkout (WooCommerce blocks) ---------- */
.tp-body--woo .wp-block-woocommerce-cart, .tp-body--woo .wp-block-woocommerce-checkout { margin: 0; max-width: none; }
.tp-body--woo .wc-block-components-sidebar-layout { gap: 32px; margin: 0; }
.tp-body--woo .wc-block-components-main { padding-right: 0 !important; }
.tp-body--woo .wc-block-components-sidebar {
  padding: 24px !important; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -32px rgba(7,26,77,.45); align-self: flex-start;
}
.tp-body--woo .wc-block-cart-items, .tp-body--woo .wc-block-cart-items th { border-color: var(--t-line) !important; }
.tp-body--woo .wc-block-cart-items__header { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t-body); }
.tp-body--woo .wc-block-cart-item__image img { border-radius: 10px; }
.tp-body--woo .wc-block-components-product-name { font-family: var(--t-head); font-weight: 700; font-size: 17px; color: var(--t-ink) !important; text-decoration: none; }
.tp-body--woo .wc-block-components-product-price, .tp-body--woo .wc-block-components-totals-item__value { font-weight: 800; color: var(--t-navy); }
.tp-body--woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.tp-body--woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--t-head); font-size: 20px; color: var(--t-navy); }
.tp-body--woo .wc-block-cart__totals-title, .tp-body--woo .wc-block-components-title, .tp-body--woo .wc-block-components-checkout-step__title {
  font-family: var(--t-head) !important; font-weight: 700 !important; color: var(--t-navy) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 19px !important;
}
.tp-body--woo .wc-block-components-checkout-step { padding-bottom: 8px; }
.tp-body--woo .wc-block-components-checkout-step__description { color: var(--t-body); }
.tp-body--woo .wc-block-components-button:not(.is-link), .tp-body--woo .wc-block-cart__submit-button, .tp-body--woo .wc-block-components-checkout-place-order-button {
  min-height: 52px; border: 0 !important; border-radius: 10px !important; background: var(--t-royal) !important; color: #fff !important;
  font-family: var(--t-text) !important; font-weight: 800 !important; font-size: 16px !important; text-transform: none !important; box-shadow: none !important;
}
.tp-body--woo .wc-block-components-button:not(.is-link):hover { filter: brightness(1.12); }
.tp-body--woo .wc-block-components-button.is-link, .tp-body--woo .wc-block-cart-item__remove-link { color: var(--t-royal) !important; font-weight: 700; }
.tp-body--woo .wc-block-components-text-input input, .tp-body--woo .wc-block-components-combobox .components-combobox-control__input,
.tp-body--woo .wc-blocks-components-select__select, .tp-body--woo .wc-block-components-textarea {
  border: 1.5px solid var(--t-line) !important; border-radius: 10px !important; background: #fff !important; font-family: var(--t-text) !important; color: var(--t-ink) !important; box-shadow: none !important;
}
.tp-body--woo .wc-block-components-text-input.is-active input, .tp-body--woo .wc-block-components-text-input input:focus { border-color: var(--t-royal) !important; box-shadow: 0 0 0 3px rgba(42,50,200,.15) !important; }
.tp-body--woo .wc-block-components-text-input label, .tp-body--woo .wc-blocks-components-select__label { font-family: var(--t-text); font-weight: 700; color: var(--t-body); }
.tp-body--woo .wc-block-components-quantity-selector { border-radius: 10px; border-color: var(--t-line); }
.tp-body--woo .wc-block-components-radio-control__option, .tp-body--woo .wc-block-components-radio-control-accordion-option {
  border-radius: 12px; border-color: var(--t-line) !important; box-shadow: none !important;
}
.tp-body--woo .wc-block-components-radio-control__option-checked { border-color: var(--t-royal) !important; }
.tp-body--woo .wc-block-components-panel__button, .tp-body--woo .wc-block-components-totals-coupon__button { font-weight: 700; color: var(--t-navy); }

/* Empty cart (block) */
.tp-body--woo .wp-block-woocommerce-empty-cart-block { text-align: center; padding: 48px 24px; border: 1px dashed var(--t-tint-2); border-radius: 18px; background: #FAFBFF; }
.tp-body--woo .wc-block-cart__empty-cart__title { font-family: var(--t-head); color: var(--t-navy); font-size: 24px; }
.tp-body--woo .wc-block-cart__empty-cart__title::before { background-color: var(--t-royal) !important; }
.tp-body--woo .wp-block-woocommerce-empty-cart-block > .wp-block-separator { display: none; }
.tp-body--woo .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) { font-family: var(--t-head); color: var(--t-navy); font-size: 20px; margin-top: 40px; }
.tp-body--woo .wc-block-grid__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; }
.tp-body--woo .wc-block-grid__product { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 0 16px !important; border: 1px solid var(--t-line) !important; border-radius: var(--t-radius); overflow: hidden; background: #fff; text-align: left; display: flex; flex-direction: column; }
.tp-body--woo .wc-block-grid__product-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.tp-body--woo .wc-block-grid__product-title { padding: 12px 16px 4px; font-family: var(--t-head); font-size: 16px; color: var(--t-ink); }
.tp-body--woo .wc-block-grid__product-price { padding: 0 16px 12px; font-weight: 800; color: var(--t-navy); }
.tp-body--woo .wc-block-grid__product-add-to-cart { padding: 0 16px; margin-top: auto !important; }
.tp-body--woo .wc-block-grid__product-add-to-cart .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; background: var(--t-royal); color: #fff !important; font-size: 14px; font-weight: 800; line-height: 1.2; padding: 10px 18px; text-decoration: none; }
.tp-body--woo .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.tp-body--woo .wc-block-grid__product-add-to-cart .wp-block-button__link:focus { background: var(--t-navy); color: #fff !important; }
.tp-body--woo .wc-block-grid__product-add-to-cart .added_to_cart { display: inline-block; margin: 8px 0 0 10px; font-size: 13px; font-weight: 700; color: var(--t-royal); }

/* ---------- My account ---------- */
.tp-body--woo .woocommerce-MyAccount-navigation { float: left; width: 260px; }
.tp-body--woo .woocommerce-MyAccount-content { margin-left: 292px; min-height: 300px; font-size: 15.5px; color: var(--t-body); }
.tp-body--woo .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--t-line); border-radius: 16px; background: #fff; }
.tp-body--woo .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.tp-body--woo .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; color: var(--t-navy); text-decoration: none; }
.tp-body--woo .woocommerce-MyAccount-navigation li a:hover { background: var(--t-tint); }
.tp-body--woo .woocommerce-MyAccount-navigation li.is-active a { background: var(--t-navy); color: #fff; }
.tp-body--woo .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.tp-body--woo .woocommerce-MyAccount-content th, .tp-body--woo .woocommerce-MyAccount-content td { padding: 12px 10px; border-bottom: 1px solid var(--t-line); text-align: left; }

/* Logged-out account page: login + register cards */
.tp-body--woo .u-columns.col2-set, .tp-body--woo #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.tp-body--woo #customer_login::before, .tp-body--woo #customer_login::after { display: none; }
.tp-body--woo #customer_login > div { float: none; width: auto; padding: 28px; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; }
.tp-body--woo #customer_login h2 { margin: 0 0 18px; font-family: var(--t-head); font-size: 22px; color: var(--t-navy); }
.tp-body--woo .woocommerce-form-login, .tp-body--woo .woocommerce-form-register { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.tp-body--woo .woocommerce-form-row { margin: 0 0 16px; padding: 0; }
.tp-body--woo .woocommerce-form-row label { display: block; margin-bottom: 6px; }
.tp-body--woo .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 700; color: var(--t-body); }
.tp-body--woo .woocommerce-form-login .button { width: 100%; min-height: 50px; }
.tp-body--woo .lost_password { margin: 14px 0 0; text-align: center; }
.tp-body--woo .lost_password a { font-weight: 800; }

/* ---------- Register page (registration/register.php) ---------- */
.tr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; padding: 0 0 72px; margin-top: -24px; position: relative; z-index: 2; }
.tr-aside { position: sticky; top: 104px; padding: 32px; border-radius: 18px; background: var(--t-navy); color: #fff; box-shadow: 0 24px 48px -28px rgba(7,26,77,.6); }
.tr-aside h2 { margin: 0 0 18px; font-family: var(--t-head); font-size: 22px; color: #fff; }
.tr-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.tr-list li { position: relative; padding-left: 34px; margin: 0; font-size: 15px; line-height: 1.5; color: #D6E0FF; }
.tr-list li b { color: #fff; }
.tr-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--t-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tr-aside__login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #23397A; font-size: 14.5px; color: #C9D6FB; }

.tr-card { padding: 32px 36px; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -32px rgba(7,26,77,.4); }
.tr-card #buddypress { font-family: var(--t-text); color: var(--t-body); }
.tr-card #register-page > form > p:first-child, .tr-card #signup_form > p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; }
.tr-card .register-section { float: none !important; width: auto !important; margin: 0 0 8px !important; }
.tr-card .tr-h { margin: 8px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--t-line); font-family: var(--t-head); font-size: 19px; color: var(--t-navy); text-transform: none; letter-spacing: 0; }
.tr-card #profile-details-section { margin-top: 20px !important; }
.tr-card .register-section > div, .tr-card .editfield { margin: 0 0 18px; }
.tr-card label, .tr-card .editfield legend { display: block; margin: 0 0 7px; font-family: var(--t-text) !important; font-size: 14px !important; font-weight: 800 !important; color: var(--t-ink) !important; text-transform: none !important; }
.tr-card input[type="text"], .tr-card input[type="email"], .tr-card input[type="password"], .tr-card textarea, .tr-card select { width: 100% !important; }
.tr-card .editfield fieldset { margin: 0; padding: 0; border: 0; }
.tr-card .field-visibility-settings-toggle, .tr-card .field-visibility-settings-notoggle, .tr-card .description { margin: 6px 0 0; font-size: 13px; color: var(--t-body); }
.tr-card #pass-strength-result { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.tr-card #pass-strength-result:empty { display: none; }
.tr-card .submit { margin: 24px 0 0; }
.tr-card .submit input[type="submit"] { width: 100%; min-height: 52px; font-size: 16px !important; }
.tr-card div.error, .tr-card .bp-messages, .tr-card #message { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: #FDEEEE; color: #A12A2A; font-size: 14px; }
.tr-card .heading { font-family: var(--t-head); color: var(--t-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ts-body ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-body--woo .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ts-body--product div.product > .row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tr-grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; padding-top: 24px; }
  .tr-aside { position: static; order: 2; }
  .ts-body--product div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tp-body--woo .woocommerce-MyAccount-navigation { float: none; width: auto; margin-bottom: 24px; }
  .tp-body--woo .woocommerce-MyAccount-content { margin-left: 0; }
  .tp-body--woo #customer_login { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ts-body ul.products { grid-template-columns: minmax(0, 1fr); }
  .tr-card { padding: 24px 20px; }
  .ts-body .woocommerce-result-count, .ts-body .woocommerce-ordering { float: none; padding-bottom: 12px; }
}

/* Shop cards: WPLMS centres product text; placeholder logo for products without an image. */
.ts-body ul.products li.ts-card, .ts-body ul.products li.ts-card * { text-align: left; }
.ts-card__media.t-ph { background: var(--t-tint); }
.ts-card .tb-card__brand { font-family: var(--t-text); font-style: italic; font-weight: 900; font-size: 34px; color: var(--t-royal); opacity: .35; }

/* My account (logged out): single login card; WooCommerce "show password" button. */
.tp-body--woo h2, .tp-body--woo h3 { font-family: var(--t-head); color: var(--t-navy); }
.tp-body--woo .woocommerce > h2 { max-width: 480px; margin: 0 auto 16px; font-size: 26px; }
.tp-body--woo form.woocommerce-form-login { max-width: 480px; margin: 0 auto !important; padding: 32px !important; border: 1px solid var(--t-line) !important; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -32px rgba(7,26,77,.4); }
.tp-body--woo .woocommerce > .woocommerce-form-login ~ .lost_password, .tp-body--woo form.woocommerce-form-login .lost_password { text-align: center; }
.tp-body--woo #customer_login form.woocommerce-form-login { max-width: none; padding: 0 !important; border: 0 !important; box-shadow: none; }
.tp-page .password-input { position: relative; display: block; }
.tp-page .password-input input { padding-right: 48px; }
.tp-page button.show-password-input { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 34px; height: 34px; min-height: 0; padding: 0 !important; margin: 0; border: 0; border-radius: 8px; background: transparent !important; color: var(--t-royal); cursor: pointer; }
.tp-page button.show-password-input::after { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.tp-page button.show-password-input:focus-visible { outline: 3px solid var(--t-amber); }
.ts-body--product .woocommerce-product-gallery { width: 100% !important; }
