/* =========================
   PAGE / LAYOUT
========================= */

.product-detail-page {
  padding: 6rem 0;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.product-detail__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =========================
   BACK LINK / ICONS
========================= */

.product-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-detail__back-link svg{
  width: 10px;
  height: 10px;
  margin-bottom: 0px;
  flex-shrink: 0;
}

/* =========================
   PRODUCT CARD / TOP AREA
========================= */

.product-detail__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.product-detail__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

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

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__info h1 {
  font-size: 1.5rem;
  font-weight: 700;
}


/* =========================
   CONFIGURATION GROUPS
========================= */

.product-detail__selection-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.product-detail__section-title {
  font-weight: 500;
  margin: 20px 0;
}

.product-detail__option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail__option-group--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================
   CHOICE CARD
========================= */

.choice-card {
  display: block;
  cursor: pointer;
}

.choice-card:hover .choice-card__box {
  border-color: #bdbdbd;
}

.choice-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__input:focus-visible + .choice-card__box {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.choice-card__box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.choice-card__icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.choice-card__input:checked + .choice-card__box {
  border-color: #ff2ea6;
  background: #fff8fc;
}

.choice-card__input:checked + .choice-card__box .choice-card__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  transform: translate(-50%, -50%);
}

.choice-card__icon {
  position: relative;
  left: 3px;
  top: 1px;
}

.choice-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-card__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

.choice-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.choice-card__description {
  font-size: 14px;
  line-height: 1.3;
  color: #555;
}

/* =========================
   PRICE / STOCK / DELIVERY
========================= */

/*Button add to cart */
.product-detail__cta svg {
  width: 18px;
  height: 18px;
  color: white;
  margin-bottom: .13rem;
}


.product-detail__back-link:hover,
.price-accent {
  color: var(--color-accent);
  font-weight: 600;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-dot--green {
  background: #22c55e;
}

.stock-dot--red {
  background: #ef4444;
}

.delivery-box {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
}

.delivery-box h3 {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  font-size: 0.9rem;
}

.delivery-box ul {
  padding-left: 1.7rem;
  font-size: 0.8rem;
}


.delivery-box li {
  padding-left: 0.2rem;
  margin-bottom: 0.15rem;
  line-height: 1.6;
}


/* =========================
   TABS
========================= */

.product-tabs {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.product-tabs__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 1.5rem;
  background: #ececf1;
  border-radius: 999px;
}

.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tab-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* =========================
   DETAILS
========================= */

.detail-row{
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.detail-row:first-child {
  border-top: 1px solid #e5e7eb;
}

.detail-row span:first-child {
  color: #4b5563;
}

.detail-row span:last-child {
  justify-self: end;
  text-align: right;
  font-weight: 600;
  color: #111;
}

/* =========================
   GENERIC CARDS / SIDEBAR BLOCKS
========================= */

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
}

.card > h3 {
  margin-bottom: 0.5rem;
  margin-left:.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  margin: 0 0 1rem 0.3rem;
}

.card h4 {
  margin: 1rem 0 0.5rem 0.3rem;
}

.card > h3 .card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex: 0 0 22px;
}

.card > h3 .card__icon svg {
  width: 100%;
  height: 100%;
}

/* =========================
   LEASING
========================= */

.lease-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.choice-card--leasing .choice-card__box {
  min-height: 72px;
}

.leasing-option-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.leasing-option-card__content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.leasing-option-card__duration {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.leasing-option-card__rate {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}

.leasing-note {
  font-size: 14px;
  color: var(--color-text-light);
}

.lease-summary {
  margin-top: 1rem;
  margin-left: 0.3rem;
  font-size: 0.9rem;
}

.lease-summary p {
  margin: 0.2rem 0 0.3rem 0.3rem;
}

/* =========================
   SERVICE
========================= */
.service-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card--maintenance .choice-card__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: auto;
  padding: 20px;
}

.maintenance-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  width: 100%;
}

.choice-card--maintenance .choice-card__content,
.maintenance-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maintenance-card__price {
  align-items: flex-end;
  text-align: right;
}

.service-card__title,
.service-card__price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.service-card__price {
  color: var(--color-accent);
}

.service-card__duration,
.service-card__billing {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-text-light);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
}

.service-card__features li {
  position: relative;
  font-size: 14px;
  color: var(--color-dark-2);
}

.service-card__features li::before {
  content: "✓";
  position: absolute;
  left: -28px;
  top: 0;
  width: 16px;
  height: 16px;
  
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.service-selected-box {
  margin-top: 1rem;
}

/* =========================
   RELATED PRODUCTS
========================= */

.related-products {
  margin-top: 2rem;
}

.related-product-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
}

.related-product-card__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-product-card__content {
  padding: 0.75rem;
}

.related-product-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.related-product-card span {
  color: #ff0098;
  font-weight: 600;
}

.product-card__button-icon {
  margin-bottom: .17rem;

}
/* =========================
   BULLET INFO BOX
========================= */

.bullet-info-box ul {
  padding-left: 1rem;
}

.bullet-info-box li {
  padding-left: 0.2rem;
  margin-left: 0.3rem;
  margin-bottom: 0.15rem;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
  }

  .product-detail__top {
    grid-template-columns: 1fr;
  }
}