/* Transfurbed Shop – look of transfurbed.de for the Storefront theme (all shop pages).
   Fonts: Special Elite (Apache 2.0), EB Garamond (SIL OFL 1.1) – bundled with the plugin, no external sources. */
@font-face { font-family: "Special Elite"; src: url("fonts/special-elite.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root { --paper: #f6f3ec; --paper-deep: #ece7dc; --ink: #161514; --ink-soft: #4a4744; --ink-faint: #7b766f; --rule: #d6cfc1; --blood: #7a2620; }

html, body, #page, .site, .site-content, .col-full { background: var(--paper) !important; }
body { color: var(--ink); font-size: 1.18rem; line-height: 1.55; }
body, input, select, textarea, .main-navigation, .site-footer, .site-header-cart, .woocommerce-breadcrumb, .entry-content,
.woocommerce-coming-soon-default, .wp-block-woocommerce-coming-soon, .wp-site-blocks { font-family: "EB Garamond", Garamond, "Times New Roman", serif !important; }
h1, h2, h3, h4, .site-title, .product_title, .woocommerce-loop-product__title, .cart_totals h2, #order_review_heading, .entry-title, .page-title {
  font-family: "Special Elite", "Courier New", monospace !important; font-weight: 400 !important; color: var(--ink) !important; letter-spacing: 0;
}
a { color: var(--ink); text-decoration-color: var(--rule); } a:hover, a:focus { color: var(--blood); }
p, li, td, th, label, .woocommerce-product-details__short-description { color: var(--ink); }

/* header */
.site-header { background: var(--paper) !important; border-bottom: 1px solid var(--rule) !important; padding-top: 1.2em !important; }
.site-header .col-full { position: relative; }
.site-branding { margin-bottom: .6em !important; }
.site-title { font-size: 1.9rem !important; }
.site-title a, .site-title a:hover { color: var(--ink) !important; }
.site-description { display: none; }
.tf-back { float: right; margin-top: .45em; white-space: nowrap; font-variant-caps: all-small-caps; letter-spacing: .12em; text-decoration: none; color: var(--ink-soft) !important; font-size: 1.05rem; }
.storefront-primary-navigation { background: var(--paper) !important; }
/* uppercase instead of small caps: EB Garamond's small-cap "f" looks like a long s */
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { text-transform: uppercase; font-variant-caps: normal; letter-spacing: .16em; color: var(--ink) !important; font-size: .86rem; padding: .9em 1.6em .9em 0 !important; }
.tf-back, .tf-legal a { text-transform: uppercase; font-variant-caps: normal !important; font-size: .8rem !important; letter-spacing: .16em !important; }
.site-footer .button, .site-footer button, .site-footer a.button, .site-footer [class*="withdraw"] a, .site-footer [class*="owb"] a { color: var(--paper) !important; }
.main-navigation ul.menu > li.current-menu-item > a, .main-navigation a:hover { color: var(--blood) !important; }
.site-header-cart .cart-contents, .site-header-cart .cart-contents .amount { color: var(--ink) !important; }
.site-header-cart .widget_shopping_cart { background: var(--paper-deep) !important; }
.storefront-handheld-footer-bar { display: none !important; }
.woocommerce-breadcrumb { background: transparent !important; font-size: .95rem; color: var(--ink-faint); padding-left: 0 !important; }

/* buttons, forms */
/* the fitting configurator (.tf-scope) keeps its own tab/tile styles from transfurbed.de */
button:not(.tf-scope button), .button, input[type="submit"], .wc-block-components-button, .checkout-button, .single_add_to_cart_button, .wc-forward {
  font-family: "Special Elite", "Courier New", monospace !important; background: var(--ink) !important; color: var(--paper) !important;
  border: 1px solid var(--ink) !important; border-radius: 2px !important; font-weight: 400 !important; text-transform: none;
}
button:not(.tf-scope button):hover, .button:hover, .single_add_to_cart_button:hover, .checkout-button:hover { background: var(--blood) !important; border-color: var(--blood) !important; }
input, select, textarea, .select2-container .select2-selection { background: #fffdf8 !important; border: 1px solid var(--rule) !important; border-radius: 2px !important; box-shadow: none !important; }

/* product lists */
ul.products li.product { background: transparent; text-align: left; }
ul.products li.product img, ul.products li.product video.tf-loop { background: #fff; border: 1px solid var(--rule); }
ul.products li.product video.tf-loop { display: block; width: 100%; max-width: 324px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 auto 1.618em; }
ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem !important; margin-top: .6em; }
.price, .amount { color: var(--ink) !important; font-weight: 400 !important; }
.wc-gzd-additional-info, .wc-gzd-additional-info a, .delivery-time-info, .shipping-costs-info, .small-business-info { color: var(--ink-faint) !important; font-size: .92rem; }
.onsale { border-color: var(--blood); color: var(--blood); }
.woocommerce-products-header__title { margin-bottom: .4em; }
.term-description { color: var(--ink-soft); font-style: italic; }

/* no sidebar in this shop: content uses the full width (Storefront reserves ~26 % for #secondary otherwise) */
.right-sidebar .content-area, .left-sidebar .content-area { width: 100% !important; float: none !important; margin-right: 0 !important; margin-left: 0 !important; }
#secondary.widget-area { display: none !important; }

/* cart: shirt previews are portrait photos */
.woocommerce-cart-form .product-thumbnail img, .tf-cart-thumb { width: 90px !important; height: auto !important; max-width: none; border: 1px solid var(--rule); }
.widget_shopping_cart .tf-cart-thumb { width: 48px !important; }

/* notices, tables */
table.shop_table, .cart_totals, .woocommerce-checkout-review-order, table { background: transparent !important; }
table th, table td { border-color: var(--rule) !important; background: transparent !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-noreviews { border-top-color: var(--ink) !important; background: var(--paper-deep) !important; color: var(--ink) !important; }
.woocommerce-error { border-top-color: var(--blood) !important; background: var(--paper-deep) !important; }

/* legal pages: comfortable reading width */
body.page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-content { max-width: 46rem; }
.page .entry-content h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page .entry-content h3 { font-size: 1.1rem; margin-top: 1.3em; }

/* footer */
.site-footer { background: var(--paper) !important; border-top: 1px solid var(--rule); color: var(--ink-soft) !important; padding: 2em 0 2.5em !important; }
.site-footer .site-info { padding: .4em 0 !important; font-size: 1rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink) !important; }
.tf-legal { display: flex; flex-wrap: wrap; gap: .3em 1.4em; margin: .4em 0 .6em; }
.tf-legal a { font-variant-caps: all-small-caps; letter-spacing: .12em; text-decoration: none; }
.tf-note { font-size: .92rem; color: var(--ink-faint); margin: 0; }
.tf-llap { font-style: italic; }
.eu-owb-withdrawal-button, .eu-owb-withdrawal-button a { font-family: "Special Elite", "Courier New", monospace; }

/* header like transfurbed.de: one row – name left, menu right; Storefront's bold title off (plugin 1.9.2) */
.site-title a { font-weight: 400 !important; }
.site-title { font-size: 1.45rem !important; letter-spacing: .01em; line-height: 1.2 !important; }
@media (min-width: 1150px) {
  .site-header { display: flex !important; align-items: center; flex-wrap: nowrap; gap: 0; padding: .9em clamp(1rem, 4vw, 3rem) !important; margin-bottom: 1.5em !important; }
  .site-header > .col-full, .storefront-primary-navigation, .storefront-primary-navigation > .col-full { display: contents !important; }
  .site-header::before, .site-header::after, .site-header > .col-full::before, .site-header > .col-full::after,
  .storefront-primary-navigation > .col-full::before, .storefront-primary-navigation > .col-full::after { display: none !important; }
  .site-header .site-branding { order: 1; float: none !important; width: auto !important; margin: 0 auto 0 0 !important; white-space: nowrap; }
  .site-header .main-navigation { order: 2; float: none !important; width: auto !important; margin: 0 0 0 1.5rem !important; clear: none !important; padding: 0 !important; }
  .site-header .main-navigation ul.menu, .site-header .main-navigation ul.nav-menu { display: flex; gap: clamp(1rem, 1.8vw, 1.8rem); margin: 0; }
  .site-header .main-navigation ul.menu > li > a, .site-header .main-navigation ul.nav-menu > li > a { padding: .4em 0 !important; white-space: nowrap; }
  /* the cart icon with the amount replaces the "Warenkorb" menu item on wide screens */
  .site-header .main-navigation li:has(> a[href*="/warenkorb"]) { display: none; }
  .site-header .site-header-cart { order: 3; float: none !important; width: auto !important; margin: 0 0 0 clamp(1rem, 1.8vw, 1.8rem) !important; }
  .site-header .site-header-cart .cart-contents { padding: .4em 1.6em .4em 0 !important; white-space: nowrap; }
  .site-header .site-header-cart .cart-contents .count { display: none; }
  .site-header .site-header-cart .widget_shopping_cart { right: 0; left: auto !important; }
  .site-header .tf-back { order: 4; float: none; margin: 0 0 0 clamp(1rem, 1.8vw, 1.8rem) !important; padding-left: clamp(1rem, 1.8vw, 1.8rem); border-left: 1px solid var(--rule); }
}
/* page titles left like the section headings on transfurbed.de */
.woocommerce-products-header, .woocommerce-products-header__title, .page-title, .entry-header .entry-title { text-align: left !important; }
.woocommerce-products-header { padding: 2.2em 0 1em !important; }
/* narrower screens: Storefront's two rows, but the menu bar must not cover the name (it did on phones) and starts flush left */
@media (max-width: 1149px) {
  .site-header > .col-full { display: flow-root; }
  .storefront-primary-navigation { background: transparent !important; }
}
@media (min-width: 768px) and (max-width: 1149px) {
  .site-header .main-navigation ul.menu, .site-header .main-navigation ul.nav-menu { margin-left: 0 !important; }
  .site-header .main-navigation ul.menu > li:first-child > a, .site-header .main-navigation ul.nav-menu > li:first-child > a { padding-left: 0 !important; }
  .site-header .main-navigation li:has(> a[href*="/warenkorb"]) { display: none; }
}
@media (max-width: 767px) {
  .site-title { font-size: 1.3rem !important; }
}

/* header 2 (plugin 1.9.3): same measures as transfurbed.de – name spacing, menu size/weight/gaps, 4.25rem high, no rule */
.site-title, .site-title a { letter-spacing: .01em !important; }
.site-header { border-bottom: 0 !important; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a, .site-header .tf-back {
  font-size: .86rem !important; font-weight: 500 !important; letter-spacing: .16em !important; color: var(--ink) !important;
}
@media (min-width: 1150px) {
  .site-header { min-height: 4.25rem; padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 2.5em !important; }
  .site-header .main-navigation { margin-left: 2.2rem !important; }
  .site-header .main-navigation ul.menu, .site-header .main-navigation ul.nav-menu { gap: clamp(1rem, 2.4vw, 2.2rem) !important; }
  .site-header .site-header-cart { margin-left: clamp(1rem, 2.4vw, 2.2rem) !important; }
  .site-header .site-header-cart .cart-contents, .site-header .site-header-cart .cart-contents .amount {
    font-size: .95rem !important; font-weight: 500; letter-spacing: .04em;
  }
  .site-header .tf-back { border-left: 0 !important; padding-left: 0 !important; margin-left: clamp(1rem, 2.4vw, 2.2rem) !important; }
}
@media (min-width: 768px) and (max-width: 1149px) {
  .site-header .site-header-cart .cart-contents, .site-header .site-header-cart .cart-contents .amount { font-size: .95rem !important; font-weight: 500; letter-spacing: .04em; }
  .site-header .site-header-cart .cart-contents .count { display: none; }
}
/* shop start page (plugin 1.11.0): Transfurbed on top, below one rotating tile per band (TF_Shelf) */
body.post-type-archive-product:not(.search) .storefront-sorting { display: none; }
.tf-shelf { clear: both; padding-top: 2.5em; margin-top: 1em; border-top: 1px solid var(--rule); }
.tf-eyebrow { font-variant-caps: normal; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--ink-soft); margin: 0 0 .4em; }
.tf-eyebrow::before { content: "— "; color: var(--ink-faint); }
.tf-shelf-title { font-size: 2rem; margin: 0 0 1em; }
.tf-rot { position: relative; width: 100%; max-width: 324px; aspect-ratio: 1 / 1; margin: 0 auto 1.618em; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
ul.products li.product .tf-rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; margin: 0; border: 0 !important; opacity: 0; transition: opacity .9s ease; }
ul.products li.product .tf-rot img.is-on { opacity: 1; }
.tf-rot-cap { font-size: .95rem; color: var(--ink-faint); font-style: italic; margin: .2em 0 .8em; min-height: 1.5em; }
@media (prefers-reduced-motion: reduce) { ul.products li.product .tf-rot img { transition: none; } }
/* footer: social media links (plugin 1.12.0) */
.tf-social span { text-transform: uppercase; font-size: .8rem; letter-spacing: .16em; color: var(--ink-faint); }

/* readings & dates (plugin 1.13.0, TF_Events) */
.tf-termine-h { font-size: 1.6rem; margin: 1.2em 0 .8em; }
.tf-termine-h.tf-past-h { font-size: 1.25rem; color: var(--ink-soft) !important; margin-top: 2.4em; }
.tf-ev { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.tf-ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .7rem .4rem; border: 1px solid var(--ink); background: #fffdf8; text-decoration: none; color: var(--ink) !important; position: relative; align-self: start; }
.tf-ev-date::before, .tf-ev-date::after { content: ""; position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.tf-ev-date::before { top: -8px; } .tf-ev-date::after { bottom: -8px; }
.tf-ev-date .d { font-family: "Special Elite", "Courier New", monospace; font-size: 2.3rem; line-height: 1; }
.tf-ev-date .m, .tf-ev-date .y { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ink-soft); }
.tf-ev-body h3 { font-size: 1.35rem; margin: 0 0 .3em; } .tf-ev-body h3 a { text-decoration: none; }
.tf-ev-meta { margin: 0 0 .4em; color: var(--ink-soft); }
.tf-ev-state { margin: 0 0 .8em; font-style: italic; color: var(--ink-soft); }
.tf-ev.is-ausgebucht .tf-ev-state, .tf-ev.is-abgesagt .tf-ev-state { color: var(--blood); }
.tf-ev.is-past { opacity: .72; } .tf-ev.is-past .tf-ev-date { border-color: var(--rule); }
.tf-ev-empty { font-style: italic; color: var(--ink-soft); }
.tf-ev-facts { display: grid; grid-template-columns: 7rem 1fr; gap: .4em 1.2em; margin: 0 0 1.6em; padding: 1.1em 1.3em; background: var(--paper-deep); border-left: 3px solid var(--ink); }
.tf-ev-facts dt { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ink-faint); padding-top: .25em; }
.tf-ev-facts dd { margin: 0; }
.tf-ev-note { font-style: italic; color: var(--ink-soft); }
.tf-ev-form-wrap { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.tf-ev-form { max-width: 30rem; }
.tf-ev-form label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--ink-soft); margin-bottom: .2em; }
.tf-ev-form input[type=text], .tf-ev-form input[type=email], .tf-ev-form select { width: 100%; }
.tf-ev-small { font-size: .95rem; color: var(--ink-soft); }
.tf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tf-ev-ok { padding: 1.2em 1.4em; margin-bottom: 1.6em; border: 1px solid var(--ink); background: #fffdf8; }
.tf-ev-ok h2 { margin-top: 0; }
.tf-ev-err, .tf-ev-cancel { padding: .8em 1em; border-left: 3px solid var(--blood); background: var(--paper-deep); color: var(--blood); }
.tf-ev-cancel { margin-bottom: 1.4em; }
.tf-ev-back { margin-top: 2em; }
.tf-storno { max-width: 40rem; margin: 3em auto; padding: 0 1em; }
@media (max-width: 600px) { .tf-ev { grid-template-columns: 4.8rem 1fr; gap: 1rem; } .tf-ev-date .d { font-size: 1.8rem; } .tf-ev-facts { grid-template-columns: 1fr; } }.tf-ev-date, .tf-ev-date span { text-decoration: none !important; }
.tf-ev-body h3 a, .tf-ev-body h3 a:visited { text-decoration: none; color: var(--ink) !important; }
.tf-ev-body h3 a:hover { color: var(--blood) !important; }
/* header with the extra menu item "Termine": keep everything on one line */
@media (min-width: 1150px) {
  .site-header .site-branding, .site-header .site-header-cart, .site-header .tf-back { flex-shrink: 0; }
  .site-header .main-navigation { margin-left: 1.4rem !important; min-width: 0; }
  .site-header .main-navigation ul.menu, .site-header .main-navigation ul.nav-menu { gap: clamp(.9rem, 1.5vw, 1.8rem) !important; }
  .site-header .site-header-cart, .site-header .tf-back { margin-left: clamp(.9rem, 1.5vw, 1.8rem) !important; }
}
@media (min-width: 1150px) and (max-width: 1340px) {
  .main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a, .site-header .tf-back { letter-spacing: .1em !important; }
}
/* khaki (test): girly cut locked while khaki is chosen */
.tf-scope .seg label.is-disabled { opacity: .35; pointer-events: none; }
.tf-khaki-note { margin-top: .4em; }

/* "Vertrag widerrufen" (§ 356a BGB): stays on every page and stands out, but calm – outlined, left, with the legal links */
.site-footer p.eu-owb-order-withdraw-from-contract-button { text-align: left !important; margin: .9em 0 .4em !important; }
.site-footer p.eu-owb-order-withdraw-from-contract-button a.button {
  background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important;
  font-family: "EB Garamond", Garamond, serif !important; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem !important;
  font-weight: 500 !important; padding: .5em 1.1em !important; line-height: 1.2;
}
.site-footer p.eu-owb-order-withdraw-from-contract-button a.button:hover,
.site-footer p.eu-owb-order-withdraw-from-contract-button a.button:focus { background: var(--ink) !important; color: var(--paper) !important; }
.site-footer p.eu-owb-order-withdraw-from-contract-button { display: block !important; justify-content: flex-start !important; }
.site-footer p.eu-owb-order-withdraw-from-contract-button a.button { display: inline-block !important; margin: 0 !important; float: none !important; }

footer#colophon p.eu-owb-order-withdraw-from-contract-button.has-text-align-center { text-align: left !important; }

/* khaki: "border sign" when leaving black & white (test) */
.tf-khaki-note { margin-top: .8em; }
.tf-sign {
  display: inline-block; margin: 0 0 .5em; padding: .55em 1em; background: #fffdf8; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: "Special Elite", "Courier New", monospace; font-size: 1.05rem; letter-spacing: .02em;
  animation: tf-sign-in .45s ease-out;
}
@keyframes tf-sign-in { from { transform: translateY(-6px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tf-sign { animation: none; } }
/* size chart */
.tf-size-chart { margin-top: .7em; font-size: .95rem; }
.tf-size-chart summary { cursor: pointer; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ink-soft); }
.tf-size-chart table { margin: .6em 0 .3em; width: auto; border-collapse: collapse; }
.tf-size-chart caption { text-align: left; font-family: "Special Elite", "Courier New", monospace; padding-bottom: .3em; }
.tf-size-chart th, .tf-size-chart td { padding: .25em .7em; text-align: center; border-bottom: 1px solid var(--rule); }
.tf-size-chart tbody th, .tf-size-chart thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-soft); }
.tf-size-chart table[hidden] { display: none; }
/* shop start: all motif groups with their motifs (plugin 1.18.0, TF_Shelf::groups) – the single product tile is replaced */
body.tf-start .site-main > ul.products { display: none; }
.tf-groups { margin-bottom: 1em; }
.tf-groups-lede { font-style: italic; color: var(--ink-soft); max-width: 40rem; margin: 0 0 1.5em; }
.tf-group { clear: both; padding-top: 1.6em; border-top: 1px solid var(--rule); margin-top: 1.2em; }
.tf-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.tf-group-title { font-size: 1.6rem; margin: 0 0 .9em; }
ul.products.tf-group-grid li.product.tf-motif-card { text-align: center; }
.tf-motif-pics { position: relative; display: block; aspect-ratio: 450 / 579; margin: 0 0 .8em; background: #fff; border: 1px solid var(--rule); overflow: hidden; }
ul.products li.product .tf-motif-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0 !important; margin: 0; transition: opacity .45s ease; }
ul.products li.product .tf-motif-pics img.is-dark { opacity: 0; }
ul.products li.product a:hover .tf-motif-pics img.is-dark, ul.products li.product a:focus-visible .tf-motif-pics img.is-dark { opacity: 1; }
ul.products li.product.tf-motif-card .woocommerce-loop-product__title { font-size: 1rem !important; margin: 0 0 .2em; }
.tf-motif-note { display: block; font-size: .85rem; color: var(--ink-faint); font-style: italic; }
@media (prefers-reduced-motion: reduce) { ul.products li.product .tf-motif-pics img { transition: none; } }
ul.products.tf-group-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 2rem; margin: 0 0 1em !important; }
ul.products.tf-group-grid::before, ul.products.tf-group-grid::after { display: none !important; }
ul.products.tf-group-grid li.product.tf-motif-card { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }
@media (max-width: 900px) { ul.products.tf-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { ul.products.tf-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; } }
/* "Bereiche": one tile per motif group, opens the configurator filtered to that group (plugin 1.20.0) */
ul.tf-areas { list-style: none; margin: 0 0 2.4em; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
ul.tf-areas li { margin: 0; }
ul.tf-areas a { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.tf-area-pic { display: block; aspect-ratio: 450 / 579; overflow: hidden; border: 1px solid var(--rule); background: #fff; margin-bottom: .5em; }
.tf-area-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
ul.tf-areas a:hover .tf-area-pic img, ul.tf-areas a:focus-visible .tf-area-pic img { transform: scale(1.05); }
.tf-area-name { display: block; font-family: "Special Elite", "Courier New", monospace; font-size: 1.05rem; line-height: 1.2; }
.tf-area-count { display: block; font-size: .85rem; color: var(--ink-faint); font-style: italic; }
ul.tf-areas a:hover .tf-area-name { color: var(--blood); }
@media (max-width: 1000px) { ul.tf-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { ul.tf-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tf-area-pic img { transition: none; } }
/* areas (plugin 1.21.0): one rotating shirt per motif group, short text on the right */
.tf-area-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.5rem 2.6rem; align-items: center; padding: 2em 0; border-top: 1px solid var(--rule); }
.tf-groups .tf-area-row:first-of-type { border-top: 0; padding-top: .5em; }
.tf-area-pic { display: block; text-decoration: none; }
.tf-rot.is-tall { display: block; max-width: none; aspect-ratio: 450 / 579; margin: 0; }
.tf-area-row .tf-rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; opacity: 0; transition: opacity .9s ease; }
.tf-area-row .tf-rot img.is-on { opacity: 1; }
.tf-area-text .tf-group-title { margin: 0 0 .35em; }
.tf-area-text .tf-group-title a { text-decoration: none; color: var(--ink) !important; }
.tf-area-text .tf-group-title a:hover { color: var(--blood) !important; }
.tf-area-about { font-size: 1.15rem; margin: 0 0 .6em; }
.tf-area-keys { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; margin: 0 0 .7em; }
.tf-area-meta { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ink-faint); margin: 0 0 .2em; }
.tf-area-text .tf-rot-cap { margin: 0 0 1em; }
@media (prefers-reduced-motion: reduce) { .tf-area-row .tf-rot img { transition: none; } }
@media (max-width: 700px) {
  .tf-area-row { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.4em 0; }
  .tf-area-text .tf-group-title { font-size: 1.25rem; }
  .tf-area-about { font-size: 1rem; }
  .tf-area-keys { font-size: .88rem; }
  .tf-area-text .button { padding: .55em .9em; font-size: .95rem; }
}

/* phones: header in one row (name left, menu right, back link small underneath) */
@media (max-width: 767px) {
  .site-header { display: flex !important; flex-wrap: wrap; align-items: center; gap: .3em .8em; padding: .7em 1rem .6em !important; position: relative; }
  .site-header > .col-full, .storefront-primary-navigation, .storefront-primary-navigation > .col-full { display: contents !important; }
  .site-header::before, .site-header::after, .site-header > .col-full::before, .site-header > .col-full::after,
  .storefront-primary-navigation > .col-full::before, .storefront-primary-navigation > .col-full::after { display: none !important; }
  .site-header .site-branding { order: 1; flex: 1 1 auto; width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
  .site-header .site-title { font-size: 1.2rem !important; white-space: nowrap; margin: 0 !important; }
  .site-header .main-navigation { order: 2; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; clear: none !important; }
  .site-header .menu-toggle { padding: .45em .9em !important; font-size: .9rem !important; margin: 0 !important; }
  .site-header .main-navigation.toggled .handheld-navigation { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .4em 1rem 1em; }
  .site-header .site-header-cart { display: none !important; }
  .site-header .tf-back { order: 3; flex-basis: 100%; float: none; margin: 0 !important; font-size: .7rem !important; }
  .site-header .tf-back + * { order: 4; }
  .single-product div.product .product_title { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; overflow-wrap: normal; word-break: normal; }
}
/* form legends: Storefront shifts them 17px left with a white box – cut off on phones */
.tf-scope legend, .fitting-form legend { margin-left: 0 !important; padding: 0 !important; background: transparent !important; }
/* size chart scrolls sideways instead of widening the page */
.tf-size-chart { max-width: 100%; overflow-x: auto; }
@media (max-width: 520px) { .tf-size-chart th, .tf-size-chart td { padding: .25em .45em; font-size: .85rem; } }
@media (max-width: 767px) {
  .site-header .site-branding { flex: 1 1 0 !important; width: auto !important; }
  .site-header .main-navigation { flex: 0 0 auto !important; width: auto !important; }
  .site-header .menu-toggle { float: none !important; position: relative; padding-left: 2.5em !important; }
  .site-header .menu-toggle::before, .site-header .menu-toggle::after, .site-header .menu-toggle span::before { left: .9em !important; background-color: currentColor !important; }
  .site-header .main-navigation { text-align: right; }
  .site-header .main-navigation .primary-navigation { display: none !important; }
  .site-header .main-navigation:not(.toggled) .handheld-navigation { display: none !important; }
}
/* header mini cart: the drop-down took the width of the small cart icon (98 px) - give it room, align to the right edge */
.site-header-cart .widget_shopping_cart { width: 22rem !important; max-width: calc(100vw - 2rem); left: auto !important; right: 0 !important; text-align: left; }
.site-header-cart .widget_shopping_cart .mini_cart_item { text-align: left; float: none !important; width: auto !important; display: block !important; clear: both; }
.site-header-cart .widget_shopping_cart ul.cart_list { display: block !important; max-height: 60vh; overflow-y: auto; margin: 0 !important; }
.site-header-cart .widget_shopping_cart dl.variation { display: none !important; }   /* details stay in the cart page */
.site-header-cart .widget_shopping_cart .buttons { display: flex; gap: .5rem; padding: .4em 1em 1em !important; margin: 0 !important; box-sizing: border-box; width: 100%; }
.site-header-cart .widget_shopping_cart .buttons a { flex: 1 1 0; min-width: 0; white-space: nowrap; text-align: center; margin: 0 !important; padding-left: .5em !important; padding-right: .5em !important; }
.site-header-cart .widget_shopping_cart .total { text-align: left; padding: .8em 1em !important; }
.tf-band-savings td, p.tf-band-savings { color: var(--blood, #7a2620); font-weight: 600; }
p.tf-band-savings { margin: 0; padding: .6em 1em; }
.tf-band-savings td { text-align: left !important; }
