.product-detail {
  background-image: url(/images/halftone2.png);
  padding: 2%;
}

/* ----------------- product detail page styles ---------------- */
.product-detail-page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 25px 15px rgba(255, 255, 255, .8);
}

.product-detail-page hr {
  margin-top: 5px;
  border: 0;
  border-top: 1pt solid black;
}

.product-detail-page h1 {
  font-size: 2.5rem;
}

.product-detail-page h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.product-detail-page h3 {
  margin-bottom: 0;
}

.product-detail-page h4 {
  margin: 0 0 1%;
  /* font-size: 1.5rem; */
}

.product-detail-page p {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.instructions p {
  white-space: pre-line;
}

@media (min-width:800px) {
  .ingredients {
    flex: 1;
  }
}

/* =========================================== Aside
================================================== */

.product-detail-page aside {
  float: left;
  margin-right: 2%;
  overflow: hidden;
}

@media (min-width: 800px) {
  .product-detail-page aside {
    width: 30%;
    min-width: 2.75in;
  }
}

/* ----------------- product detail image gallery ---------------- */
.product-images {
  width: 375px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery-container {
  position: relative;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: none;
}

#mainImage {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  color: black;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: .125in;
}

.thumbnails img {
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
}

.thumbnails img.active {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
}

.lightbox .close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.lightbox .close-btn:hover {
  background: #666;
}

/* ------------ NFP ------------- */

.nfp {
  margin: .125in 0;
  /* width: 375px; */
  /* max-width: 100%; */
}

/* ------------ Spec Signature ------------- */

.spec-signature {
  /* display: none; */
}


/* =============================================== RIGHT SIDE
=========================================================== */

.product-info .actions {
  display: flex;
  /* justify-content: space-between; */
  align-items: flex-start;
  margin-bottom: 20px;
}

.dropdown-details {
  position: relative;
  display: inline-block;
  /* Allows the details element to size to its content */
}

.dropdown-details summary {
  list-style-type: none;
}

.dropdown-details summary::after {
  margin-left: 5px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  z-index: 1;
  min-width: 250px;
  width: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content ul {
  padding: 0;
  margin: 0;
  margin-left: 4%;
}

.dropdown-content ul li {
  list-style-type: none;
  padding: 4% 0;
}

.dropdown-content ul li:not(:last-of-type) {
  border-bottom: 1px solid black;
}

.dropdown-content ul li a {
  text-decoration: none;
  color: black;
  white-space: nowrap;
}

.dropdown-content ul li a:hover {
  text-decoration: underline;
}

.back-to-products {
  margin-right: 2%;
}

/* ---------------- wg badge --------------- */
.wg-badge {
  background-color: black;
  /* background-color: #c8102e; */
  padding: .125in;
  margin: 0 0 2% 2%;
  border-radius: 4px;
  float: right;
  display: inline-block;
}

.wg-badge h3 {
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  color: white;
  margin: 0;
}

.wg-badge h3 span {
  font-size: 28px;
}

/* ------------------- Buy American & CN label----------------- */
.buy-american {
  clear: right;
}

.buy-american img {
  width: 30px;
}

.buy-american h3,
.cn-label h3 {
  display: inline-block;
}

.cn-label span {
  /* font-family: var(--main-font); */
  font-weight: 400;
  font-size: 1rem;
}

/* ------- Allergens ------- */

.allergens {
  overflow: hidden;
}

.allergens ul {
  list-style-position: outside;
  margin: 5px 0 0;
  padding-left: 25px;
}

.allergens ul li {
  font-size: 1rem;
}

/* -------------------- specs -------------------- */
.specs {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
}

@media (min-width: 800px) {
  .specs {
    flex-flow: row wrap;
    justify-content: space-between;
  }
}

.specs>* {
  display: flex;
  width: 100%;
}


.specs .second-row>* {
  flex: 1 1 48%;
}

.specs .first-row>* {
  flex: 1 1 48%;
}


.specs hr {
  margin: 0;
  border: 0;
  border-top: .25pt solid black;
}

.spec-table {
  border-collapse: separate;
  table-layout: auto;
}


.spec-table caption {
  border-bottom: 1px solid black;
  text-align: left;
}

.spec-table th,
.spec-table td,
.spec-table td a {
  font-size: 9pt;
  text-align: left;
  /* white-space: nowrap; */
}

.spec-table th {
  background-color: whitesmoke;
  border: 1px solid whitesmoke;
  padding: 0 2px;
  white-space: nowrap;
  width: 1%;
}

.spec-table td {
  background-color: white;
  border: 1px solid whitesmoke;
  padding: 0 5px;
  width: auto;
  white-space: nowrap;
}