/* FreshFuel — Single Product */

.product-page {
  padding-block: var(--space-2xl);
}

.product-layout {
  display: grid;
  gap: var(--space-2xl);
}

@media (min-width: 1000px) {
  .product-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: flex-start;
  }
}

/* ---------- Gallery ---------- */
.product-gallery__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.product-gallery__thumbs button {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
}

.product-gallery__thumbs button[aria-current="true"] {
  border-color: var(--color-primary);
}

.product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Info panel ---------- */
.product-info__title {
  margin-bottom: var(--space-sm);
}

.product-info__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.product-info__price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.product-info__price del {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-right: var(--space-sm);
}

.product-info__price ins {
  text-decoration: none;
  color: var(--color-sale);
}

.product-info__excerpt {
  margin-bottom: var(--space-lg);
}

.product-info .macro-strip {
  margin-bottom: var(--space-lg);
}

/* ---------- Variations ---------- */
.variation-group {
  margin-bottom: var(--space-lg);
}

.variation-group__label {
  font-size: var(--fs-label);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: block;
}

.variation-swatches {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.variation-swatch {
  padding: 10px 18px;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
}

.variation-swatch[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.variation-swatch[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Add-ons ---------- */
.addons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

/* ---------- Quantity + Add to cart ---------- */
.purchase-row {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
  margin-bottom: var(--space-lg);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  overflow: hidden;
}

.qty-stepper button {
  width: 44px;
  height: 100%;
  font-size: 1.1rem;
}

.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  -moz-appearance: textfield;
}

.stock-status {
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.stock-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.stock-status--out::before {
  background: var(--color-error);
}

/* ---------- Sticky mobile ATC bar ---------- */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  box-shadow: 0 -4px 20px rgba(27, 36, 32, 0.1);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 90;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.sticky-atc[data-visible="true"] {
  transform: translateY(0);
}

.sticky-atc__price {
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

@media (min-width: 1000px) {
  .sticky-atc {
    display: none;
  }
}

/* ---------- Tabs: description / nutrition / reviews ---------- */
.product-tabs__nav {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-block: var(--space-2xl) var(--space-lg);
}

.product-tabs__nav button {
  padding-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
}

.product-tabs__nav button[aria-selected="true"] {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* ---------- Nutrition facts table ---------- */
.nutrition-table {
  width: 100%;
  max-width: 420px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.nutrition-table tr {
  border-bottom: 1px solid var(--color-border);
}

.nutrition-table td {
  padding: 10px 0;
}

.nutrition-table td:last-child {
  text-align: right;
  font-weight: 700;
}

/* ---------- Related / upsells ---------- */
.related-products {
  margin-top: var(--space-2xl);
}
