/* Static preview styles adapted from the tested PricePiglet single-file frontend. */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #fce7f3;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.header {
  background-color: #fce7f3;
  padding: 2rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(0);
}

.header.landing {
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-spacer {
  height: 220px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ec4899;
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
}

.logo-image {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.tagline {
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link,
.instagram-link {
  color: #374151;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.instagram-link:hover {
  color: #ec4899;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #374151;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 100;
  display: flex;
  width: 250px;
  height: 100vh;
  flex-direction: column;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 5rem 2rem 2rem;
  transition: right 0.3s;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  font-weight: 500;
  padding: 1rem 0;
  text-decoration: none;
}

.search-container {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 0;
  position: relative;
}

.search-input-wrapper {
  position: relative;
}

.search-box {
  width: 100%;
  overflow: hidden;
  border: 2px solid #f9a8d4;
  border-radius: 0.75rem;
  outline: none;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 1.125rem;
  padding: 1rem 7rem 1rem 3rem;
  text-overflow: ellipsis;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-box:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px #fce7f3;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: #9ca3af;
  transform: translateY(-50%);
}

.search-button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: #ec4899;
  color: white;
  cursor: pointer;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.search-button:hover {
  background: #db2777;
}

.error-message {
  margin-top: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.card {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.product-table td {
  padding: 0.5rem;
  vertical-align: top;
}

.product-table .label {
  width: 120px;
  color: #374151;
  font-weight: 600;
}

.product-table .value {
  color: #1f2937;
}

.current-price {
  color: #ec4899;
  font-size: 1.5rem;
  font-weight: bold;
}

.variant-select {
  max-width: 420px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  color: #1f2937;
  font-size: 1rem;
  padding: 0.5rem;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 1rem;
  background: #10b981;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.discount-badge.mild {
  background: #f59e0b;
}

.price-insights {
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  background: #f9fafb;
  padding: 1rem;
}

.insights-title {
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.insight-item {
  text-align: center;
}

.insight-label {
  margin-bottom: 0.125rem;
  color: #9ca3af;
  font-size: 0.75rem;
}

.insight-value {
  font-size: 1rem;
  font-weight: 600;
}

.insight-value.low {
  color: #10b981;
}

.insight-value.high {
  color: #ef4444;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.buy-button,
.share-button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
}

.buy-button {
  background: #ec4899;
  color: white;
}

.buy-button:hover {
  background: #db2777;
}

.share-button {
  background: #e5e7eb;
  color: #374151;
}

.section-title {
  margin: 0 0 1rem;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.timeframe-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeframe-button {
  border: none;
  border-radius: 0.25rem;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

.timeframe-button.active {
  background: #ec4899;
  color: white;
}

.chart-container {
  position: relative;
  height: 16rem;
  margin-top: 1rem;
}

.chart-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-line {
  width: 20px;
  height: 2px;
  border-style: dashed;
}

.legend-line.average {
  border-color: rgba(107, 114, 128, 0.8);
}

.legend-line.lowest {
  border-color: rgba(16, 185, 129, 0.8);
}

.welcome-title {
  margin: 0 0 1rem;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.welcome-copy {
  color: #4b5563;
  line-height: 1.6;
}

.welcome-copy p {
  margin: 0 0 1rem;
}

.instagram-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background: #ec4899;
  color: white;
  font-weight: 500;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.blog-feed {
  margin-top: 3rem;
}

.blog-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.blog-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.blog-card {
  flex: 0 0 20rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
}

.blog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f9fafb;
  object-fit: cover;
  object-position: center;
}

.blog-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-content {
  padding: 1rem;
}

.blog-card-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.blog-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.blog-link {
  color: #ec4899;
  font-size: 0.875rem;
  font-weight: 500;
}

.see-more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
}

.see-more-content {
  color: #6b7280;
  padding: 2rem;
  text-align: center;
}

.see-more-title {
  margin-bottom: 0.25rem;
  color: #374151;
  font-weight: 600;
}

.footer {
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.75rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.page-intro {
  margin: 0;
  color: #4b5563;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #ec4899;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.post-meta {
  margin-bottom: 1.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.wp-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.rich-content {
  color: #374151;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content figure,
.rich-content section,
.rich-content hr {
  margin: 0 0 1rem;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 1.5rem 0 0.75rem;
  color: #1f2937;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.rich-content a {
  color: #ec4899;
  text-decoration: none;
}

.rich-content a:hover {
  text-decoration: underline;
}

.rich-content .alignright {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: min(360px, 45%);
}

.rich-content .has-small-font-size {
  color: #6b7280;
  font-size: 0.875rem;
}

.rich-content .formcarry-container {
  margin-top: 1.5rem;
}

.rich-content .formcarry-block {
  margin-bottom: 1rem;
}

.rich-content label {
  display: block;
  margin-bottom: 0.35rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.rich-content input[type="text"],
.rich-content input[type="email"],
.rich-content textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
}

.rich-content textarea {
  min-height: 10rem;
  resize: vertical;
}

.rich-content button,
.rich-content input[type="submit"] {
  border: none;
  border-radius: 0.5rem;
  background: #ec4899;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.deal-list-card {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.deal-list-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.deal-list-body {
  padding: 1rem;
}

.deal-list-date {
  margin-bottom: 0.35rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.deal-list-title {
  margin: 0 0 0.5rem;
  color: #1f2937;
  font-size: 1.1rem;
  line-height: 1.3;
}

.deal-list-excerpt {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .header {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: 1rem;
  }

  .header-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 0;
    overflow: hidden;
  }

  .search-box {
    min-width: 0;
    padding: 0.75rem 5.75rem 0.75rem 2.5rem;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 1rem;
    z-index: 3;
    pointer-events: none;
  }

  .search-button {
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .header-spacer {
    height: 180px;
  }

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

  .product-table .label {
    width: 100px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .chart-container {
    display: block;
    width: 100%;
    height: 256px;
    min-height: 256px;
    max-height: 256px;
    overflow: hidden;
    position: relative;
  }

  .chart-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 256px;
  }

  .blog-card {
    flex: 0 0 calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .blog-excerpt {
    -webkit-line-clamp: 8;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .rich-content .alignright {
    float: none;
    max-width: 100%;
    margin-left: 0;
  }
}
