/* MADAME Suite — Frontend Single Product ONLY
 * Strictly scoped to .single-product .mas-product-content
 * Does NOT affect home, shop, category, archive pages
 */

/* === MADE IN EU BADGE === */
body.single-product .summary {
  position: relative;
}
body.single-product.made-in-eu .made-in-eu-logo {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  z-index: 10;
  display: inline-block;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}
body.single-product.made-in-eu .made-in-eu-logo:hover {
  transform: scale(1.08);
}
body.single-product.made-in-eu .made-in-eu-logo img {
  max-width: 56px !important;
  width: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  object-fit: contain;
}
body.single-product.made-in-eu .product_title.entry-title {
  padding-right: 70px;
}

/* === MADAME PRODUCT CONTENT (sections IA Rebrand) === */
/* All styles scoped under .mas-product-content to avoid leaks */
body.single-product .mas-product-content {
  margin-top: 1rem;
}

body.single-product .mas-product-content p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: #4A5568;
}

body.single-product .mas-product-content strong {
  font-weight: 500;
  color: #1A202C;
}

body.single-product .mas-product-content .mas-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 33, 55, 0.08);
}
body.single-product .mas-product-content .mas-section:first-of-type {
  margin-top: 2rem;
}

body.single-product .mas-product-content .mas-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0F2137;
  margin: 0 0 1.25rem 0;
  position: relative;
  padding-left: 1rem;
}
body.single-product .mas-product-content .mas-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C9A84C;
}

/* === OCCASIONS === */
body.single-product .mas-product-content .mas-occasion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.single-product .mas-product-content .mas-occasion-tag {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background: linear-gradient(135deg, #FAF7F2 0%, #F5F1E8 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #4A5568;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  transition: all 0.3s ease;
}
body.single-product .mas-product-content .mas-occasion-tag:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.1);
}

/* === STYLING TIPS === */
body.single-product .mas-product-content .mas-styling-text {
  font-style: italic;
  font-weight: 300;
  color: #4A5568;
  font-size: 0.95rem;
  line-height: 1.85;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #FAFCFF 0%, #F0FDFF 100%);
  border-radius: 4px;
  border-left: 2px solid #C9A84C;
  margin: 0;
}

/* === FAQ ACCORDION === */
body.single-product .mas-product-content .mas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.single-product .mas-product-content .mas-faq-item {
  border-bottom: 1px solid rgba(15, 33, 55, 0.08);
  transition: all 0.3s ease;
}
body.single-product .mas-product-content .mas-faq-item:last-child {
  border-bottom: none;
}
body.single-product .mas-product-content .mas-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1A202C;
  position: relative;
  padding-right: 2rem;
  user-select: none;
}
body.single-product .mas-product-content .mas-faq-q::-webkit-details-marker { display: none; }
body.single-product .mas-product-content .mas-faq-q::marker { content: ''; }
body.single-product .mas-product-content .mas-faq-q::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2137' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.single-product .mas-product-content .mas-faq-item[open] .mas-faq-q::after {
  transform: rotate(180deg);
}
body.single-product .mas-product-content .mas-faq-q:hover {
  color: #C9A84C;
}
body.single-product .mas-product-content .mas-faq-a {
  padding: 0 0 1.4rem 0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #4A5568;
  animation: mas-faq-open 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes mas-faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
body.single-product .mas-product-content .mas-faq-item[open] .mas-faq-q {
  color: #0F2137;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  body.single-product.made-in-eu .made-in-eu-logo,
  body.single-product.made-in-eu .made-in-eu-logo img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  body.single-product.made-in-eu .product_title.entry-title {
    padding-right: 56px;
  }
  body.single-product .mas-product-content .mas-section { margin-top: 2rem; padding-top: 1.5rem; }
  body.single-product .mas-product-content .mas-section-title { font-size: 0.72rem; letter-spacing: 0.15em; }
  body.single-product .mas-product-content .mas-faq-q { font-size: 0.88rem; padding: 0.95rem 0; }
  body.single-product .mas-product-content .mas-faq-a { font-size: 0.85rem; }
}
