/* ========================================
   PDP - PRODUCT DETAIL PAGE
   ======================================== */
.pdp-content {
  padding-bottom: 80px; /* space for sticky bar */
}

/* Breadcrumb: ← All Products / Category */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 8px;
  font-size: 13px;
  min-height: 44px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-link:hover {
  color: var(--text);
}
.breadcrumb-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.breadcrumb-sep {
  color: var(--faint);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Product info */
.pdp-info {
  padding: 20px 20px 0;
}

.pdp-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}

.pdp-title-seo {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #b0a69c;
  margin-top: 6px;
  letter-spacing: 0;
}

.pdp-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 16px;
}

/* Desktop buy button (inline, hidden on mobile) */
.pdp-desktop-buy {
  display: none;
}

/* ========================================
   DESCRIPTION (always visible teaser + read more)
   ======================================== */
.pdp-description {
  padding: 0 20px 20px;
}

.desc-teaser {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.desc-teaser p {
  margin-bottom: 8px;
}

.desc-read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--clay);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
}

.desc-read-more:hover {
  text-decoration: underline;
}

.desc-full {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.desc-full p {
  margin-bottom: 8px;
}

/* ========================================
   ACCORDIONS
   ======================================== */
.pdp-accordions {
  padding: 0 20px;
}

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

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

.pdp-accordions summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

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

.pdp-accordions summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.pdp-accordions details[open] summary::after {
  transform: rotate(-135deg);
}

.pdp-accordions .accordion-body {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ========================================
   MORE FROM SECTION
   ======================================== */
.pdp-more-section {
  padding: 36px 0 12px;
}

.pdp-more-header {
  padding: 0 20px 14px;
}

.pdp-more-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
  color: var(--muted);
}

/* Related products 2x2 grid (matches main site card style) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px;
}

.related-card {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related-card:hover {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.13),
    0 1px 4px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.related-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.related-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.related-card:hover .related-card-img-wrap img {
  transform: scale(1.05);
}

.related-card-info {
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfa 100%);
}

.related-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-price {
  font-size: 14px;
  color: var(--muted);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 36px 20px 40px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--faint);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   SECONDARY LINKS
   ======================================== */
.pdp-secondary-links {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdp-secondary-links a {
  font-size: 15px;
  color: var(--clay);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  cursor: pointer;
}

.pdp-secondary-links a:hover {
  text-decoration: underline;
}

/* ========================================
   STICKY CTA BAR
   ======================================== */
/* Entrance animation: slide up with a gentle settle */
@keyframes stickySlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateY(-4px);
    opacity: 1;
  }
  80% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(0);
  }
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: linear-gradient(180deg, #f5f0ea 0%, #ece7e0 100%);
  color: var(--text);
  border-top: 1px solid rgba(176, 122, 85, 0.2);
  box-shadow:
    0 -2px 8px rgba(176, 122, 85, 0.08),
    0 -8px 24px rgba(45, 35, 24, 0.06);
  animation: stickySlideUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.sticky-cta-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.sticky-cta-price {
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--clay);
}

.sticky-cta-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: var(--etsy-orange);
  border: none;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(245, 100, 0, 0.25);
}

.sticky-cta-btn:hover {
  background: var(--etsy-orange-dark);
  box-shadow: 0 3px 12px rgba(245, 100, 0, 0.3);
}

.sticky-cta-btn:active {
  transform: scale(0.97);
}

/* Shimmer sweep on button — like light catching a glaze */
@keyframes ctaShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.sticky-cta-btn.shimmer {
  background-image: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%
  );
  background-size: 200% auto;
  background-color: var(--etsy-orange);
  animation: ctaShimmer 0.8s ease-in-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta-btn.shimmer {
    animation: none;
    background-image: none;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 1024px) {
  /* PDP 2-column layout */
  .pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .pdp-breadcrumb {
    padding-left: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .pdp-info-col {
    padding-top: 8px;
  }

  .pdp-info {
    padding: 0;
  }

  .pdp-description {
    padding: 0 0 20px;
  }

  .pdp-accordions {
    padding: 0;
  }

  .pdp-back {
    padding: 16px 40px 8px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Show inline buy button, hide sticky bar */
  .sticky-cta {
    display: none !important;
  }

  .pdp-desktop-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--etsy-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    min-height: 56px;
    margin-top: 28px;
    transition: background 0.2s;
    text-decoration: none;
  }

  .pdp-desktop-buy:hover {
    background: var(--etsy-orange-dark);
  }

  .pdp-content {
    padding-bottom: 40px;
  }

  .pdp-more-section {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .pdp-more-header {
    padding-left: 0;
  }

  .related-grid {
    padding: 0;
  }

  .pdp-secondary-links {
    padding-left: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
}
