/* =====================================================
   PRODUCT INCI – PILLS
   ===================================================== */

.product-inci {
  margin-top: 16px;
}

.product-inci-title {
  margin-bottom: 8px;
  font-size: 14px;
}

.product-inci-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.ingredient-pill:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* =====================================================
   PANEL OVERLAY
   ===================================================== */

body.ingredient-panel-open {
  overflow: hidden;
}

.ingredient-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}

body.ingredient-panel-open .ingredient-panel {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   PANEL CONTAINER
   ===================================================== */

.ingredient-panel-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}

body.ingredient-panel-open .ingredient-panel-content {
  transform: translateX(0);
}

/* =====================================================
   LUEN INCI SIDEBAR
   ===================================================== */

.luen-inci-sidebar {
  position: relative;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #111;
}

/* TOP IMAGE */
.luen-inci-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.luen-inci-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,.85) 70%,
    #fff 100%
  );
}

/* ROUND INGREDIENT IMAGE */
.luen-inci-cover-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  position: absolute;
  top: 130px;
  left: 24px;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* =====================================================
   HEADER
   ===================================================== */

.luen-inci-header {
  padding: 70px 24px 20px;
  border-bottom: 1px solid #eee;
}

.luen-inci-full-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.luen-inci-disclaimer {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

/* =====================================================
   CLOSE BUTTON
   ===================================================== */

.luen-inci-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  cursor: pointer;
  z-index: 10001;
}

.luen-inci-close::before,
.luen-inci-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #000;
}

.luen-inci-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.luen-inci-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* =====================================================
   INFO LIST
   ===================================================== */

.luen-inci-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.luen-inci-info-list li {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
}

.luen-inci-info-list li:last-child {
  border-bottom: none;
}

/* ICON BASE */
.luen-inci-info-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* SOURCE ICON */
.luen-inci-source::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M12 2s-6 7-6 12a6 6 0 0012 0c0-5-6-12-6-12z'/%3E%3C/svg%3E");
}

/* FUNCTION ICON */
.luen-inci-function::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

/* EFFECT ICON */
.luen-inci-effect::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M12 2C7 7 4 11 4 15a8 8 0 0016 0c0-4-3-8-8-13z'/%3E%3C/svg%3E");
}


/* =====================================================
   FOOTER
   ===================================================== */

.luen-inci-copyright {
  padding: 20px 24px 32px;
  font-size: 12px;
  color: #9ca3af;
}

/* =====================================================
   LOADING / ERROR
   ===================================================== */

.ingredient-loading,
.ingredient-error {
  padding: 24px;
  text-align: center;
  font-size: 14px;
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {
  .ingredient-panel-content {
    width: 100%;
  }
}
