/* TINIMORA Design Refresh 1.0.6 — visual layer only. */

:root {
  --tmdr-ink: #2B2124;
  --tmdr-muted: #5E4E52;
  --tmdr-soft: #6B5A5E;
  --tmdr-plum: #875267;
  --tmdr-plum-dark: #6E4054;
  --tmdr-cream: #FBF7F4;
  --tmdr-blush: #F3E9E7;
  --tmdr-line: #EADDD9;
  --tmdr-radius-card: 20px;
  --tmdr-radius-pill: 999px;
}

/* 1. Free-shipping bar */
.tmdr-announce {
  background: var(--tmdr-plum);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  padding: 9px 16px;
}

/* 2. Homepage trust strip: full-width band under the full-screen hero, icon + two lines per item */
.tmdr-trust {
  background: #fff;
  border-bottom: 1px solid var(--tmdr-line);
  margin: 0 0 8px;
}
body.tinimora-site .tm-home-banner-shell > .entry-content > .tmdr-trust { width: auto; max-width: none; margin: 0 0 8px; }
.tmdr-trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tmdr-trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border-left: 1px solid var(--tmdr-line); }
.tmdr-trust-item:first-child { border-left: 0; }
.tmdr-trust-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #F6ECEF; color: #875267; }
.tmdr-trust-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tmdr-trust-text strong { font-size: 15px; color: var(--tmdr-ink); font-weight: 700; }
.tmdr-trust-text span { font-size: 13.5px; color: var(--tmdr-muted); }
@media (max-width: 1100px) {
  .tmdr-trust-inner { padding: 22px 24px; }
  .tmdr-trust-item { justify-content: flex-start; gap: 10px; padding: 0 12px; }
  .tmdr-trust-icon { width: 38px; height: 38px; }
  .tmdr-trust-text strong { font-size: 14px; }
}

/* 3. Product cards: photo first, then name, price and a real-size add button */
body.tinimora-site #main .tm-look-card .tm-item-open img {
  border-radius: var(--tmdr-radius-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.tm-look-card .tm-card-copy { padding-top: 12px; }
.tm-look-card .tm-card-copy .tm-eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--tmdr-soft);
  margin: 0 0 2px;
}
.tm-look-card .tm-card-copy h3 { margin: 0 0 8px; line-height: 1.25; }
.tm-look-card .tm-card-copy h3 a { color: var(--tmdr-ink); text-decoration: none; }

.tm-sf-card-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-sf-card-price, .tm-sf-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
}
.tm-sf-card-price ins, .tm-sf-price ins,
body.tinimora-site #main .tm-sf-card-price ins {
  order: 1;
  text-decoration: none;
  font-weight: 700;
  color: var(--tmdr-plum);
}
.tm-sf-card-price del, .tm-sf-price del,
body.tinimora-site #main .tm-sf-card-price del {
  order: 2;
  color: var(--tmdr-soft);
  font-weight: 400;
  font-size: .85em;
}
.tm-sf-card-price > .woocommerce-Price-amount { font-weight: 700; color: var(--tmdr-ink); }

body.tinimora-site #main .tm-sf-card-buy-row .tm-sf-card-cart .tm-sf-add {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--tmdr-radius-pill);
  border: 1.5px solid var(--tmdr-plum);
  background: #fff;
  color: var(--tmdr-plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background-color .15s, color .15s;
}
body.tinimora-site #main .tm-sf-card-buy-row .tm-sf-card-cart .tm-sf-add:hover,
body.tinimora-site #main .tm-sf-card-buy-row .tm-sf-card-cart .tm-sf-add:focus-visible {
  background: var(--tmdr-plum);
  color: #fff;
}

/* 4. Buttons: one shape, one weight */
.tm-button, .tmhp-button, .tm-sf-add.tm-button,
.woocommerce a.button, .woocommerce button.button,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  border-radius: var(--tmdr-radius-pill);
  font-weight: 700;
  min-height: 48px;
}
.tm-sf-purchase .tm-sf-add.tm-button {
  min-height: 52px;
  background: var(--tmdr-plum);
  border-color: var(--tmdr-plum);
  color: #fff;
}
.tm-sf-purchase .tm-sf-add.tm-button:hover { background: var(--tmdr-plum-dark); border-color: var(--tmdr-plum-dark); }

/* 5. Product detail: clearer price and shipping note */
.tm-sf-purchase .tm-sf-price { font-size: 26px; }
.tm-sf-purchase .tm-sf-price del { font-size: 16px; }
.tm-sf-purchase .tm-sf-shipping {
  background: var(--tmdr-blush);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--tmdr-ink);
}
.tm-item-gallery img { border-radius: 22px; }

/* 6. Floating buttons: one cart control per page, smaller and out of the way */
body.tinimora-site:not(.tmhp-home) a.tm-sf-floating-cart { display: none; }

@media (max-width: 767px) {
  .tinimora-site a.tm-sf-floating-cart,
  .tinimora-site .tm-contact-bubble > summary {
    width: 52px;
    height: 52px;
    box-shadow: 0 4px 14px rgba(43, 33, 36, .18);
  }
  .tm-sf-floating-label,
  .tm-contact-bubble > summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tinimora-site a.tm-sf-floating-cart { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .tm-contact-bubble { right: 16px; bottom: 16px; }
  .tm-contact-bubble > summary svg,
  .tm-sf-floating-cart svg { width: 22px; height: 22px; }
  .tm-sf-floating-count { font-size: 11px; }

  /* Room at the bottom so the buttons never sit on the last line of content */
  body.tinimora-site { padding-bottom: 72px; }

  .tmdr-announce { font-size: 13px; }
  .tmdr-announce-extra { display: none; }
  .tmdr-trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    background: var(--tmdr-line);
  }
  .tmdr-trust-item { background: #fff; padding: 14px 14px; border-left: 0; justify-content: flex-start; gap: 10px; }
  .tmdr-trust-icon { width: 34px; height: 34px; }
  .tmdr-trust-icon svg { width: 18px; height: 18px; }
  .tmdr-trust-text strong { font-size: 13.5px; }
  .tmdr-trust-text span { font-size: 12.5px; }

  body.tinimora-site #main .tm-look-card .tm-item-open img { border-radius: 16px; }
  .tm-sf-purchase .tm-sf-price { font-size: 24px; }
}

/* 7. Empty cart: on-brand instead of the default dark sad face */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { display: none; }
.wp-block-woocommerce-empty-cart-block { padding-top: 24px; }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.2;
  margin: 8px 0 20px;
  color: var(--tmdr-ink);
}
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--tmdr-radius-pill);
  background: var(--tmdr-plum);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p a:hover { background: var(--tmdr-plum-dark); color: #fff; }
.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before { color: var(--tmdr-line); }
/* "New in store" heading with no products under it: hide it and its divider */
.wp-block-woocommerce-empty-cart-block > h2.wp-block-heading:last-child:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block > .wp-block-separator:has(+ h2.wp-block-heading:last-child) { display: none; }

/* 8. Mobile: hide the floating cart while the cart is empty, so it never covers product buttons */
@media (max-width: 767px) {
  body.tmdr-cart-empty.tinimora-site a.tm-sf-floating-cart { display: none; }
}

/* 9. Doll-series filter always visible (shop) + quick links to shop by doll size (home) */
body.tinimora-site #main details.tm-series-panel.tmdr-chips-ready > summary { display: none; }
body.tinimora-site #main details.tm-series-panel.tmdr-chips-ready { margin-bottom: 28px; }
body.tinimora-site #main details.tm-series-panel.tmdr-chips-ready > nav { margin-top: 0; }

.tmdr-home-chips { margin: 4px 0 28px; }
.tmdr-home-chips .tmdr-chips-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--tmdr-soft);
  margin: 0 0 10px;
}
.tmdr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: visible;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.tmdr-chips::-webkit-scrollbar { display: none; }
body.tinimora-site #main .tmdr-chips a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #D9C7C4;
  border-radius: var(--tmdr-radius-pill);
  background: #fff;
  color: var(--tmdr-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
body.tinimora-site #main .tmdr-chips a:hover { border-color: var(--tmdr-plum); color: var(--tmdr-plum); }

@media (max-width: 767px) {
  body.tinimora-site #main .tmdr-chips a { max-width: 100%; white-space: normal; }
}
