/* Подсилване на продажбите (App\Support\ShopBoost): лента за безплатна доставка,
   „Често купувани заедно“, „Може да ви хареса“. Значките на картите са в page-elements.css. */
.tpu-ship { --tpu-accent: var(--primary-color, #4e54c8); margin: 0 0 1rem; padding: .7rem .85rem; border-radius: 10px; background: rgba(78, 84, 200, .07); background: color-mix(in srgb, var(--tpu-accent) 8%, transparent); font-size: .92rem; line-height: 1.35; }
.tpu-ship[hidden] { display: none !important; }
.tpu-ship-text strong { color: var(--tpu-accent); white-space: nowrap; }
.tpu-ship-track { position: relative; height: 6px; margin-top: .5rem; border-radius: 999px; background: rgba(15, 23, 42, .1); overflow: hidden; }
.tpu-ship-track span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--tpu-accent); transition: width .4s ease; }
.tpu-ship.is-done { background: rgba(22, 163, 74, .1); color: #166534; font-weight: 600; }
.tpu-ship.is-done .tpu-ship-track span { background: #16a34a; }
.tpu-ship--checkout { margin-top: -.25rem; }

.tpu-h { font-size: 1.35rem; font-weight: 700; margin: 0 0 1rem; }
.tpu-price { font-weight: 700; color: var(--primary-color, #4e54c8); }
.tpu-price del { margin-left: .35rem; font-weight: 400; font-size: .85em; color: #6c757d; }
.tpu-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 8px; padding: .45rem .8rem; font-size: .88rem; font-weight: 600;
  background: var(--primary-color, #4e54c8); color: #fff !important; text-decoration: none; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.tpu-btn:hover { transform: translateY(-1px); }
.tpu-btn.is-ghost { background: transparent; color: var(--primary-color, #4e54c8) !important; border: 1px solid currentColor; }
.tpu-btn.is-busy, .tpu-btn:disabled { opacity: .55; pointer-events: none; }

/* Често купувани заедно */
.tpu-together { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.tpu-tg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .tpu-tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpu-tg-item { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(15, 23, 42, .1); border-radius: 12px; overflow: hidden; background: #fff; color: #1e293b; }
.tpu-tg-item.is-off { opacity: .55; }
.tpu-tg-img { display: block; aspect-ratio: 1; background: #f1f5f9; }
.tpu-tg-img img { width: 100%; height: 100%; object-fit: cover; }
.tpu-tg-pick { position: absolute; top: .5rem; left: .5rem; z-index: 2; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.tpu-tg-pick input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--primary-color, #4e54c8); }
.tpu-tg-body { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .8rem .85rem; flex: 1; }
.tpu-tg-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.3; color: inherit; text-decoration: none; font-size: .95rem; }
.tpu-tg-body .tpu-btn { margin-top: auto; align-self: flex-start; }
.tpu-tg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem 1.25rem; margin-top: 1rem; }
.tpu-tg-sum { font-size: 1.05rem; }
.tpu-tg-sum strong { font-size: 1.25rem; color: var(--primary-color, #4e54c8); }
.tpu-tg-foot .tpu-btn { padding: .65rem 1.2rem; font-size: .95rem; }

/* Може да ви хареса — количката */
.tpu-upsell { margin: 1.5rem 0 2rem; }
.tpu-up-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .tpu-up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* …и компактно в страничната количка */
.tpu-upsell.is-compact { margin: 1.25rem 0 .5rem; padding-top: 1rem; border-top: 1px solid rgba(15, 23, 42, .1); }
.tpu-upsell.is-compact .tpu-h { font-size: 1rem; margin-bottom: .6rem; }
.tpu-up-list { display: flex; flex-direction: column; gap: .6rem; }
.tpu-up-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .65rem; }
.tpu-up-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: #f1f5f9; }
.tpu-up-row .tpu-tg-name { font-size: .88rem; }
.tpu-up-row .tpu-price { font-size: .85rem; }
.tpu-up-row .tpu-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
