/* Product detail page. Link AFTER alfa.css and pages.css */

.page-wrap-wide {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

.pd-card {
  color: #161111;
}

/* breadcrumb */
.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #777;
}
.pd-crumbs a { color: #777; text-decoration: none; }
.pd-crumbs b { color: #212121; font-weight: 700; }

/* main two-column area */
.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pd-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 24px;
}
.pd-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.pd-thumb {
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f5f5f5;
  cursor: pointer;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumb.active { border-color: #040676; }

/* info column */
.pd-brand {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1faa59;
}
.pd-title {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #161111;
}
.pd-desc {
  max-width: 52ch;
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #555;
}

.pd-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-facts span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1fb;
  font-size: 0.85rem;
  color: #040676;
}

.pd-price {
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.pd-price strong { display: block; font-size: 1.5rem; color: #161111; }
.pd-price small { color: #777; font-size: 0.82rem; }

/* quantity + buttons */
.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }

.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
}
.pd-qty button {
  width: 42px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.pd-qty span { min-width: 34px; text-align: center; font-weight: 700; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid #1faa59;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pd-btn-solid { background: #1faa59; color: #fff; }
.pd-btn-outline { background: #fff; color: #1faa59; }

.pd-btn:focus-visible,
.pd-thumb:focus-visible,
.pd-qty button:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }

/* info rows (like Free Delivery / Return Delivery in the reference) */
.pd-notes { border: 1px solid #eee; border-radius: 12px; }
.pd-note { display: flex; gap: 14px; padding: 14px 16px; }
.pd-note + .pd-note { border-top: 1px solid #eee; }
.pd-note i { margin-top: 3px; font-size: 20px; color: #e8833a; }
.pd-note div { display: flex; flex-direction: column; }
.pd-note b { font-size: 0.92rem; }
.pd-note span { font-size: 0.82rem; color: #666; }

/* features + specs */
.pd-details {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}
.pd-section h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: #161111; }

.pd-features { margin: 0; padding-left: 20px; line-height: 1.7; color: #444; }

.pd-specs { width: 100%; border-collapse: collapse; }
.pd-specs th,
.pd-specs td { padding: 10px 12px; font-size: 0.92rem; text-align: left; vertical-align: top; }
.pd-specs th { width: 36%; font-weight: 700; color: #161111; }
.pd-specs td { color: #555; }
.pd-specs tr:nth-child(odd) { background: #f7f8fa; }

/* related */
.pd-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid #eee; }
.pd-related-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-related-card { display: flex; flex-direction: column; gap: 8px; color: #212121; text-decoration: none; }
.pd-related-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border-radius: 12px;
  background: #f5f5f5;
}
.pd-related-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-related-card span { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }

.pd-missing { padding: 40px 0; text-align: center; }

/* tablet / mobile */
@media (max-width: 900px) {
  .pd-main { grid-template-columns: 1fr; gap: 24px; }
  .pd-details { grid-template-columns: 1fr; gap: 28px; }
  .pd-related-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pd-actions { min-width: 0; }
  .pd-btn { min-width: 0; }
}

/* hover effects only on devices with a mouse, so they do not stick after a tap on phones */
@media (hover: hover) {
  .pd-crumbs a:hover { color: #040676; text-decoration: underline; }

  .pd-qty button:hover { background: #f1f1f1; }

  .pd-btn-solid:hover { background: #168a47; border-color: #168a47; }

  .pd-btn-outline:hover { background: #1faa59; color: #fff; }

  .pd-related-card:hover { color: #040676; text-decoration: none; }
}

.page-wrap-wide { max-width: 1200px; padding: 20px 20px 48px; }
.pd-card { color: #161111; }
.pd-crumbs { margin-bottom: 18px; color: #777d79; font-size: .76rem; }
.pd-crumbs a { color: #777d79; }
.pd-crumbs b { color: #161111; }
.pd-main { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; }
.pd-photo { aspect-ratio: 1 / 1; padding: 28px; background: #f4f5f5; border-radius: 9px; }
.pd-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.pd-thumb { padding: 6px; background: #f4f5f5; border: 1px solid transparent; border-radius: 7px; }
.pd-thumb.active { border-color: #0f3d2e; }
.pd-brand { margin: 0 0 8px; color: #777d79; font-size: .76rem; font-weight: 600; }
.pd-title { margin-bottom: 10px; color: #161111; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.025em; }
.pd-desc { margin-bottom: 18px; color: #777d79; font-size: .9rem; }
.pd-facts { margin-bottom: 17px; }
.pd-facts span { padding: 5px 9px; color: #525a55; background: #f4f5f5; border-radius: 4px; font-size: .76rem; }
.pd-price { padding: 14px 0; margin-bottom: 16px; border-top: 1px solid #eceeed; border-bottom: 1px solid #eceeed; }
.pd-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pd-price strong { display: inline; color: #161111; font-size: 1.45rem; }
.pd-price s { color: #8a908c; font-size: .88rem; }
.pd-discount { color: #0f3d2e; font-size: .8rem; font-weight: 700; }
.pd-price small { color: #777d79; font-size: .76rem; }
.pd-buy { gap: 12px; margin-bottom: 18px; }
.pd-qty { border-color: #dfe3e1; border-radius: 999px; }
.pd-qty button { width: 42px; min-height: 44px; color: #0f3d2e; }
.pd-qty span { color: #161111; }
.pd-actions { gap: 9px; }
.pd-btn { min-height: 46px; border-radius: 999px; font-size: .82rem; }
.pd-btn-solid { color: #fff; background: #0f3d2e; border-color: #0f3d2e; }
.pd-btn-outline { color: #0f3d2e; background: #fff; border-color: #0f3d2e; }
.pd-notes { border: 0; border-top: 1px solid #eceeed; border-radius: 0; }
.pd-note { gap: 12px; padding: 13px 0; }
.pd-note + .pd-note { border-top: 1px solid #eceeed; }
.pd-note i { color: #0f3d2e; }
.pd-note b { color: #161111; font-size: .82rem; }
.pd-note span { color: #777d79; font-size: .76rem; }
.pd-note a { color: #0f3d2e; font-weight: 600; }
.pd-overview, .pd-details, .pd-related { padding-top: 24px; margin-top: 26px; border-top: 1px solid #eceeed; }
.pd-overview h2, .pd-section h2 { color: #161111; font-size: 1.15rem; font-weight: 700; }
.pd-overview p, .pd-features { color: #5d645f; font-size: .88rem; line-height: 1.65; }
.pd-details { grid-template-columns: .8fr 1.2fr; gap: 34px; }
.pd-specs th, .pd-specs td { padding: 10px 12px; font-size: .84rem; }
.pd-specs th { color: #161111; }
.pd-specs td { color: #5d645f; }
.pd-specs tr:nth-child(odd) { background: #f7f8f8; }
.pd-related-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }