/* ============================================
   SINGLE PRODUCT PAGE - Matching Next.js
   ============================================ */

/* Breadcrumb */
.spd-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--stone-200);
  padding: 16px 0;
}

.spd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--stone-600);
}

.spd-breadcrumb a {
  color: var(--stone-600);
  text-decoration: none;
  transition: color 0.2s;
}

.spd-breadcrumb a:hover {
  color: var(--forest-700);
}

.spd-breadcrumb-current {
  color: var(--forest-900);
  font-weight: 500;
}

/* Back link */
.spd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-700);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.spd-back-link:hover {
  color: var(--forest-900);
}

/* Main layout */
.spd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .spd-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Image section */
.spd-image-wrap {
  position: relative;
}

@media (min-width: 1024px) {
  .spd-image-wrap {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

.spd-image-container {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--forest-100), #dcfce7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  .spd-image-container {
    aspect-ratio: 1/1;
    max-height: 500px;
  }
}

.spd-image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spd-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

/* Info section */
.spd-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Category badge */
.spd-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34,197,94,0.1);
  color: var(--spring-600, #16a34a);
  border: 1px solid rgba(34,197,94,0.2);
  width: fit-content;
}

/* Title block */
.spd-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--forest-950);
  line-height: 1.15;
  margin: 0;
}

@media (min-width: 768px) {
  .spd-title {
    font-size: 3rem;
  }
}

.spd-latin {
  font-size: 1.25rem;
  color: var(--stone-500);
  font-style: italic;
  margin: 4px 0 0;
}

.spd-family {
  font-size: 0.875rem;
  color: var(--stone-400);
  margin: 12px 0 0;
}

.spd-family strong {
  font-weight: 500;
  color: var(--stone-500);
}

/* Price card */
.spd-price-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--stone-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.spd-price-request-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-700);
  margin: 0 0 8px;
}

.spd-price-request-sub {
  font-size: 0.875rem;
  color: var(--stone-500);
  margin: 0;
}

.spd-price-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spd-price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--forest-700);
}

.spd-price-ttc {
  color: var(--stone-500);
}

/* Short description */
.spd-short-desc {
  font-size: 1.125rem;
  color: var(--stone-600);
  line-height: 1.75;
}

.spd-short-desc p {
  margin: 0;
}

/* CTA buttons */
.spd-cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .spd-cta-row {
    flex-direction: row;
  }
}

.spd-cta-row .spd-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.spd-btn-primary {
  background: var(--forest-800);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.spd-btn-primary:hover {
  background: var(--forest-700, #198754);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: #fff;
}

.spd-btn-secondary {
  background: transparent;
  color: var(--forest-800);
  border: 2px solid var(--forest-800);
}

.spd-btn-secondary:hover {
  background: var(--forest-50);
  transform: translateY(-2px);
  color: var(--forest-800);
}

/* Attributes grid */
.spd-attrs-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--stone-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.spd-attrs-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-950);
  margin: 0 0 24px;
}

.spd-attrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .spd-attrs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spd-attr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spd-attr-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--forest-600, #16a34a);
}

.spd-attr-icon.icon-sun { color: #eab308; }
.spd-attr-icon.icon-droplet { color: #60a5fa; }
.spd-attr-icon.icon-thermometer { color: #3b82f6; }
.spd-attr-icon.icon-flower { color: #f472b6; }
.spd-attr-icon.icon-trending-up { color: var(--forest-600); }

.spd-attr-label {
  display: block;
  font-weight: 500;
  color: var(--forest-950);
  font-size: 0.875rem;
}

.spd-attr-value {
  display: block;
  font-size: 0.875rem;
  color: var(--stone-600);
}

/* Soil card */
.spd-soil-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--stone-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.spd-soil-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest-950);
  margin: 0 0 12px;
}

.spd-soil-value {
  color: var(--stone-700);
  line-height: 1.625;
  margin: 0;
}

/* Full Description */
.spd-description {
  margin-top: 64px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--stone-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 1024px) {
  .spd-description {
    padding: 40px;
  }
}

.spd-description-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--forest-950);
  margin: 0 0 32px;
}

.spd-description-content {
  color: var(--stone-700);
  line-height: 1.75;
  font-size: 1.0625rem;
}

.spd-description-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-900);
  margin: 40px 0 16px;
}

.spd-description-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-900);
  margin: 32px 0 12px;
}

.spd-description-content p {
  margin: 0 0 20px;
}

.spd-description-content strong {
  color: var(--forest-900);
  font-size: 1.125rem;
  display: block;
  margin: 32px 0 12px;
}

.spd-description-content ul,
.spd-description-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.spd-description-content li {
  margin-bottom: 8px;
  color: var(--stone-700);
}

.spd-description-content > *:first-child {
  margin-top: 0;
}

/* Culture Advice */
.spd-culture {
  margin-top: 40px;
  background: var(--forest-50);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--forest-100, #dcfce7);
}

.spd-culture-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-900);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spd-culture-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spd-culture-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spd-culture-icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.spd-culture-text {
  color: var(--stone-700);
  line-height: 1.625;
}

.spd-culture-text strong {
  color: var(--forest-800);
}

/* Related Products */
.spd-related {
  margin-top: 80px;
}

.spd-related-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--forest-950);
  margin: 0 0 40px;
}

.spd-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .spd-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spd-rel-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stone-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}

.spd-rel-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.spd-rel-image {
  position: relative;
  height: 192px;
  background: linear-gradient(135deg, var(--forest-100), #dcfce7);
  overflow: hidden;
}

.spd-rel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spd-rel-card:hover .spd-rel-image img {
  transform: scale(1.1);
}

.spd-rel-image .spd-rel-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.75rem;
  transition: transform 0.3s ease;
}

.spd-rel-card:hover .spd-rel-emoji {
  transform: scale(1.1);
}

.spd-rel-info {
  padding: 24px;
}

.spd-rel-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--forest-950);
  margin: 0 0 8px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spd-rel-card:hover .spd-rel-name {
  color: var(--forest-700);
}

.spd-rel-latin {
  font-size: 0.875rem;
  color: var(--stone-500);
  font-style: italic;
  margin: 0 0 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spd-rel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--stone-100);
}

.spd-rel-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-700);
}

.spd-rel-price.on-request {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest-600);
}

.spd-rel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-50);
  color: var(--forest-700);
  transition: background 0.2s;
}

.spd-rel-card:hover .spd-rel-arrow {
  background: var(--forest-100);
}
