@charset "UTF-8";

body {
  background-color: #efefef;
}

#container {
  width: 800px;
  height: 800px;
  margin: 100px auto 25px auto;
  padding: 58px 80px 58px 80px;
  box-sizing: border-box;
  background-color: #fff;

  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  grid-template-rows: auto auto auto auto auto;
  column-gap: 24px;
  row-gap: 22px;

  grid-template-areas:
    ".            product-top   ."
    "left-top     .             right-top"
    "ingredients  ingredients   ingredients"
    "nutrition    nutrition     contact-info"
    "footer       footer        footer";

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
}

/* 统一基础字级：全部同字号，只改粗细/斜体，不改大小 */
#container * {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 12px;
  color: inherit;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
}

/* ========== Top Center Product ========== */
.product-top {
  grid-area: product-top;
  justify-self: center;
  align-self: start;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 0;
}

.product-top .brand {
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.product-top .product-name {
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.product-top .weight {
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

/* ========== Top Left ========== */
.left-top {
  grid-area: left-top;
  align-self: end;
  justify-self: start;
  text-align: left;
  margin: 0 0 18px 0;
}

.left-top .share-block {
  margin: 0 0 18px 0;
}

.left-top .quantity,
.left-top .to-share,
.left-top .a-partager {
  margin: 0;
  font-style: italic;
  line-height: 1.05;
}

.left-top .quantity {
  font-weight: 700;
}

.left-top .slogan-group {
  margin: 0;
}

.left-top .slogan {
  margin: 0;
  font-style: italic;
  line-height: 1.05;
}

/* ========== Top Right Calories ========== */
.right-top {
  grid-area: right-top;
  align-self: end;
  justify-self: end;
  text-align: right;
  margin: 0 0 18px 0;
}

.right-top .calories-block {
  margin: 0 0 14px 0;
}

.right-top .calories-block:last-child {
  margin-bottom: 0;
}

.calories-label {
  margin: 0;
  font-weight: 700;
  font-style: normal;
  line-height: 1.05;
}

.cal-name {
  font-weight: 700;
  font-style: normal;
}

.cal-number {
  font-weight: 700;
  font-style: italic;
}

.calories-detail {
  margin: 0;
  font-style: italic;
  line-height: 1.05;
}

/* ========== Ingredients ========== */
.ingredients-section {
  grid-area: ingredients;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  margin: 0;
}

.ingredients-col {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.34;
}

.ingredients-en,
.ingredients-fr {
  margin: 0;
}

.ing-label {
  font-weight: 700;
  font-style: normal;
}

.ing-text {
  font-weight: 400;
  font-style: normal;
}

/* ========== Nutrition Section ========== */
.nutrition-section {
  grid-area: nutrition;
  margin: 0;
  padding: 0;
  align-self: start;
}

.nutrition-title {
  margin: 0 0 14px 0;
  font-weight: 700;
  line-height: 1.1;
}

.nutrition-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  align-items: start;
}

.nutrition-group {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.nutrition-header {
  margin: 0 0 10px 0;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
}

.nutrition-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  align-items: baseline;
  margin: 0 0 5px 0;
}

.nutrition-item:last-child {
  margin-bottom: 0;
}

.nut-label {
  text-align: left;
  line-height: 1.12;
  white-space: nowrap;
}

.nut-value {
  text-align: right;
  line-height: 1.12;
  white-space: nowrap;
  font-style: italic;
}

/* ========== Contact Info ========== */
.contact-info {
  grid-area: contact-info;
  justify-self: end;
  align-self: start;
  text-align: right;
  margin: 38px 0 0 0;
  padding: 0;
}

.contact-block {
  margin: 0 0 22px 0;
  line-height: 1.08;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.cocoa-plan,
.cocoa-url,
.cocoa-slogan,
.cocoa-slogan-fr,
.kids-phone,
.kids-name,
.contact-url,
.contact-phone,
.contact-alternate {
  font-style: italic;
  margin: 0;
  line-height: 1.08;
}

.kids-help,
.contact-label {
  font-style: italic;
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
}

/* ========== Footer ========== */
.footer-info {
  grid-area: footer;
  justify-self: center;
  align-self: start;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  margin: 6px 0 0 0;
  font-weight: 300;
  font-style: italic;
  line-height: 1.12;
}

/* ========== Bottom course info outside white board ========== */
#info {
  width: 800px;
  margin: 0 auto 100px auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 15px;
  color: #555;
}