/* TRAINERSTU — WooCommerce: cards, shop, product page, cart/checkout/account polish. */

/* ---------- Product card ---------- */

.ts-product-grid { list-style: none; }
.product-card { padding: 0.8rem; display: flex; flex-direction: column; }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-card-link:hover { color: inherit; }
.product-image-container { position: relative; aspect-ratio: 1 / 1; background: #f8f8f8; border-radius: var(--border-radius-sm); overflow: hidden; margin-bottom: 0.8rem; }
.product-image-container img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), opacity 0.6s ease; }
.product-card:hover .product-img-main { transform: scale(1.06); }
.product-img-hover { opacity: 0; }
.product-card:hover .has-hover .product-img-hover { opacity: 1; transform: scale(1.03); }
.product-card:hover .has-hover .product-img-main { opacity: 0; }
.placeholder-shoe { position: absolute; top: 30%; left: 20%; width: 60%; height: 40%; background: linear-gradient(90deg, #cba135, #e6c875); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; opacity: 0.5; filter: blur(10px); }
.ts-sale-badge { position: absolute; top: 10px; left: 10px; padding: 0.25rem 0.7rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lv-brown); color: #fff; border-radius: var(--border-radius-pill); }
.product-info { display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; }
.product-price { margin-top: auto; padding-top: 0.5rem; border-top: 1px solid rgba(0, 0, 0, 0.05); font-weight: 600; }
.ts-price del { opacity: 0.5; font-size: 0.8em; margin-right: 0.4rem; font-weight: 400; }
.ts-price ins { text-decoration: none; }

/* ---------- Shop head ---------- */

.ts-shop-head { margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.category-tabs-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(16.666% - 16.666px);
  gap: 20px;
  overflow-x: auto;
  padding: 0 1rem 1.5rem;
  scrollbar-width: none;
  cursor: grab;
  scroll-snap-type: x proximity;
}
.category-tabs-container::-webkit-scrollbar { display: none; }
.category-tabs-container.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.category-tabs-container.is-dragging a { pointer-events: none; }
.category-tab-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; opacity: 0.6; transition: opacity 0.3s ease; scroll-snap-align: start; }
.category-tab-item:hover, .category-tab-item.active { opacity: 1; color: inherit; }
.category-img-wrapper { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--border-radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease-out); }
.category-img-wrapper img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; -webkit-user-drag: none; user-select: none; }
.category-tab-item:hover .category-img-wrapper { transform: translateY(-3px); }
.category-tab-item.active .category-img-wrapper { transform: translateY(-3px); }
.category-tab-item > span { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); position: relative; }
.category-tab-item.active > span::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent-gold); }

.subcategory-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem 1rem; }
.subcategory-pill { padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-secondary); border: 1px solid rgba(0, 0, 0, 0.12); border-radius: var(--border-radius-pill); white-space: nowrap; transition: all 0.25s ease; }
.subcategory-pill:hover { color: var(--text-primary); border-color: var(--accent-gold); }
.subcategory-pill.active { background: var(--lv-brown); border-color: var(--lv-brown); color: #fff; }

.ts-shop-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0.5rem 0; }
.ts-search-label { margin-right: auto; color: var(--text-secondary); }
.woocommerce-ordering { margin: 0 !important; }
.woocommerce-ordering select { padding: 0.5rem 2.25rem 0.5rem 1rem; font-size: 0.875rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--border-radius-pill); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.9rem center; appearance: none; cursor: pointer; outline: none; }
.woocommerce-ordering select:focus { border-color: var(--accent-gold); }

.ts-infinite { display: flex; flex-direction: column; align-items: center; padding: 3rem 0 1rem; }
.ts-infinite .spinner { display: none; }
.ts-infinite.is-loading .spinner { display: block; }
.ts-js .ts-infinite .woocommerce-pagination { display: none; }
.woocommerce-pagination ul { display: flex; gap: 0.25rem; list-style: none; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }

/* ---------- Single product ---------- */

.ts-single { padding-top: 2rem; }
.grid-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.ts-gallery-col, .product-details { min-width: 0; }
.ts-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.ts-title-row h1 { font-size: 2.5rem; }
.ts-single-price { margin-bottom: 3rem; display: flex; align-items: center; flex-wrap: wrap; }
.ts-single-price del { opacity: 0.5; font-size: 0.6em; margin-right: 0.4rem; }
.ts-single-price ins { text-decoration: none; }
.ts-size-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.ts-size-head > span { font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Gallery */
.product-gallery-slider { width: 100%; }
.gallery-main-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-secondary); border-radius: var(--border-radius-md); user-select: none; cursor: zoom-in; touch-action: pan-y; }
.gallery-main-image.is-empty { display: flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: default; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease-in-out; pointer-events: none; }
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery-main-image:hover .gallery-slide.active img { transform: scale(1.03); }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
  opacity: 0;
}
.gallery-main-image:hover .gallery-arrow, .gallery-main-image:focus-within .gallery-arrow, .gallery-arrow.is-visible { opacity: 1; }
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; left: 12px; z-index: 10; padding: 4px 12px; border-radius: var(--border-radius-pill); background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); color: #fff; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; }
.gallery-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { position: relative; flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--border-radius-sm); overflow: hidden; border: 2px solid transparent; transition: border-color 0.3s ease, transform 0.3s var(--ease-out), opacity 0.3s ease; background: var(--bg-tertiary); padding: 0; opacity: 0.7; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--text-tertiary); opacity: 1; }
.gallery-thumb.active { border-color: var(--accent-gold); box-shadow: 0 0 0 1px var(--accent-gold); opacity: 1; }

.gallery-fullscreen-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); animation: fadeUp 0.3s var(--ease-out); }
.gallery-fullscreen-close { position: absolute; top: 20px; right: 20px; z-index: 1010; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.3s ease; }
.gallery-fullscreen-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.gallery-fullscreen-image-wrapper { width: 90vw; height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.gallery-fullscreen-image-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform 0.35s var(--ease-out); transform-origin: center; }
.gallery-fullscreen-image-wrapper img.is-zoomed { cursor: grab; transition: none; }

/* Variation size buttons (WooCommerce select stays in the DOM, visually hidden) */
.variations_form .variations { width: 100%; border: 0; margin-bottom: 0 !important; }
.variations_form .variations th.label { display: none; }
.variations_form .variations td, .variations_form .variations tr { display: block; padding: 0 !important; border: 0; }
.variations_form .variations tr + tr { margin-top: 1.5rem; }
.ts-select-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.variations .reset_variations { display: none !important; }
.ts-size-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.ts-size-btn { padding: 1rem 0.25rem; font-size: 1rem; font-weight: 500; border-radius: var(--border-radius-sm); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s var(--ease-out); }
.ts-size-btn:hover { transform: translateY(-2px); }
.ts-size-btn:active { transform: scale(0.95); }
.ts-size-btn.is-selected, .ts-size-btn.is-selected:hover { background: var(--lv-brown); color: #fff; border-color: var(--lv-brown); }
.ts-size-btn.is-disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.ts-delivery { padding: 1.5rem; margin-bottom: 3rem; background: var(--bg-secondary); border-color: rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; gap: 0.5rem; }
.ts-delivery h3 { font-family: var(--font-sans); color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem; }
.ts-delivery-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.ts-delivery-row > div { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.ts-delivery-row > span { color: var(--text-secondary); font-size: 0.875rem; }
.ts-delivery-divider { height: 1px; background: rgba(0, 0, 0, 0.05); margin: 0.5rem 0; }

.single_variation_wrap .woocommerce-variation-price { display: none; }
.single_variation_wrap .woocommerce-variation-availability { margin-bottom: 1rem; color: var(--text-secondary); }
.product-details form.cart .quantity { display: none !important; }
.product-details form.cart .single_add_to_cart_button,
.product-details form.cart .single_add_to_cart_button.button.alt { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; padding: 1.25rem; font-size: 1.15rem; letter-spacing: 0.1em; background: var(--lv-brown); color: #fff; border-radius: var(--border-radius-pill); font-weight: 500; text-transform: uppercase; box-shadow: var(--liquid-shadow-dark); }
.product-details form.cart .single_add_to_cart_button.is-done { background: #2f6b3a; }
.product-details form.cart .single_add_to_cart_button .ts-icon { margin-right: 0.5rem; }

.ts-size-guide { position: relative; }
.ts-size-guide-btn { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; transition: opacity 0.2s ease; }
.ts-size-guide-btn:hover { opacity: 0.8; }
.ts-size-popover { position: absolute; right: 0; top: 100%; margin-top: 10px; z-index: 999; width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05); overflow: hidden; transform-origin: top right; opacity: 0; transform: scale(0.95) translateY(-10px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s var(--ease-out); }
.ts-size-guide.is-open .ts-size-popover { opacity: 1; transform: none; pointer-events: auto; }
.ts-size-popover-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; font-family: var(--font-serif); font-size: 14px; }
.ts-size-popover-head button { color: #6b7280; display: flex; }
.ts-size-popover-body { max-height: 280px; overflow-y: auto; }
.ts-size-popover table { width: 100%; border-collapse: collapse; text-align: left; }
.ts-size-popover th { position: sticky; top: 0; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); padding: 10px 16px; font-size: 10px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.1em; }
.ts-size-popover td { padding: 8px 16px; font-size: 14px; color: #4b5563; }
.ts-size-popover td:first-child { font-weight: 600; color: #111827; }
.ts-size-popover tr:hover td { background: rgba(203, 161, 53, 0.05); }
.ts-size-popover-foot { padding: 8px 16px; background: #f9fafb; border-top: 1px solid #f3f4f6; text-align: center; font-size: 10px; color: #6b7280; }

/* Share */
.share-popup-container { position: relative; flex-shrink: 0; }
.share-popup-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 280px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--border-radius-md); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); z-index: 100; padding: 1.25rem; transform-origin: top right; opacity: 0; transform: scale(0.95) translateY(-6px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s var(--ease-out); }
.share-popup-container.is-open .share-popup-menu { opacity: 1; transform: none; pointer-events: auto; }
.share-popup-header { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.share-popup-header h4 { font-size: 1.1rem; }
.share-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 0.5rem; }
.share-icon-btn { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.25rem; border-radius: var(--border-radius-sm); transition: transform 0.2s ease; }
.share-icon-btn:hover { transform: translateY(-2px); }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.03); }
.share-icon-name { font-size: 0.65rem; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }

.ts-single-section { margin-top: 80px; padding-top: 4rem; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.ts-view-all { color: var(--text-secondary); text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; font-weight: 500; }
.ts-view-all:hover { color: var(--text-primary); }
.product-description { max-width: 860px; color: var(--text-secondary); font-size: 1rem; line-height: 1.9; }
.product-description p { margin: 0 0 1.1rem; }
.product-description strong { color: var(--text-primary); font-weight: 600; }
.product-description h1, .product-description h2, .product-description h3, .product-description h4 { color: var(--text-primary); margin: 2rem 0 0.8rem; line-height: 1.3; }
.product-description ul, .product-description ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.product-description a { color: var(--accent-gold); text-decoration: underline; }
.product-description img { margin: 1.5rem 0; border-radius: var(--border-radius-sm); }
.product-description table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.product-description th, .product-description td { border: 1px solid rgba(0, 0, 0, 0.08); padding: 0.6rem 0.8rem; text-align: left; }
.product-description th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }

/* ---------- Cart / checkout / account (WooCommerce core markup) ---------- */

.ts-plain-page { max-width: var(--max-width); }
.ts-wc-page .ts-page-content { max-width: 1100px; margin: 0 auto; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt {
  background: var(--lv-brown);
  color: #fff;
  border-radius: var(--border-radius-pill);
  padding: 0.95rem 2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce .button.alt:hover, .woocommerce button.button.alt:hover { background: var(--lv-brown-light); color: #fff; transform: translateY(-2px); }
.woocommerce #place_order { width: 100%; padding: 1.25rem; font-size: 1rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .select2-container .select2-selection--single,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  padding: 0.9rem 1rem;
  height: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce .select2-container .select2-selection--single { min-height: 50px; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.6; padding: 0; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.12); }
.woocommerce form .form-row label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.35rem; }
.woocommerce-checkout h3, .woocommerce-cart h2, .woocommerce-account h2, .woocommerce-account h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1.25rem; }
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review, .woocommerce .cart-collaterals .cart_totals, .woocommerce table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content, .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce form.login, .woocommerce form.register {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--glass-shadow);
}
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review, .woocommerce-account .woocommerce-MyAccount-content, .woocommerce form.login, .woocommerce form.register { padding: 2rem; }
.woocommerce table.shop_table { border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--text-secondary); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: rgba(0, 0, 0, 0.05); padding: 1rem 1.25rem; }
.woocommerce-cart table.cart img { width: 80px; border-radius: var(--border-radius-sm); }
.woocommerce-checkout #payment { background: var(--bg-secondary); border-radius: var(--border-radius-md); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: var(--border-radius-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation { padding: 1rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 0.8rem 1rem; border-radius: var(--border-radius-sm); transition: background 0.2s ease, color 0.2s ease; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--lv-brown); color: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent-gold); background: #fff; border-radius: var(--border-radius-sm); box-shadow: var(--glass-shadow); animation: fadeUp 0.5s var(--ease-out); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent-gold); }
.woocommerce span.onsale { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .product-card { padding: 0.5rem; }
  .product-image-container { margin-bottom: 0.5rem; }
  .product-info h3 { font-size: 1rem; }
  .category-tabs-container { grid-auto-columns: calc(28.5% - 15px); }
  .grid-product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .ts-title-row h1 { font-size: 2rem; }
  .ts-single-price { margin-bottom: 2rem; }
  .ts-size-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 2rem; }
  .gallery-arrow { opacity: 1; width: 36px; height: 36px; }
  .gallery-arrow-left { left: 8px; }
  .gallery-arrow-right { right: 8px; }
  .gallery-thumb { width: 60px; height: 60px; }
  .ts-size-popover { right: auto; left: auto; width: min(320px, calc(100vw - 2rem)); right: 0; }
  .share-popup-menu { right: -10px; min-width: 260px; }
  .ts-single-section { margin-top: 3rem; padding-top: 2.5rem; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review, .woocommerce-account .woocommerce-MyAccount-content { padding: 1.25rem; }
}

/* ---------- Login / register card ---------- */

.ts-auth { max-width: 460px; margin: 0 auto; padding: 2.5rem; border-radius: var(--border-radius-lg); background: rgba(255, 255, 255, 0.85); }
.ts-auth:hover { transform: none; }
.ts-auth-pane { display: none; }
.ts-auth[data-auth="login"] [data-pane="login"], .ts-auth[data-auth="register"] [data-pane="register"] { display: block; animation: fadeUp 0.45s var(--ease-out); }
.ts-auth-title { font-size: 1.6rem; text-align: center; margin-bottom: 2rem; }
.ts-auth form { display: flex; flex-direction: column; gap: 0.25rem; }
.woocommerce .ts-auth form.login, .woocommerce .ts-auth form.register { padding: 0; margin: 0; border: 0 !important; background: none; box-shadow: none; backdrop-filter: none; }
.ts-auth-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ts-auth .form-row { padding: 0 !important; margin: 0 0 1rem !important; width: 100% !important; float: none !important; }
.ts-auth .form-row label { display: block; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem !important; }
.ts-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0.25rem 0 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.ts-auth-row label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.ts-auth-lost { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.ts-auth-note { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.ts-auth-submit { width: 100%; padding: 1.1rem; font-size: 0.95rem; }
.ts-auth-switch { margin-top: 1.75rem; text-align: center; font-size: 0.85rem; color: var(--text-tertiary); }
.ts-auth-switch button { margin-top: 0.3rem; color: var(--text-primary); border-bottom: 1px solid currentColor; padding: 0 0 1px; font-size: 0.85rem; transition: color 0.2s ease; }
.ts-auth-switch button:hover { color: var(--accent-gold); }
@media (max-width: 768px) {
  .ts-auth { padding: 1.75rem 1.25rem; }
  .ts-auth-names { grid-template-columns: 1fr; }
}
