/* ===== INNER PAGES STYLES ===== */

/* Page Hero */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2C1A0E 0%, #4A2C17 50%, #7B4A2D 100%);
}
.page-hero-bg.beds-bg     { background: linear-gradient(135deg, #3D2214 0%, #6B3A22 100%); }
.page-hero-bg.wardrobes-bg{ background: linear-gradient(135deg, #1A2C1A 0%, #2D5030 100%); }
.page-hero-bg.mattresses-bg { background: linear-gradient(135deg, #1A1A2C 0%, #2D2D4A 100%); }
.page-hero-bg.fabrics-bg  { background: linear-gradient(135deg, #2C2014 0%, #4A3A22 100%); }
.page-hero-bg.sofas-bg    { background: linear-gradient(135deg, #2C1A0E 0%, #7B4A2D 100%); }
.page-hero-bg.kitchens-bg { background: linear-gradient(135deg, #14201A 0%, #2A3D2A 100%); }

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,1) 0px,
    rgba(255,255,255,1) 1px,
    transparent 1px,
    transparent 40px
  );
}
.page-hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 100px;
}
.page-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(201,146,74,.15);
  border: 1px solid rgba(201,146,74,.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-light);
}
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto 24px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: var(--accent-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* Page Gallery Section */
.page-gallery { padding: 80px 0 100px; background: var(--bg); }
.page-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.page-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray-200);
  aspect-ratio: 4/3;
}
.page-gallery-item:nth-child(4n+1) { aspect-ratio: 4/3; }
.page-gallery-item:nth-child(5) { grid-column: span 2; aspect-ratio: 16/7; }
.page-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.page-gallery-item:hover img { transform: scale(1.08); }
.page-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44,26,14,.65) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: var(--transition);
}
.page-gallery-item:hover .page-gallery-overlay { opacity: 1; }
.page-gallery-overlay-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transform: translateY(10px);
  transition: transform .3s ease;
}
.page-gallery-item:hover .page-gallery-overlay-icon { transform: translateY(0); }

/* Page CTA */
.page-cta {
  padding: 70px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-cta-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.page-cta-text p {
  font-size: 1rem;
  color: var(--gray-600);
}
.page-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Back to Catalog */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  margin-bottom: 40px;
}
.back-link:hover { color: var(--primary); gap: 12px; }
.back-link svg { transition: transform .2s; }
.back-link:hover svg { transform: translateX(4px); }

/* Empty state */
.gallery-empty {
  grid-column: span 3;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.gallery-empty svg { margin: 0 auto 16px; opacity: .5; }
.gallery-empty p { font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-gallery-item:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 768px) {
  .page-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page-gallery-item:nth-child(5) { grid-column: span 1; aspect-ratio: 4/3; }
  .page-cta-inner { flex-direction: column; text-align: center; }
  .page-cta-btns { justify-content: center; }
}
@media (max-width: 480px) {
  .page-gallery-grid { grid-template-columns: 1fr; }
  .page-gallery-item:nth-child(5) { aspect-ratio: 4/3; }
  .gallery-empty { grid-column: span 1; }
}

/* ====================================================
   ARTICLES INDEX PAGE
   ==================================================== */

/* Hero backgrounds — articles */
.page-hero-bg.articles-bg     { background: linear-gradient(135deg, #1A1200 0%, #3D2E00 50%, #6B5200 100%); }
.page-hero-bg.art-furniture-bg{ background: linear-gradient(135deg, #2C1A0E 0%, #5C3520 50%, #8B5530 100%); }
.page-hero-bg.art-sofas-bg    { background: linear-gradient(135deg, #0E1A2C 0%, #1A2D4A 50%, #2D4A70 100%); }
.page-hero-bg.art-beds-bg     { background: linear-gradient(135deg, #0E2C1A 0%, #1A4A2D 50%, #2D7050 100%); }
.page-hero-bg.art-wardrobes-bg{ background: linear-gradient(135deg, #2C1F0E 0%, #4A3520 50%, #6B5030 100%); }
.page-hero-bg.art-spaces-bg   { background: linear-gradient(135deg, #1C0E2C 0%, #3D1A5E 50%, #5E2D8B 100%); }
.page-hero-bg.art-mattress-bg { background: linear-gradient(135deg, #0E1F2C 0%, #1A3A4A 50%, #2D5E6B 100%); }

/* ===== Articles Index Grid ===== */
.articles-grid-section {
  padding: 80px 0 100px;
  background: var(--bg);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(74,44,23,.07);
  border: 1px solid rgba(201,146,74,.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(201,146,74,.2);
}
.article-card-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.article-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35) 100%);
}
.article-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.article-card-tag {
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 700;
}
.article-card-time {
  font-size: .78rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.55;
}
.article-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 20px;
  flex: 1;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
  margin-top: auto;
}
.article-card-link:hover { color: var(--primary); gap: 10px; }
.article-card-link svg { transition: transform .2s; }
.article-card-link:hover svg { transform: translateX(-4px); }

/* ====================================================
   SINGLE ARTICLE PAGE
   ==================================================== */

.article-body {
  padding: 72px 0 100px;
  background: var(--bg);
}
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Meta bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--accent-pale);
}
.article-meta-tag {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(201,146,74,.35);
}
.article-meta-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-600);
}
.article-meta-dot { color: var(--accent); font-size: 1.2rem; line-height: 1; }

/* Lead paragraph */
.article-lead {
  font-size: 1.13rem;
  line-height: 2;
  color: var(--primary-dark);
  font-weight: 500;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 40px;
  border-right: 4px solid var(--accent);
  box-shadow: 0 2px 16px rgba(74,44,23,.06);
}

/* Article Section */
.article-section {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(74,44,23,.05);
  border: 1px solid rgba(201,146,74,.1);
  transition: var(--transition);
}
.article-section:hover {
  box-shadow: 0 6px 28px rgba(201,146,74,.15);
}
.article-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.article-num {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,146,74,.4);
}
.article-section h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.45;
}
.article-section p {
  font-size: 1rem;
  line-height: 2;
  color: var(--gray-600);
  margin: 0 0 12px;
}
.article-section p:last-child { margin-bottom: 0; }

/* Highlight items inside section */
.article-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--accent-pale);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}
.article-highlight-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.article-highlight-text {
  font-size: .97rem;
  line-height: 1.9;
  color: var(--primary-dark);
}
.article-highlight-text strong {
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* Tip box */
.article-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #4A2C17 0%, #7B4A2D 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(74,44,23,.25);
}
.article-tip-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.article-tip-content { flex: 1; }
.article-tip-content strong {
  display: block;
  color: var(--accent-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.article-tip-content p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: .97rem;
  line-height: 1.9;
}

/* Conclusion / Summary */
.article-conclusion {
  background: linear-gradient(135deg, #1C1C2E 0%, #2D2B55 100%);
  border-radius: 20px;
  padding: 36px 40px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(44,26,14,.2);
}
.article-conclusion-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.article-conclusion h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.article-conclusion p {
  font-size: .98rem;
  line-height: 2;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin: 0 auto 24px;
}
.article-conclusion .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(201,146,74,.45);
}
.article-conclusion .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(201,146,74,.55);
}

/* Related Articles strip */
.article-related {
  padding: 60px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--accent-pale);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.article-related-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(201,146,74,.12);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.article-related-card:hover {
  background: var(--white);
  box-shadow: 0 6px 24px rgba(201,146,74,.15);
  transform: translateY(-3px);
}
.article-related-emoji { font-size: 2rem; flex-shrink: 0; }
.article-related-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.45;
}
.article-related-info a {
  font-size: .83rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.article-related-info a:hover { color: var(--primary); }

/* ====================================================
   INDEX PAGE — ARTICLES SECTION (added to main page)
   ==================================================== */
.home-articles {
  padding: 90px 0;
  background: var(--white);
}
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 40px;
}
.home-article-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(201,146,74,.12);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.home-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.home-article-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
}
.home-article-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-article-tag {
  display: inline-block;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.home-article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.home-article-body p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 14px;
}
.home-article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: .88rem;
  transition: var(--transition);
  margin-top: auto;
}
.home-article-link:hover { color: var(--primary); gap: 10px; }

/* ===== RESPONSIVE — ARTICLES ===== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-related-grid { grid-template-columns: repeat(2, 1fr); }
  .home-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-section { padding: 24px 22px; }
  .article-lead { padding: 22px 24px; }
  .article-conclusion { padding: 28px 24px; }
  .article-tip { padding: 20px 22px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .home-articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-article-thumb { height: 130px; }
}
