/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Custom Astra Child Theme for TRA MART (Bangladesh E-Commerce)
 Author:       TRA MART
 Template:     astra
 Version:      1.4.0
 Text Domain:  tramart
*/

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES (PROJECT_BRIEF.md Section 3)
   ========================================================================== */
:root {
  --tm-navy: #0F172A;
  --tm-orange: #C2410C;
  --tm-orange-dark: #9A3412;
  --tm-bg: #F8FAFC;
  --tm-text: #1F2937;
  --tm-muted: #64748B;
  --tm-border: #E5E7EB;
  --tm-green: #16A34A;
  --tm-radius: 12px;
  --tm-radius-sm: 8px;
  --tm-shadow: 0 10px 25px rgba(15, 23, 42, .10);
  --tm-shadow-sm: 0 4px 12px rgba(15, 23, 42, .06);
  --tm-shadow-hover: 0 14px 30px rgba(15, 23, 42, .14);
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & BASE STYLES
   ========================================================================== */
body, button, input, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tm-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Bangla language typography support */
:lang(bn), [lang="bn"], [lang="bn-BD"], .trp-language-bn_BD {
  font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.ast-site-title-wrap {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--tm-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--tm-navy);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--tm-orange);
}

/* ==========================================================================
   3. BUTTONS (44px Minimum Touch Targets, Clean Transitions)
   ========================================================================== */
.button,
.woocommerce-button,
.wp-block-button__link,
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.tm-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 24px !important;
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: var(--tm-radius-sm) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25) !important;
}

.button:hover,
.woocommerce-button:hover,
.wp-block-button__link:hover,
.single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.tm-btn-primary:hover {
  background-color: var(--tm-orange-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35) !important;
}

.button:active,
.woocommerce button.button:active,
.tm-btn-primary:active {
  transform: translateY(0) !important;
}

/* Secondary / Outline Button */
.button.secondary,
.tm-btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 24px !important;
  background-color: transparent !important;
  color: var(--tm-navy) !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-weight: 600 !important;
  border: 2px solid var(--tm-navy) !important;
  border-radius: var(--tm-radius-sm) !important;
  box-shadow: none !important;
}

.button.secondary:hover,
.tm-btn-outline:hover {
  background-color: var(--tm-navy) !important;
  color: #ffffff !important;
  box-shadow: var(--tm-shadow-sm) !important;
}

/* ==========================================================================
   4. SHOP & ARCHIVE PAGES (Grid, Sorting Bar & Filter Styling)
   ========================================================================== */
.woocommerce .woocommerce-ordering select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 8px 14px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  background-color: #ffffff;
  color: var(--tm-text);
  outline: none;
  cursor: pointer;
}

.woocommerce .woocommerce-result-count {
  font-size: 0.92rem;
  color: var(--tm-muted);
  margin-bottom: 1.5rem;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 10px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 1rem !important;
  }

  .woocommerce ul.products li.product .button {
    font-size: 0.8rem !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius) !important;
  padding: 14px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--tm-shadow-hover) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

.woocommerce ul.products li.product a img {
  border-radius: var(--tm-radius-sm) !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: var(--tm-navy) !important;
  margin: 4px 0 8px !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--tm-orange) !important;
}

.woocommerce ul.products li.product .price {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--tm-orange) !important;
  margin: auto 0 12px 0 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--tm-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  margin-right: 6px !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--tm-orange) !important;
}

.woocommerce ul.products li.product .button {
  margin-top: 8px !important;
  width: 100% !important;
  font-size: 0.88rem !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
}

/* ==========================================================================
   5. SALE BADGE (Clean Orange Pill Shape)
   ========================================================================== */
.woocommerce span.onsale,
.tm-onsale-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  z-index: 9 !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35) !important;
}

/* ==========================================================================
   6. SINGLE PRODUCT PAGE STYLES
   ========================================================================== */
.woocommerce div.product {
  margin-top: 2rem !important;
}

.woocommerce div.product div.images img {
  border-radius: var(--tm-radius) !important;
  border: 1px solid var(--tm-border) !important;
}

.woocommerce div.product .product_title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--tm-navy) !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}

/* Product page text slightly smaller (standard size) */
@media (max-width: 767px) {
  .woocommerce div.product .product_title {
    font-size: 1.2rem !important;
  }
}

.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product #tab-description {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--tm-orange) !important;
  margin-bottom: 16px !important;
}

.woocommerce div.product p.price del {
  color: var(--tm-muted) !important;
  font-size: 1.2rem !important;
}

.woocommerce div.product p.price ins {
  color: var(--tm-orange) !important;
  text-decoration: none !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--tm-text) !important;
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--tm-border) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
  font-size: inherit !important;
  line-height: inherit !important;
}

.woocommerce div.product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 24px 0 !important;
}

.woocommerce div.product form.cart div.quantity input.qty {
  min-height: 46px !important;
  width: 68px !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius-sm) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  padding: 0 4px !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 46px !important;
  padding: 12px 28px !important;
  font-size: 1rem !important;
  flex: 1 1 auto !important;
  background-color: var(--tm-navy) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: #1E293B !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3) !important;
}

.tm-btn-order-now {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 28px !important;
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: var(--tm-radius-sm) !important;
  flex: 1 1 auto !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35) !important;
}

.tm-btn-order-now:hover {
  background-color: var(--tm-orange-dark) !important;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45) !important;
}

.tm-product-trust-badges {
  background: var(--tm-bg);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-trust-badge-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #FFF7ED;
  color: var(--tm-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-trust-badge-icon svg {
  width: 18px;
  height: 18px;
}

.tm-trust-badge-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--tm-navy);
}

.tm-trust-badge-item span {
  font-size: 0.82rem;
  color: var(--tm-muted);
}

/* ==========================================================================
   7. CART PAGE STYLES
   ========================================================================== */
.woocommerce-cart table.cart {
  border-radius: var(--tm-radius) !important;
  overflow: hidden !important;
  border: 1px solid var(--tm-border) !important;
}

.woocommerce-cart table.cart th {
  background-color: var(--tm-bg) !important;
  color: var(--tm-navy) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 16px !important;
}

.woocommerce-cart table.cart td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.woocommerce-cart .cart_totals {
  background: #ffffff !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius) !important;
  padding: 24px !important;
  box-shadow: var(--tm-shadow-sm) !important;
}

.woocommerce-cart .cart_totals h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.35rem !important;
  color: var(--tm-navy) !important;
  margin-bottom: 16px !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  min-height: 48px !important;
  font-size: 1.05rem !important;
  background-color: var(--tm-orange) !important;
}

/* ==========================================================================
   8. CHECKOUT PAGE (Optimised for Cash on Delivery in Bangladesh)
   ========================================================================== */
/* Blocks checkout on mobile: keep the form off the screen edges (the blocks
   checkout is full-width with no container padding below 921px). */
@media (max-width: 921px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  /* Blocks checkout order summary + totals need a little room too */
  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  /* Blocks cart on mobile: the cart block is "alignwide" with -20px side
     margins, which pushes the product thumbnails flush against the left
     edge and lets the Proceed to Checkout button overflow to the right.
     Reset the breakout and pad it like the checkout form. */
  body.woocommerce-cart .wp-block-woocommerce-cart {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.woocommerce-cart .wc-block-cart__submit-container {
    /* On mobile this container is a fixed bottom bar — stretch it edge to edge. */
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
  /* WooCommerce pins the cart row grid at 80px + 132px, which is wider than
     the padded mobile content area and overflows the right edge. Make the
     product column flexible so the row always fits. */
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
  }
}

/* COD checkout: never show the collapsed saved-address card — the Shipping
   address form must always be open. The card (with its "Edit" button) is
   hidden; the JS in functions.php opens and empties the form instead. */
body.woocommerce-checkout .wc-block-components-address-card-wrapper {
  display: none !important;
}

/* Checkout shows only ONE order summary (inside the form, above Place
   Order). The collapsible "Order summary" toggle in the sidebar above the
   Shipping address is removed — duplicate information. */
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  display: none !important;
}

/* COD shop in Bangladesh only: hide the Country/Region select visually.
   It stays in the DOM so the District dropdown still renders and the
   country value keeps posting with the address. */
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-country-input {
  display: none !important;
}

.woocommerce-checkout #customer_details {
  margin-bottom: 2rem !important;
}

.woocommerce-checkout form.checkout h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--tm-navy) !important;
  margin-bottom: 18px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--tm-orange) !important;
  display: inline-block !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  min-height: 46px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--tm-orange) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
  outline: none !important;
}

.woocommerce-checkout #order_review {
  background: #ffffff !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius) !important;
  padding: 24px !important;
  box-shadow: var(--tm-shadow-sm) !important;
}

.woocommerce-checkout #order_review table.shop_table {
  border: none !important;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 12px 0 !important;
}

.tm-cod-checkout-notice {
  background-color: #FFF7ED;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--tm-radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-navy);
  font-size: 0.95rem;
}

.tm-cod-checkout-notice svg {
  color: var(--tm-orange);
  flex-shrink: 0;
}

.tm-cod-checkout-notice strong {
  color: var(--tm-orange);
  font-size: 1.05rem;
}

#place_order {
  width: 100% !important;
  min-height: 52px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  background-color: var(--tm-orange) !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35) !important;
}

#place_order:hover {
  background-color: var(--tm-orange-dark) !important;
}

/* ==========================================================================
   9. WOOCOMMERCE NOTICES & BANNERS
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--tm-radius-sm) !important;
  padding: 14px 20px !important;
  margin: 1.5rem 0 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left-width: 4px !important;
  font-size: 0.95rem !important;
  box-shadow: var(--tm-shadow-sm) !important;
}

.woocommerce-message {
  background-color: #F0FDF4 !important;
  color: #166534 !important;
  border-left-color: var(--tm-green) !important;
}
.woocommerce-message::before {
  color: var(--tm-green) !important;
}

.woocommerce-info {
  background-color: #F8FAFC !important;
  color: var(--tm-navy) !important;
  border-left-color: var(--tm-navy) !important;
}
.woocommerce-info::before {
  color: var(--tm-navy) !important;
}

.woocommerce-error {
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
  border-left-color: #EF4444 !important;
}
.woocommerce-error::before {
  color: #EF4444 !important;
}

/* ==========================================================================
   10. HEADER & MOBILE NAVIGATION
   ========================================================================== */
.ast-above-header-bar {
  background-color: var(--tm-navy) !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
}
.ast-above-header-bar a {
  color: #ffffff !important;
}
.ast-above-header-bar a:hover {
  color: var(--tm-orange) !important;
}

.site-branding,
.ast-site-title-wrap {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  word-break: normal !important;
  word-wrap: normal !important;
  overflow: visible !important;
}

.site-title,
.site-title a,
.ast-site-title-wrap .site-title a {
  font-family: 'Poppins', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  display: inline-block !important;
  color: var(--tm-navy) !important;
  transition: color 0.2s ease !important;
}

.site-title a:hover {
  color: var(--tm-orange) !important;
}

.custom-logo-link img,
.site-logo img {
  max-height: 52px !important;
  width: auto !important;
}

/* "All product" Button beside TRA MART */
.tm-header-all-products-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  min-height: 40px !important;
  background-color: #F1F5F9 !important;
  color: var(--tm-navy) !important;
  border: 1.5px solid var(--tm-border) !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-left: 14px !important;
  flex-shrink: 0 !important;
}

.tm-header-all-products-btn svg {
  color: var(--tm-orange) !important;
  transition: transform 0.2s ease !important;
}

.tm-header-all-products-btn:hover {
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  border-color: var(--tm-orange) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25) !important;
  transform: translateY(-1px) !important;
}

.tm-header-all-products-btn:hover svg {
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

/* ==========================================================================
   TRA MART Header Search Bar (replaces Astra "slide-search" element)
   ========================================================================== */
.site-header .ast-header-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.tm-search-bar {
  position: relative !important;
  width: 100% !important;
  max-width: 560px !important;
}

.tm-search-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tm-navy, #0F172A) !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.tm-search-form:focus-within {
  border-color: var(--tm-orange) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10) !important;
}

.tm-search-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
  padding: 0 8px 0 16px !important;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--tm-text, #1F2937) !important;
}

.tm-search-input::placeholder {
  color: var(--tm-muted, #64748B) !important;
}

.tm-search-btn {
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background-color: transparent !important;
  color: var(--tm-navy, #0F172A) !important;
  border: none !important;
  border-left: 1px solid var(--tm-border, #E5E7EB) !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  box-shadow: none !important;
  transform: none !important;
}

.tm-search-btn:hover,
.tm-search-btn:focus {
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  border-left-color: var(--tm-orange) !important;
  transform: none !important;
}

/* Mobile: icon-only button that opens the search box below the header row */
@media (max-width: 921px) {
  .tm-search-bar {
    max-width: none !important;
    width: auto !important;
  }

  .tm-search-bar:not(.is-open) .tm-search-input {
    display: none !important;
  }

  .tm-search-bar:not(.is-open) .tm-search-form {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #F1F5F9 !important;
  }

  .tm-search-bar:not(.is-open) .tm-search-btn {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .tm-search-bar:not(.is-open) .tm-search-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .tm-search-bar.is-open {
    position: static !important;
  }

  .tm-search-bar.is-open {
    position: static !important;
  }

  .tm-search-bar.is-open .tm-search-form {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    padding: 2px !important;
    z-index: 99999 !important;
    box-shadow: var(--tm-shadow, 0 10px 25px rgba(15, 23, 42, .10)) !important;
  }

  /* anchor for the opened search dropdown: the full-width mobile header */
  #ast-mobile-header .tm-mh-search-wrap,
  #ast-mobile-header .tm-mh-search-wrap .ast-header-search {
    position: static !important;
  }
}

/* ==========================================================================
   TRA MART Header Account Link (replaces Astra account element)
   ========================================================================== */
.tm-account-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  color: var(--tm-navy, #0F172A) !important;
  background-color: transparent !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.tm-account-link svg {
  flex: 0 0 auto !important;
  width: 20px !important;
  height: 20px !important;
}

.tm-account-link:hover {
  background-color: #F1F5F9 !important;
  color: var(--tm-orange, #F97316) !important;
}

.tm-account-link .tm-account-label {
  max-width: 150px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 921px) {
  .tm-account-link .tm-account-label {
    display: none !important;
  }
  /* Mobile: circular icon button, matches the search circle */
  #ast-mobile-header .tm-account-link {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background-color: #F1F5F9 !important;
    color: var(--tm-navy, #0F172A) !important;
    flex: 0 0 auto;
  }
  #ast-mobile-header .tm-account-link svg {
    width: 17px !important;
    height: 17px !important;
  }
  #ast-mobile-header .tm-account-link:hover,
  #ast-mobile-header .tm-account-link:active {
    background-color: var(--tm-orange) !important;
    color: #ffffff !important;
  }
}

/* Standard Larger Search Button & Search Icon (non-header search forms) */
.ast-search-menu-icon .ast-search-icon,
.ast-header-search .ast-search-icon,
.main-header-bar .ast-search-icon,
.site-header .ast-search-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  font-size: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  background-color: #F1F5F9 !important;
  color: var(--tm-navy) !important;
  border: 1px solid var(--tm-border) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ast-search-menu-icon .ast-search-icon:hover,
.ast-header-search .ast-search-icon:hover,
.main-header-bar .ast-search-icon:hover,
.site-header .ast-search-icon:hover {
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  border-color: var(--tm-orange) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25) !important;
}

.ast-search-menu-icon .ast-search-icon svg,
.ast-header-search .ast-search-icon svg,
.site-header .ast-search-icon svg,
.ast-search-submit svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.2 !important;
}

.search-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.search-form .search-field {
  min-height: 44px !important;
  font-size: 15px !important;
  padding: 10px 16px !important;
  border: 1.5px solid var(--tm-border) !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  font-family: 'Inter', sans-serif !important;
}

.search-form .search-field:focus {
  border-color: var(--tm-orange) !important;
  outline: none !important;
}

.search-form .search-submit,
.ast-search-submit,
button.search-submit,
input.search-submit {
  min-height: 44px !important;
  min-width: 44px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--tm-radius-sm, 8px) !important;
  background-color: var(--tm-orange) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.search-form .search-submit:hover,
.ast-search-submit:hover,
button.search-submit:hover,
input.search-submit:hover {
  background-color: var(--tm-orange-dark) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 921px) {
  .site-header .site-branding,
  .ast-primary-header-bar .site-branding,
  .main-header-bar .site-branding,
  .ast-mobile-header-wrap .site-branding {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding-right: 12px !important;
  }

  .site-title,
  .site-title a,
  .ast-site-title-wrap .site-title a {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    color: var(--tm-navy) !important;
  }

  .custom-logo-link img,
  .site-logo img {
    max-height: 40px !important;
  }

  .tm-header-all-products-btn {
    padding: 6px 12px !important;
    min-height: 36px !important;
    font-size: 0.85rem !important;
    margin-left: 8px !important;
    gap: 6px !important;
  }

  .tm-header-all-products-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .ast-primary-header-bar .ast-builder-grid-row,
  .main-header-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .ast-header-woo-services,
  .ast-header-sections-navigation,
  .ast-button-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .main-header-bar .menu-toggle:not(#tramart-toggle-btn),
  .ast-mobile-menu-trigger,
  .ast-menu-toggle:not(#tramart-toggle-btn),
  .ast-builder-menu-toggle,
  [data-section="section-header-mobile-trigger"],
  .ast-mobile-menu-trigger-fill,
  .ast-mobile-menu-trigger-minimal,
  .ast-mobile-menu-trigger-outline {
    display: none !important;
  }
}

#tramart-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--tm-orange);
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  padding: 0;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
  margin-left: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

#tramart-toggle-btn:hover,
#tramart-toggle-btn:focus {
  background: var(--tm-orange-dark);
  color: #ffffff;
}

#tramart-toggle-btn:active {
  transform: scale(0.96);
}

#tramart-toggle-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 921px) {
  #tramart-toggle-btn {
    display: inline-flex !important;
  }
  /* Logo sub-line scales with viewport so the header row always fits */
  .site-title .tm-logo-sub {
    font-size: clamp(6px, 1.55vw, 9.5px) !important;
    letter-spacing: clamp(0.8px, 0.3vw, 3.4px) !important;
  }
}

/* Arranged mobile header row: toggle - logo - All Product - search - cart - My Account */
@media (max-width: 921px) {
  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 6px !important;
  }
  /* Sections may shrink; nothing may push the right group off-screen */
  #ast-mobile-header .site-header-primary-section-left,
  #ast-mobile-header .site-header-primary-section-right,
  #ast-mobile-header .site-header-primary-section-center {
    min-width: 0;
  }
  #ast-mobile-header .site-header-primary-section-left {
    flex: 0 1 auto;
  }
  #ast-mobile-header .tm-header-all-products-btn {
    min-width: 0;
    white-space: nowrap;
  }
  /* Search stays beside "All Product": never squeezed */
  #ast-mobile-header .tm-mh-search-wrap {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
  /* Cart + My Account grouped tight at the right edge */
  #ast-mobile-header .site-header-primary-section-right {
    gap: 0 !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  #ast-mobile-header .ast-header-woo-cart {
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Astra pads builder elements 0 10px — kill it so search and cart touch */
  #ast-mobile-header .tm-mh-search-wrap,
  #ast-mobile-header .site-header-primary-section-right > .ast-builder-layout-element {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #ast-mobile-header #tramart-toggle-btn {
    margin-left: 0 !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
    gap: 4px;
  }
  /* keep the long sub-line inside the logo block: wrap to 2 mini lines */
  .site-title .tm-logo-sub {
    font-size: 6.5px !important;
    letter-spacing: 1px !important;
    line-height: 1.5 !important;
    max-width: 105px !important;
    white-space: normal !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .tm-header-all-products-btn {
    padding: 3px 5px !important;
    font-size: clamp(9px, 2.6vw, 11px) !important;
    margin-left: 0 !important;
    gap: 3px !important;
  }
  #tramart-toggle-btn {
    width: clamp(28px, 9vw, 34px) !important;
    height: clamp(28px, 9vw, 34px) !important;
  }
  /* search icon: slightly smaller, sits flush against the cart */
  .tm-search-bar:not(.is-open) .tm-search-form {
    width: clamp(26px, 8vw, 30px) !important;
    height: clamp(26px, 8vw, 30px) !important;
  }
  .tm-search-bar:not(.is-open) .tm-search-btn {
    width: clamp(26px, 8vw, 30px) !important;
    height: clamp(26px, 8vw, 30px) !important;
    min-height: clamp(26px, 8vw, 30px) !important;
  }
  .tm-search-bar:not(.is-open) .tm-search-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  /* compact logo so the whole row fits a 320-360px phone */
  .site-title .tm-logo {
    gap: clamp(5px, 1.7vw, 7px) !important;
  }
  .site-title .tm-logo-badge {
    width: clamp(24px, 7vw, 28px) !important;
    height: clamp(24px, 7vw, 28px) !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
  }
  .site-title .tm-logo-badge svg {
    width: clamp(15px, 4.4vw, 17px) !important;
    height: clamp(15px, 4.4vw, 17px) !important;
  }
  .site-title .tm-logo-word {
    font-size: clamp(12px, 4vw, 16px) !important;
  }
  .site-title,
  .site-title a,
  .ast-site-title-wrap .site-title a {
    font-size: 17px !important;
  }
  #ast-mobile-header .site-primary-header-wrap,
  #ast-mobile-header .ast-primary-header-bar {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
    gap: 2px !important;
  }
  /* account icon: same circle size as the search icon */
  #ast-mobile-header .tm-account-link {
    width: clamp(26px, 8vw, 30px) !important;
    height: clamp(26px, 8vw, 30px) !important;
    min-height: clamp(26px, 8vw, 30px) !important;
  }
  #ast-mobile-header .tm-account-link svg {
    width: 15px !important;
    height: 15px !important;
  }
  /* cart bag: tighter padding so the row still fits with 4 icons */
  #ast-mobile-header .ast-addon-cart-wrap {
    padding: 3px 4px !important;
  }
}

#tramart-mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 2px solid var(--tm-orange);
  box-shadow: var(--tm-shadow);
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: 50%;
  min-width: 270px;
  max-width: 360px;
  z-index: 99999;
  padding: 0.5rem 0;
  animation: tmNavSlideDown 0.25s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#tramart-mobile-nav::-webkit-scrollbar {
  display: none;
}

#tramart-mobile-nav.is-open {
  display: flex !important;
}

@keyframes tmNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tramart-mobile-nav a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tm-navy) !important;
  border-bottom: 1px solid var(--tm-border);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

#tramart-mobile-nav a:hover,
#tramart-mobile-nav a:focus {
  background: rgba(249, 115, 22, 0.08);
  color: var(--tm-orange) !important;
  padding-left: 2rem;
}

#tramart-mobile-nav a:last-child {
  border-bottom: none;
}

/* ==========================================================================
   11. CUSTOM 4-COLUMN FOOTER
   ========================================================================== */
.tm-site-footer {
  background-color: var(--tm-navy);
  color: #94A3B8;
  padding: 64px 0 0;
  border-top: 3px solid var(--tm-orange);
  margin-top: auto;
}

.tm-footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.95fr 1.05fr 0.95fr;
  gap: 30px;
}

.tm-footer-col {
  display: flex;
  flex-direction: column;
}

.tm-footer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.tm-footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94A3B8;
  margin: 0 0 18px;
}

.tm-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.15);
  color: #FDBA74;
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 6px 12px;
  border-radius: var(--tm-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
}

.tm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-footer-links li a {
  color: #CBD5E1;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.tm-footer-links li a:hover {
  color: var(--tm-orange);
  padding-left: 4px;
}

.tm-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #CBD5E1;
}

.tm-footer-contact li svg {
  width: 18px;
  height: 18px;
  color: var(--tm-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.tm-footer-contact li a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-contact li a:hover {
  color: var(--tm-orange);
}

.tm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-footer-copyright {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 0;
}

.tm-footer-bottom-note {
  font-size: 0.85rem;
  color: #FDBA74;
  font-weight: 600;
}

@media (max-width: 921px) {
  .tm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tm-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   12. FLOATING WHATSAPP BUTTON
   ========================================================================== */
.tm-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.tm-floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.tm-whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background-color: var(--tm-navy);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--tm-shadow-sm);
}

.tm-floating-whatsapp:hover .tm-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.tm-scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--tm-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--tm-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 998;
}

.tm-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.tm-scroll-top:hover {
  background: var(--tm-orange);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tm-floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .tm-floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
  .tm-whatsapp-tooltip {
    display: none;
  }
  .tm-scroll-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   13. POLICY & CONTENT PAGE TYPOGRAPHY (Phase 5)
   ========================================================================== */
.page:not(.home) .entry-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--tm-border);
}

.page:not(.home) .entry-title {
  font-size: 2.2rem;
  color: var(--tm-navy);
}

.page:not(.home) .entry-content {
  max-width: 860px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--tm-text);
}

.page:not(.home) .entry-content h2 {
  font-size: 1.45rem;
  color: var(--tm-navy);
  margin: 32px 0 12px;
}

.page:not(.home) .entry-content h3 {
  font-size: 1.2rem;
  color: var(--tm-navy);
  margin: 24px 0 10px;
}

.page:not(.home) .entry-content ul,
.page:not(.home) .entry-content ol {
  margin: 12px 0 20px 24px;
}

.page:not(.home) .entry-content li {
  margin-bottom: 8px;
}

/* Demo SVG thumbnail appearance */
.tm-demo-svg-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background-color: var(--tm-bg) !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* Checkout: hide "Use same address for billing" toggle + any billing-only section */
.wc-block-checkout__use-address-for-billing,
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing {
  display: none !important;
}
.wc-block-checkout .wc-block-components-address-address .wc-block-components-checkbox {
  display: none !important;
}

/* ---------- TRA MART custom wordmark logo ---------- */
.site-title .tm-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 2px;
}
.site-title .tm-logo-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff8a3d 0%, #f26522 55%, #e8480f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(242, 101, 34, .32);
  transition: transform .25s ease;
}
.site-title .tm-logo-badge svg { width: 22px; height: 22px; }
.site-title a:hover .tm-logo-badge { transform: translateY(-1px) rotate(-4deg); }
.site-title .tm-logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.site-title .tm-logo-word {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .8px;
  color: #191d27;
  font-style: normal;
}
.site-title .tm-logo-word em {
  font-style: normal;
  color: #f26522;
}
.site-title .tm-logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: #5a6572;
}
/* remove any default tagline duplication */
.site-header .site-description { display: none; }
@media (max-width: 768px) {
  .site-title .tm-logo-badge { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .site-title .tm-logo-badge svg { width: 19px; height: 19px; }
  .site-title .tm-logo-word { font-size: 20px; }
  .site-title .tm-logo-sub { font-size: 8px; letter-spacing: 2.4px; }
}

/* ---------- Nav sub-category indicators ---------- */
.main-navigation ul.main-header-menu > li > a .tm-nav-caret {
  display: inline-block;
  margin-left: 3px;
  vertical-align: -1px;
  opacity: .75;
  transition: transform .2s ease;
}
.main-navigation ul.main-header-menu > li:hover > a .tm-nav-caret { transform: rotate(180deg); }
.main-navigation ul.main-header-menu > li ul.tm-sub-menu a .tm-nav-child-arrow {
  display: inline-block;
  margin-right: 2px;
  color: var(--tm-orange, #f26522);
  font-weight: 700;
}
#tramart-mobile-nav .tm-mobile-has-children .tm-nav-caret { font-size: 10px; opacity: .7; margin-left: 4px; }
#tramart-mobile-nav .tm-mobile-sub-item > span:first-child { color: #f26522; font-weight: 700; margin-right: 4px; }

/* ---------- Footer Follow Us (social) ---------- */
.tm-footer-social-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 14px;
}
.tm-footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.tm-social-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tm-social-link:hover { transform: translateX(3px); }
.tm-social-fb:hover { background: #1877F2; color: #fff; }
.tm-social-yt:hover { background: #FF0000; color: #fff; }
.tm-social-ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; }

/* ---------- Contact Us: Suggestion / Complaint form ---------- */
.tm-contact-form {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 28px;
  margin: 28px 0;
}
.tm-contact-form .tm-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .tm-contact-form .tm-cf-row { grid-template-columns: 1fr; }
}
.tm-cf-field { margin-bottom: 16px; }
.tm-cf-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #1E293B;
  margin-bottom: 6px;
}
.tm-cf-field label .req { color: #EF4444; }
.tm-cf-field input,
.tm-cf-field select,
.tm-cf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tm-cf-field input:focus,
.tm-cf-field select:focus,
.tm-cf-field textarea:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.tm-cf-field textarea { resize: vertical; min-height: 110px; }
.tm-cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.tm-cf-submit:hover { background: #EA580C; transform: translateY(-1px); }
.tm-cf-success {
  background: #ECFDF5;
  border: 1px solid #34D399;
  color: #065F46;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tm-cf-error {
  background: #FEF2F2;
  border: 1px solid #F87171;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ==========================================================================
   13. PRODUCT PAGE GALLERY — smaller photos on mobile
   ========================================================================== */
@media (max-width: 921px) {
  .woocommerce-product-gallery {
    max-width: 320px;
    margin: 0 auto;
  }
  .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
  }
}

/* ==========================================================================
   14. PRODUCT PAGE — RATING + SHARE ROW (under the title)
   ========================================================================== */
.tm-rating-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  padding-bottom: 12px;
  position: relative;
  /* long divider under Brand / Review / Share (Sara-style summary) */
  border-bottom: 1px solid #E5E7EB;
}
.tm-rating-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.tm-brand {
  color: #5A6572;
  font-size: 0.9rem;
  white-space: nowrap;
}
.tm-brand strong {
  color: #1F2937;
  font-weight: 600;
}
.tm-sep {
  color: #D1D5DB;
  font-size: 0.9rem;
}
.tm-color-soldby-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 10px 0 2px;
  font-size: 0.9rem;
  color: #5A6572;
}
.tm-color-line strong,
.tm-soldby-line strong {
  color: #1F2937;
  font-weight: 600;
}
.tm-mini-gallery {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}
.tm-mini-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1.5px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s;
}
.tm-mini-thumb:hover {
  border-color: var(--tm-orange, #C2410C);
}
.tm-stock-line {
  margin: 8px 0 2px;
  font-size: 0.9rem;
  color: #1F2937;
}
.tm-stock-line.tm-out-of-stock strong {
  color: #B91C1C;
}
/* Variation options as side-by-side pill buttons (dropdown hidden) */
.tm-variation-hidden {
  display: none !important;
}
.tm-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}
.tm-pill {
  min-width: 42px;
  padding: 7px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #1F2937;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tm-pill:hover {
  border-color: var(--tm-orange, #C2410C);
  color: var(--tm-orange, #C2410C);
}
.tm-pill.active {
  background: var(--tm-orange, #C2410C);
  border-color: var(--tm-orange, #C2410C);
  color: #fff;
}
.tm-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.tm-pill-group.tm-pill-missing {
  outline: 2px solid #B91C1C;
  outline-offset: 3px;
  border-radius: 8px;
}
/* Display-only size chips on SIMPLE products (no variation to select). */
.tm-pill-group.tm-pill-static {
  pointer-events: none;
}
.tm-pill-group.tm-pill-static .tm-pill {
  cursor: default;
  background: #F9FAFB;
  color: #374151;
}
.tm-stars {
  color: var(--tm-orange, #C2410C);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}
.tm-rating-text {
  color: #5A6572;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 6px;
}
.tm-share-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid #E5E7EB;
  background: #ffffff;
  color: var(--tm-orange, #C2410C);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.tm-share-btn:hover,
.tm-share-btn:focus-visible {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--tm-orange, #C2410C);
  outline: none;
}
.tm-share-msg {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tm-navy, #0F172A);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 5;
}
.tm-share-msg.show {
  opacity: 1;
}

/* ==========================================================================
   15. STICKY HEADER — hotline + logo row + category menu stay fixed at the
   top so the navigation is always visible while scrolling down.
   ========================================================================== */
#masthead {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
/* Keep clear of the WP admin bar when logged in */
.admin-bar #masthead {
  top: 32px !important;
}
@media (max-width: 782px) {
  .admin-bar #masthead {
    top: 46px !important;
  }
}

/* ==========================================================================
   16. GLOBAL FONT SIZE — STANDARD SIZE (user confirmed)
   Scales all rem-based text down ~6% (html 14.592px -> 13.75px) and sets
   the base text to the 14px web standard (was 15px). Applies site-wide:
   home, shop, product, cart, checkout, order and account pages.
   ========================================================================== */
html {
  font-size: 13.75px;
}
body, button, input, select, textarea {
  font-size: 14px !important;
}

/* SEO: visible H1 on the home page — styled small so it does not break
   the hero design, but present in the DOM for search engines. */
.tm-seo-h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--tm-navy) !important;
  text-align: center;
  margin: 6px 0 4px !important;
}


