/* ===== HOMEPAGE BRICK-FRAME LAYOUT ===== */

/* Brick sides: body-level texture, content panels float on top */
.page-framed {
  background-image: url('../images/brick-bg.jpg');
  background-size: 600px auto;
  background-repeat: repeat;
  background-position: top center;
  background-color: #6B4A3A;
}

/* Subtle vignette overlay on the brick for depth */
.page-framed::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to right,
    rgba(30, 18, 12, 0.15) 0%,
    transparent 8%,
    transparent 92%,
    rgba(30, 18, 12, 0.15) 100%
  );
}

/* Content panels that sit on top of the brick */
.page-framed .content-panel {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-inline: auto;
  background: var(--color-bg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 20px 70px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.3);
  margin-top: var(--space-lg);
  min-height: 60vh;
}

/* Panel gets rounded corners */
.page-framed .content-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: transparent;
}

/* All sections inside the panel get their own background */
.page-framed .content-panel > section {
  background: var(--color-bg);
}

.page-framed .content-panel > main {
  background: var(--color-bg);
}

/* Alternate panel bg */
.page-framed .content-panel-alt {
  background: var(--color-bg-alt);
}

/* Hero & footer are full-width (already have brick) */
.page-framed .hero,
.page-framed .trust-strip,
.page-framed .site-footer {
  position: relative;
  z-index: 1;
}

/* Section spacing within panels */
.page-framed .section {
  padding-block: var(--space-3xl);
}

/* Story banner within a panel */
.page-framed .story-section {
  background: transparent;
}

.page-framed .story-section .story-banner {
  border-radius: var(--radius-lg);
}

/* On mobile, panels go full-width (no brick sides visible) */
@media (max-width: 1200px) {
  .page-framed .content-panel {
    max-width: 100%;
    border-radius: 0 !important;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ===== HOMEPAGE SECTION STYLING ===== */

/* Hero panel — brick shows through with enough overlay for readability */
.page-framed .content-panel > .hero-panel {
  background: rgba(30, 18, 12, 0.68);
}

.section-featured {
  background: var(--color-bg);
  padding-bottom: var(--space-2xl);
}

/* Decorative divider after what's new only */
.section-whats-new::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-secondary), transparent);
  margin: var(--space-lg) auto 0;
}

.section-whats-new {
  background: var(--color-bg-alt);
  padding-bottom: var(--space-lg);
}

.section-whats-new + .section-featured {
  padding-top: var(--space-lg);
}

/* Premium What's New cards */
.section-whats-new .card {
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: white;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.section-whats-new .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Story section — transparent like hero, brick shows through */
.page-framed .content-panel > .story-section {
  background: rgba(30, 18, 12, 0.68);
  padding-bottom: var(--space-2xl);
}

.story-section {
  background: var(--color-bg);
  padding-bottom: var(--space-2xl);
}

/* ===== SHOP PAGE ===== */
.shop-header {
  text-align: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-md);
}

.shop-header h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.shop-count {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--color-bg-alt);
}

.product-info h1 {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.product-info .product-price {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.product-info .product-description {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.product-info .product-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.product-info .product-meta span {
  display: block;
  margin-bottom: var(--space-sm);
}

.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.variation-btn {
  padding: 0.6em 1.2em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.variation-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.variation-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

.product-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.product-breadcrumb a {
  color: var(--color-text-muted);
}

.product-breadcrumb a:hover {
  color: var(--color-primary);
}

.product-breadcrumb .sep {
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

/* Related Products */
.related-products {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border);
}

.related-products h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
}

/* ===== BLOG PAGE ===== */
.blog-header {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: 0;
}

.blog-header h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.blog-header + .section {
  padding-top: var(--space-md);
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

.blog-post h1 {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.blog-post-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.blog-post-content {
  line-height: 1.8;
  font-size: var(--text-lg);
}

.blog-post-content p {
  margin-bottom: var(--space-lg);
}

.blog-post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  text-align: center;
  padding: var(--space-xl) 0 0;
}

.about-hero h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.about-hero + .about-content.section {
  padding-top: var(--space-lg);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.contact-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 61, 46, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  margin-bottom: var(--space-lg);
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.contact-info-item p {
  color: var(--color-text);
  line-height: 1.6;
}
