.elementor-widget-theme-archive-title .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-9521 .elementor-element.elementor-element-6dcb514 .elementor-heading-title{font-family:"Oswald", Sans-serif;font-weight:600;color:#C1022C;}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products{--products-title-color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.products-heading-show .related-products > h2, .elementor-widget-wc-archive-products.products-heading-show .upsells > h2, .elementor-widget-wc-archive-products.products-heading-show .cross-sells > h2{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del {font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-wc-archive-products .elementor-products-nothing-found{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-9521 .elementor-element.elementor-element-1d0db4b.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}.elementor-9521 .elementor-element.elementor-element-1d0db4b.elementor-wc-products ul.products li.product span.onsale{display:block;}@media(max-width:1024px){.elementor-9521 .elementor-element.elementor-element-1d0db4b.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(max-width:767px){.elementor-9521 .elementor-element.elementor-element-1d0db4b.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}/* Start custom CSS *//* =========================================================
   TESLA GAMES — ARCHIVIO PRODOTTI (negozio, categorie, tag)
   Classi sulle Sezioni:
     tg-archive-head → Breadcrumb, Titolo archivio, Descrizione archivio
     tg-archive      → Archivio Prodotti
   Rosso brand #C4161C
   ========================================================= */

/* ---------- Intestazione ---------- */
.tg-archive-head{padding:24px 0 8px !important}
.tg-archive-head .elementor-widget{margin:0 !important}

/* Briciole */
.tg-archive-head .woocommerce-breadcrumb{
  font:400 13px/1.6 'Inter',sans-serif !important;
  color:#6B6B70 !important; margin:0 0 18px !important;
}
.tg-archive-head .woocommerce-breadcrumb a{color:#6B6B70 !important; text-decoration:none !important; transition:color .15s}
.tg-archive-head .woocommerce-breadcrumb a:hover{color:#C4161C !important}

/* Titolo con barretta rossa */
.tg-archive-head .elementor-widget-theme-archive-title{margin-bottom:14px !important}
.tg-archive-head .elementor-widget-theme-archive-title .elementor-heading-title{
  display:flex; align-items:center; gap:14px;
  font:600 40px/1.1 'Oswald',sans-serif !important;
  text-transform:uppercase; letter-spacing:.01em;
  color:#1D1D1F !important; margin:0 !important;
}
.tg-archive-head .elementor-widget-theme-archive-title .elementor-heading-title::before{
  content:""; flex:none; width:7px; height:34px; border-radius:2px; background:#C4161C;
}

/* Descrizione */
.tg-archive-head .elementor-widget-woocommerce-archive-description,
.tg-archive-head .term-description,
.tg-archive-head .term-description p,
.tg-archive-head .page-description,
.tg-archive-head .page-description p{
  max-width:820px;
  font:400 15px/1.6 'Inter',sans-serif !important;
  color:#6B6B70 !important;
}
.tg-archive-head .term-description p,
.tg-archive-head .page-description p{margin:0 0 12px !important}

/* ---------- Barra: risultati + ordinamento ---------- */
.tg-archive{padding:16px 0 64px !important}
.tg-archive .elementor-widget{margin:0 !important}
.tg-archive .elementor-widget-wc-archive-products .woocommerce{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
.tg-archive .elementor-widget-wc-archive-products .woocommerce > *{flex:1 1 100%}
.tg-archive .woocommerce-result-count,
.tg-archive .woocommerce-ordering{flex:0 0 auto !important; float:none !important; margin:0 0 24px !important}
.tg-archive .woocommerce-result-count{
  font:400 14px/42px 'Inter',sans-serif !important; color:#6B6B70 !important;
}
.tg-archive .woocommerce-ordering select{
  box-sizing:border-box; height:42px !important; min-width:220px;
  padding:0 40px 0 14px !important;
  border:1px solid #E7E4DF !important; border-radius:10px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat !important;
  -webkit-appearance:none; appearance:none;
  font:500 14px 'Inter',sans-serif !important; color:#1D1D1F !important;
  cursor:pointer; box-shadow:none !important;
}
.tg-archive .woocommerce-ordering select:focus{outline:none; border-color:#C4161C !important}

/* ---------- Griglia card ---------- */
.tg-archive ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:28px 24px !important; margin:0 !important; padding:0 !important;
}
.tg-archive ul.products::before,
.tg-archive ul.products::after{display:none !important}
.tg-archive ul.products li.product{
  position:relative; display:flex !important; flex-direction:column;
  width:auto !important; float:none !important; margin:0 !important;
  padding:0 0 16px !important;
  background:#fff; border:1px solid #E7E4DF; border-radius:12px; overflow:hidden;
  text-align:left !important;
  transition:box-shadow .2s, transform .2s;
}
.tg-archive ul.products li.product *{text-align:left !important}
.tg-archive ul.products li.product::before{
  content:""; position:absolute; top:0; left:0;
  width:100%; aspect-ratio:1/1; background:#F7F5F2;
}
.tg-archive ul.products li.product:hover{
  box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-2px);
}
.tg-archive li.product a.woocommerce-LoopProduct-link{
  position:relative; display:flex; flex-direction:column; flex:1;
  text-decoration:none; color:#1D1D1F;
}
.tg-archive li.product a img{
  display:block; box-sizing:border-box;
  width:100% !important; height:auto !important; aspect-ratio:1/1;
  object-fit:contain; padding:9%; mix-blend-mode:multiply;
  margin:0 0 14px !important; border-radius:0 !important;
}
/* Categoria sopra il titolo (se lo snippet la stampa anche qui) */
.tg-archive li.product .tg-tag{
  display:block; padding:0 16px; margin:0 0 4px;
  font:600 11px/1.4 'Inter',sans-serif;
  text-transform:uppercase; letter-spacing:.08em; color:#C4161C;
}
.tg-archive li.product .woocommerce-loop-product__title{
  font:600 15px/1.4 'Inter',sans-serif !important; color:#1D1D1F !important;
  padding:0 16px !important; margin:0 0 10px !important; flex:1;
}
.tg-archive li.product .price{
  display:flex !important; align-items:center; gap:6px; flex-wrap:wrap;
  min-height:42px; margin:auto 0 0 !important; padding:0 66px 0 16px;
  font:600 20px 'Oswald',sans-serif !important; color:#1D1D1F !important;
}
.tg-archive li.product .price del{font-size:14px;font-weight:400;color:#6B6B70}
.tg-archive li.product .price ins{text-decoration:none;color:#C4161C}

/* Tasto carrello: quadrato rosso con icona */
html body .tg-archive.tg-archive ul.products li.product a.button{
  display:block !important; visibility:visible !important; opacity:1 !important;
  position:absolute !important; z-index:3 !important;
  top:auto !important; left:auto !important; right:16px !important; bottom:16px !important;
  transform:none !important;
  width:42px !important; height:42px !important; min-width:0 !important; min-height:0 !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:10px !important; box-shadow:none !important;
  background-color:#C4161C !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11L21 7H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") !important;
  background-position:center !important; background-size:20px 20px !important; background-repeat:no-repeat !important;
  font-size:0 !important; line-height:0 !important; text-indent:-9999px !important;
  color:transparent !important; overflow:hidden !important;
  transition:background-color .15s;
}
html body .tg-archive.tg-archive ul.products li.product a.button:hover{background-color:#9E1015 !important}
html body .tg-archive.tg-archive ul.products li.product a.button.loading{opacity:.6 !important}
html body .tg-archive.tg-archive ul.products li.product a.button.added{
  background-color:#2E7D32 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
}
html body .tg-archive.tg-archive ul.products li.product a.button img,
html body .tg-archive.tg-archive ul.products li.product a.button::before,
html body .tg-archive.tg-archive ul.products li.product a.button::after{display:none !important}
.tg-archive li.product .added_to_cart{display:none !important}

/* Prodotti esauriti: etichetta, foto sbiadita, tasto grigio con freccia */
.tg-archive ul.products li.product.outofstock a img{opacity:.55}
.tg-archive ul.products li.product.outofstock::after{
  content:"Esaurito";
  position:absolute; top:12px; left:12px; z-index:2;
  padding:4px 10px; border-radius:6px;
  background:#1D1D1F; color:#fff;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}
html body .tg-archive.tg-archive ul.products li.product.outofstock a.button{
  background-color:#E7E4DF !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
  background-size:18px 18px !important;
}
html body .tg-archive.tg-archive ul.products li.product.outofstock a.button:hover{background-color:#D6D2CB !important}

/* Badge "In offerta" */
.tg-archive li.product .onsale{
  position:absolute; top:12px; left:12px; right:auto; z-index:2;
  min-width:0; min-height:0; margin:0; padding:4px 10px;
  background:#C4161C; color:#fff; border-radius:6px;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}

/* ---------- Paginazione ---------- */
.tg-archive .woocommerce-pagination{margin-top:40px !important; text-align:center}
.tg-archive .woocommerce-pagination ul.page-numbers{
  display:inline-flex !important; gap:8px;
  margin:0 !important; padding:0 !important; border:0 !important;
}
.tg-archive .woocommerce-pagination ul.page-numbers li{border:0 !important; margin:0 !important; float:none !important}
.tg-archive .woocommerce-pagination .page-numbers a,
.tg-archive .woocommerce-pagination .page-numbers span{
  display:grid !important; place-items:center;
  min-width:40px; height:40px; padding:0 10px !important; box-sizing:border-box;
  border:1px solid #E7E4DF !important; border-radius:10px !important;
  background:#fff !important; color:#1D1D1F !important;
  font:600 14px/1 'Inter',sans-serif !important; text-decoration:none !important;
  transition:border-color .15s, color .15s;
}
.tg-archive .woocommerce-pagination .page-numbers a:hover{border-color:#C4161C !important; color:#C4161C !important}
.tg-archive .woocommerce-pagination .page-numbers span.current{
  background:#C4161C !important; border-color:#C4161C !important; color:#fff !important;
}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .tg-archive ul.products{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}

/* ---------- Telefono ---------- */
@media (max-width:767px){
  .tg-archive-head .elementor-widget-theme-archive-title .elementor-heading-title{font-size:30px !important}
  .tg-archive-head .elementor-widget-theme-archive-title .elementor-heading-title::before{height:26px; width:6px}
  .tg-archive .woocommerce-result-count{flex:1 1 100% !important; margin:0 0 8px !important; line-height:1.4 !important}
  .tg-archive .woocommerce-ordering{flex:1 1 100% !important}
  .tg-archive .woocommerce-ordering select{width:100%}
  .tg-archive ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px 12px !important}
  .tg-archive li.product .woocommerce-loop-product__title{font-size:13.5px !important; padding:0 12px !important}
  .tg-archive li.product .price{font-size:17px !important; padding:0 56px 0 12px; min-height:38px}
  html body .tg-archive.tg-archive ul.products li.product a.button{
    width:38px !important; height:38px !important; right:12px !important; bottom:12px !important;
  }
  .tg-archive ul.products li.product{padding-bottom:12px !important}
}/* End custom CSS */