/* =========================================================
   TESSUTI CREATIVI - PRODUCT DETAIL UI
   Prodotto singolo, varianti, tab, correlati
   ========================================================= */

:root{
  --tc-product-bg:#f7f3ed;
  --tc-product-paper:#fffdf9;
  --tc-product-card:#ffffff;
  --tc-product-ink:#2a1715;
  --tc-product-text:#604f48;
  --tc-product-muted:#9a887c;
  --tc-product-bordeaux:#67263a;
  --tc-product-bordeaux-dark:#491828;
  --tc-product-gold:#c2a165;
  --tc-product-gold-soft:#ead7b8;
  --tc-product-border:rgba(72,37,28,.11);
  --tc-product-border-strong:rgba(103,38,58,.18);
  --tc-product-shadow:0 24px 70px rgba(54,28,21,.09);
  --tc-product-shadow-soft:0 12px 30px rgba(54,28,21,.06);
  --tc-product-radius:28px;
  --tc-product-radius-sm:18px;
  --tc-product-max:1180px;
}

body.single-product{
  background:
    radial-gradient(circle at 18% 0%, rgba(194,161,101,.14), transparent 34%),
    linear-gradient(180deg, #fffaf2 0%, var(--tc-product-bg) 42%, #fffdf9 100%);
}

body.single-product .hero-section,
body.single-product .page-header,
body.single-product .entry-header,
body.single-product .ct-page-title{
  display:none !important;
}

body.single-product .site-main,
body.single-product main#main,
body.single-product .content-area{
  overflow:visible;
}

.tc-product-detail{
  width:min(var(--tc-product-max), calc(100% - 34px));
  margin:0 auto;
  padding:34px 0 72px;
  color:var(--tc-product-text);
}

.tc-product-detail *{
  box-sizing:border-box;
}

.tc-product-breadcrumb{
  margin:0 0 18px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--tc-product-muted);
}

.tc-product-breadcrumb .woocommerce-breadcrumb{
  margin:0;
  color:var(--tc-product-muted);
}

.tc-product-breadcrumb a{
  color:var(--tc-product-bordeaux);
  text-decoration:none;
}

.tc-product-breadcrumb a:hover{
  color:var(--tc-product-bordeaux-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}

.tc-product-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(390px, .82fr);
  gap:30px;
  align-items:start;
}

.tc-product-gallery-panel,
.tc-product-buy-panel,
.tc-product-editorial-note,
.tc-product-content-block,
.tc-product-upsell,
.tc-product-related{
  background:rgba(255,255,255,.82);
  border:1px solid var(--tc-product-border);
  border-radius:var(--tc-product-radius);
  box-shadow:var(--tc-product-shadow-soft);
}

.tc-product-gallery-panel{
  position:sticky;
  top:28px;
  padding:18px;
  overflow:hidden;
}

.admin-bar .tc-product-gallery-panel{
  top:60px;
}

.tc-product-gallery-panel .onsale,
.tc-product-sale-badge{
  position:absolute !important;
  left:26px !important;
  top:26px !important;
  z-index:4;
  min-width:auto !important;
  min-height:auto !important;
  padding:8px 12px !important;
  border-radius:999px !important;
  background:var(--tc-product-bordeaux) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.4) !important;
  font-family:Georgia, 'Times New Roman', serif !important;
  font-size:11px !important;
  font-weight:700 !important;
  line-height:1 !important;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 10px 22px rgba(103,38,58,.18);
}

.tc-product-gallery-panel .woocommerce-product-gallery{
  width:100% !important;
  float:none !important;
  margin:0 !important;
  opacity:1 !important;
}

.tc-product-gallery-panel .woocommerce-product-gallery__wrapper{
  margin:0 !important;
}

.tc-product-gallery-panel .woocommerce-product-gallery__image{
  overflow:hidden;
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(246,241,233,.92));
  border:1px solid rgba(72,37,28,.08);
}

.tc-product-gallery-panel .woocommerce-product-gallery__image a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:520px;
  background:transparent;
}

.tc-product-gallery-panel .woocommerce-product-gallery__image img{
  width:100% !important;
  height:auto !important;
  max-height:640px;
  object-fit:contain;
  margin:0 auto;
  display:block;
}

.tc-product-gallery-panel .flex-control-thumbs{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
  margin:14px 0 0 !important;
  padding:0 !important;
}

.tc-product-gallery-panel .flex-control-thumbs li{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  list-style:none;
}

.tc-product-gallery-panel .flex-control-thumbs img{
  width:100% !important;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(72,37,28,.10);
  opacity:.58;
  transition:opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.tc-product-gallery-panel .flex-control-thumbs img.flex-active,
.tc-product-gallery-panel .flex-control-thumbs img:hover{
  opacity:1;
  border-color:rgba(103,38,58,.32);
  transform:translateY(-1px);
}

.tc-product-buy-panel{
  padding:34px;
  box-shadow:var(--tc-product-shadow);
}

.tc-product-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 16px;
}

.tc-product-category,
.tc-product-stock{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
}

.tc-product-category{
  color:var(--tc-product-bordeaux);
  background:rgba(103,38,58,.06);
  border:1px solid rgba(103,38,58,.12);
  font-family:Georgia, 'Times New Roman', serif;
  font-weight:700;
}

.tc-product-category:hover{
  color:#fff;
  background:var(--tc-product-bordeaux);
  border-color:var(--tc-product-bordeaux);
}

.tc-product-stock{
  font-family:Inter, system-ui, sans-serif;
  font-weight:700;
  border:1px solid rgba(72,37,28,.10);
  color:var(--tc-product-muted);
  background:#fff;
}

.tc-product-stock.is-in-stock{
  color:#34633d;
  background:rgba(81,150,91,.08);
  border-color:rgba(81,150,91,.18);
}

.tc-product-stock.is-out-stock{
  color:#8e3c3c;
  background:rgba(142,60,60,.08);
  border-color:rgba(142,60,60,.18);
}

.tc-product-title{
  margin:0;
  color:var(--tc-product-ink);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:clamp(34px, 4.4vw, 62px);
  line-height:.96;
  letter-spacing:-.045em;
  font-weight:600;
}

.tc-product-rating{
  margin:14px 0 0;
}

.tc-product-rating .woocommerce-product-rating{
  margin:0 !important;
  display:flex;
  align-items:center;
  gap:12px;
}

.tc-product-price{
  margin:22px 0 18px;
  padding:0 0 20px;
  border-bottom:1px solid rgba(72,37,28,.10);
}

.tc-product-price p.price,
.tc-product-price .price{
  margin:0 !important;
  color:var(--tc-product-bordeaux) !important;
  font-family:Georgia, 'Times New Roman', serif;
  font-size:clamp(32px, 3vw, 46px) !important;
  line-height:1;
  font-weight:700;
  letter-spacing:-.035em;
}

.tc-product-price del{
  margin-right:10px;
  color:rgba(42,23,21,.35) !important;
  font-size:.58em;
  font-weight:400;
}

.tc-product-price ins{
  text-decoration:none;
}

.tc-product-short{
  margin:0 0 22px;
  color:var(--tc-product-text);
  font-size:16px;
  line-height:1.75;
}

.tc-product-short p{
  margin:0 0 12px;
}

.tc-product-short p:last-child{
  margin-bottom:0;
}

.tc-product-facts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin:0 0 22px;
}

.tc-product-fact{
  min-height:76px;
  padding:14px;
  border:1px solid rgba(72,37,28,.09);
  border-radius:18px;
  background:linear-gradient(180deg, #fff 0%, rgba(248,243,236,.75) 100%);
}

.tc-product-fact span{
  display:block;
  margin:0 0 6px;
  color:var(--tc-product-muted);
  font-family:Inter, system-ui, sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tc-product-fact strong{
  display:block;
  color:var(--tc-product-ink);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:15px;
  line-height:1.25;
  font-weight:600;
}

.tc-product-purchase{
  margin:0 0 18px;
  padding:20px;
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(103,38,58,.045), rgba(194,161,101,.055));
  border:1px solid rgba(103,38,58,.12);
}

.tc-product-purchase form.cart{
  margin:0 !important;
}

.tc-product-purchase .quantity{
  margin:0 !important;
}

.tc-product-purchase .quantity input.qty{
  width:82px;
  min-height:52px;
  border-radius:999px;
  border:1px solid rgba(103,38,58,.16);
  background:#fff;
  color:var(--tc-product-ink);
  font-weight:700;
  text-align:center;
}

.tc-product-purchase form.cart:not(.variations_form){
  display:flex;
  align-items:center;
  gap:12px;
}

.tc-product-purchase button.single_add_to_cart_button,
.tc-product-purchase .single_add_to_cart_button,
.tc-product-purchase .added_to_cart{
  min-height:54px !important;
  padding:0 30px !important;
  border-radius:999px !important;
  background:var(--tc-product-bordeaux) !important;
  color:#fff !important;
  border:1px solid var(--tc-product-bordeaux) !important;
  font-family:Georgia, 'Times New Roman', serif !important;
  font-size:14px !important;
  font-weight:700 !important;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 14px 26px rgba(103,38,58,.17) !important;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease !important;
}

.tc-product-purchase button.single_add_to_cart_button:hover,
.tc-product-purchase .single_add_to_cart_button:hover,
.tc-product-purchase .added_to_cart:hover{
  background:var(--tc-product-bordeaux-dark) !important;
  border-color:var(--tc-product-bordeaux-dark) !important;
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(73,24,40,.22) !important;
}

.tc-product-purchase .variations{
  width:100%;
  margin:0 0 16px !important;
  border:0 !important;
}

.tc-product-purchase .variations tbody,
.tc-product-purchase .variations tr,
.tc-product-purchase .variations td,
.tc-product-purchase .variations th{
  display:block;
  border:0 !important;
  padding:0 !important;
  background:transparent !important;
}

.tc-product-purchase .variations tr{
  margin:0 0 14px;
}

.tc-product-purchase .variations label{
  display:block;
  margin:0 0 7px;
  color:var(--tc-product-bordeaux);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.tc-product-purchase .variations select{
  width:100%;
  min-height:52px;
  padding:0 46px 0 16px;
  border:1px solid rgba(103,38,58,.16);
  border-radius:999px;
  background-color:#fff;
  color:var(--tc-product-ink);
  font-weight:650;
}

.tc-product-purchase .reset_variations{
  display:inline-flex !important;
  margin:9px 0 0 !important;
  color:var(--tc-product-muted);
  font-size:12px;
  text-decoration:none;
}

.tc-product-purchase .reset_variations:hover{
  color:var(--tc-product-bordeaux);
  text-decoration:underline;
  text-underline-offset:3px;
}

.tc-product-purchase .single_variation_wrap{
  margin-top:10px;
}

.tc-product-purchase .woocommerce-variation-price{
  margin:0 0 14px;
}

.tc-product-purchase .woocommerce-variation-price .price{
  color:var(--tc-product-bordeaux);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:28px;
  font-weight:700;
}

.tc-product-purchase .woocommerce-variation-add-to-cart{
  display:flex;
  align-items:center;
  gap:12px;
}

.tc-product-purchase .variable-items-wrapper{
  gap:9px !important;
}

.tc-product-purchase .variable-item,
.tc-product-purchase .button-variable-item,
.tc-product-purchase .color-variable-item{
  border-radius:999px !important;
  box-shadow:none !important;
  border:1px solid rgba(103,38,58,.16) !important;
}

.tc-product-purchase .variable-item.selected,
.tc-product-purchase .button-variable-item.selected,
.tc-product-purchase .color-variable-item.selected{
  border-color:var(--tc-product-bordeaux) !important;
  box-shadow:0 0 0 3px rgba(103,38,58,.10) !important;
}

.tc-product-support-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.tc-product-support-card{
  display:block;
  padding:14px 16px;
  border:1px solid rgba(72,37,28,.09);
  border-radius:18px;
  background:#fff;
  text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tc-product-support-card:hover{
  transform:translateY(-1px);
  border-color:rgba(194,161,101,.32);
  box-shadow:0 10px 22px rgba(54,28,21,.05);
}

.tc-product-support-card span{
  display:block;
  margin:0 0 4px;
  color:var(--tc-product-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tc-product-support-card strong{
  display:block;
  color:var(--tc-product-ink);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:16px;
  line-height:1.25;
}

.tc-product-support-card.is-whatsapp strong{
  color:#237a3f;
}

.tc-product-editorial-note{
  margin:28px 0 0;
  padding:28px 32px;
  display:grid;
  grid-template-columns:210px minmax(0, 1fr);
  gap:24px;
  align-items:center;
  background:
    linear-gradient(90deg, rgba(103,38,58,.07), rgba(194,161,101,.08)),
    rgba(255,255,255,.86);
}

.tc-product-editorial-note span{
  color:var(--tc-product-bordeaux);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.02em;
}

.tc-product-editorial-note p{
  margin:0;
  color:var(--tc-product-text);
  font-size:16px;
  line-height:1.72;
}

.tc-product-content-block,
.tc-product-upsell,
.tc-product-related{
  margin:28px 0 0;
  padding:28px 32px;
}

.tc-product-content-block .woocommerce-tabs{
  margin:0 !important;
  padding:0 !important;
}

.tc-product-content-block ul.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 24px !important;
  padding:0 !important;
  border:0 !important;
}

.tc-product-content-block ul.tabs::before,
.tc-product-content-block ul.tabs::after{
  display:none !important;
}

.tc-product-content-block ul.tabs li{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

.tc-product-content-block ul.tabs li::before,
.tc-product-content-block ul.tabs li::after{
  display:none !important;
}

.tc-product-content-block ul.tabs li a{
  display:inline-flex !important;
  align-items:center;
  min-height:42px;
  padding:0 16px !important;
  border-radius:999px;
  border:1px solid rgba(103,38,58,.14);
  color:var(--tc-product-bordeaux) !important;
  background:#fff;
  font-family:Georgia, 'Times New Roman', serif;
  font-size:13px;
  font-weight:700 !important;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none !important;
}

.tc-product-content-block ul.tabs li.active a,
.tc-product-content-block ul.tabs li a:hover{
  color:#fff !important;
  background:var(--tc-product-bordeaux);
  border-color:var(--tc-product-bordeaux);
}

.tc-product-content-block .woocommerce-Tabs-panel{
  margin:0 !important;
  padding:0 !important;
  color:var(--tc-product-text);
  font-size:16px;
  line-height:1.76;
}

.tc-product-content-block .woocommerce-Tabs-panel h2,
.tc-product-upsell h2,
.tc-product-related h2{
  margin:0 0 18px;
  color:var(--tc-product-ink);
  font-family:Georgia, 'Times New Roman', serif;
  font-size:clamp(26px, 2.5vw, 38px);
  line-height:1.05;
  letter-spacing:-.035em;
  font-weight:600;
}

.tc-product-content-block table.shop_attributes{
  border:1px solid rgba(72,37,28,.09);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}

.tc-product-content-block table.shop_attributes th,
.tc-product-content-block table.shop_attributes td{
  padding:14px 16px !important;
  border-color:rgba(72,37,28,.08) !important;
  background:transparent !important;
  color:var(--tc-product-text);
}

.tc-product-content-block table.shop_attributes th{
  width:230px;
  color:var(--tc-product-bordeaux);
  font-family:Georgia, 'Times New Roman', serif;
  font-weight:700;
}

.tc-product-upsell ul.products,
.tc-product-related ul.products{
  margin-top:18px !important;
}

.tc-product-detail .woocommerce-message,
.tc-product-detail .woocommerce-info,
.tc-product-detail .woocommerce-error{
  width:100%;
  margin:0 0 22px !important;
  border:1px solid var(--tc-product-border) !important;
  border-radius:18px !important;
  background:#fff !important;
  color:var(--tc-product-ink) !important;
  box-shadow:0 12px 28px rgba(54,28,21,.06);
}

.tc-product-detail .woocommerce-message::before,
.tc-product-detail .woocommerce-info::before{
  color:var(--tc-product-bordeaux) !important;
}

.tc-product-detail .woocommerce-message .button,
.tc-product-detail .woocommerce-info .button{
  border-radius:999px !important;
  background:var(--tc-product-bordeaux) !important;
  color:#fff !important;
}

@media (max-width: 1100px){
  .tc-product-layout{
    grid-template-columns:1fr;
  }

  .tc-product-gallery-panel{
    position:relative;
    top:auto;
  }

  .admin-bar .tc-product-gallery-panel{
    top:auto;
  }

  .tc-product-gallery-panel .woocommerce-product-gallery__image a{
    min-height:420px;
  }
}

@media (max-width: 760px){
  .tc-product-detail{
    width:min(100% - 22px, var(--tc-product-max));
    padding:22px 0 54px;
  }

  .tc-product-layout{
    gap:16px;
  }

  .tc-product-gallery-panel,
  .tc-product-buy-panel,
  .tc-product-editorial-note,
  .tc-product-content-block,
  .tc-product-upsell,
  .tc-product-related{
    border-radius:22px;
  }

  .tc-product-gallery-panel{
    padding:10px;
  }

  .tc-product-gallery-panel .woocommerce-product-gallery__image{
    border-radius:18px;
  }

  .tc-product-gallery-panel .woocommerce-product-gallery__image a{
    min-height:310px;
  }

  .tc-product-gallery-panel .flex-control-thumbs{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:8px;
  }

  .tc-product-buy-panel{
    padding:22px;
  }

  .tc-product-topline{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
    margin-bottom:14px;
  }

  .tc-product-title{
    font-size:38px;
  }

  .tc-product-price{
    margin:18px 0 16px;
    padding-bottom:16px;
  }

  .tc-product-short{
    font-size:15px;
  }

  .tc-product-facts{
    grid-template-columns:1fr;
  }

  .tc-product-purchase{
    padding:16px;
    border-radius:20px;
  }

  .tc-product-purchase form.cart:not(.variations_form),
  .tc-product-purchase .woocommerce-variation-add-to-cart{
    flex-direction:column;
    align-items:stretch;
  }

  .tc-product-purchase .quantity input.qty,
  .tc-product-purchase button.single_add_to_cart_button,
  .tc-product-purchase .single_add_to_cart_button{
    width:100%;
  }

  .tc-product-editorial-note{
    grid-template-columns:1fr;
    gap:10px;
    padding:22px;
  }

  .tc-product-content-block,
  .tc-product-upsell,
  .tc-product-related{
    padding:22px;
  }

  .tc-product-content-block ul.tabs{
    gap:8px;
  }

  .tc-product-content-block ul.tabs li a{
    min-height:38px;
    padding:0 12px !important;
    font-size:11px;
  }

  .tc-product-content-block table.shop_attributes th,
  .tc-product-content-block table.shop_attributes td{
    display:block;
    width:100%;
  }
}

@media (max-width: 430px){
  .tc-product-title{
    font-size:34px;
  }

  .tc-product-gallery-panel .woocommerce-product-gallery__image a{
    min-height:270px;
  }
}

@media (prefers-reduced-motion: reduce){
  .tc-product-detail *,
  .tc-product-detail *::before,
  .tc-product-detail *::after{
    transition:none !important;
    scroll-behavior:auto !important;
  }
}
