/* ============================================
   PAGES — Collection, Product, Blog, Info
   ============================================ */

/* Collection Page */
.collection-hero {
  padding: 3rem 0; background: var(--bg-alt);
  border-bottom: 1px solid var(--border); text-align: center;
}
.collection-hero h1 { margin-bottom: 0.5rem; }
.collection-hero p { max-width: 480px; margin: 0 auto; }
.collection-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.filters-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem;
}
.filters-left { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 1.25rem; border: 1px solid var(--border); font-size: 0.78rem;
  font-weight: 500; transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem; border: 1px solid var(--border);
  font-size: 0.78rem; background: #fff; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}

/* Product Page */
.product-page { padding: 2rem 0 4rem; }
.product-page-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.product-gallery { display: flex; gap: 1rem; }
.gallery-thumbs,
.gallery-thumbs-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-thumb {
  width: 72px; height: 72px; border: 1px solid var(--border); padding: 0.25rem;
  cursor: pointer; transition: border-color 0.2s; background: var(--bg-alt);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main {
  flex: 1; aspect-ratio: 1; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  position: relative; overflow: hidden;
}
.gallery-main img {
  width: 80%; object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.1));
  transition: transform 0.4s var(--ease);
}
.gallery-main:hover img { transform: scale(1.05); }
.product-info-section { position: sticky; top: 100px; }
.product-info-badge { margin-bottom: 0.75rem; }
.product-info-collection {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 0.375rem;
}
.product-info-title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); margin-bottom: 0.25rem; }
.product-info-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.product-info-prices { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.product-info-prices .p-current { font-size: 1.75rem; }
.product-info-save {
  font-size: 0.85rem; color: var(--red); font-weight: 600; margin-bottom: 1.5rem;
}
.product-info-desc {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.product-specs { margin-bottom: 1.5rem; }
.product-specs li {
  padding: 0.5rem 0; font-size: 0.85rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04); display: flex; align-items: center; gap: 0.5rem;
}
.product-specs li::before { content: '✓'; color: var(--green); font-weight: 600; font-size: 0.75rem; }
.product-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-actions .btn { flex: 1; }
.product-guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.guarantee-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-secondary);
}
.guarantee-item svg { color: var(--green); flex-shrink: 0; }

/* Similar Products */
.similar-section { padding: 4rem 0; border-top: 1px solid var(--border); }

/* Blog */
.blog-hero { padding: 3rem 0; background: var(--bg-alt); text-align: center; border-bottom: 1px solid var(--border); }
/* Blog Grid — Horizontal Slider */
.blog-grid {
  display: flex; gap: 1.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 0.5rem;
}
.blog-grid::-webkit-scrollbar { display: none; }
.blog-card { scroll-snap-align: start; flex-shrink: 0; width: calc(33.333% - 1rem); }
@media (min-width: 769px) {
  .blog-grid { overflow-x: visible; flex-wrap: wrap; }
  .blog-card { width: calc(33.333% - 1rem); }
}
.blog-card {
  background: #fff; border: 1px solid var(--border); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.blog-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.blog-card-img {
  aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; }
.blog-card-tag {
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 0.5rem;
}
.blog-card-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }
.blog-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* Blog Article */
.article-hero { padding: 3rem 0; background: var(--bg-alt); text-align: center; }
.article-hero .section-label { margin-bottom: 0.75rem; }
.article-hero h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); margin-bottom: 0.75rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.article-meta { font-size: 0.8rem; color: var(--text-muted); }
.article-body {
  max-width: 720px; margin: 0 auto; padding: 3rem 0 4rem;
}
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.5rem; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-left: 3px solid var(--green); padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--green-bg); font-style: italic; font-size: 1rem; color: var(--text);
}
.article-body img { width: 100%; margin: 1.5rem 0; }
.article-cta {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 2rem; text-align: center; margin: 2.5rem 0;
}
.article-cta h3 { margin-bottom: 0.5rem; }
.article-cta p { margin-bottom: 1rem; }

/* Info Pages */
.info-hero { padding: 3rem 0; background: var(--bg-alt); text-align: center; border-bottom: 1px solid var(--border); }
.info-body { max-width: 780px; margin: 0 auto; padding: 3rem 0 4rem; }
.info-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text); }
.info-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.info-body p { margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.75; }
.info-body ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.info-body li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.375rem; list-style: disc; }
.info-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.info-body th, .info-body td {
  padding: 0.75rem 1rem; border: 1px solid var(--border); font-size: 0.85rem; text-align: left;
}
.info-body th { background: var(--bg-alt); font-weight: 600; }
.info-body .highlight-box {
  background: var(--green-bg); border-left: 3px solid var(--green);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 0.9rem;
}

/* Checkout / Cart Page */
.checkout-page { padding: 3rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.checkout-form h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.checkout-summary {
  background: var(--bg-alt); border: 1px solid var(--border); padding: 2rem; position: sticky; top: 100px;
}
.checkout-summary h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.checkout-line {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  font-size: 0.9rem; color: var(--text-secondary);
}
.checkout-line.total { font-size: 1.1rem; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.5rem; }

/* 404 Page */
.page-404 { padding: 6rem 0; text-align: center; }
.page-404 h1 { font-size: 6rem; color: var(--green); margin-bottom: 0.5rem; }
.page-404 p { font-size: 1.1rem; margin-bottom: 2rem; }
