/* ===========================
   PRODUCT PAGE – Euros-Inspired
   Rise Substrates Design System
   =========================== */

/* ── Page Reset ── */
.pdp-page { background: #fbf9f6; }

/* ── Hero Section ── */
.pdp-hero {
  padding: 140px 0 60px;
  background: #ffffff;
}
.pdp-hero .container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pdp-hero-text {
  order: 1;
}
.pdp-hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: #381e0f;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.pdp-hero-desc {
  text-align: left;
}
.pdp-hero-desc p {
  color: #000000;
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.pdp-hero-cta {
  margin-top: 28px;
}
.pdp-hero-image {
  order: 2;
  width: 100%;
  border-radius: 40px 0 40px 0;
  overflow: hidden;
}
.pdp-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Spec Table Section ── */
.pdp-specs-section {
  padding: 80px 0;
  background: #f3ebe2;
}
.pdp-specs-section .container { max-width: 1100px; }
.pdp-specs-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  min-width: 600px;
}
.pdp-specs-table thead th {
  background: #b07d4f;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 18px 24px;
  text-align: left;
  border: none;
}
.pdp-specs-table thead th:first-child {
  border-radius: 12px 0 0 0;
}
.pdp-specs-table thead th:last-child {
  border-radius: 0 12px 0 0;
}
.pdp-specs-table tbody td {
  padding: 16px 24px;
  color: #000000;
  border-bottom: 1px solid #efe8e0;
  vertical-align: top;
  line-height: 1.6;
}
.pdp-specs-table tbody tr:nth-child(even) {
  background: #fbf9f6;
}
.pdp-specs-table tbody tr:hover {
  background: #f3ebe0;
}
.pdp-specs-table tbody td:first-child {
  font-weight: 700;
  color: #381e0f;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pdp-specs-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}
.pdp-specs-table tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}
.pdp-specs-table tbody tr:last-child td {
  border-bottom: none;
}

/* Spec table CTA row */
.pdp-specs-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── Suitable Crops Section ── */
.pdp-crops-section {
  padding: 80px 0;
  background: #fbf9f6;
}
.pdp-crops-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  color: #381e0f;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}
.pdp-crops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.pdp-crop-card {
  background: #ffffff;
  border: 1px solid #e3ded6;
  border-radius: 16px 0 16px 0;
  padding: 20px 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.pdp-crop-card:hover {
  border-color: #b07d4f;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(176,125,79,0.1);
}
.pdp-crop-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}
.pdp-crop-card span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #381e0f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Other Products Section ── */
.pdp-other-section {
  padding: 80px 0;
  background: #ffffff;
}
.pdp-other-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  color: #381e0f;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}
.pdp-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pdp-other-card {
  background: #fbf9f6;
  border: 1px solid #e3ded6;
  border-radius: 16px 0 16px 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}
.pdp-other-card:hover {
  border-color: #b07d4f;
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(176,125,79,0.12);
}
.pdp-other-card-img {
  height: 140px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.pdp-other-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdp-other-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #381e0f;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 12px;
}

/* ── CTA Section ── */
.pdp-cta-section {
  padding: 80px 0;
  background: #ebdccb;
  border-top: 1px solid #dcd0c0;
  border-bottom: 1px solid #dcd0c0;
  text-align: center;
}
.pdp-cta-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: #381e0f;
  margin-bottom: 16px;
}
.pdp-cta-sub {
  color: #000000;
  font-size: 18.5px;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.pdp-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.pdp-cta-section .btn-outline-white {
  border-color: #381e0f;
  color: #381e0f;
}
.pdp-cta-section .btn-outline-white:hover {
  background: #381e0f;
  color: #ffffff;
}

/* ── Buttons (inherit from main) ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 16px 0 16px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: #b07d4f;
  color: #ffffff;
}
.btn-primary:hover {
  background: #c68a4c;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(176,125,79,0.35);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.4);
  color: #ffffff;
  background: transparent;
}
.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* ── Size Options Table (for grow slabs etc) ── */
.pdp-sizes-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
}
.pdp-sizes-table thead th {
  background: #b07d4f;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 16px 24px;
  text-align: left;
}
.pdp-sizes-table thead th:first-child { border-radius: 12px 0 0 0; }
.pdp-sizes-table thead th:last-child { border-radius: 0 12px 0 0; }
.pdp-sizes-table tbody td {
  padding: 14px 24px;
  color: #000000;
  border-bottom: 1px solid #efe8e0;
  font-size: 15.5px;
}
.pdp-sizes-table tbody tr:nth-child(even) { background: #fbf9f6; }
.pdp-sizes-table tbody tr:hover { background: #f3ebe0; }
.pdp-sizes-table tbody tr:last-child td { border-bottom: none; }
.pdp-sizes-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.pdp-sizes-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }


/* ── Premium Specifications Cards & Grid Layout ── */
.pdp-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
}
.pdp-spec-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid #ebdccb;
  box-shadow: 0 8px 30px rgba(18, 13, 10, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}
.pdp-spec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(176, 125, 79, 0.12);
  border-color: #c68a4c;
}
.pdp-card-header {
  margin-bottom: 24px;
  border-bottom: 2px solid #f5ede4;
  padding-bottom: 18px;
}
.pdp-card-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.card-pith {
  background: #ffffff;
}
.card-pith .pdp-card-badge {
  background: #eef7f0;
  color: #2e7d32;
}
.card-pith h3 {
  color: #1a2e1c;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
.card-chips {
  background: #fdfaf7;
}
.card-chips .pdp-card-badge {
  background: #fff3e0;
  color: #e65100;
}
.card-chips h3 {
  color: #3e2723;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
.card-mixed {
  background: #fbf9f6;
  border-color: #ebdccb;
}
.card-mixed .pdp-card-badge {
  background: #efebe9;
  color: #4e342e;
}
.card-mixed h3 {
  color: #3e2723;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
.pdp-card-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.pdp-card-specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px dashed #f5ede4;
  padding-bottom: 10px;
}
.pdp-card-specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8b7d72;
  letter-spacing: 0.5px;
}
.spec-value {
  font-size: 15px;
  color: #000000;
  line-height: 1.4;
}

/* Grid for 2-column specifications (Slabs, Cubes, Discs) */
.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
}
.pdp-spec-tile {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #ebdccb;
  box-shadow: 0 4px 20px rgba(18, 13, 10, 0.02);
  transition: all 0.3s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}
.pdp-spec-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(176, 125, 79, 0.08);
  border-color: #c68a4c;
}
.tile-icon {
  font-size: 24px;
  background: #fbf9f6;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e3ded6;
}
.tile-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.tile-label {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8b7d72;
  letter-spacing: 0.5px;
}
.tile-value {
  font-size: 14.5px;
  color: #000000;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pdp-hero { padding: 140px 0 60px; }
  .pdp-hero .container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .pdp-hero-text { order: 2; text-align: center; }
  .pdp-hero-desc { text-align: center; max-width: 700px; margin: 0 auto; }
  .pdp-hero-desc p { text-align: center; }
  .pdp-hero-image { order: 1; max-width: 540px; margin: 0 auto; }
  .pdp-hero-title { font-size: clamp(26px, 5vw, 36px); }
  .pdp-crops-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pdp-other-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pdp-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .pdp-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .pdp-hero { padding: 110px 0 40px; }
  .pdp-hero .container { gap: 28px; }
  .pdp-crops-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pdp-other-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pdp-specs-table-wrap {
    overflow-x: visible;
    box-shadow: none;
    background: transparent;
  }
  .pdp-specs-table {
    display: block;
    width: 100%;
    min-width: 100% !important;
    background: transparent;
    border-collapse: collapse;
  }
  .pdp-specs-table thead {
    display: none;
  }
  .pdp-specs-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .pdp-specs-table tbody tr {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(18, 13, 10, 0.04);
    border: 1px solid #ebdccb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .pdp-specs-table tbody tr:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 125, 79, 0.08);
  }
  .pdp-specs-table tbody td {
    display: block;
    width: 100% !important;
    padding: 6px 0;
    border-bottom: none;
    font-size: 14.5px;
    color: #000000;
    text-align: left;
    white-space: normal;
  }
  .pdp-specs-table tbody td:first-child {
    font-family: var(--font-head);
    font-weight: 700;
    color: #381e0f;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #e3ded6;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .pdp-specs-table tbody tr:last-child td:first-child,
  .pdp-specs-table tbody tr:last-child td:last-child {
    border-radius: 0;
  }
  .pdp-specs-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* For 4-column spec tables (5KG Blocks, 650G Bricks) - inject header labels */
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:not(:first-child) {
    border-bottom: 1px dashed #e3ded6;
    padding: 10px 0;
  }
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:nth-child(2) {
    padding-top: 4px;
  }
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:nth-child(2)::before {
    content: "100% Washed Pith";
    font-family: var(--font-head);
    font-weight: 700;
    color: #b07d4f;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
  }
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:nth-child(3)::before {
    content: "100% Washed Chips";
    font-family: var(--font-head);
    font-weight: 700;
    color: #b07d4f;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
  }
  .pdp-specs-table tbody tr:has(td:nth-child(4)) td:nth-child(4)::before {
    content: "Washed Mixed 70/30";
    font-family: var(--font-head);
    font-weight: 700;
    color: #b07d4f;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
  }
  .pdp-cta-btns { flex-direction: column; align-items: center; }
  
  /* Styled Scrollbar for Spec Tables on mobile */
  .pdp-specs-table-wrap::-webkit-scrollbar {
    height: 6px;
  }
  .pdp-specs-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(176,125,79, 0.25);
    border-radius: 3px;
  }
  .pdp-cards-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .pdp-crops-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-other-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-crop-card img { width: 80px; height: 80px; }
  .pdp-specs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Focus visible states for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green) !important;
  outline-offset: 3px !important;
}
