/*
Theme Name: TarkMart
Theme URI: https://tarkmart.com
Author: TarkMart
Description: Custom hand-built theme for TarkMart — cozy home & lifestyle store. WooCommerce-ready replacement for Flatsome.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: tarkmart
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --tm-navy:       #0B1F4D;
  --tm-navy-700:   #142a63;
  --tm-teal:       #13B5C7;
  --tm-teal-soft:  #d6f3f7;
  --tm-cream:      #FAFAF9;
  --tm-ink:        #1B2240;
  --tm-muted:      #6b7280;
  --tm-border:     #e7e5e4;
  --tm-card:       #ffffff;
  --tm-coral:      #e8614a;
  --tm-coral-soft: #ffe1d6;
  --tm-mint:       #3ecf8e;
  --tm-mint-soft:  #d6f0e2;
  --tm-butter:     #fdf3c8;
  --tm-lilac:      #e6dcfa;

  --tm-radius:    1.25rem;
  --tm-radius-lg: 1.75rem;
  --tm-radius-xl: 2.5rem;

  --tm-shadow:    0 8px 24px -12px rgba(11, 31, 77, 0.18);
  --tm-shadow-lg: 0 24px 60px -20px rgba(11, 31, 77, 0.25);

  --tm-font-display: 'Fraunces', Georgia, serif;
  --tm-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --tm-container: 1200px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--tm-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tm-ink);
  background-color: var(--tm-cream);
  background-image: radial-gradient(rgba(13, 71, 161, 0.06) 1.5px, transparent 1.5px);
  background-size: 4px 4px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--tm-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

.tm-container {
  max-width: var(--tm-container);
  margin: 0 auto;
  padding: 0 1.75rem;
}
@media (min-width: 1024px) {
  .tm-container { padding: 0 2rem; }
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.tm-btn-primary          { background: var(--tm-navy); color: #fff; }
.tm-btn-primary:hover    { background: var(--tm-navy-700); transform: translateY(-1px); }

.tm-btn-outline          { background: #fff; color: var(--tm-navy); border-color: var(--tm-border); }
.tm-btn-outline:hover    { border-color: var(--tm-navy); }

.tm-btn-teal             { background: var(--tm-teal); color: #fff; }
.tm-btn-teal:hover       { filter: brightness(0.95); }

.tm-btn-sm { padding: 0.55rem 1rem;  font-size: 0.85rem; }
.tm-btn-lg { padding: 1rem 1.9rem;   font-size: 1rem; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.tm-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.tm-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.tm-logo svg,
.tm-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .tm-logo svg,
  .tm-logo img { height: 26px; }
}

.tm-nav { display: none; gap: 2rem; font-weight: 500; font-size: 0.9rem; }
.tm-nav a { transition: color 0.2s; }
.tm-nav a:hover { color: var(--tm-teal); }
@media (min-width: 768px) {
  .tm-nav { display: flex; }
}

.tm-header-actions,
.tm-header .tm-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.tm-icon-btn {
  height: 40px; width: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: transparent; border: none;
  color: var(--tm-ink);
  position: relative;
}
.tm-icon-btn:hover { background: rgba(0, 0, 0, 0.04); }

.tm-cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--tm-teal); color: #fff;
  font-size: 10px; font-weight: 700;
  height: 16px; min-width: 16px; padding: 0 4px;
  border-radius: 999px;
  display: grid; place-items: center;
}

.tm-menu-toggle { display: grid; }
@media (min-width: 768px) { .tm-menu-toggle { display: none; } }

.tm-mobile-nav {
  display: none;
  border-top: 1px solid var(--tm-border);
  padding: 1rem 1.25rem;
  flex-direction: column; gap: 0.75rem;
}
.tm-mobile-nav.is-open { display: flex; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.tm-hero { position: relative; overflow: hidden; }

.tm-hero-blob {
  position: absolute; border-radius: 999px;
  filter: blur(60px); pointer-events: none; opacity: 0.7;
}
.tm-hero-blob-1 { top: -6rem;  left: -6rem;  height: 18rem; width: 18rem; background: var(--tm-coral-soft); }
.tm-hero-blob-2 { top: 10rem;  right: -5rem; height: 20rem; width: 20rem; background: var(--tm-mint-soft); opacity: 0.8; }
.tm-hero-blob-3 { bottom: 0;   left: 33%;    height: 15rem; width: 15rem; background: var(--tm-butter); opacity: 0.6; }

.tm-hero-grid {
  position: relative;
  display: grid; gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .tm-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 5rem 0 7rem;
  }
}

.tm-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--tm-border);
  border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.75rem; font-weight: 500;
  box-shadow: var(--tm-shadow);
}
.tm-eyebrow .dot { color: var(--tm-teal); }

.tm-hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}
.tm-hero h1 .tm-mark { position: relative; display: inline-block; }
.tm-hero h1 .tm-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0.25rem 0;
  height: 12px;
  background: rgba(19, 181, 199, 0.3);
  transform: rotate(-1deg);
  border-radius: 2px; z-index: -1;
}
.tm-hero p { max-width: 32rem; color: var(--tm-muted); font-size: 1.05rem; margin-top: 1.25rem; }
.tm-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.tm-hero-meta { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: 0.9rem; }

.tm-avatar-stack { display: flex; }
.tm-avatar-stack span {
  height: 32px; width: 32px; border-radius: 999px;
  border: 2px solid var(--tm-cream); margin-left: -8px;
}
.tm-avatar-stack span:first-child { margin-left: 0; }
.tm-stars { color: var(--tm-teal); display: inline-flex; }

.tm-hero-image-wrap { position: relative; }
.tm-hero-image {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--tm-radius-xl);
  overflow: hidden;
  box-shadow: var(--tm-shadow-lg);
  border: 1px solid var(--tm-border);
  background: #fff;
}
.tm-hero-image img { height: 100%; width: 100%; object-fit: cover; }

.tm-hero-badge {
  position: absolute; background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--tm-shadow);
  display: flex; align-items: center; gap: 0.75rem;
}
.tm-hero-badge-1 { left: -0.5rem; top: 2.5rem; }
.tm-hero-badge-2 { right: -0.5rem; bottom: 3rem; }
@media (min-width: 768px) {
  .tm-hero-badge-1 { left: -2rem; }
  .tm-hero-badge-2 { right: -2rem; }
}
.tm-hero-badge-icon {
  height: 36px; width: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--tm-mint-soft);
}
.tm-hero-badge-text           { font-size: 0.75rem; }
.tm-hero-badge-text strong    { display: block; font-weight: 600; }
.tm-hero-badge-text span      { color: var(--tm-muted); }
.tm-hero-badge-bestseller .small {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--tm-muted);
}
.tm-hero-badge-bestseller h4  { font-family: var(--tm-font-display); font-size: 1.05rem; }
.tm-hero-badge-bestseller .price { color: var(--tm-teal); font-weight: 700; }

/* ==========================================================================
   6. SECTION HEADING
   ========================================================================== */
.tm-section { padding: 4rem 0; }
@media (min-width: 768px) { .tm-section { padding: 6rem 0; } }

.tm-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.tm-section-head .eyebrow {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--tm-teal); font-weight: 600;
}
.tm-section-head h2 { margin-top: 0.5rem; font-size: clamp(1.75rem, 3vw + 1rem, 3rem); }

.tm-section-link { font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.tm-section-link:hover { color: var(--tm-teal); }

.tm-section-center { text-align: center; max-width: 36rem; margin: 0 auto 3rem; }

/* ==========================================================================
   7. COLLECTIONS
   ========================================================================== */
.tm-collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px)  { .tm-collections { gap: 1.5rem; } }
@media (min-width: 1024px) { .tm-collections { grid-template-columns: repeat(4, 1fr); } }

.tm-collection {
  position: relative; overflow: hidden;
  border-radius: var(--tm-radius-lg);
  padding: 1.5rem; aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(231, 229, 228, 0.4);
  transition: transform 0.3s ease;
}
.tm-collection:hover { transform: translateY(-4px) rotate(-1deg); }
.tm-collection .emoji  { font-size: 3rem; }
.tm-collection h3      { font-size: 1.6rem; }
.tm-collection .count  { color: var(--tm-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.tm-collection .arrow {
  position: absolute; top: 1rem; right: 1rem;
  height: 36px; width: 36px; border-radius: 999px;
  background: #fff; display: grid; place-items: center;
  transition: transform 0.3s;
}
.tm-collection .arrow .emoji { font-size: 16px; }
.tm-collection:hover .arrow  { transform: rotate(45deg); }

.tm-bg-coral  { background: var(--tm-coral-soft); }
.tm-bg-mint   { background: var(--tm-mint-soft); }
.tm-bg-butter { background: var(--tm-butter); }
.tm-bg-lilac  { background: var(--tm-lilac); }

@media (max-width: 600px) {
  .tm-collections { gap: 12px; }
  .tm-collection  { padding: 16px !important; border-radius: 20px; }
  .tm-collection h2,
  .tm-collection h3 {
    font-size: clamp(18px, 5.2vw, 22px) !important;
    line-height: 1.15; word-break: break-word; overflow-wrap: anywhere; hyphens: auto;
  }
  .tm-collection .count,
  .tm-collection p        { font-size: 12px; }
  .tm-collection > .emoji { font-size: 36px !important; }
  .tm-collection .arrow   { width: 28px !important; height: 28px !important; top: 10px !important; right: 10px !important; }
  .tm-collection .arrow .emoji,
  .tm-collection .arrow img.emoji { width: 14px !important; height: 14px !important; font-size: 12px !important; }
}

/* ==========================================================================
   8. PRODUCT CARDS
   ========================================================================== */
.tm-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 768px)  { .tm-products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .tm-products { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.tm-product {
  position: relative; height: 100%;
  background: transparent; border: none;
  display: grid; grid-template-rows: auto auto;
}

.tm-product .tm-product-image {
  grid-row: 1; grid-column: 1;
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: #f6f6f8;
  border: 1px solid rgba(40, 40, 60, 0.10);
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tm-product:hover .tm-product-image {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(40, 40, 60, 0.18);
}
.tm-product .tm-product-image img {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; aspect-ratio: 1 / 1 !important;
  transition: transform 0.5s ease; display: block;
}
.tm-product:hover .tm-product-image img { transform: scale(1.05); }

.tm-product .tm-product-cart:empty,
.tm-product .tm-product-fav:empty { display: none !important; }
.tm-product .tm-product-fav { display: none !important; }

.tm-product .onsale {
  position: absolute; top: 10px; left: 10px; margin: 0;
  padding: 4px 10px; background: #fff; color: var(--tm-navy);
  border: 1px solid rgba(40, 40, 60, 0.10); border-radius: 999px;
  font-size: 11px; font-weight: 600; z-index: 3;
}

.tm-product > a.add_to_cart_button,
.tm-product > a.added_to_cart {
  grid-row: 1; grid-column: 1;
  align-self: end; justify-self: stretch;
  margin: 12px; display: block; text-align: center;
  padding: 9px 14px; background: var(--tm-navy); color: #fff !important;
  border-radius: 999px; font-weight: 600; font-size: 13px;
  text-decoration: none; z-index: 3;
}
@media (hover: hover) {
  .tm-product > a.add_to_cart_button,
  .tm-product > a.added_to_cart {
    opacity: 0; transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .tm-product:hover > a.add_to_cart_button,
  .tm-product:focus-within > a.add_to_cart_button {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

.tm-product .tm-product-meta {
  grid-row: 2; padding: 10px 4px 0;
  display: flex; flex: 1; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between; gap: 10px;
}
.tm-product .tm-product-meta .woocommerce-loop-product__title,
.tm-product .tm-product-meta h2,
.tm-product .tm-product-meta h3 {
  font-family: var(--tm-font-display); font-weight: 600;
  font-size: 0.95rem; line-height: 1.25; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; min-height: 2.5em;
}
.tm-product .tm-product-meta .price { font-weight: 600; white-space: normal; text-align: right; }

@media (max-width: 480px) {
  .tm-product > a.add_to_cart_button,
  .tm-product > a.added_to_cart {
    justify-self: center; margin: 0 0 8px;
    padding: 6px 12px; font-size: 11px; line-height: 1.2;
    white-space: nowrap; max-width: calc(100% - 16px);
  }
  .tm-product .tm-product-meta { padding: 8px 2px 0; gap: 6px; }
  .tm-product .tm-product-meta .woocommerce-loop-product__title,
  .tm-product .tm-product-meta h2,
  .tm-product .tm-product-meta h3 { font-size: 0.85rem; min-height: 2.4em; }
  .tm-product .tm-product-meta .price { font-size: 0.85rem; }
}
@media (max-width: 360px) {
  .tm-product > a.add_to_cart_button,
  .tm-product > a.added_to_cart { padding: 5px 10px; font-size: 10px; }
}

/* ==========================================================================
   9. HOW IT WORKS
   ========================================================================== */
.tm-howitworks {
  background: var(--tm-card);
  border-top: 1px solid var(--tm-border);
  border-bottom: 1px solid var(--tm-border);
}

.tm-steps { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px) { .tm-steps { grid-template-columns: repeat(3, 1fr); } }

.tm-step {
  position: relative; overflow: hidden;
  border-radius: var(--tm-radius-lg); padding: 1.75rem;
  border: 1px solid rgba(231, 229, 228, 0.4);
}
.tm-step .num {
  font-family: var(--tm-font-display); font-size: 4.5rem;
  color: rgba(27, 34, 64, 0.15);
  position: absolute; top: -0.5rem; right: 1.25rem; line-height: 1;
}
.tm-step h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.tm-step p  { font-size: 0.9rem; color: rgba(27, 34, 64, 0.7); max-width: 18rem; margin-top: 0.5rem; }

.tm-benefits {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .tm-benefits { grid-template-columns: repeat(3, 1fr); } }

.tm-benefit {
  display: flex; align-items: start; gap: 0.75rem;
  background: var(--tm-cream); border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius); padding: 1.25rem;
}
.tm-benefit .icon {
  height: 40px; width: 40px; border-radius: 999px;
  background: rgba(19, 181, 199, 0.12); color: var(--tm-teal);
  display: grid; place-items: center; flex-shrink: 0;
}
.tm-benefit strong { font-size: 0.9rem; display: block; }
.tm-benefit small  { font-size: 0.75rem; color: var(--tm-muted); }

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.tm-reviews  { columns: 1; column-gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px)  { .tm-reviews { columns: 2; } }
@media (min-width: 1024px) { .tm-reviews { columns: 3; } }

.tm-review {
  break-inside: avoid; margin: 0 0 1.25rem;
  border-radius: var(--tm-radius-lg);
  border: 1px solid rgba(231, 229, 228, 0.4);
  padding: 1.5rem; transition: transform 0.3s ease;
}
.tm-review:hover { transform: rotate(0) !important; }
.tm-review .stars { color: var(--tm-teal); display: flex; gap: 2px; margin-bottom: 0.75rem; }
.tm-review blockquote { font-family: var(--tm-font-display); font-size: 1.1rem; line-height: 1.4; margin: 0; }
.tm-review figcaption { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.tm-review-avatar {
  height: 36px; width: 36px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 0.9rem;
}

.tm-rotate-l1 { transform: rotate(-1deg); }
.tm-rotate-l2 { transform: rotate(-2deg); }
.tm-rotate-r1 { transform: rotate(1deg); }
.tm-rotate-r2 { transform: rotate(2deg); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.tm-footer { background: var(--tm-card); border-top: 1px solid var(--tm-border); }

.tm-footer-cols { display: grid; gap: 2.5rem; padding-top: 3.5rem; }
@media (min-width: 768px) { .tm-footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.tm-footer img.logo { height: 32px; width: auto; }
.tm-footer p.tag   { font-size: 0.9rem; color: var(--tm-muted); max-width: 22rem; margin-top: 0.75rem; }

.tm-socials { margin-top: 1rem; display: flex; gap: 0.5rem; }
.tm-socials a {
  height: 36px; width: 36px; border-radius: 999px;
  background: var(--tm-cream); border: 1px solid var(--tm-border);
  display: grid; place-items: center; transition: color 0.2s;
}
.tm-socials a:hover { color: var(--tm-teal); }

.tm-footer h4    { font-family: var(--tm-font-display); font-size: 1rem; margin-bottom: 0.75rem; }
.tm-footer ul    { list-style: none; padding: 0; margin: 0; }
.tm-footer ul li { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--tm-muted); }
.tm-footer ul li a:hover { color: var(--tm-teal); }

.tm-footer-bottom { border-top: 1px solid var(--tm-border); font-size: 0.75rem; color: var(--tm-muted); }
.tm-footer-bottom-inner {
  padding: 1.25rem 0;
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .tm-footer-bottom-inner { flex-direction: row; } }
.tm-footer-bottom .links { display: flex; gap: 1.25rem; }
.tm-footer-bottom .links a:hover { color: var(--tm-teal); }

/* ==========================================================================
   12. WOOCOMMERCE OVERRIDES
   ========================================================================== */
.woocommerce,
.woocommerce-page { font-family: var(--tm-font-body); color: var(--tm-ink); }

.woocommerce .page-title,
.woocommerce h1,
.woocommerce h2 { font-family: var(--tm-font-display); }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
@media (min-width: 768px)  { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }

.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img {
  border-radius: var(--tm-radius-lg);
  border: 1px solid var(--tm-border);
  background: #fff;
  margin-bottom: 0.75rem !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--tm-font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}
.woocommerce ul.products li.product .price {
  color: var(--tm-ink) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page #respond input#submit {
  background: var(--tm-navy) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.4rem !important;
  font-weight: 600 !important;
  font-family: var(--tm-font-body) !important;
  text-transform: none !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--tm-navy) !important; color: #fff !important; }

.woocommerce span.onsale {
  background: var(--tm-teal) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  min-height: 0 !important;
  padding: 0.25rem 0.75rem !important;
  line-height: 1.2 !important;
}
.woocommerce div.product div.images img { border-radius: var(--tm-radius-lg); border: 1px solid var(--tm-border); }
.woocommerce div.product .product_title { font-size: 2rem; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--tm-ink); font-weight: 700; }

.woocommerce .quantity .qty {
  border: 1px solid var(--tm-border); border-radius: 999px; padding: 0.5rem 0.75rem;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--tm-teal) !important;
  background: var(--tm-teal-soft) !important;
  border-radius: var(--tm-radius);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--tm-teal) !important; }

.woocommerce table.shop_table { border-radius: var(--tm-radius); border-collapse: separate; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--tm-teal) !important; color: #fff !important;
}

/* ==========================================================================
   13. GENERIC PAGES + 404
   ========================================================================== */
.tm-page    { padding: 3rem 0 5rem; }
.tm-page h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 1.5rem; }
.tm-prose p { margin: 0 0 1rem; }

.tm-404    { text-align: center; padding: 6rem 0; }
.tm-404 h1 { font-size: 5rem; }
.tm-404 p  { color: var(--tm-muted); margin: 1rem 0 2rem; }

/* ==========================================================================
   14. SUB-PAGES
   ========================================================================== */
.tm-subpage { color: var(--tm-navy); }

.tm-subpage .tm-page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
}
.tm-subpage .tm-page-title {
  font-family: var(--tm-font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05; margin: 0 0 16px;
}
.tm-subpage .tm-page-lead {
  max-width: 640px; margin: 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(11, 31, 77, 0.72); line-height: 1.6;
}
.tm-subpage .tm-narrow { max-width: 760px; margin-inline: auto; }

.tm-subpage .tm-sub-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tm-teal); font-weight: 700; margin: 0 0 8px;
}
.tm-subpage .tm-section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.tm-subpage .tm-link-arrow { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tm-subpage .tm-link-arrow:hover { color: var(--tm-teal); }
.tm-subpage .tm-muted { color: rgba(11, 31, 77, 0.6); }
.tm-subpage .tm-section.tm-bg-card { background: var(--tm-card); }

.tm-subpage .tm-section-head {
  display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; gap: 16px; margin-bottom: 32px;
}
.tm-subpage .tm-section-head .tm-eyebrow { order: -1; margin: 0; white-space: nowrap; flex-shrink: 0; }
.tm-subpage .tm-section-head h2 { width: 100%; margin: 0; }
@media (max-width: 600px) {
  .tm-subpage .tm-section-head { gap: 12px; margin-bottom: 24px; }
}

/* 14.1 About */
.tm-subpage .tm-about-story-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 800px) { .tm-subpage .tm-about-story-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.tm-subpage .tm-about-story-text h2 { font-family: var(--tm-font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 16px; }
.tm-subpage .tm-about-story-text p  { line-height: 1.7; margin: 0 0 14px; }
.tm-subpage .tm-about-story-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--tm-radius-lg); border: 1px solid var(--tm-border); }

.tm-subpage .tm-about-values-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .tm-subpage .tm-about-values-grid { grid-template-columns: repeat(3, 1fr); } }

.tm-subpage .tm-value-card { border-radius: var(--tm-radius-lg); padding: 32px 28px; border: 1px solid var(--tm-border); }
.tm-subpage .tm-value-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.7); font-size: 20px; margin-bottom: 16px; }
.tm-subpage .tm-value-card h3 { font-family: var(--tm-font-display); font-size: 1.5rem; margin: 0 0 8px; }
.tm-subpage .tm-value-card p  { margin: 0; line-height: 1.55; color: rgba(11, 31, 77, 0.78); }

.tm-subpage .tm-about-quote { text-align: center; }
.tm-subpage .tm-about-quote blockquote { max-width: 720px; margin: 0 auto; font-family: var(--tm-font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; color: var(--tm-navy); }
.tm-subpage .tm-about-quote cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; color: rgba(11, 31, 77, 0.6); }
.tm-subpage .tm-about-cta { text-align: center; background: var(--tm-cream); }
.tm-subpage .tm-about-cta h2 { font-family: var(--tm-font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 24px; }

/* 14.2 Contact */
.tm-subpage .tm-contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .tm-subpage .tm-contact-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }

.tm-subpage .tm-contact-form { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--tm-radius-lg); border: 1px solid var(--tm-border); }
.tm-subpage .tm-contact-form h2 { font-family: var(--tm-font-display); font-size: 1.75rem; margin: 0 0 24px; }
.tm-subpage .tm-field { margin-bottom: 18px; }
.tm-subpage .tm-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: rgba(11, 31, 77, 0.8); }
.tm-subpage .tm-field input,
.tm-subpage .tm-field select,
.tm-subpage .tm-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(11, 31, 77, 0.18); font: inherit; background: var(--tm-cream);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tm-subpage .tm-field input:focus,
.tm-subpage .tm-field select:focus,
.tm-subpage .tm-field textarea:focus { outline: none; border-color: var(--tm-teal); box-shadow: 0 0 0 3px rgba(31,184,201,0.18); }
.tm-subpage .tm-contact-form button { width: 100%; margin-top: 8px; }

.tm-subpage .tm-contact-info { display: grid; gap: 16px; }
.tm-subpage .tm-info-card { background: var(--tm-cream); border-radius: var(--tm-radius); padding: 20px 22px; border: 1px solid var(--tm-border); }
.tm-subpage .tm-info-card h3 { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(11,31,77,0.6); margin: 0 0 6px; }
.tm-subpage .tm-info-card p  { margin: 0; font-size: 1rem; line-height: 1.5; }
.tm-subpage .tm-info-card p span { display: block; font-size: 13px; color: rgba(11,31,77,0.6); }
.tm-subpage .tm-info-card a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tm-subpage .tm-info-socials { display: flex; gap: 8px; margin-top: 4px; }
.tm-subpage .tm-info-socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--tm-navy); }

/* 14.3 Store */
.tm-subpage .tm-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 700px) { .tm-subpage .tm-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.tm-subpage .tm-trust-grid > div { background: #fff; border: 1px solid var(--tm-border); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; }
.tm-subpage .tm-trust-grid strong { font-size: 14px; }
.tm-subpage .tm-trust-grid span  { font-size: 12px; color: rgba(11,31,77,0.6); margin-top: 2px; }

/* 14.4 Shipping */
.tm-subpage .tm-ship-options { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .tm-subpage .tm-ship-options { grid-template-columns: repeat(3, 1fr); } }
.tm-subpage .tm-ship-card { position: relative; background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); padding: 28px; }
.tm-subpage .tm-ship-badge { position: absolute; top: 16px; right: 16px; background: var(--tm-navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tm-subpage .tm-ship-card h3  { font-family: var(--tm-font-display); font-size: 1.5rem; margin: 0 0 4px; }
.tm-subpage .tm-ship-eta     { margin: 0 0 12px; color: rgba(11,31,77,0.65); font-size: 14px; }
.tm-subpage .tm-ship-price   { margin: 0 0 16px; font-size: 1rem; }
.tm-subpage .tm-ship-price strong { font-size: 1.25rem; }
.tm-subpage .tm-ship-card ul { margin: 0; padding: 0; list-style: none; }
.tm-subpage .tm-ship-card li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.tm-subpage .tm-ship-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--tm-teal); font-weight: 700; }
.tm-subpage .tm-ship-regions { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .tm-subpage .tm-ship-regions { grid-template-columns: repeat(2, 1fr); } }
.tm-subpage .tm-ship-regions > div { padding: 20px 22px; background: #fff; border: 1px solid var(--tm-border); border-radius: 18px; }
.tm-subpage .tm-ship-regions h3 { font-family: var(--tm-font-display); font-size: 1.25rem; margin: 0 0 6px; }
.tm-subpage .tm-ship-regions p  { margin: 0; color: rgba(11,31,77,0.7); font-size: 14px; }
.tm-subpage .tm-mini-faq { border-top: 1px solid rgba(11,31,77,0.1); padding: 16px 0; }
.tm-subpage .tm-mini-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.tm-subpage .tm-mini-faq summary::-webkit-details-marker { display: none; }
.tm-subpage .tm-mini-faq summary::after { content: "+"; font-size: 1.4em; color: var(--tm-teal); font-weight: 400; }
.tm-subpage .tm-mini-faq[open] summary::after { content: "−"; }
.tm-subpage .tm-mini-faq p { margin: 12px 0 0; color: rgba(11,31,77,0.75); line-height: 1.6; }
.tm-subpage .tm-mini-faq-link { margin-top: 24px; font-size: 14px; }

/* 14.5 Returns */
.tm-subpage .tm-returns-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .tm-subpage .tm-returns-highlights { grid-template-columns: repeat(4, 1fr); } }
.tm-subpage .tm-returns-highlights > div { text-align: center; padding: 22px 16px; border-radius: 18px; background: var(--tm-butter); border: 1px solid var(--tm-border); }
.tm-subpage .tm-returns-highlights strong { display: block; font-family: var(--tm-font-display); font-size: 1.5rem; line-height: 1; }
.tm-subpage .tm-returns-highlights span   { display: block; margin-top: 6px; font-size: 12px; color: rgba(11,31,77,0.65); text-transform: uppercase; letter-spacing: 0.12em; }
.tm-subpage .tm-return-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .tm-subpage .tm-return-steps { grid-template-columns: repeat(2, 1fr); } }
.tm-subpage .tm-return-steps li { position: relative; padding: 28px; background: #fff; border: 1px solid var(--tm-border); border-radius: var(--tm-radius); }
.tm-subpage .tm-step-n { font-family: var(--tm-font-display); font-size: 3rem; color: rgba(11,31,77,0.12); position: absolute; top: 6px; right: 18px; }
.tm-subpage .tm-return-steps h3 { font-family: var(--tm-font-display); font-size: 1.25rem; margin: 0 0 6px; }
.tm-subpage .tm-return-steps p  { margin: 0; color: rgba(11,31,77,0.75); line-height: 1.6; }
.tm-subpage .tm-returns-checklist { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .tm-subpage .tm-returns-checklist { grid-template-columns: 1fr 1fr; gap: 40px; } }
.tm-subpage .tm-check-col { background: #fff; border-radius: var(--tm-radius); padding: 28px; border: 1px solid var(--tm-border); }
.tm-subpage .tm-check-col h3 { font-family: var(--tm-font-display); font-size: 1.4rem; margin: 0 0 16px; }
.tm-subpage .tm-check-col ul { margin: 0; padding: 0; list-style: none; }
.tm-subpage .tm-check-col li { padding: 8px 0 8px 28px; position: relative; line-height: 1.5; }
.tm-subpage .tm-check-yes li::before { content: "✓"; color: #2BA071; font-weight: 700; position: absolute; left: 4px; }
.tm-subpage .tm-check-no  li::before { content: "✕"; color: #C24A4A; font-weight: 700; position: absolute; left: 4px; }

/* 14.6 FAQ */
.tm-subpage .tm-faq-search { display: block; margin: 24px auto 0; max-width: 480px; width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(11,31,77,0.18); font: inherit; background: #fff; }
.tm-subpage .tm-faq-search:focus { outline: none; border-color: var(--tm-teal); box-shadow: 0 0 0 3px rgba(31,184,201,0.18); }
.tm-subpage .tm-faq-group { margin-bottom: 40px; }
.tm-subpage .tm-faq-group h2 { font-family: var(--tm-font-display); font-size: 1.75rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--tm-border); }
.tm-subpage .tm-faq-item { border-bottom: 1px solid rgba(11,31,77,0.1); padding: 18px 0; }
.tm-subpage .tm-faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tm-subpage .tm-faq-item summary::-webkit-details-marker { display: none; }
.tm-subpage .tm-faq-item summary::after       { content: "+"; font-size: 1.4em; color: var(--tm-teal); font-weight: 400; flex-shrink: 0; }
.tm-subpage .tm-faq-item[open] summary::after { content: "−"; }
.tm-subpage .tm-faq-item p { margin: 14px 0 0; color: rgba(11,31,77,0.78); line-height: 1.65; }
.tm-subpage .tm-faq-item a { color: var(--tm-teal); text-decoration: underline; text-underline-offset: 3px; }
.tm-subpage .tm-faq-empty { text-align: center; padding: 32px; background: var(--tm-cream); border-radius: 16px; color: rgba(11,31,77,0.7); }

/* 14.7 Mobile */
@media (max-width: 600px) {
  .tm-subpage .tm-page-hero        { padding: 40px 0 24px; }
  .tm-subpage .tm-step-n           { font-size: 2.4rem; }
  .tm-subpage .tm-faq-item summary { font-size: 1rem; }
}

/* ==========================================================================
   15. SHOP ARCHIVE
   ========================================================================== */
.tm-shop .tm-shop-hero { padding: 56px 0 24px; }
.tm-shop-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tm-coral); font-weight: 700; margin: 0 0 10px; }
.tm-shop-title { font-family: var(--tm-font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--tm-navy); margin: 0; }
.tm-shop-lead { margin-top: 14px; max-width: 56ch; color: rgba(11,31,77,0.72); font-size: 1.02rem; line-height: 1.55; }

.tm-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 24px 0 80px; align-items: start; }
.tm-shop-layout--single { grid-template-columns: 1fr; }

.tm-shop-sidebar { position: sticky; top: 96px; }
.tm-shop-sidebar-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--tm-cream); border: 1px solid rgba(11,31,77,0.08); border-radius: 14px; font-weight: 600; color: var(--tm-navy); cursor: pointer; font-size: 0.95rem; }
.tm-shop-sidebar-toggle svg { transition: transform 0.2s ease; }
.tm-shop-sidebar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.tm-filter-group { padding: 18px 0; border-bottom: 1px solid rgba(11,31,77,0.08); }
.tm-filter-group:first-child { padding-top: 0; }
.tm-filter-group:last-child  { border-bottom: 0; }
.tm-filter-title { font-family: var(--tm-font-display); font-size: 1.05rem; color: var(--tm-navy); margin: 0 0 12px; letter-spacing: -0.01em; }
.tm-filter-list  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tm-filter-item a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; color: rgba(11,31,77,0.78); font-size: 0.95rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.tm-filter-item a:hover           { background: var(--tm-cream); color: var(--tm-navy); }
.tm-filter-item.is-active a       { background: var(--tm-navy); color: #fff; font-weight: 600; }
.tm-filter-count                  { font-size: 0.78rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.tm-filter-item.is-active .tm-filter-count { opacity: 0.85; }
.tm-filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-tag-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tm-cream); color: rgba(11,31,77,0.75); font-size: 0.82rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.tm-tag-pill:hover     { background: rgba(11,31,77,0.08); color: var(--tm-navy); }
.tm-tag-pill.is-active { background: var(--tm-coral); color: #fff; }
.tm-filter-clear   { margin-top: 16px; }
.tm-filter-clear a { font-size: 0.86rem; color: var(--tm-coral); text-decoration: none; font-weight: 600; }
.tm-filter-clear a:hover { text-decoration: underline; }

.tm-filter-price .price_slider_wrapper { padding-top: 4px; }
.tm-filter-price .price_slider         { background: rgba(11,31,77,0.1); height: 4px; border-radius: 999px; margin: 16px 0 12px; position: relative; }
.tm-filter-price .ui-slider-range      { background: var(--tm-coral); height: 100%; position: absolute; border-radius: 999px; }
.tm-filter-price .ui-slider-handle     { width: 16px; height: 16px; background: #fff; border: 2px solid var(--tm-coral); border-radius: 50%; top: -6px; margin-left: -8px; cursor: grab; }
.tm-filter-price .price_slider_amount  { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; color: rgba(11,31,77,0.72); gap: 8px; }
.tm-filter-price .price_slider_amount .button { background: var(--tm-navy); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.tm-filter-price .price_label { order: -1; flex: 1; }

.tm-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid rgba(11,31,77,0.08); margin-bottom: 24px; flex-wrap: wrap; }
.tm-shop-meta { margin: 0; font-size: 0.88rem; color: rgba(11,31,77,0.65); }
.tm-sort-wrap .woocommerce-ordering { margin: 0; }
.tm-sort-wrap select,
.tm-shop-main .woocommerce-ordering select { appearance: none; -webkit-appearance: none; background: var(--tm-cream) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b1f4d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 14px center; background-size: 12px; border: 1px solid rgba(11,31,77,0.1); border-radius: 999px; padding: 9px 38px 9px 16px; font-size: 0.88rem; font-weight: 500; color: var(--tm-navy); cursor: pointer; }

.tm-shop-main ul.products,
.tm-shop-main .products,
.tm-shop-main .tm-products-grid { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tm-shop-main ul.products::before,
.tm-shop-main ul.products::after,
.tm-shop-main .products::before,
.tm-shop-main .products::after { content: none !important; display: none !important; }
.tm-shop-main ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }

.tm-product-card  { position: relative; margin: 0; padding: 0; list-style: none; background: transparent; width: auto !important; }
.tm-product-link  { display: block; text-decoration: none; color: inherit; }
.tm-product-media { position: relative; aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; background: var(--tm-cream); border: 1px solid rgba(11,31,77,0.06); }
.tm-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tm-product-card:hover .tm-product-media img { transform: scale(1.05); }

.tm-product-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--tm-navy); padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid rgba(11,31,77,0.08); z-index: 2; }
.tm-badge-sale { background: var(--tm-coral);  color: #fff; border-color: transparent; }
.tm-badge-new  { background: var(--tm-mint);   color: var(--tm-navy); border-color: transparent; }
.tm-badge-best { background: var(--tm-butter); color: var(--tm-navy); border-color: transparent; }

.tm-product-wishlist { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border: 0; border-radius: 50%; color: var(--tm-navy); cursor: pointer; transition: color 0.15s, transform 0.15s; z-index: 2; }
.tm-product-wishlist:hover     { color: var(--tm-coral); transform: scale(1.05); }
.tm-product-wishlist.is-active { color: var(--tm-coral); }

.tm-product-add { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; z-index: 2; }
.tm-product-card:hover .tm-product-add,
.tm-product-card:focus-within .tm-product-add { opacity: 1; transform: translateY(0); }
.tm-product-add .button,
.tm-product-add a.button,
.tm-product-add a.add_to_cart_button,
.tm-product-add a.added_to_cart { display: block; width: 100%; text-align: center; background: var(--tm-navy); color: #fff; padding: 11px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; text-decoration: none; border: 0; transition: background 0.15s; }
.tm-product-add .button:hover,
.tm-product-add a.button:hover,
.tm-product-add a.add_to_cart_button:hover { background: var(--tm-coral); }
.tm-product-add .added_to_cart { margin-top: 6px; font-size: 0.78rem; }

.tm-product-info  { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.tm-product-title { font-family: var(--tm-font-display); font-size: 1.05rem; line-height: 1.25; color: var(--tm-navy); margin: 0; font-weight: 500; }
.tm-product-price { font-size: 0.95rem; font-weight: 700; color: var(--tm-navy); white-space: nowrap; }
.tm-product-price del { color: rgba(11,31,77,0.4); font-weight: 500; margin-right: 4px; }
.tm-product-price ins { background: transparent; color: var(--tm-coral); text-decoration: none; }

.tm-pagination { margin-top: 40px; display: flex; justify-content: center; }
.tm-pagination .page-numbers { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.tm-pagination .page-numbers li .page-numbers,
.tm-pagination .page-numbers > .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--tm-cream); color: var(--tm-navy); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 0.15s, color 0.15s; }
.tm-pagination .page-numbers .current { background: var(--tm-navy); color: #fff; }
.tm-pagination .page-numbers a:hover  { background: rgba(11,31,77,0.1); }

.tm-shop-empty   { text-align: center; padding: 56px 24px; background: var(--tm-cream); border-radius: 20px; }
.tm-shop-empty p { margin: 0 0 16px; color: rgba(11,31,77,0.7); }

@media (max-width: 1024px) {
  .tm-shop-main ul.products,
  .tm-shop-main .products,
  .tm-shop-main .tm-products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .tm-shop-layout            { grid-template-columns: 1fr; gap: 16px; }
  .tm-shop-sidebar           { position: static; }
  .tm-shop-sidebar-toggle    { display: flex; }
  .tm-shop-sidebar-inner     { display: none; margin-top: 12px; padding: 16px; background: #fff; border: 1px solid rgba(11,31,77,0.08); border-radius: 16px; }
  .tm-shop-sidebar-toggle[aria-expanded="true"] + .tm-shop-sidebar-inner { display: block; }
}
@media (max-width: 768px) {
  .tm-shop-main ul.products,
  .tm-shop-main .products,
  .tm-shop-main .tm-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tm-shop .tm-shop-hero { padding: 32px 0 16px; }
  .tm-shop-toolbar       { gap: 10px; padding-bottom: 14px; margin-bottom: 16px; }
  .tm-product-info       { padding-top: 10px; }
  .tm-product-title      { font-size: 0.95rem; }
  .tm-product-add        { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .tm-shop-main ul.products,
  .tm-shop-main .products,
  .tm-shop-main .tm-products-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   16. SINGLE PRODUCT
   ========================================================================== */
.tm-single-product-wrap { max-width: 1280px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.tm-product-breadcrumb   { font-size: 0.85rem; color: var(--tm-muted); margin-bottom: 1.5rem; letter-spacing: 0.02em; }
.tm-product-breadcrumb a { color: inherit; text-decoration: none; }
.tm-product-breadcrumb a:hover { color: var(--tm-ink); }

.tm-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.tm-product-grid > .tm-product-gallery,
.tm-product-grid > .tm-product-summary { min-width: 0; }

.tm-product .woocommerce-product-gallery,
.tm-product .summary.entry-summary,
.tm-product .related.products,
.tm-product .upsells.products { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; clear: none !important; }

.tm-product-gallery { position: sticky; top: 2rem; align-self: start; }
.tm-product-gallery .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; }
.tm-product-gallery .woocommerce-product-gallery__image img { border-radius: 1rem; background: #f5f1ea; max-width: 520px; margin: 0 auto; display: block; width: 100%; height: auto; }
.tm-product-gallery .flex-control-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding: 0; list-style: none; }
.tm-product-gallery .flex-control-thumbs li { width: 72px !important; margin: 0 !important; }
.tm-product-gallery .flex-control-thumbs img { border-radius: 0.5rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.tm-product-gallery .flex-control-thumbs img.flex-active,
.tm-product-gallery .flex-control-thumbs img:hover { opacity: 1; }

.tm-product-summary { display: flex; flex-direction: column; gap: 1.25rem; }
.tm-product-summary.summary.entry-summary { width: auto !important; margin: 0 !important; }

.tm-product-title { font-family: var(--tm-font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin: 0; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.tm-product-price             { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tm-product-price .price      { font-size: 1.5rem; font-weight: 600; color: var(--tm-ink); margin: 0; }
.tm-product-price del         { color: var(--tm-muted); font-weight: 400; margin-right: 0.5rem; }
.tm-product-price .woocommerce-product-rating { margin: 0; }
.tm-product-excerpt           { color: #4a4a55; font-size: 1rem; line-height: 1.6; }
.tm-product-excerpt p:last-child { margin-bottom: 0; }

.tm-customize-box { background: #f5f1ea; border: 1px solid var(--tm-border); border-radius: 1rem; padding: 1.5rem; margin: 0.5rem 0; }
.tm-customize-title { font-family: var(--tm-font-display); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tm-ink); margin: 0 0 1rem; white-space: nowrap; }
.tm-customize-box label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tm-ink); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.tm-customize-box input[type="text"],
.tm-customize-box input[type="email"],
.tm-customize-box input[type="number"],
.tm-customize-box input[type="tel"],
.tm-customize-box textarea,
.tm-customize-box select { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--tm-border); border-radius: 0.5rem; background: #fff; font-size: 0.95rem; font-family: inherit; color: var(--tm-ink); transition: border-color 0.15s, box-shadow 0.15s; }
.tm-customize-box input:focus,
.tm-customize-box textarea:focus,
.tm-customize-box select:focus { outline: none; border-color: var(--tm-ink); box-shadow: 0 0 0 3px rgba(15,27,61,0.1); }
.tm-customize-box .wc-pao-addon,
.tm-customize-box .product-addon { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--tm-border); }
.tm-customize-box .wc-pao-addon:last-of-type,
.tm-customize-box .product-addon:last-of-type { border-bottom: none; margin-bottom: 0.5rem; padding-bottom: 0; }
.tm-customize-box form.cart { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.tm-customize-box .quantity { display: inline-flex; align-items: center; border: 1px solid var(--tm-border); border-radius: 0.5rem; overflow: hidden; background: #fff; width: fit-content; }
.tm-customize-box .quantity input.qty { width: 4rem; border: none; text-align: center; padding: 0.65rem 0.5rem; font-size: 0.95rem; background: transparent; }
.tm-customize-box .single_add_to_cart_button { flex: 1 1 14rem; background: var(--tm-ink) !important; color: #fff !important; border: none !important; border-radius: 0.5rem !important; padding: 0.9rem 1.5rem !important; font-size: 0.95rem !important; font-weight: 600 !important; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; white-space: normal; min-width: 0; width: 100%; transition: transform 0.15s, opacity 0.15s; }
.tm-customize-box .single_add_to_cart_button:hover { opacity: 0.92; transform: translateY(-1px); }
@media (min-width: 480px) {
  .tm-customize-box form.cart { flex-direction: row; align-items: stretch; flex-wrap: wrap; }
  .tm-customize-box form.cart .quantity { flex-shrink: 0; }
}

.tm-trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; list-style: none; padding: 1rem 0; margin: 0; border-top: 1px solid var(--tm-border); border-bottom: 1px solid var(--tm-border); }
.tm-trust-row li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; font-size: 0.75rem; color: #4a4a55; letter-spacing: 0.02em; }
.tm-trust-ico { font-size: 1.1rem; line-height: 1; }

.tm-product-meta .product_meta        { font-size: 0.8rem; color: var(--tm-muted); }
.tm-product-meta .product_meta > span { display: block; padding: 0.15rem 0; }
.product_meta .sku_wrapper,
.product_meta .tagged_as { display: none !important; }

.tm-product-accordion { margin-top: 1rem; }
.tm-acc-item          { border-top: 1px solid var(--tm-border); }
.tm-acc-item:last-child { border-bottom: 1px solid var(--tm-border); }
.tm-acc-summary { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--tm-font-display); font-size: 1rem; font-weight: 600; color: var(--tm-ink); user-select: none; }
.tm-acc-summary::-webkit-details-marker { display: none; }
.tm-acc-summary::marker { content: ""; }
.tm-acc-chevron { font-size: 1.25rem; font-weight: 300; transition: transform 0.2s ease; line-height: 1; }
.tm-acc-item[open] .tm-acc-chevron { transform: rotate(45deg); }
.tm-acc-body { padding: 0 0 1.25rem; color: #4a4a55; font-size: 0.95rem; line-height: 1.65; }
.tm-acc-body p:last-child { margin-bottom: 0; }
.tm-acc-body .woocommerce-Tabs-panel > h2:first-child { display: none; }

.related.products,
.upsells.products { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--tm-border); display: block !important; width: 100% !important; }
.related.products > h2,
.upsells.products > h2 { font-family: var(--tm-font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1.5rem; display: block !important; float: none !important; }
.related.products ul.products,
.upsells.products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 1.5rem !important; }
.related.products ul.products li.product,
.upsells.products ul.products li.product { display: flex !important; flex-direction: column !important; position: relative !important; }
.related.products ul.products li.product a.woocommerce-loop-product__link { display: flex !important; flex-direction: column !important; flex: 1 !important; }
.related.products ul.products li.product .price { position: static !important; margin-top: auto !important; padding: 0.5rem 0 !important; }
.related.products ul.products li.product h2 { font-size: 0.875rem !important; line-height: 1.4 !important; margin-top: 0.5rem !important; }
.related.products ul.products li.product .woocommerce-loop-product__title { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; font-size: 0.8rem !important; }
.related.products ul.products li.product .button { font-size: 0.75rem !important; padding: 0.4rem 0.75rem !important; border-radius: 6px !important; width: auto !important; display: inline-block !important; }

.tm-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--tm-border); box-shadow: 0 -8px 24px rgba(15,27,61,0.08); z-index: 90; transform: translateY(100%); transition: transform 0.3s ease; pointer-events: none; }
.tm-sticky-cta.is-visible { transform: translateY(0); pointer-events: auto; }
.tm-sticky-cta-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; }
.tm-sticky-cta-info  { display: flex; align-items: center; gap: 0.85rem; min-width: 0; flex: 1; }
.tm-sticky-cta-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 0.4rem; display: block; }
.tm-sticky-cta-text  { display: flex; flex-direction: column; min-width: 0; }
.tm-sticky-cta-name  { font-weight: 600; font-size: 0.9rem; color: var(--tm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.tm-sticky-cta-price { font-size: 0.85rem; color: var(--tm-muted); }
.tm-sticky-cta-btn   { background: var(--tm-ink) !important; color: #fff !important; border: none !important; border-radius: 0.5rem !important; padding: 0.7rem 1.25rem !important; font-size: 0.85rem !important; font-weight: 600 !important; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.tm-sticky-cta-btn:hover { opacity: 0.92; }

@media (max-width: 1024px) {
  .tm-product-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tm-product-gallery { position: static; top: auto; }
  .tm-product-gallery .woocommerce-product-gallery__image img { max-width: 460px; }
  .related.products ul.products,
  .upsells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .tm-trust-row li { font-size: 0.65rem; gap: 0.25rem; }
  .tm-trust-ico    { font-size: 1rem; }
  .tm-trust-row    { gap: 0.4rem; padding: 0.85rem 0; }
}
@media (max-width: 480px) {
  .tm-single-product-wrap { padding: 1rem 1rem 6rem; }
  .tm-customize-box       { padding: 1.25rem; }
  .tm-product-gallery .woocommerce-product-gallery__image img { max-width: 100%; }
  .tm-sticky-cta-thumb    { display: none; }
  .tm-sticky-cta-name     { max-width: 40vw; }
}
@media (max-width: 768px) {
  .tm-single-main .single_add_to_cart_button,
  .tm-single-main .button.alt { font-size: 1rem !important; padding: 0.875rem 1.5rem !important; width: 100% !important; border-radius: 8px !important; }
}