/*
Theme Name: Tower Records
Theme URI: https://dfynese.shop/
Description: Flatsome child styled as a Tower Records record shop, with a mobile-first shopping layout.
Author: dfynese
Template: flatsome
Version: 1.0.0
Text Domain: tr-child
*/

:root {
  --tr-yellow: #f6d538;
  --tr-yellow-deep: #efc520;
  --tr-red: #d1202a;
  --tr-ink: #161616;
  --tr-muted: #5c5c5c;
  --tr-line: #e6e6e6;
  --tr-bg: #fff;
  --tr-max: 1440px;
  --tr-header: 118px;
  --tr-safe-b: env(safe-area-inset-bottom, 0px);
  --tr-safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tr-store {
  margin: 0;
  background: var(--tr-bg);
  color: var(--tr-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body.tr-store.tr-lock { overflow: hidden; }
body.tr-store #wrapper { background: #fff; overflow-x: hidden; }
body.tr-store #main { padding: 0 !important; margin: 0; min-height: 50vh; }
body.tr-store img { max-width: 100%; height: auto; }
body.tr-store a { color: inherit; }
body.tr-store button, body.tr-store input, body.tr-store select, body.tr-store textarea { font-family: inherit; }
body.tr-store .skip-link {
  position: absolute; left: 12px; top: -40px; background: #111; color: #fff; padding: 8px 12px; z-index: 10000;
}
body.tr-store .skip-link:focus { top: 8px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- announcement + header ---------- */
.tr-top {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.tr-top__inner, .tr-head__bar, .tr-nav__inner, .tr-wrap {
  width: min(var(--tr-max), calc(100% - 32px));
  margin: 0 auto;
}
.tr-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
}
.tr-top p { margin: 0; }
.tr-top a { text-decoration: underline; text-underline-offset: 2px; }
.tr-currency {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: 13px; line-height: 1;
}
.tr-currency svg { width: 20px; height: 20px; display: block; flex: 0 0 auto; }

.tr-sticky {
  position: sticky; top: 0; z-index: 40;
  background: var(--tr-yellow);
  padding-top: var(--tr-safe-t);
}
body.admin-bar .tr-sticky { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .tr-sticky { top: 46px; }
}
.tr-head__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.tr-logo { display: flex; justify-content: center; line-height: 0; }
body.tr-store .tr-logo img { height: 46px !important; max-height: 46px !important; width: auto !important; max-width: 340px; display: block; }
.tr-search { position: relative; max-width: 420px; }
.tr-search input[type="search"] {
  width: 100%; height: 42px; border: 0; border-radius: 999px;
  padding: 0 44px 0 16px; background: #fff; font-size: 16px; color: #111;
}
.tr-search input[type="search"]:focus { outline: 2px solid #111; outline-offset: 1px; }
.tr-search__go {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.tr-search__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; z-index: 50;
  border: 1px solid var(--tr-line); box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: 70vh; overflow: auto;
}
.tr-search__drop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; }
.tr-search__drop a:hover, .tr-search__drop a:focus { background: #fff8d2; }
.tr-search__drop img { width: 48px; height: 48px; object-fit: contain; background: #fafafa; }
.tr-search__drop strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.3; }
.tr-search__drop span { font-size: 13px; font-weight: 700; }
.tr-tools { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
body.tr-store .tr-head .tr-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #111 !important; text-decoration: none; font-size: 13px !important; font-weight: 650 !important;
  letter-spacing: .02em !important; text-transform: none !important; line-height: 1 !important;
  cursor: pointer; height: 44px; min-height: 44px; margin: 0 !important; padding: 0 !important;
  font-family: inherit;
}
body.tr-store .tr-tool svg { width: 22px; height: 22px; display: block; flex: 0 0 22px; }
body.tr-store .tr-tool__label { line-height: 1; text-transform: none; }
.tr-cart-count {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--tr-red); color: #fff; font-size: 11px; align-items: center; justify-content: center;
}
.tr-cart-count:empty, .tr-cart-count[data-count="0"] { display: none; }
body.tr-store .tr-head .tr-burger { display: none !important; }

.tr-nav { background: var(--tr-yellow); border-top: 1px solid rgba(0,0,0,.06); }
.tr-nav__inner { display: flex; justify-content: center; gap: 4px; min-height: 42px; }
.tr-nav__item { position: relative; }
.tr-nav__link {
  display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 10px;
  text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
}
.tr-nav__link svg { width: 10px; height: 10px; }
.tr-nav__sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.12); padding: 8px 0; z-index: 30;
}
.tr-nav__item:hover .tr-nav__sub, .tr-nav__item:focus-within .tr-nav__sub { display: block; }
.tr-nav__sub a { display: block; padding: 8px 16px; text-decoration: none; font-size: 14px; }
.tr-nav__sub a:hover, .tr-nav__sub a:focus { background: #fff6c7; }

/* ---------- drawers ---------- */
.tr-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tr-overlay.is-on { opacity: 1; pointer-events: auto; }
.tr-drawer {
  position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 70;
  transform: translateX(104%); transition: transform .25s ease; display: flex; flex-direction: column;
  padding-top: var(--tr-safe-t);
}
.tr-drawer--left { left: 0; transform: translateX(-104%); }
.tr-drawer--right { right: 0; }
.tr-drawer.is-on { transform: none; }
.tr-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--tr-yellow); min-height: 58px;
}
.tr-drawer__head strong { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.tr-drawer__x {
  width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer;
}
.tr-drawer__body { overflow: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.tr-acc { border-bottom: 1px solid var(--tr-line); }
.tr-acc__btn {
  width: 100%; text-align: left; background: #fff; border: 0; min-height: 52px; padding: 12px 16px;
  font-size: 16px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.tr-acc__panel { display: none; padding: 0 8px 10px; }
.tr-acc.is-on .tr-acc__panel { display: block; }
.tr-acc__panel a, .tr-drawer__solo {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; font-size: 16px;
}
.tr-acc__panel a:active, .tr-drawer__solo:active { background: #fff6c7; }

.tr-lines { padding: 8px 12px 16px; }
.tr-line { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--tr-line); }
.tr-line img { width: 72px; height: 72px; object-fit: contain; background: #fafafa; }
.tr-line h3 { margin: 0 0 4px; font-size: 14px; font-weight: 650; line-height: 1.3; }
.tr-line h3 a { text-decoration: none; }
.tr-qty { display: inline-flex; align-items: center; border: 1px solid #ccc; margin-top: 6px; }
.tr-qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.tr-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.tr-line__price { font-weight: 750; font-size: 14px; }
.tr-remove { background: none; border: 0; color: #666; text-decoration: underline; font-size: 12px; padding: 0; cursor: pointer; }
.tr-drawer__foot {
  border-top: 1px solid var(--tr-line); padding: 12px 16px calc(12px + var(--tr-safe-b)); background: #fff;
}
.tr-drawer__total { display: flex; justify-content: space-between; font-weight: 750; margin-bottom: 10px; }
.tr-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
  background: #111; color: #fff !important; text-decoration: none; border: 0; cursor: pointer;
  font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; padding: 12px 16px;
}
.tr-btn:hover, .tr-btn:focus { background: var(--tr-yellow); color: #111 !important; }
.tr-btn--ghost { background: #fff; color: #111 !important; border: 1px solid #111; margin-top: 8px; }
.tr-empty { padding: 28px 16px; text-align: center; }

/* ---------- hero, marquee, rows ---------- */
.tr-hero { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; min-height: 520px; background: #fff; }
.tr-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 7vw 48px 6vw; }
.tr-kicker { margin: 0 0 12px; letter-spacing: .16em; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tr-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.tr-hero h1 a { text-decoration: none; }
.tr-hero__media { display: block; background: #111; min-height: 320px; }
.tr-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 720px; }

.tr-marquee { background: var(--tr-red); color: #fff; overflow: hidden; white-space: nowrap; }
.tr-marquee__track { display: inline-block; padding: 8px 0; animation: tr-marquee 38s linear infinite; }
.tr-marquee__track span { font-size: 22px; font-weight: 750; letter-spacing: .04em; padding-right: 28px; }
@keyframes tr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tr-marquee__track { animation: none; }
}

.tr-home { padding: 18px 0 10px; }
.tr-section { margin: 34px auto 10px; }
.tr-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tr-section__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tr-section__head a { font-size: 14px; font-weight: 750; text-underline-offset: 3px; }
.tr-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.tr-row > .tr-card { scroll-snap-align: start; }

.tr-card { position: relative; min-width: 0; }
.tr-card__frame {
  display: grid; grid-template-rows: auto minmax(44px, 1fr); aspect-ratio: 1;
  background: #fff; position: relative;
}
.tr-card__media { display: block; background: #f3f3f3; text-decoration: none; min-height: 0; position: relative; }
.tr-card__media img { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; }
.tr-badge {
  position: absolute; left: 8px; top: 8px; background: #111; color: #fff; font-size: 11px; font-weight: 750;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px;
}
.tr-badge--sale { background: var(--tr-red); }
.tr-card__title { margin: 10px 0 4px; font-size: 14px; font-weight: 650; line-height: 1.35; }
.tr-card__title a { text-decoration: none; }
.tr-card__price { font-weight: 800; font-size: 14px; }
.tr-card__price del { color: #888; font-weight: 500; margin-right: 6px; }
.tr-card__price ins { text-decoration: none; }
body.tr-store .tr-wish {
  grid-row: 2; justify-self: center; align-self: center;
  position: static; width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50%;
  background: #fff !important; color: #111 !important; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  display: inline-flex !important; align-items: center; justify-content: center;
  line-height: 0 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer;
}
body.tr-store .tr-wish svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.tr-store .tr-wish.is-on { color: var(--tr-red) !important; }
body.tr-store .tr-wish.is-on svg { fill: currentColor; stroke: currentColor; }

/* ---------- archive / pages ---------- */
.tr-page, .tr-archive, .tr-product, .tr-search { width: min(var(--tr-max), calc(100% - 32px)); margin: 22px auto 48px; }
.tr-crumbs { font-size: 13px; color: var(--tr-muted); margin: 0 0 14px; }
.tr-crumbs a { color: inherit; }
.tr-archive__bar, .tr-search__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tr-archive h1, .tr-page h1, .tr-search h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.tr-ordering select, .woocommerce-ordering select, .tr-archive select {
  min-height: 44px; font-size: 16px; padding: 0 10px; border: 1px solid #ccc; background: #fff;
}
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; list-style: none; margin: 0; padding: 0; }
.tr-grid .tr-card__title { font-size: 13px; }
.woocommerce-pagination, .tr-pager { margin: 26px 0; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid #ddd; text-decoration: none; padding: 0 8px;
}
.woocommerce-pagination .current { background: #111; color: #fff; border-color: #111; }
.tr-prose { max-width: 760px; font-size: 16px; }
.tr-prose h2 { font-size: 22px; margin: 28px 0 8px; }
.tr-prose p, .tr-prose li { line-height: 1.55; }
.tr-prose a { text-decoration: underline; }
.tr-form { display: grid; gap: 10px; max-width: 560px; }
.tr-form input, .tr-form textarea, .tr-form select {
  width: 100%; min-height: 48px; border: 1px solid #ccc; padding: 10px 12px; font-size: 16px;
}
.tr-form textarea { min-height: 140px; }
.tr-note { background: #fff8d4; padding: 12px 14px; margin: 0 0 16px; }

/* ---------- product ---------- */
.tr-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 36px; align-items: start; }
.tr-gallery__main { background: #f6f6f6; display: flex; align-items: center; justify-content: center; }
.tr-gallery__main img { width: 100%; height: auto; max-height: 92vw; object-fit: contain; }
.tr-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.tr-thumbs button { border: 1px solid transparent; padding: 0; background: #f6f6f6; width: 72px; height: 72px; cursor: pointer; flex: 0 0 auto; }
.tr-thumbs button.is-on { border-color: #111; }
.tr-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.tr-product__info h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.tr-product__price { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.tr-product__price del { color: #888; font-size: 16px; font-weight: 500; margin-right: 8px; }
.tr-product__price ins { text-decoration: none; }
.tr-meta { color: var(--tr-muted); font-size: 14px; margin: 0 0 16px; }
.tr-meta span { display: inline-block; margin-right: 12px; }
.tr-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 18px; }
.tr-product .quantity { display: inline-flex; align-items: center; border: 1px solid #111; }
body.tr-store form.cart .ux-quantity__button { display: none !important; }
.tr-product .quantity .qty {
  width: 48px; height: 48px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield;
}
.tr-product .quantity .qty::-webkit-outer-spin-button,
.tr-product .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tr-step { width: 44px; height: 48px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.tr-product .single_add_to_cart_button, body.tr-store button.button, body.tr-store .button, body.tr-store a.button {
  background: #111 !important; color: #fff !important; border-radius: 0 !important; min-height: 48px;
  padding: 0 22px !important; font-weight: 750 !important; letter-spacing: .08em; text-transform: uppercase;
  border: 0 !important; text-decoration: none;
}
body.tr-store button.button:hover, body.tr-store .single_add_to_cart_button:hover, body.tr-store a.button:hover {
  background: var(--tr-yellow) !important; color: #111 !important;
}
.tr-product table.variations { width: 100%; margin-bottom: 8px; }
.tr-product table.variations td, .tr-product table.variations th { display: block; text-align: left; padding: 4px 0; }
.tr-product table.variations select { width: 100%; min-height: 48px; font-size: 16px; }
.tr-product__desc { border-top: 1px solid var(--tr-line); padding-top: 16px; font-size: 15px; }
.tr-product__desc h2 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.tr-oos { font-weight: 750; }
.tr-sticky-atc {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: #fff; border-top: 1px solid var(--tr-line);
  padding: 8px 12px calc(8px + var(--tr-safe-b));
  grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
.tr-sticky-atc strong { display: block; font-size: 13px; line-height: 1.25; }
.tr-sticky-atc .tr-btn { width: auto; min-width: 148px; }

/* ---------- cart + checkout ---------- */
body.tr-store .woocommerce { color: #161616; }
body.tr-store .woocommerce-cart .woocommerce, body.tr-store .woocommerce-checkout .woocommerce {
  width: min(1100px, calc(100% - 32px)); margin: 20px auto 48px;
}
body.tr-store .woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
body.tr-store .woocommerce table.shop_table th,
body.tr-store .woocommerce table.shop_table td { border-bottom: 1px solid var(--tr-line); padding: 12px 8px; vertical-align: middle; }
body.tr-store .woocommerce-checkout .col2-set,
body.tr-store .woocommerce-checkout #customer_details { display: block !important; }
body.tr-store .woocommerce-checkout #customer_details .col-1,
body.tr-store .woocommerce-checkout #customer_details .col-2,
body.tr-store .woocommerce .col2-set .col-1,
body.tr-store .woocommerce .col2-set .col-2 {
  width: 100% !important; max-width: 100% !important; flex: none !important; float: none !important;
}
body.tr-store .woocommerce form .form-row { margin-bottom: 12px; width: 100%; }
body.tr-store .woocommerce form .form-row-first,
body.tr-store .woocommerce form .form-row-last {
  width: 100% !important; float: none !important; margin-right: 0 !important; clear: both;
}
body.tr-store .woocommerce form .form-row input.input-text,
body.tr-store .woocommerce form .form-row textarea,
body.tr-store .woocommerce form .form-row select { width: 100%; box-sizing: border-box; }
body.tr-store .woocommerce form .form-row input.input-text,
body.tr-store .woocommerce form .form-row textarea,
body.tr-store .woocommerce form .form-row select,
body.tr-store .woocommerce .select2-container .select2-selection--single {
  min-height: 48px; font-size: 16px; border-radius: 0; border-color: #ccc; padding: 8px 10px;
}
body.tr-store #place_order { width: 100%; }
body.tr-store.woocommerce-cart .quantity {
  display: inline-flex !important; align-items: center; border: 1px solid #111; float: none;
}
body.tr-store.woocommerce-cart .quantity .qty {
  width: 44px; height: 44px; border: 0; text-align: center; font-size: 16px; background: #fff;
}
body.tr-store.woocommerce-cart .ux-quantity__button {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px !important; height: 44px !important; min-height: 44px !important;
  background: #fff !important; color: #111 !important; border: 0 !important;
  font-size: 20px !important; padding: 0 !important; box-shadow: none !important; letter-spacing: 0;
}
body.tr-store.woocommerce-cart .ux-quantity__button::before,
body.tr-store.woocommerce-cart .ux-quantity__button::after { content: none !important; }
body.tr-store.woocommerce-cart td.actions { text-align: left; }
body.tr-store.woocommerce-cart td.actions .coupon,
body.tr-store .continue-shopping { float: none !important; width: 100% !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
body.tr-store.woocommerce-cart td.actions .coupon .input-text { flex: 1 1 160px; min-width: 0; min-height: 48px; font-size: 16px; }
body.tr-store.woocommerce-cart td.actions .button,
body.tr-store .continue-shopping .button { float: none !important; min-height: 48px; margin: 0; }
body.tr-store .cart-collaterals, body.tr-store #order_review { background: #fffdf3; padding: 16px; margin-top: 16px; }
.tr-wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }

/* ---------- footer ---------- */
.tr-footer { background: #111; color: #fff; margin-top: 20px; padding: 36px 0 calc(28px + var(--tr-safe-b)); }
.tr-footer a { color: #fff; }
.tr-footer__grid {
  width: min(var(--tr-max), calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px;
}
.tr-footer h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.tr-footer ul { list-style: none; margin: 0; padding: 0; }
.tr-footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.tr-footer li a:hover { text-decoration: underline; }
.tr-news { display: flex; gap: 8px; margin-top: 10px; }
.tr-news input { flex: 1; min-height: 48px; border: 0; padding: 0 12px; font-size: 16px; }
.tr-news button { min-height: 48px; padding: 0 16px; border: 0; background: var(--tr-yellow); font-weight: 750; cursor: pointer; }
.tr-social { display: flex; gap: 14px; margin-top: 8px; }
.tr-social a { min-height: 44px; display: inline-flex; align-items: center; }
.tr-footer__base { width: min(var(--tr-max), calc(100% - 32px)); margin: 22px auto 0; color: #bbb; font-size: 12px; }

/* ---------- desktop grid ---------- */
@media (min-width: 1000px) {
  .tr-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .tr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
  .tr-wish-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .tr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 749px) {
  .tr-top__inner, .tr-head__bar, .tr-wrap, .tr-page, .tr-archive, .tr-product, .tr-search { width: calc(100% - 24px); }
  .tr-currency { font-size: 12px; }
  .tr-top { font-size: 12px; text-align: center; }
  .tr-top__inner { justify-content: center; min-height: 32px; }
  .tr-head__bar {
    grid-template-columns: auto 1fr auto; min-height: 56px; gap: 8px; width: calc(100% - 12px);
  }
  .tr-search { display: none; }
  .tr-search--mobile { display: block; max-width: none; width: calc(100% - 20px); margin: 0 auto 10px; }
  .tr-logo { justify-content: flex-start; }
  body.tr-store .tr-logo img { height: 32px !important; max-height: 32px !important; max-width: 210px; }
  .tr-tool__label { display: none; }
  body.tr-store .tr-head .tr-burger { display: inline-flex !important; }
  .tr-nav { display: none; }
  .tr-hero { grid-template-columns: 1fr; min-height: 0; }
  .tr-hero__media { order: -1; min-height: 0; }
  .tr-hero__media img { max-height: none; aspect-ratio: 1; }
  .tr-hero__copy { text-align: center; padding: 26px 18px 8px; }
  .tr-hero h1 { font-size: 30px; }
  .tr-section { margin-top: 26px; }
  .tr-section__head h2 { font-size: 22px; }
  .tr-row { grid-auto-columns: minmax(148px, 46%); gap: 10px; margin-right: -12px; padding-right: 12px; }
  .tr-footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .tr-product { grid-template-columns: 1fr; gap: 14px; margin-bottom: 96px; }
  .tr-sticky-atc { display: grid; }
  .tr-product form.cart .single_add_to_cart_button { flex: 1 1 160px; }
  body.tr-store .woocommerce table.shop_table thead { display: none; }
  body.tr-store .woocommerce table.shop_table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--tr-line); }
  body.tr-store .woocommerce table.shop_table td { display: block; border: 0; width: 100% !important; }
  .tr-news { flex-direction: column; }
}
@media (min-width: 750px) {
  .tr-search--mobile { display: none; }
}
