/* Borsoni e zaini: category and product pages */
.tslab-bag-page .tslab-pp-trust + ul, .tslab-bag-page .product-images { display: none !important; }

/* ---------- product: above the designer and next to the cart ---------- */
.tb-head { margin: 0 0 10px; }
.tb-head-name { display: none; margin: 0 0 8px; font: 500 26px/1.2 Oswald, sans-serif; color: #000; }
.tb-head-name b { font-weight: 500; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.tb-chips span { border: 1px solid #ddd; border-radius: 20px; padding: 3px 13px; font-size: 18px; line-height: 1.3; color: #222; }
.tb-chips .on { border-color: #d1008b; color: #b0007a; font-weight: 600; }
.tb-ticks { list-style: none !important; margin: 10px 0 14px !important; padding: 0 !important; text-align: left; }
.tb-ticks li { position: relative; list-style: none !important; margin: 0 0 7px !important; padding: 0 0 0 26px; font-size: 18px; line-height: 1.3; color: #222; }
.tb-ticks li::before { content: "✓"; position: absolute; left: 2px; color: #d1008b; font-weight: 700; }
/* "Su ordinazione" (Fitness T) */
.tb-order { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 2px solid #d1008b; border-radius: 10px; background: #fdf2f8; text-align: left; font-size: 17px; line-height: 1.4; color: #222; }
.tb-order b { flex: none; padding: 3px 10px; border-radius: 6px; background: #d1008b; color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tb-order strong { color: #b0007a; }
.tslab-bag > .tb-order { margin: 0 0 28px; font-size: 19px; }
@media (max-width: 549px) { .tb-order { flex-direction: column; gap: 6px; font-size: 16px; } }

/* ---------- product: the page under the designer ---------- */
.tslab-bag { max-width: 1180px; margin: 0 auto; text-align: left; color: #222; font-size: 19px; line-height: 1.5; }
.tslab-bag h2, .tslab-bag h3 { font-family: Oswald, sans-serif; font-weight: 500; color: #000; line-height: 1.15; text-transform: none; letter-spacing: 0; text-wrap: balance; }
.tslab-bag h2 { font-size: 32px; margin: 60px 0 18px; }
.tslab-bag img { display: block; width: 100%; height: auto; }
.tslab-bag p { margin: 0 0 14px; }
.tb-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; padding-top: 16px; }
.tb-story-img img { aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.tb-story h2 { font-size: 40px; margin: 0 0 14px; }
.tslab-bag .tb-k { color: #c40083; font-weight: 600; margin: 0 0 6px; }
.tb-text { font-size: 21px; }
.tb-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; }
.tb-specs div { background: #f6f6f6; border-radius: 12px; padding: 11px 15px; line-height: 1.3; }
.tb-specs dt, .tb-specs dd { display: block; float: none; width: auto; padding: 0; border: 0; text-transform: none; letter-spacing: 0; }
.tb-specs dt { font-size: 16px; font-weight: 400; color: #636363; margin: 0; }
.tb-specs dd { margin: 0; font-size: 20px; font-weight: 600; color: #000; }
.tb-det { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tb-det figure { margin: 0; }
.tb-det img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.tb-det figcaption { margin-top: 10px; font-size: 19px; font-style: normal; color: #222; text-align: left; }
.tb-det figcaption b { display: block; font: 500 21px/1.3 Oswald, sans-serif; color: #000; }
.tb-how { background: #000; color: #fff; border-radius: 16px; padding: 38px 40px; margin-top: 60px; }
.tslab-bag .tb-how h2 { color: #fff; margin: 0 0 18px; }
.tb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 26px; }
.tb-steps b { display: block; font: 500 22px/1.3 Oswald, sans-serif; }
.tb-steps i { display: block; width: 38px; height: 38px; border-radius: 50%; background: #d1008b; text-align: center; font: 600 19px/38px Oswald, sans-serif; margin-bottom: 10px; }
.tslab-bag .tb-btn { display: inline-block; background: #d1008b; color: #fff; padding: 11px 26px; border-radius: 30px; font-weight: 600; font-size: 20px; text-decoration: none; }
.tslab-bag .tb-btn:hover { background: #a8006f; color: #fff; }
.tslab-bag .tb-black { background: #000; }
.tslab-bag .tb-sub { margin: -10px 0 18px; color: #555; }
.tb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tslab-bag .tb-card { display: flex; align-items: center; border: 1px solid #e6e6e6; border-radius: 14px; overflow: hidden; text-decoration: none; color: #222; }
.tb-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.12); }
.tb-card-img { flex: 0 0 42%; }
.tb-card-tx { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.tb-card-tx b { font: 500 23px/1.2 Oswald, sans-serif; color: #000; }
.tb-card-pr { font-size: 22px; font-weight: 600; color: #000; }
.tb-end { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: start; margin-top: 60px; padding-bottom: 20px; }
.tb-end h2 { margin: 0 0 8px; }
.tslab-bag details { border-bottom: 1px solid #ddd; padding: 13px 0; }
.tslab-bag summary { font: 500 20px/1.3 Oswald, sans-serif; color: #000; cursor: pointer; }
.tslab-bag details p { margin: 8px 0 0; }
.tslab-bag details a { color: #b0007a; text-decoration: underline; }
.tb-b2b { background: #f6f6f6; border-radius: 16px; padding: 26px; }
.tb-b2b h3 { font-size: 24px; margin: 0 0 8px; }
#tslab-cfg { scroll-margin-top: 130px; }

/* phones: the layout puts the page in a closed "Descrizione prodotto": always open, without its title */
.tslab-bag-page .accordion-item:has(.tslab-bag) > .accordion-title { display: none; }
.tslab-bag-page .accordion-item:has(.tslab-bag) > .accordion-inner { display: block !important; height: auto !important; padding: 0; }

/* ---------- category ---------- */
.tslab-bag-cat .tslab-intro { box-sizing: border-box; max-width: 1250px; width: calc(100% - 30px); margin: 20px auto 0; padding: 56px calc(50% + 30px) 56px 44px; border-radius: 16px; text-align: left; color: #eee; background: #111 url(https://tslab.it/wp-content/uploads/2022/02/heritage-giro.jpg) right 58% / 50% auto no-repeat; min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.tslab-bag-cat .tslab-intro::before { content: "Ricamo incluso nel prezzo"; color: #ff5cc6; font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.tslab-bag-cat .tslab-intro h1 { font: 500 42px/1.15 Oswald, sans-serif; color: #fff; margin: 0 0 14px; text-align: left; text-wrap: balance; }
.tslab-bag-cat .tslab-intro h1::after { display: none; }
.tslab-bag-cat .tslab-intro p { font-size: 21px; line-height: 1.45; color: #eee; margin: 0; text-align: left; }
.tb-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 10px; }
.tb-facts div { background: #f6f6f6; border-radius: 12px; padding: 13px 16px; font-size: 18px; line-height: 1.3; color: #222; }
.tb-facts b { display: block; font-size: 20px; color: #000; }
.tslab-bag-cat .products .tb-group { flex-basis: 100%; max-width: 100%; width: 100%; padding-top: 26px; padding-bottom: 12px; }
.tb-group h2 { font: 500 30px/1.2 Oswald, sans-serif; color: #000; margin: 0; }
.tb-group p { font-size: 19px; color: #555; margin: 2px 0 0; }
:is(.tslab-bag-cat, .tslab-cards) .products .product-small.col > .col-inner { position: relative; height: 100%; border: 1px solid #e6e6e6; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
:is(.tslab-bag-cat, .tslab-cards) .products .product-small.col > .col-inner:hover { box-shadow: 0 8px 26px rgba(0,0,0,.12); }
.tb-tag { position: absolute; left: 12px; top: 12px; z-index: 3; background: #d1008b; color: #fff; border-radius: 20px; padding: 3px 12px; font-weight: 600; font-size: 17px; line-height: 1.3; pointer-events: none; }
:is(.tslab-bag-cat, .tslab-cards) .products .box-text { text-align: left; padding: 14px 18px 18px; height: auto !important; min-height: 0; }
:is(.tslab-bag-cat, .tslab-cards) .products .box-text .name a { font: 500 23px/1.2 Oswald, sans-serif; color: #000; }
:is(.tslab-bag-cat, .tslab-cards) .products .price-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; height: auto !important; }
.tb-line { flex: 0 0 100%; font-size: 19px; line-height: 1.35; color: #444; }
.tb-dots { flex: 0 0 100%; display: flex; gap: 6px; align-items: center; color: #636363; font-size: 17px; }
.tb-dots i { width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
:is(.tslab-bag-cat, .tslab-cards) .products .price-wrapper .price { margin: 0; }
:is(.tslab-bag-cat, .tslab-cards) .products .price-wrapper .amount { font-size: 25px; color: #000; }
.tb-go { background: #000; color: #fff !important; border-radius: 22px; padding: 7px 18px; font-weight: 600; font-size: 18px; line-height: 1.3; }
.tb-go:hover { background: #d1008b; }

/* ---------- smaller screens ---------- */
@media (max-width: 849px) {
  .tb-head-name { display: block; text-align: center; }
  .tb-chips span { font-size: 17px; padding: 2px 11px; }
  .tb-story, .tb-end, .tb-steps { grid-template-columns: 1fr; gap: 22px; }
  .tb-story h2 { font-size: 32px; }
  .tslab-bag h2 { margin-top: 44px; font-size: 29px; }
  .tslab-bag .tb-story h2, .tslab-bag .tb-end h2 { margin-top: 0; }
  .tb-det { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; }
  .tb-det figure { flex: 0 0 78%; scroll-snap-align: start; }
  .tb-how { padding: 28px 22px; margin-top: 40px; }
  .tb-end { margin-top: 44px; }
  .tb-cards { grid-template-columns: 1fr; gap: 12px; }
  .tb-card-img { flex-basis: 36%; }
  .tslab-bag-cat .tslab-intro { padding: 32px calc(50% + 20px) 32px 26px; }
  .tslab-bag-cat .tslab-intro h1 { font-size: 31px; }
  .tslab-bag-cat .tslab-intro p { font-size: 19px; }
  .tb-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 549px) {
  :is(.tslab-bag-cat, .tslab-cards) .products .box-image a img:first-child { object-fit: contain; padding: 34px 8px 4px; }
  .tb-tag { font-size: 14px; left: 8px; top: 8px; padding: 2px 9px; }
  :is(.tslab-bag-cat, .tslab-cards) .products .box-text { padding: 10px 12px 14px; }
  :is(.tslab-bag-cat, .tslab-cards) .products .box-text .name a { font-size: 19px; }
  .tb-line { font-size: 17px; }
  .tslab-bag-cat .tslab-intro { padding: calc(100vw - 80px) 22px 28px; min-height: 0; margin-top: 14px; background-position: center -70px; background-size: 100% auto; }
  :is(.tslab-bag-cat, .tslab-cards) .products .price-wrapper .tb-go { flex: 0 0 100%; text-align: center; margin: 0; padding: 7px 8px; }
  .tb-dots { font-size: 16px; gap: 4px; white-space: nowrap; }
  .tb-dots i { width: 14px; height: 14px; }
  .tb-facts div { padding: 11px 13px; font-size: 17px; }
}

/* ---------- polo ---------- */
.tb-det4 { grid-template-columns: repeat(4, 1fr); }
.tb-det4 img { object-fit: contain; background: #f6f6f6; }
.tslab-page-polo .tb-story-img img { aspect-ratio: 4/5; object-position: 50% 10%; }
@media (max-width: 849px) { .tb-det4 figure { flex-basis: 46%; } }
/* the drawings carry a small "Fronte" caption in the corner: cut it off */
.tslab-page-polo .tb-det4 figure { position: relative; }
.tslab-page-polo .tb-det4 figure::after { content: ""; position: absolute; left: 0; top: 0; width: 20%; margin-top: 91%; padding-top: 9%; background: #f6f6f6; border-bottom-left-radius: 12px; }

/* ---------- t-shirts and sweatshirts (sizes: polos too) ---------- */
.tslab-page-maglia .tb-story-img img { aspect-ratio: 4/5; object-position: 50% 10%; }
.tb-cols { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.tb-cols span { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; color: #000; }
.tb-cols i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.tb-sizes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 46px; align-items: center; margin-top: 60px; }
.tb-sizes.tb-solo { grid-template-columns: minmax(0, 1fr); }
.tb-sizes h2 { margin-top: 0; }
.tb-sizes h3 { font-size: 24px; margin: 22px 0 6px; }
.tb-sizes-img img { aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.tb-scroll { overflow-x: auto; }
.tb-sizes table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 18px; line-height: 1.3; color: #222; }
.tb-sizes th, .tb-sizes td { padding: 11px 8px !important; border: 0; border-bottom: 1px solid #e3e3e3; text-align: center; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 18px; color: #222; }
.tb-sizes th { font-weight: 600; color: #000; }
.tb-sizes tr > :first-child { text-align: left; }
.tb-sizes thead th { background: #f6f6f6; border-bottom: 0; }
.tb-sizes .tb-ask { font-size: 15px; color: #636363; }
.tslab-bag .tb-note { font-size: 17px; color: #555; }
@media (max-width: 849px) {
  .tb-sizes { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 44px; }
  .tb-sizes tr > :first-child { position: sticky; left: 0; background: #fff; }
  .tb-sizes thead tr > :first-child { background: #f6f6f6; }
  .tb-cols { gap: 12px 18px; }
}

/* ---------- gallery of work we did (apron), opens big ---------- */
.tb-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.tb-gal a { position: relative; display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.tb-gal img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.tb-gal a:hover img { transform: scale(1.04); }
.tb-gal span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 16px; line-height: 1.3; }
.tb-gal4, .tb-gal7 { grid-template-columns: repeat(4, 1fr); }
.tb-gal7 a:first-child { grid-column: span 2; }
.tb-gal7 a:first-child img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
@media (max-width: 549px) { .tb-gal, .tb-gal4, .tb-gal7 { grid-template-columns: repeat(2, 1fr); gap: 8px; } .tb-gal7 a:first-child img { position: static; aspect-ratio: 2; height: auto; } .tb-gal span { font-size: 13px; left: 6px; bottom: 6px; padding: 2px 8px; } }
.tb-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.tb-lb[hidden] { display: none; }
.tb-lb figure { margin: 0; max-width: calc(100vw - 120px); text-align: center; }
.tb-lb img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; }
.tb-lb figcaption { color: #fff; font-size: 17px; margin-top: 10px; }
.tb-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 54px; line-height: 1; padding: 10px 16px; margin: 0; cursor: pointer; min-height: 0; }
.tb-lb .tb-lb-x { top: 6px; right: 8px; font-size: 44px; }
.tb-lb .tb-lb-p { left: 4px; top: 50%; transform: translateY(-50%); }
.tb-lb .tb-lb-n { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 549px) { .tb-lb figure { max-width: 100vw; } .tb-lb .tb-lb-p, .tb-lb .tb-lb-n { top: auto; bottom: 8px; transform: none; } }
html.tb-lb-on { overflow: hidden; }
