/* Trend Rail: a fashion store. Warm ivory page, ink type, a vermilion order button and a
   rail of hanging products. Loaded after ghorer-bazar.css, so only what differs is here. */
body.tr {
  --tr-bg: #f7f5f1;
  --tr-card: #ffffff;
  --tr-ink: #16181d;
  --tr-muted: #6b6f78;
  --tr-line: #e7e3dc;
  --tr-accent: #e4572e;
  --tr-accent-dark: #c4421c;
  --tr-deep: #1f2a44;
  --tr-gold: #c9a24a;
  --gb-accent: var(--tr-accent);
  --gb-bg: var(--tr-bg);
  background: var(--tr-bg);
  color: var(--tr-ink);
}
body.tr-noscroll { overflow: hidden; }

/* The announcement bar scrolls across, like a ticker. */
body.tr .gb-announce { background: var(--tr-deep); color: #fff; overflow: hidden; white-space: nowrap; font-size: 13.5px; }
body.tr .gb-announce .gb-wrap { max-width: none; padding-left: 0; padding-right: 0; }
body.tr .gb-announce .gb-wrap > * { display: inline-block; padding-left: 100%; animation: tr-ticker 22s linear infinite; text-decoration: none; }
body.tr .gb-announce:hover .gb-wrap > * { animation-play-state: paused; }
@keyframes tr-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* header */
.tr-top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--tr-line); position: sticky; top: 0; z-index: 40; }
.tr-top-row { display: flex; align-items: center; gap: 22px; height: 76px; }
.tr-logo img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.tr-logo b { font-size: 24px; letter-spacing: -.02em; color: var(--tr-ink); }
.tr-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; border: 1.5px solid var(--tr-line); border-radius: 999px; background: #fff; padding: 0 6px 0 18px; transition: border-color .2s, box-shadow .2s; }
.tr-search:focus-within { border-color: var(--tr-ink); box-shadow: 0 0 0 4px rgba(22, 24, 29, .06); }
.tr-search > svg { width: 18px; height: 18px; color: var(--tr-muted); flex: none; }
.tr-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; }
.tr-search button { height: 38px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--tr-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tr-search button:hover { background: var(--tr-accent); }
.tr-actions { display: flex; gap: 10px; }
.tr-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tr-line); background: #fff; color: var(--tr-ink); display: grid; place-items: center; cursor: pointer; }
.tr-icon svg { width: 20px; height: 20px; }
.tr-icon:hover { border-color: var(--tr-ink); }
.tr-icon .gb-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--tr-accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.tr-top .gb-menu-btn { display: none; }
.tr-nav { background: #fff; border-bottom: 1px solid var(--tr-line); }
.tr-nav .gb-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.tr-nav-item { position: relative; }
.tr-nav-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tr-ink); text-decoration: none; }
.tr-nav-item > a svg { width: 13px; height: 13px; opacity: .6; }
.tr-nav-item > a:hover, .tr-nav-item > a.active { color: var(--tr-accent); }
.tr-drop { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--tr-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(22, 24, 29, .12); padding: 8px; display: none; z-index: 30; }
.tr-nav-item:hover .tr-drop, .tr-nav-item:focus-within .tr-drop { display: grid; }
.tr-drop a { padding: 9px 12px; border-radius: 8px; color: var(--tr-ink); text-decoration: none; font-size: 14px; }
.tr-drop a:hover { background: var(--tr-bg); color: var(--tr-accent); }

/* the hanging rail */
.tr-rail { padding: 34px 0 10px; background: radial-gradient(70% 90% at 50% 0%, #fff 0%, var(--tr-bg) 70%); overflow: hidden; }
.tr-rail-title { margin: 0 0 6px; text-align: center; font-size: clamp(26px, 4vw, 44px); letter-spacing: .04em; font-weight: 800; color: var(--tr-ink); }
.tr-rail-stage { position: relative; height: 430px; max-width: 1360px; margin: 0 auto; }
.tr-rail-bar { position: absolute; left: 4%; right: 4%; top: 46px; height: 6px; border-radius: 6px; background: linear-gradient(180deg, #8a8f99, #4b5059); box-shadow: 0 2px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px rgba(0, 0, 0, .15); }
.tr-rail-bar i { position: absolute; top: -9px; width: 14px; height: 24px; border-radius: 4px; background: #3b4048; }
.tr-rail-bar i:first-child { left: -4px; }
.tr-rail-bar i:last-child { right: -4px; }
.tr-rail-viewport { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; user-select: none; }
.tr-rail-viewport:active { cursor: grabbing; }
.tr-rail-item { position: absolute; top: 30px; left: 0; height: 390px; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.tr-hanger { width: 72px; height: 42px; color: #3b4048; margin-bottom: -6px; position: relative; z-index: 1; }
.tr-hanger svg { width: 100%; height: 100%; }
.tr-rail-pic { width: 86%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(22, 24, 29, .14); transform: scale(var(--s, 1)); transform-origin: 50% 0; opacity: var(--o, 1); transition: transform .12s linear, box-shadow .3s; }
.tr-rail-pic img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tr-rail-item.on .tr-rail-pic { box-shadow: 0 26px 60px rgba(22, 24, 29, .24); }
.tr-rail-cap { margin-top: 74px; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; width: 120%; }
.tr-rail-item.on .tr-rail-cap { opacity: 1; transform: none; }
.tr-rail-cap b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-rail-cap em { font-style: normal; color: var(--tr-accent); font-weight: 800; }
.tr-rail-nav { position: absolute; top: 190px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--tr-ink); box-shadow: 0 8px 20px rgba(22, 24, 29, .15); display: grid; place-items: center; cursor: pointer; z-index: 20; }
.tr-rail-nav.prev { left: 18px; }
.tr-rail-nav.next { right: 18px; }
.tr-rail-nav:hover { background: var(--tr-ink); color: #fff; }

/* sections */
.tr-section { padding: 34px 0 6px; }
.tr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tr-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; position: relative; padding-left: 14px; }
.tr-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(var(--tr-accent), var(--tr-gold)); }
.tr-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tr-ink); text-decoration: none; border-bottom: 2px solid var(--tr-accent); padding-bottom: 2px; }
.tr-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.tr-cat { background: var(--tr-card); border-radius: 18px; padding: 10px 10px 14px; text-align: center; text-decoration: none; color: var(--tr-ink); border: 1px solid var(--tr-line); transition: transform .2s, box-shadow .2s; }
.tr-cat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22, 24, 29, .1); }
.tr-cat span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--tr-bg); }
.tr-cat span img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tr-cat:hover span img { transform: scale(1.06); }
.tr-cat span svg { width: 36px; height: 36px; color: var(--tr-muted); }
.tr-cat b { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.tr-cat-all span { background: linear-gradient(135deg, var(--tr-deep), #364a75); color: #fff; }
.tr-cat-all span svg { color: #fff; }

/* product cards */
.tr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tr-card { background: var(--tr-card); border: 1px solid var(--tr-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.tr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22, 24, 29, .1); }
.tr-card-img { position: relative; display: block; aspect-ratio: 1; background: var(--tr-bg); overflow: hidden; }
.tr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tr-card:hover .tr-card-img img { transform: scale(1.05); }
.tr-off { position: absolute; top: 10px; left: 10px; background: var(--tr-accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.tr-out { position: absolute; top: 10px; left: 10px; background: #111; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.tr-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tr-card-name { color: var(--tr-ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.tr-price { display: flex; align-items: baseline; gap: 8px; }
.tr-price b { font-size: 17px; color: var(--tr-accent); }
.tr-price s { color: var(--tr-muted); font-size: 13px; }
.tr-card-act { margin-top: auto; display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.tr-order { height: 42px; border: 0; border-radius: 10px; background: var(--tr-order, var(--tr-accent)); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: filter .2s, transform .1s; }
.tr-order:hover { filter: brightness(1.08); }
.tr-order:active, .tr-add:active { transform: scale(.97); }
.tr-add { height: 42px; border-radius: 10px; border: 1.5px solid var(--tr-ink); background: #fff; color: var(--tr-ink); display: grid; place-items: center; cursor: pointer; }
.tr-add svg { width: 18px; height: 18px; }
.tr-add:hover { background: var(--tr-ink); color: #fff; }
.tr-order:disabled, .tr-add:disabled { opacity: .45; cursor: not-allowed; }

/* quick-order window */
.tr-quick { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.tr-quick-back { position: absolute; inset: 0; background: rgba(15, 17, 22, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.tr-quick-box { position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
.tr-quick.open .tr-quick-back { opacity: 1; }
.tr-quick.open .tr-quick-box { transform: none; opacity: 1; }
.tr-quick-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--tr-line); }
.tr-quick-head b { flex: 1; font-size: 16px; line-height: 1.35; }
.tr-quick-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tr-bg); font-size: 22px; line-height: 1; cursor: pointer; }
.tr-quick-body { overflow: auto; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tr-q-info { display: grid; gap: 14px; }
.tr-q-main { position: relative; border-radius: 16px; overflow: hidden; background: var(--tr-bg); aspect-ratio: 1; }
.tr-q-main img { width: 100%; height: 100%; object-fit: cover; }
.tr-q-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.tr-q-thumbs button { flex: none; width: 60px; height: 60px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.tr-q-thumbs button.on { border-color: var(--tr-accent); }
.tr-q-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tr-q-price { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff4ef; }
.tr-q-price b { font-size: 24px; color: var(--tr-accent); }
.tr-q-price s { color: var(--tr-muted); }
.tr-q-sizes > span, .tr-q-qty > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tr-q-sizes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-q-sizes button { min-width: 48px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--tr-line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tr-q-sizes button.on { border-color: var(--tr-ink); background: var(--tr-ink); color: #fff; }
.tr-q-sizes button:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.tr-q-sizes.shake { animation: tr-shake .4s; }
@keyframes tr-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tr-q-qty { display: flex; align-items: center; justify-content: space-between; }
.tr-q-qty > span { margin: 0; }
.tr-q-qty > div { display: flex; align-items: center; border: 1.5px solid var(--tr-line); border-radius: 10px; overflow: hidden; }
.tr-q-qty button { width: 40px; height: 38px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.tr-q-qty b { min-width: 36px; text-align: center; }
.tr-q-err { margin: -4px 0 0; color: #c0262d; font-size: 13.5px; min-height: 0; }
.tr-q-err:empty { display: none; }
.tr-q-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-q-actions > * { height: 48px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.tr-q-actions svg { width: 18px; height: 18px; }
.tr-q-cart { background: var(--tr-cart, var(--tr-deep)); color: #fff; }
.tr-q-order { background: var(--tr-order, var(--tr-accent)); color: #fff; }
.tr-q-wa { background: #1faa59; color: #fff; }
.tr-q-call { background: #fff; color: var(--tr-ink); border: 1.5px solid var(--tr-ink) !important; }
.tr-q-actions > *:hover { filter: brightness(1.07); }
.tr-q-more { border: 1px solid var(--tr-line); border-radius: 12px; padding: 0 14px; }
.tr-q-more summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.tr-q-more > div { padding: 0 0 14px; color: #3f434b; line-height: 1.65; font-size: 14px; }
.tr-q-more figure { margin: 0 0 10px; }
.tr-q-more blockquote { margin: 0; }
.tr-q-more figcaption { color: var(--tr-muted); font-size: 13px; margin-top: 4px; }

/* footer */
.tr-foot { margin-top: 56px; background: var(--tr-deep); color: #e8ebf2; padding-top: 48px; }
.tr-foot h4 { margin: 0 0 16px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tr-foot .gb-foot-brand p { color: inherit; opacity: .8; }
.tr-foot .gb-foot-logo b { color: #fff; }
.tr-copy { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.tr-copy .gb-wrap { padding-top: 18px; padding-bottom: 18px; text-align: center; opacity: .85; }
.tr-copy .omsnex-link { color: #fff; font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) { .tr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-top .gb-menu-btn { display: grid; }
  .tr-nav { display: none; }
  .tr-track { display: none; }
}
@media (max-width: 640px) {
  .tr-top-row { gap: 10px; height: 64px; }
  .tr-top .tr-search { display: none; }
  .tr-dsearch { display: flex !important; margin-bottom: 12px; }
  .tr-logo { flex: 1; order: 2; }
  .tr-top .gb-menu-btn { order: 1; }
  .tr-actions { order: 3; }
  .tr-logo img { height: 38px; }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr-card-body { padding: 10px; }
  .tr-card-act { grid-template-columns: 1fr 38px; }
  .tr-order, .tr-add { height: 38px; }
  .tr-rail-stage { height: 340px; }
  .tr-rail-item { height: 310px; }
  .tr-rail-cap { margin-top: 56px; }
  .tr-rail-nav { display: none; }
  .tr-head h2 { font-size: 18px; }
  .tr-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tr-quick { padding: 0; place-items: end center; }
  .tr-quick-box { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .tr-q-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) { .tr-quick-body { grid-template-columns: 1fr; gap: 14px; padding: 16px; } }
.tr-q-actions > *:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Phones: the shared header centres .gb-logo absolutely; here the logo stays in the row so
   the cart and order-track buttons sit on the right, after it. */
@media (max-width: 760px) { .tr-top .tr-logo { position: static; transform: none; } }
