/* --- Product Page Styles --- */
:root {
  --card-bg: #111;
  --border: #444;
}

.main-img-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.main-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
h2, h3 {
    font-size: 2rem;   /* or 32px */
    color: #ffffff;    /* white */
}

.secondary-img-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.secondary-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mySwiper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 8px;
}
.mySwiper .swiper-slide {
  height: auto;
}
.thumb-img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  background: #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.thumb-img:hover {
  transform: scale(1.02);
}
.thumb-img.active {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.flavour-img {
  display: inline-block;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  color: #fff;
}
.flavour-img img {
  width: 50%;
  object-fit: cover;
  border-radius: 6px;
  background: transparent;
  border-radius: 50%;
}
.flavour-img.active {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Optional: nicer buttons on dark bg */
.btn-primary {
  background-color: #6c5ce7;
  border-color: #6c5ce7;
}
.btn-primary:hover {
  background-color: #5848d6;
  border-color: #5848d6;
}
.h5 {
  color: #fff;
}
p {
  color: #fff;
}
.accordion-item {
  background-color: transparent;
  border: 1px solid gray;
}
.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: transparent;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  border-bottom: 2px solid gray;
}
.accordion-button {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.5rem;
  color: #ffffff;
  text-align: left;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  -webkit-transition: color 0.15s ease-in-out,
    background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    border-radius 0.15s ease, -webkit-box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, border-radius 0.15s ease,
    -webkit-box-shadow 0.15s ease-in-out;
  -o-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    border-radius 0.15s ease;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    border-radius 0.15s ease;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    border-radius 0.15s ease, -webkit-box-shadow 0.15s ease-in-out;
}
.accordion-button::after {
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path fill='%23ffffff' d='M297.4 201.4C309.9 188.9 330.2 188.9 342.7 201.4L502.7 361.4C515.2 373.9 515.2 394.2 502.7 406.7C490.2 419.2 469.9 419.2 457.4 406.7L320 269.3L182.6 406.6C170.1 419.1 149.8 419.1 137.3 406.6C124.8 394.1 124.8 373.8 137.3 361.3L297.3 201.3z'/></svg>");
  background-repeat: no-repeat;
  background-size: 1.25rem;

    -webkit-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
  transform: rotate(-180deg);

}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path fill='%23ffffff' d='M297.4 201.4C309.9 188.9 330.2 188.9 342.7 201.4L502.7 361.4C515.2 373.9 515.2 394.2 502.7 406.7C490.2 419.2 469.9 419.2 457.4 406.7L320 269.3L182.6 406.6C170.1 419.1 149.8 419.1 137.3 406.6C124.8 394.1 124.8 373.8 137.3 361.3L297.3 201.3z'/></svg>");
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: -webkit-transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}
/* Self-contained scroll area for the product content */
.product-scroll{
  /* Fill the viewport minus your sticky header height */
  max-height: calc(100vh - 120px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;   /* smooth on iOS */
  overscroll-behavior: contain;        /* don't bubble to page while there's room */
  padding-right: 8px;                  /* room for scrollbar */
}

/* optional: nice-looking thin scrollbar on desktop Chromium */
.product-scroll::-webkit-scrollbar{ width: 8px; }
.product-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
}
