/* Product Page (PDP) */
h1.product_title.entry-title {
    font-weight: 100;
    font-size: 2em;
    letter-spacing: 0.09em;
}

bdi {
    font-size: larger;
    font-weight: 100;
}

.pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px);
}

.pdp__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

@media (max-width: 920px) {
  .pdp__top {
    grid-template-columns: 1fr;
  }
}

.pdp__media {
  position: sticky;
  top: 16px;
}

@media (max-width: 920px) {
  .pdp__media {
    position: static;
  }
}

.pdp__summary {
  min-width: 0;
}

.pdp__header .product_title {
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.pdp__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
}

.pdp__sub .price {
  font-size: 1.4rem;
  margin: 0;
}

.pdp__cta {
  padding: 14px;
 
  background: rgba(0,0,0,0.02);
  margin: 14px 0 18px;
}

.pdp__cta form.cart {
  /* display: grid; */
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 520px) {
  .pdp__cta form.cart {
    grid-template-columns: 1fr;
  }
}

.pdp__cta .single_add_to_cart_button {
  width: 100%;
  border-radius: 14px;
  padding: 14px 18px;
}

.pdp__highlights {
  margin: 10px 0 18px;
  font-size: 1rem;
}

.pdp__meta {
  padding-top: 10px;
  opacity: 0.95;
}

/* Tabs / details */
.pdp__details {
  margin-top: clamp(18px, 3vw, 40px);
  padding-top: clamp(16px, 2vw, 24px);
}

.pdp__details .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
}

.pdp__details .woocommerce-tabs ul.tabs li {
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  padding: 0;
  margin: 0;
}

.pdp__details .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 10px 14px;
}

.pdp__details .woocommerce-tabs ul.tabs li.active {
  background: rgba(0,0,0,0.08);
}

/* Gallery polish */
.woocommerce-product-gallery__wrapper {
  border-radius: 18px;
  overflow: hidden;
}

.woocommerce-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.ast-container,
.ast-woocommerce-container {
  max-width: 100%;
}

/* --- Fix Woo default floats/widths interfering with our grid --- */
.woocommerce div.product .pdp__top::after {
  content: "";
  display: block;
  clear: both;
}

.woocommerce div.product .pdp__media div.images,
.woocommerce-page div.product .pdp__media div.images,
.woocommerce div.product .pdp__media .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce div.product .pdp__summary .summary,
.woocommerce-page div.product .pdp__summary .summary,
.woocommerce div.product .pdp__summary .entry-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Optional: make sure images are not capped by theme styles */
.pdp__media img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* LCP: show product image immediately (avoid fade-in after JS init) */
.single-product div.product .woocommerce-product-gallery {
  opacity: 1 !important;
  transition: none !important;
}

/* If thumbnails/slider wrappers are also hidden */
.single-product div.product .woocommerce-product-gallery__wrapper {
  opacity: 1 !important;
  transition: none !important;
}
/* ================================
   PDP Meta (SKU / Category)
   ================================ */

.pdp__meta {
  margin-top: 14px;
  padding-top: 0; /* we’ll style the actual meta box */
  opacity: 1;
}

/* meta container */
.pdp__meta .product_meta {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
}

.woocommerce-js div.product .product_meta {
    border-top: none;
}

/* each row */
.pdp__meta .product_meta > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  margin: 0;
}



/* label text (e.g. "Κωδικός προϊόντος:", "Κατηγορία:") */
.pdp__meta .product_meta > span {
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* label vs value separation without needing extra markup */
.pdp__meta .sku_wrapper,
.pdp__meta .posted_in {
  color: inherit; /* Astra controls colors */
}

.pdp__meta .sku_wrapper::first-line,
.pdp__meta .posted_in::first-line {
  font-weight: 600;
}

/* SKU value badge */
.pdp__meta .sku {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  white-space: nowrap;
}

/* Category link as a “chip-like” inline element */
.pdp__meta .posted_in a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  margin-top: 0.5em;
}

/* nice hover without forcing theme color */
.pdp__meta .posted_in a:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.06);
}

/* accessible focus */
.pdp__meta .posted_in a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/*
 * Related Products
 */
 img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border-radius: 2em;
}


.ast-article-single figure, .ast-article-single img:not(figure img) {
  box-shadow: none;

/* Responsive: stack label/value nicely */
@media (max-width: 520px) {
  .pdp__meta .product_meta > span {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pdp__meta .sku,
  .pdp__meta .posted_in a {
    max-width: 100%;
  }
}
