/* =====================================
   GOALS TO GET GLOWING
   PRODUCT REVIEW CARD
   ===================================== */

/* Main card */
.gtg-product-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #dce7e6;
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0;
  color: #292929;
  font-family: inherit;
}

.gtg-product-card *,
.gtg-product-card *::before,
.gtg-product-card *::after {
  box-sizing: border-box;
}

/* Image and product information */
.gtg-product-top {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.gtg-product-image {
  display: block;
  width: 125px;
  max-width: 32%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.gtg-product-info {
  flex: 1;
  min-width: 0;
}

/* Product label */
.gtg-product-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #557c78;
  margin: 0 0 8px;
}

/* Product name */
.gtg-product-card h3.gtg-product-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #292929;
}

/* Skin concerns */
.gtg-product-concerns {
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
  margin: 0 0 12px;
}

/* Why I'd choose it */
.gtg-product-why {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Personal review */
.gtg-product-review {
  font-size: 18px;
  line-height: 1.6;
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}

/* Black Friday deal box */
.gtg-product-deal {
  background: #f5f8f7;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

.gtg-deal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 5px 0;
}

.gtg-deal-row span {
  flex: 1;
}

.gtg-deal-row strong {
  flex: 1;
  text-align: right;
}

/* Shopping links */
.gtg-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.gtg-product-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Main shopping button */
.gtg-product-links a.gtg-shop-link {
  background: #365d59;
  color: #ffffff;
  border: 1px solid #365d59;
}

/* Full review button */
.gtg-product-links a.gtg-review-link {
  background: #ffffff;
  border: 1px solid #365d59;
  color: #365d59;
}

/* =====================================
   MOBILE: 600px AND BELOW
   ===================================== */

@media (max-width: 600px) {

  .gtg-product-card {
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
  }

  /* Two-column product header */
  .gtg-product-top {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-items: start;
  }

  .gtg-product-image {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 95px;
    max-width: 100%;
    height: auto;
    align-self: start;
  }

  /* Allows text elements to occupy grid cells */
  .gtg-product-info {
    display: contents;
  }

  .gtg-product-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin: 0 0 5px;
  }

  .gtg-product-card h3.gtg-product-title {
    grid-column: 2;
    grid-row: 2;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 5px;
  }

  .gtg-product-concerns {
    grid-column: 2;
    grid-row: 3;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
  }

  /* Full-width explanation beneath header */
  .gtg-product-why {
    grid-column: 1 / -1;
    grid-row: 4;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0;
  }

  /* Review text */
  .gtg-product-review {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0 14px;
    padding-top: 12px;
  }

  /* Deal information */
  .gtg-product-deal {
    padding: 12px;
    font-size: 13px;
  }

  .gtg-deal-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .gtg-deal-row span {
    flex: 1;
  }

  .gtg-deal-row strong {
    flex: 1;
    text-align: right;
  }

  /* Full-width buttons */
  .gtg-product-links {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .gtg-product-links a {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 13px;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {

  .gtg-product-top {
    grid-template-columns: 75px minmax(0, 1fr);
    column-gap: 10px;
  }

  .gtg-product-image {
    width: 75px;
  }

  .gtg-product-card h3.gtg-product-title {
    font-size: 16px;
  }

  .gtg-product-label {
    font-size: 9px;
  }
}
/* =====================================
   GTG QUICK-REFERENCE TABLE
   ===================================== */

.gtg-quick-picks {
  margin: 28px 0;
}

.gtg-quick-picks h2 {
  margin-bottom: 10px;
}

.gtg-quick-picks > p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.gtg-quick-picks table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.5;
}

.gtg-quick-picks th,
.gtg-quick-picks td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dce7e6;
  overflow-wrap: anywhere;
}

.gtg-quick-picks th {
  background: #f5f8f7;
  color: #365d59;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gtg-quick-picks th:first-child,
.gtg-quick-picks td:first-child {
  width: 39%;
}

.gtg-quick-picks td a {
  color: #365d59;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gtg-quick-picks tbody tr:nth-child(even) {
  background: #fafbfa;
}

/* Mobile adjustments */
@media (max-width: 600px) {

  .gtg-quick-picks {
    margin: 20px 0;
  }

  .gtg-quick-picks table {
    font-size: 13px;
  }

  .gtg-quick-picks th,
  .gtg-quick-picks td {
    padding: 10px 8px;
  }

  .gtg-quick-picks th {
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .gtg-quick-picks > p {
    font-size: 14px;
  }
}
/* =====================================
   GTG SHOP BY CATEGORY NAVIGATION
   ===================================== */

.gtg-category-nav {
  margin: 28px 0 36px;
}

.gtg-category-nav h2 {
  margin: 0 0 10px;
}

.gtg-category-nav > p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.gtg-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gtg-category-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 14px 12px;
  background: #f5f8f7;
  border: 1px solid #dce7e6;
  border-radius: 8px;
  color: #365d59;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.gtg-category-grid a:hover,
.gtg-category-grid a:focus-visible {
  background: #e8f0ee;
}

.gtg-category-grid a span {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
}

/* Tablet */
@media (max-width: 900px) {
  .gtg-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .gtg-category-nav {
    margin: 22px 0 28px;
  }

  .gtg-category-nav > p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .gtg-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gtg-category-grid a {
    padding: 12px 10px;
    font-size: 12px;
    border-radius: 7px;
  }
}