/* MADAME Suite — Frontend Product Description Styling
 * Chic editorial typography + animated FAQ accordion
 */

/* Reset weight on description container */
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description,
div.product .summary p,
.mas-product-content p {
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: #4A5568;
}

/* Strong + bold accents */
.woocommerce-Tabs-panel--description strong,
.mas-product-content strong {
  font-weight: 500;
  color: #1A202C;
}

/* Section dividers */
.mas-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 33, 55, 0.08);
}
.mas-section:first-of-type {
  margin-top: 2rem;
}

/* Section titles — editorial */
.mas-section-title {
  font-family: 'Outfit', '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;
}
.mas-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C9A84C; /* gold accent */
}

/* === OCCASIONS === */
.mas-occasion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.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;
}
.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 === */
.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 === */
.mas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mas-faq-item {
  border-bottom: 1px solid rgba(15, 33, 55, 0.08);
  transition: all 0.3s ease;
}
.mas-faq-item:last-child {
  border-bottom: none;
}
.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;
  letter-spacing: 0.005em;
  transition: color 0.2s ease;
  user-select: none;
}
.mas-faq-q::-webkit-details-marker { display: none; }
.mas-faq-q::marker { display: none; content: ''; }

/* Animated +/- icon */
.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;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mas-faq-item[open] .mas-faq-q::after {
  transform: rotate(180deg);
}
.mas-faq-q:hover {
  color: #C9A84C;
}
.mas-faq-q:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Answer */
.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;
  letter-spacing: 0.005em;
  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); }
}

/* Open state styling */
.mas-faq-item[open] .mas-faq-q {
  color: #0F2137;
  font-weight: 600;
}
.mas-faq-item[open] {
  background: linear-gradient(180deg, transparent 0%, #FAFCFF 100%);
  margin: 0 -1rem;
  padding: 0 1rem;
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .mas-section { margin-top: 2rem; padding-top: 1.5rem; }
  .mas-section-title { font-size: 0.72rem; letter-spacing: 0.15em; }
  .mas-faq-q { font-size: 0.88rem; padding: 0.95rem 0; }
  .mas-faq-a { font-size: 0.85rem; }
  .mas-styling-text { padding: 1rem 1.2rem; font-size: 0.9rem; }
}

/* Print */
@media print {
  .mas-faq-item { border-bottom: none; }
  .mas-faq-item[open] { background: transparent; }
}
