/* Appily thirtyone — Techhike-style product detail page */

.page-product .page-main {
  padding-top: 0;
}

.a31-pdp {
  padding: 1.5rem 0 3rem;
  background: var(--a31-white);
}

.a31-pdp-crumb {
  font-size: 0.82rem;
  color: var(--a31-muted);
  margin-bottom: 1.25rem;
}

.a31-pdp-crumb a {
  color: var(--a31-muted);
  text-decoration: none;
}

.a31-pdp-crumb a:hover {
  color: var(--a31-link);
}

.a31-pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(200px, 260px);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Gallery */
.a31-pdp-gallery {
  border: 1px solid var(--a31-border);
  background: #fff;
  padding: 1.25rem;
}

.a31-pdp-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Info column */
.a31-pdp-info h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--a31-ink);
}

.a31-pdp-price {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--a31-ink);
}

.a31-pdp-price s {
  font-size: 0.85em;
  color: var(--a31-muted);
  font-weight: 400;
  margin-right: 0.4rem;
}

.a31-pdp-ship-note {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  color: var(--a31-muted);
}

.a31-pdp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.a31-pdp-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--a31-ink);
}

.a31-pdp-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--a31-border);
  border-radius: 0;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: var(--a31-ink);
}

.a31-pdp-qty {
  margin-bottom: 1rem;
}

.a31-pdp-qty label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.a31-pdp-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--a31-border);
}

.a31-pdp-stepper button {
  width: 36px;
  border: 0;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--a31-ink);
}

.a31-pdp-stepper button:hover {
  background: #f5f5f5;
}

.a31-pdp-stepper input {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--a31-border);
  border-right: 1px solid var(--a31-border);
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  -moz-appearance: textfield;
}

.a31-pdp-stepper input::-webkit-outer-spin-button,
.a31-pdp-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.a31-pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.a31-pdp-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: 999px;
}

.a31-pdp-meta {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--a31-muted);
}

.a31-pdp-meta strong {
  color: var(--a31-ink);
  font-weight: 600;
}

.a31-pdp-meta a {
  color: var(--a31-link);
  text-decoration: none;
}

.a31-pdp-accordions {
  border-top: 1px solid var(--a31-border);
}

.a31-pdp-accordions details {
  border-bottom: 1px solid var(--a31-border);
}

.a31-pdp-accordions summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a31-pdp-accordions summary::-webkit-details-marker {
  display: none;
}

.a31-pdp-accordions summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--a31-muted);
}

.a31-pdp-accordions details[open] summary::after {
  content: '−';
}

.a31-pdp-accordions .a31-pdp-acc-body {
  padding: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--a31-muted);
  line-height: 1.6;
}

.a31-pdp-share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a31-pdp-share-row input {
  flex: 1;
  min-width: 140px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--a31-border);
  font: inherit;
  font-size: 0.78rem;
}

.a31-pdp-share-row button {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--a31-border);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Sidebar */
.a31-pdp-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.a31-pdp-promo-img {
  border: 1px solid var(--a31-border);
  overflow: hidden;
  background: #fafafa;
}

.a31-pdp-promo-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.a31-pdp-widget h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--a31-ink);
}

.a31-pdp-rated-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.a31-pdp-rated-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.a31-pdp-rated-list img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--a31-border);
  background: #fafafa;
  padding: 0.25rem;
}

.a31-pdp-rated-list span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--a31-link);
  font-weight: 500;
}

.a31-pdp-rated-list strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--a31-ink);
}

/* Description tab */
.a31-pdp-tabs {
  margin-bottom: 2.5rem;
}

.a31-pdp-tab-head {
  display: inline-flex;
  margin-bottom: 0;
}

.a31-pdp-tab-btn {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--a31-border);
  border-bottom: 0;
  background: var(--a31-yellow);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000;
  cursor: default;
}

.a31-pdp-tab-panel {
  border: 1px solid var(--a31-border);
  padding: 1.5rem;
  background: #fff;
}

.a31-pdp-tab-panel p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--a31-muted);
}

.a31-pdp-features {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--a31-muted);
}

.a31-pdp-features li {
  margin-bottom: 0.35rem;
}

/* Related */
.a31-pdp-related h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.a31-pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--a31-border);
  border-top: 1px solid var(--a31-border);
}

.a31-pdp-related-grid .a31-shop-card {
  border-right: 1px solid var(--a31-border);
  border-bottom: 1px solid var(--a31-border);
}

.a31-pdp-related-grid .a31-shop-card-link {
  padding: 0.85rem 0.65rem 1rem;
}

.a31-pdp-related-grid .a31-shop-card-img {
  margin-bottom: 0.55rem;
}

.a31-pdp-related-grid .a31-shop-card-img img {
  max-height: 110px;
}

@media (max-width: 1100px) {
  .a31-pdp-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .a31-pdp-aside {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .a31-pdp-promo-img {
    flex: 0 0 180px;
  }

  .a31-pdp-widget {
    flex: 1;
    min-width: 220px;
  }

  .a31-pdp-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .a31-pdp-top {
    grid-template-columns: 1fr;
  }

  .a31-pdp-options {
    grid-template-columns: 1fr;
  }

  .a31-pdp-aside {
    flex-direction: column;
  }

  .a31-pdp-promo-img {
    flex: none;
    max-width: 220px;
  }

  .a31-pdp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .a31-pdp-actions {
    grid-template-columns: 1fr;
  }

  .a31-pdp-related-grid {
    grid-template-columns: 1fr;
  }
}
