/* Online Stores page only. All classes start with t- and element selectors stay scoped. */
.t-center { text-align: center; }
.t-page .s-head { margin-bottom: 18px; }
.t-page { padding-top: 1px; }
.bump { animation: t-bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes t-bump { from { scale: .85; opacity: .4; } }

/* ===== 1. Shop front ===== */
.t-hero { height: 800px; background: radial-gradient(ellipse at 22% 70%, rgba(150, 50, 225, .7), transparent 48%), linear-gradient(175deg, #200c35, #31105a 70%, #210b39); }
.t-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: repeating-linear-gradient(90deg, #17072a 0 78px, #1d0a33 78px 80px); border-top: 3px solid rgba(200, 140, 255, .35); }
.t-hero .hero-copy { top: 186px; width: 480px; }
.t-hero .eyebrow { font-size: 22px; }
.t-hero .hero-copy h1 { font-size: 46px; }
.t-hero .lead { width: 440px; margin-bottom: 28px; }
.t-actions { display: flex; align-items: center; gap: 16px; }
.t-actions .btn { height: 56px; }
.t-ghost { display: grid; place-items: center; height: 56px; padding: 0 28px; border-radius: 99px; font-size: 15px; border: 1.5px solid rgba(220, 180, 255, .5); transition: background .25s; }
.t-ghost:hover { background: rgba(170, 100, 235, .25); }

.t-front.hero-art { top: 138px; }
.t-building { position: absolute; left: 80px; top: 8px; width: 480px; }
.t-sign { position: relative; z-index: 2; width: 240px; margin: 0 auto -8px; padding: 9px 0 15px; border-radius: 20px 20px 0 0; text-align: center; font-size: 19px; font-weight: 700; color: #3b0f4f; background: #fbf8ff; box-shadow: 0 -6px 30px rgba(210, 150, 255, .55); }
.t-awning { position: relative; z-index: 2; display: flex; height: 62px; margin: 0 -18px; }
.t-awning i { flex: 1; height: 100%; border-radius: 0 0 30px 30px; background: linear-gradient(#a52fd0, #7a22ad); box-shadow: 0 8px 12px rgba(20, 0, 40, .35); }
.t-awning i:nth-child(even) { background: linear-gradient(#fbf8ff, #e8d6f8); }
.t-window { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 14px; margin-top: -20px; padding: 40px 22px 18px; background: linear-gradient(#4a1675, #2b0a49); border: 8px solid #16061f; border-bottom: 0; }
.t-shelf-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 0; border-bottom: 6px solid #a970d3; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .92), rgba(236, 220, 250, .75)); border-radius: 12px 12px 4px 4px; }
.t-shelf-item svg { width: 72px; height: 72px; }
.t-shelf-item b { margin-bottom: 5px; padding: 1px 10px; border-radius: 99px; font-size: 10.5px; color: #fff; background: #3b0f4f; }
.t-step { height: 20px; margin: 0 -14px; border-radius: 4px; background: linear-gradient(#cdb4e6, #6f4a93); }
.t-pop { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 11px 18px 11px 14px; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 18px 34px rgba(10, 0, 25, .45); white-space: nowrap; }
.t-pop svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #a52fd0, #5a1596); }
.t-pop b { display: block; font-size: 12.5px; }
.t-pop small { display: block; font-size: 11px; color: #6d4f88; }
.t-pop.p1 { left: 24px; top: 175px; }
.t-pop.p2 { left: 522px; top: 120px; }
.t-pop.p3 { left: 480px; top: 395px; }
.anim .t-building { animation: t-rise 1s cubic-bezier(.2, .9, .25, 1) .3s backwards; }
@keyframes t-rise { from { opacity: 0; translate: 0 90px; } }
.anim .t-awning i { animation: t-sway 3s ease-in-out infinite; transform-origin: top; }
.anim .t-awning i:nth-child(even) { animation-delay: -1.5s; }
@keyframes t-sway { 50% { transform: scaleY(1.09); } }
.anim .t-pop { animation: t-notify 9s ease-in-out infinite both; }
.anim .t-pop.p1 { animation-delay: 1.4s; }
.anim .t-pop.p2 { animation-delay: 3.4s; }
.anim .t-pop.p3 { animation-delay: 5.4s; }
@keyframes t-notify { 0% { opacity: 0; scale: .5; translate: 0 22px; } 7%, 78% { opacity: 1; scale: 1; translate: 0 0; } 90%, 100% { opacity: 0; scale: .9; translate: 0 -18px; } }

/* Shared quantity control */
.t-qty { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: #f1e6fb; }
.t-qty button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; font: 700 16px Alexandria, sans-serif; color: var(--violet); background: #fff; }
.t-qty output { min-width: 28px; text-align: center; font-size: 13px; font-weight: 700; }

/* ===== 2. Shop ===== */
.t-shop { padding: 62px 0 56px; }
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 0 40px; }
.t-cats { display: flex; gap: 10px; margin-bottom: 18px; }
.t-cats button { height: 40px; padding: 0 22px; border-radius: 99px; cursor: pointer; font: 600 13px Alexandria, sans-serif; color: var(--ink); background: #fff; border: 1.5px solid #dcc6f0; }
.t-cats button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.t-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-product { position: relative; padding: 10px 10px 12px; border-radius: 22px; background: #fff; box-shadow: 0 12px 26px rgba(80, 25, 135, .12); transition: transform .3s, box-shadow .3s; }
.t-product[hidden] { display: none; }
.t-product:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(80, 25, 135, .22); }
.t-product em { position: absolute; z-index: 1; top: 18px; right: 18px; padding: 2px 10px; border-radius: 99px; font-size: 10.5px; font-style: normal; font-weight: 600; color: #fff; background: #3b0f4f; }
.t-picture { display: grid; place-items: center; height: 150px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #fff, #efe4fa); }
.t-picture svg { width: 108px; height: 108px; filter: drop-shadow(0 10px 8px rgba(50, 10, 80, .22)); transition: scale .35s, rotate .35s; }
.t-product:hover .t-picture svg { scale: 1.1; rotate: -4deg; }
.t-product h3 { margin: 10px 6px 4px; font-size: 14.5px; line-height: 1.8; }
.t-buy { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.t-buy b { font-size: 14px; color: var(--violet); }
.t-buy button { width: 38px; height: 38px; border: 0; border-radius: 13px; cursor: pointer; font-size: 22px; line-height: 1; color: #fff; background: linear-gradient(135deg, #a52fd0, #5a1596); }

.t-cart { position: sticky; top: 108px; padding: 20px 18px; border-radius: 26px; background: #fff; box-shadow: 0 22px 48px rgba(80, 25, 135, .18); }
.t-cart h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.t-cart h3 svg { width: 24px; height: 24px; color: var(--violet); }
.t-count { display: grid; place-items: center; min-width: 26px; height: 26px; margin-right: auto; border-radius: 99px; font-size: 13px; color: #fff; background: #a52fd0; }
.t-lines { max-height: 232px; margin: 12px 0; overflow-y: auto; list-style: none; }
.t-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee3f7; }
.t-lines li > svg { flex: none; width: 42px; height: 42px; border-radius: 10px; background: #f5eefc; }
.t-lines li > div:not(.t-qty) { flex: 1; min-width: 0; }
.t-lines li b { display: block; font-size: 12px; line-height: 1.8; }
.t-lines li small { display: block; font-size: 11.5px; color: var(--violet); }
.t-lines .t-empty { justify-content: center; padding: 34px 0; font-size: 12.5px; color: #7d6592; border: 0; }
.t-ship p { margin-bottom: 7px; font-size: 11.5px; }
.t-ship > div { height: 7px; overflow: hidden; border-radius: 99px; background: #eee3f7; }
.t-ship i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #4ade80, #1f9d57); transition: width .5s; }
.t-cart dl { margin: 14px 0; }
.t-cart dl > div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12.5px; }
.t-cart .t-total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #cdb4e6; font-size: 15.5px; font-weight: 700; }
.t-checkout { width: 100%; height: 48px; border: 0; border-radius: 99px; cursor: pointer; font: 600 14px Alexandria, sans-serif; color: #fff; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.t-checkout:disabled { cursor: not-allowed; opacity: .45; }
.t-status:not(:empty) { margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.9; text-align: center; background: #f1e6fb; }

/* ===== 3. Customer journey ===== */
.t-journey { padding: 58px 0 62px; color: #fff; background: radial-gradient(ellipse at 12% 40%, rgba(142, 48, 214, .65), transparent 45%), linear-gradient(110deg, #3a0f63, #1f0834 55%, #2a0846); }
.t-journey .section-tag { color: #c687f5; }
.t-journey .s-head { margin-bottom: 20px; }
.t-road { position: relative; margin: 0 60px; padding-top: 62px; }
.t-road ol { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.t-road ol::before { content: ""; position: absolute; top: 36px; right: 10%; left: 10%; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(220, 180, 255, .45) 0 14px, transparent 14px 24px); }
.t-road ol::after { content: ""; position: absolute; top: 36px; right: 10%; width: calc(var(--step) * 20%); height: 4px; border-radius: 4px; background: #c97bff; box-shadow: 0 0 14px #b76bff; transition: width .7s cubic-bezier(.4, 0, .2, 1); }
.t-road li { position: relative; z-index: 1; text-align: center; }
.t-road li button { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer; font: 600 14.5px Alexandria, sans-serif; color: #fff; background: none; }
.t-stop { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #35104f; border: 3px solid rgba(210, 160, 255, .4); transition: background .35s, border-color .35s, scale .35s, box-shadow .35s; }
.t-stop svg { width: 34px; height: 34px; }
.t-road .done .t-stop { background: linear-gradient(135deg, #a52fd0, #5a1596); border-color: #e1bbff; }
.t-road [aria-pressed="true"] .t-stop { scale: 1.16; box-shadow: 0 0 0 8px rgba(190, 110, 255, .22), 0 0 30px #a95bef; }
.t-van { position: absolute; z-index: 2; top: 4px; right: calc(10% + var(--step) * 20%); display: grid; place-items: center; width: 54px; height: 44px; margin-right: -27px; border-radius: 14px; color: #3b0f4f; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); transition: right .7s cubic-bezier(.4, 0, .2, 1); }
.t-van svg { width: 32px; height: 32px; transform: scaleX(-1); }
.t-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 34px auto 0; }
.t-detail > div { padding: 18px 22px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(210, 165, 255, .28); }
.t-detail small { font-size: 11.5px; font-weight: 600; color: #d9a8ff; }
.t-detail p { margin-top: 6px; font-size: 14px; line-height: 2; }

/* ===== 4. Management board ===== */
.t-admin { padding: 60px 0 36px; }
.t-panel { margin: 0 40px; padding: 22px; border-radius: 28px; background: #fff; box-shadow: 0 22px 50px rgba(80, 25, 135, .15); }
.t-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #eadff5; }
.t-tabs button { height: 42px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer; font: 600 13.5px Alexandria, sans-serif; color: var(--ink); background: #f4eefb; }
.t-tabs button[aria-selected="true"] { color: #fff; background: #3b0f4f; }
.t-view[hidden] { display: none; }
.anim .t-view { animation: t-bump .4s ease; }
.t-view { min-height: 400px; }
.t-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.t-column { min-height: 350px; padding: 12px; border-radius: 18px; background: #f6f1fc; }
.t-column h4 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.t-column h4 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; color: #fff; background: var(--violet); }
.t-column article { margin-bottom: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 14px rgba(80, 25, 135, .11); }
.t-column article strong { display: block; text-align: right; font-size: 13.5px; color: var(--violet); }
.t-column article p { font-size: 12.5px; font-weight: 600; line-height: 1.9; }
.t-column article small { display: block; font-size: 11.5px; line-height: 1.8; color: #6d4f88; }
.t-column article button { width: 100%; min-height: 34px; margin-top: 8px; padding: 4px; border: 1.5px solid #c9a5e8; border-radius: 10px; cursor: pointer; font: 600 11px Alexandria, sans-serif; color: var(--violet); background: #fff; transition: background .2s, color .2s; }
.t-column article button:hover { color: #fff; background: var(--violet); }
.t-done { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: #157a42; }
.t-none { padding: 26px 6px; text-align: center; font-size: 12px; color: #8a73a0; }
.t-reset { display: block; margin: 14px auto 0; border: 0; cursor: pointer; font: 500 12px Alexandria, sans-serif; text-decoration: underline; color: var(--violet); background: none; }
.t-stock { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; list-style: none; }
.t-stock li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid #eadff5; }
.t-stock li > svg { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #f5eefc; }
.t-stock li > b { flex: 1; font-size: 13px; }
.t-stock em { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
.t-stock em.ok { color: #0f6535; background: #dcf6e6; }
.t-stock em.low { color: #7a4a00; background: #ffedc7; }
.t-stock em.out { color: #9c1743; background: #ffdfe8; }
.t-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t-offers ul { list-style: none; }
.t-offers li { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid #eadff5; }
.t-offers li b { display: block; font-size: 13.5px; }
.t-offers li small { display: block; font-size: 12px; color: #6d4f88; }
.t-offers [role="switch"] { position: relative; flex: none; width: 54px; height: 30px; border: 0; border-radius: 99px; cursor: pointer; background: #d5c8e2; transition: background .25s; }
.t-offers [role="switch"] i { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: right .25s; }
.t-offers [role="switch"][aria-checked="true"] { background: #7b25c4; }
.t-offers [role="switch"][aria-checked="true"] i { right: 27px; }
.t-banners { padding: 18px; border-radius: 20px; background: #f6f1fc; }
.t-banners > p { margin-bottom: 12px; font-size: 12.5px; font-weight: 600; }
.t-banner { position: relative; overflow: hidden; margin-bottom: 12px; padding: 20px 22px; border-radius: 16px; color: #fff; animation: t-bump .4s ease; }
.t-banner::after { content: ""; position: absolute; left: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .15); }
.t-banner b { display: block; font-size: 17px; }
.t-banner small { display: block; font-size: 12.5px; opacity: .9; }

/* ===== 5. Sales report ===== */
.t-report { padding: 40px 0 30px; }
.t-sheet { margin: 0 40px; padding: 26px; border-radius: 28px; color: #fff; background: radial-gradient(ellipse at 100% 0, #7b25c4, transparent 50%), #26083f; box-shadow: 0 24px 50px rgba(60, 15, 105, .3); }
.t-period { display: flex; gap: 8px; margin-bottom: 20px; }
.t-period button { height: 38px; padding: 0 20px; border-radius: 99px; cursor: pointer; font: 600 12.5px Alexandria, sans-serif; color: #fff; background: transparent; border: 1.5px solid rgba(210, 165, 255, .4); }
.t-period button[aria-pressed="true"] { color: #26083f; background: #fff; border-color: #fff; }
.t-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; list-style: none; }
.t-kpis li { padding: 14px; text-align: center; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.t-kpis b { display: block; font-size: 24px; font-weight: 800; }
.t-kpis small { font-size: 12px; color: #dcc6f2; }
.t-chart { display: flex; gap: 14px; height: 240px; }
.t-col { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.t-bar-space { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: center; width: 100%; padding-top: 22px; }
.t-bar-space i { position: relative; display: block; width: 100%; max-width: 62px; border-radius: 10px 10px 3px 3px; background: linear-gradient(#e0a6ff, #7b25c4); }
.t-bar-space i b { position: absolute; bottom: 100%; left: 50%; translate: -50% -4px; font-size: 11px; font-weight: 600; font-style: normal; }
.t-col small { font-size: 11px; white-space: nowrap; color: #dcc6f2; }
/* Bars rise quickly with overlapping starts (--i is the bar's position); each number appears when its bar arrives */
.anim .t-chart:not(.play) .t-bar-space i { visibility: hidden; }
.anim .t-chart.play .t-bar-space i { animation: t-grow .6s cubic-bezier(.2, .8, .3, 1.15) calc(var(--i) * .09s) backwards; }
.anim .t-chart.play .t-bar-space i b { animation: t-value .25s ease calc(var(--i) * .09s + .42s) backwards; }
@keyframes t-grow { from { height: 0; opacity: .3; } }
@keyframes t-value { from { opacity: 0; translate: -50% 6px; } }

@media (max-width: 899px) {
  .t-hero { height: auto; padding-bottom: 60px; }
  .t-hero::after { height: 42px; }
  .t-hero .hero-copy { top: auto; width: auto; padding-top: 6px; }
  .t-hero .eyebrow { font-size: 16px; }
  .t-hero .hero-copy h1 { font-size: clamp(27px, 8.2vw, 46px); }
  .t-hero .lead { width: auto; margin-bottom: 20px; }
  .t-actions { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .t-actions .btn, .t-ghost { height: 48px; font-size: 13.5px; }
  .t-front.hero-art { top: 0; margin-top: 26px; }

  .t-shop { padding: 42px 0 34px; }
  .t-layout { grid-template-columns: minmax(0, 1fr); padding: 0 14px; }
  .t-cats { flex-wrap: wrap; justify-content: center; gap: 7px; }
  .t-cats button { height: 36px; padding: 0 16px; font-size: 12px; }
  .t-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-picture { height: 116px; }
  .t-picture svg { width: 84px; height: 84px; }
  .t-product h3 { font-size: 12.5px; }
  .t-buy b { font-size: 12px; }
  .t-cart { position: static; }

  .t-journey { padding: 42px 0; }
  .t-road { margin: 0 6px; }
  .t-road li button { gap: 8px; padding: 0; font-size: 11px; }
  .t-stop { width: 50px; height: 50px; border-width: 2px; }
  .t-stop svg { width: 23px; height: 23px; }
  .t-road ol::before, .t-road ol::after { top: 23px; }
  .t-van { width: 42px; height: 36px; top: 14px; margin-right: -21px; }
  .t-van svg { width: 25px; height: 25px; }
  .t-detail { grid-template-columns: 1fr; margin: 26px 16px 0; }
  .t-detail > div { min-height: 108px; }

  .t-admin { padding: 42px 0 24px; }
  .t-panel { margin: 0 12px; padding: 12px; }
  .t-tabs button { flex: 1; padding: 0 6px; font-size: 12px; }
  .t-kanban { grid-template-columns: 1fr; }
  .t-column { min-height: 0; }
  .t-stock, .t-offers { grid-template-columns: minmax(0, 1fr); }
  .t-stock li { flex-wrap: wrap; }

  .t-report { padding: 26px 0 16px; }
  .t-sheet { margin: 0 12px; padding: 16px 12px; }
  .t-period { justify-content: center; }
  .t-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-kpis b { font-size: 19px; }
  .t-chart { gap: 5px; height: 210px; }
  .t-bar-space i b { font-size: 8.5px; }
  .t-col small { font-size: 8.5px; }
}

.t-page .s-head { margin-bottom: 32px; }
