/* =========================================================
   CRONOGRAF — SINGLE (Blocksy + Woo) — CLEAN PACK
   ========================================================= */

/* =========================
   0) SINGLE — REMOVE DEFAULTS
   ========================= */
.single-product .woocommerce-product-details__short-description{ display:none !important; }
.single-product .product_meta{ display:none !important; }

.single-product .summary .stock,
.single-product .summary p.stock,
.single-product .summary .woocommerce-stock-availability{
  display:none !important;
}

.single-product .onsale,
.single-product .woocommerce-product-gallery .onsale,
.single-product .woocommerce-product-gallery__wrapper .onsale,
.single-product [class*="reduc"],
.single-product [class*="reducer"],
.single-product [class*="sale-badge"],
.single-product [class*="sale_label"]{
  display:none !important;
}

/* =========================
   1) SINGLE — PAGE / CARD LAYOUT + TYPO
   ========================= */
body.single-product{ background-color: var(--ce-page); }

body.single-product .site-main .product{
  max-width: 1290px;
  margin: 0px auto 0px;
  padding: 24px 26px;

  background: var(--ce-card);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15,23,42,.06);
  box-sizing: border-box;

  display:flex;
  gap:24px;
  align-items:flex-start;
  flex-wrap:wrap;
}

body.single-product .product > .woocommerce-product-gallery{ flex: 1 1 520px; min-width: 340px; }
body.single-product .product > .summary{ flex: 1 1 520px; min-width: 340px; }

.single-product .summary{
  font-size:15px;
  line-height:1.55;
  font-weight: var(--ce-fw-text);
}

.single-product .summary .ce-title-meta{ margin: 0px 0 0px; line-height: 1.2; }
.single-product .summary .ce-title-cat{ font-size: 13px; }

.ce-brand-line{ font-size:13px; }
.ce-brand-link:hover{ text-decoration: underline; }

body.single-product .product .summary .price{ margin: 0 0 2px; }

.single-product .summary .ce-stock{
  display:block !important;
  font-size:15px;
  font-weight: var(--ce-fw-accent);
  color:#16a34a;
  margin: 10px 0 16px;
}

/* =========================
   2) SINGLE — TRUST BADGES
   ========================= */
.ce-trust-badges{
  padding: 14px 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ce-trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.ce-trust-item .ce-ico{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: .9;
}

.ce-ico-home{background-image:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMzNzQxNTEiIHN0cm9rZS13aWR0aD0iMS41IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMgMTJsOS05IDkgOXY5YTQgNCAwIDAgMS00IDRIN2E0IDQgMCAwIDEtNC00eiIvPjwvc3ZnPg==");}
.ce-ico-truck{background-image:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMzNzQxNTEiIHN0cm9rZS13aWR0aD0iMS41IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3QgeD0iMSIgeT0iMyIgd2lkdGg9IjE1IiBoZWlnaHQ9IjEzIiByeD0iMiIvPjxwYXRoIGQ9Ik0xNiA4aDVsMyAzdjVhMiAyIDAgMCAxLTIgMmgtMiIvPjxjaXJjbGUgY3g9IjciIGN5PSIxOSIgcj0iMiIvPjxjaXJjbGUgY3g9IjE3IiBjeT0iMTkiIHI9IjIiLz48L3N2Zz4=");}
.ce-ico-check{background-image:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMzNzQxNTEiIHN0cm9rZS13aWR0aD0iMS41IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkgMTJsMiAyIDQtNCIvPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjkiLz48L3N2Zz4=");}
.ce-ico-shield{background-image:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMzNzQxNTEiIHN0cm9rZS13aWR0aD0iMS41IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJsNyA0djZhMTAgMTAgMCAwIDEtNyA5IDEwIDEwIDAgMCAxLTctOVY2eiIvPjwvc3ZnPg==");}

/* =========================
   3) SINGLE — VERTICAL ACCORDIONS
   ========================= */
.single-product .ce-accordions{
  width:100%;
  flex-basis:100%;
}

/* =========================
   4) SINGLE — GALLERY (CONTAIN)
   ========================= */
body.single-product .product > .woocommerce-product-gallery{
  display:flex !important;
  flex-direction:column;
  align-items:center;
}

body.single-product .woocommerce-product-gallery figure.ct-media-container,
body.single-product .woocommerce-product-gallery .ct-image-container{
  position:relative !important;
  width:100% !important;

  aspect-ratio: 3 / 4 !important;
  max-height: 560px !important;

  background:#fff !important;
  border-radius: 20px !important;
  padding: 24px !important;

  box-shadow: 0 18px 40px rgba(15,23,42,.08) !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

body.single-product .woocommerce-product-gallery figure.ct-media-container img,
body.single-product .woocommerce-product-gallery .ct-image-container img{
  width:auto !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;

  object-fit:contain !important;
  object-position:center center !important;

  display:block !important;
  margin:0 !important;
  aspect-ratio: auto !important;
}

@media (max-width:1024px){
  body.single-product .woocommerce-product-gallery figure.ct-media-container,
  body.single-product .woocommerce-product-gallery .ct-image-container{
    max-height: 460px !important;
    padding: 18px !important;
  }
}

@media (max-width:768px){
  body.single-product .woocommerce-product-gallery figure.ct-media-container,
  body.single-product .woocommerce-product-gallery .ct-image-container{
    max-height: 340px !important;
    aspect-ratio: 4 / 5 !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }
}

/* =========================
   5) SINGLE — MOBILE
   ========================= */
@media (max-width:768px){
  body.single-product .site-main .product{
    margin: 0px auto 0px;
    padding: 16px 14px;
    border-radius: 20px;
    box-shadow:none;
    gap:18px;
  }

  body.single-product .product > .woocommerce-product-gallery,
  body.single-product .product > .summary{ min-width: 0; }

  body.single-product .product .product_title{ font-size:18px; }
  body.single-product .product .summary .price{ font-size:18px; }
}

.single-product .woocommerce-product-gallery{ margin-bottom: 0.5em; }

.entry-summary-items > .ct-product-add-to-cart{ --product-element-spacing: 0px; }

/* =========================
   6) SINGLE — BREADCRUMBS LAYOUT
   ========================= */
.single-product .hero-section nav.ct-breadcrumbs{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:left !important;
  margin-bottom:10px;
  column-gap:0 !important;
}

.single-product .hero-section nav.ct-breadcrumbs span{
  display:inline-flex !important;
  align-items:center !important;
  white-space:nowrap;
}

/* =========================
   7) SINGLE — REMOVE BLOCKSY PRODUCT DIVIDER
   ========================= */
.single-product .entry-summary-items > .ct-product-divider{ display:none !important; }
