/* ============================================================
   Modern Furniture & Mattresses — style.css
   Color Palette:
     Background:  #0D0D0D
     Surface:     #1A1A1A
     Primary:     #CC0000
     Hover:       #E60000
     Text:        #F5F5F5
     Secondary:   #A0A0A0
     White:       #FFFFFF
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #F5F0E8;
  --surface:   #EDE5D8;
  --primary:   #CC0000;
  --hover:     #E60000;
  --text:      #111111;
  --secondary: #555555;
  --white:     #FFFFFF;
  --radius:    6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

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

.btn-primary:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bg);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--white);
}

/* Fade-in animation classes (driven by JS IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.02em;
}

.nav-logo em.logo-modern {
  font-style: normal;
  color: #1A1A1A;
  font-size: 1.15em;
}

.nav-logo span {
  color: var(--primary);
  text-shadow: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555555;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Ticker Banner ---------- */
.ticker-bar {
  background: var(--primary);
  margin-top: 70px;
  padding: 0.7rem 0;
  overflow: hidden;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
}

.ticker-sep {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 55vh;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Placeholder backgrounds — replace each with <img class="slide-img" src="YOUR_IMAGE"> */
.slide-1 { background: linear-gradient(135deg, #1a0808 0%, #2d0a0a 100%); }
.slide-2 { background: linear-gradient(135deg, #080d1a 0%, #0d1525 100%); }
.slide-3 { background: linear-gradient(135deg, #0d0a0a 0%, #1f0d00 100%); }

/* Drop in images here when ready */
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.65) 0%,
    rgba(10,10,10,0.4) 55%,
    rgba(10,10,10,0.1) 100%
  );
  z-index: 1;
}

.slide > .container {
  position: relative;
  z-index: 2;
}

.slide-content {
  max-width: 640px;
  padding: 3rem 0;
}

.slide-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.slide-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.slide-content h2 em {
  font-style: normal;
  color: var(--primary);
}

.slide-sub {
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  margin-bottom: 2.2rem;
  max-width: 460px;
  line-height: 1.75;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Image-only slide (promo banner with text baked in) */
.slide-image-only .slide-img {
  object-fit: cover;
  object-position: center center;
}

/* Slide-in animation for content */
.slide-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Prev / Next arrows */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.slider-prev { left: 1.75rem; }
.slider-next { right: 1.75rem; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
}

/* Slide counter */
.slider-counter {
  position: absolute;
  bottom: 2.1rem;
  right: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.1em;
  z-index: 10;
}

.slider-counter span {
  color: var(--white);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Mobile */
@media (max-width: 768px) {
  .slides-wrapper { height: 50vh; }
  .slider-prev { left: 0.75rem; }
  .slider-next { right: 0.75rem; }
  .slider-prev,
  .slider-next { width: 40px; height: 40px; font-size: 0.85rem; }
  .slider-counter { display: none; }
  .hero-scroll { display: none; }
}

/* ---------- Departments ---------- */
.departments {
  padding: 6rem 0;
  background: var(--surface);
}

.departments-header {
  text-align: center;
  margin-bottom: 3rem;
}

.departments-header .section-desc {
  margin-inline: auto;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dept-card {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ccc;
  cursor: pointer;
}

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

.dept-card:hover img {
  transform: scale(1.09);
}

.dept-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.1) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}

.dept-card:hover .dept-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.25) 45%,
    transparent 100%
  );
}

.dept-count {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.dept-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.1rem;
  line-height: 1.15;
}

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.dept-card:hover .dept-link {
  opacity: 1;
  transform: translateY(0);
}

.dept-link:hover {
  background: var(--hover);
}

/* ---------- Collections ---------- */
.collections {
  padding: 6rem 0;
  background: var(--bg);
}

.collections-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.collections-header .section-desc {
  margin-inline: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0c8bc;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(204, 0, 0, 0.15);
}

.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-sm:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- About ---------- */
.about {
  padding: 6rem 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .section-desc {
  margin-bottom: 1.5rem;
}

.about-body {
  color: var(--secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-visual {
  position: relative;
}

.about-card {
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  height: 420px;
  position: relative;
  overflow: hidden;
  background-image: url('../images/showroom.png');
  background-size: cover;
  background-position: top center;
}

.about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.15) 60%, transparent 100%);
}

.about-card-label {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.05em;
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  font-weight: 600;
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 0 0 4px var(--surface);
  z-index: 2;
}

.about-badge strong {
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Blog Preview ---------- */
.blog-preview {
  padding: 6rem 0;
  background: var(--bg);
}

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0c8bc;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.blog-img {
  height: 190px;
  overflow: hidden;
  position: relative;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-img img,
.blog-card-full:hover .blog-img img {
  transform: scale(1.07);
}

.blog-body {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.blog-tag {
  background: rgba(204,0,0,0.15);
  color: var(--primary);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 0.7rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: 6rem 0;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap .section-desc {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-panel {
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.75rem;
}

.info-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.info-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 36px;
  height: 36px;
  background: rgba(204,0,0,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.info-text span {
  font-size: 0.92rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  filter: none;
}

/* ---------- Footer ---------- */
.footer {
  background: #080808;
  border-top: 1px solid #1e1e1e;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-brand .nav-logo em.logo-modern {
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--secondary);
  max-width: 260px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--secondary);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Blog Page ---------- */
.blog-hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  text-align: center;
}

.blog-hero .section-label {
  margin-bottom: 0.75rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.blog-hero p {
  color: var(--secondary);
  max-width: 520px;
  margin-inline: auto;
}

.blog-main {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card-full {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.blog-card-full:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(204, 0, 0, 0.12);
}

.blog-card-full .blog-img {
  height: 210px;
  font-size: 3.5rem;
}

.blog-card-full .blog-body {
  padding: 1.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-card {
    height: 300px;
  }

  .products-grid,
  .blog-grid,
  .blog-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-card {
    height: 280px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 480px;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.4rem;
  }

  /* Grids */
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-card {
    height: 240px;
  }

  .dept-link {
    opacity: 1;
    transform: translateY(0);
  }

  .products-grid,
  .blog-grid,
  .blog-full-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .blog-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-inner {
    height: 60px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo em.logo-modern {
    font-size: 1em;
  }

  /* Hero Slider */
  .slides-wrapper {
    height: 70vw;
    min-height: 320px;
    max-height: 500px;
  }

  .slide-content {
    padding: 1.5rem 0;
  }

  .slide-content h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .slide-sub {
    font-size: 0.9rem;
  }

  .slide-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .slide-actions .btn {
    width: 100%;
    text-align: center;
  }

  .slider-prev,
  .slider-next {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .slider-prev { left: 0.75rem; }
  .slider-next { right: 0.75rem; }

  /* Dept hero banner */
  .dept-hero-banner {
    max-height: 220px;
    border-radius: 8px;
  }

  /* Dept category cards */
  .dept-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .dept-card {
    height: 200px;
  }

  .dept-name {
    font-size: 1rem;
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-card {
    height: 260px;
  }

  /* Product page hero */
  .dept-page-hero {
    padding: 3rem 0 2rem;
  }

  .dept-page-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Single column dept cards on very small screens */
  .dept-grid {
    grid-template-columns: 1fr;
  }

  .dept-card {
    height: 220px;
  }

  /* Slider height */
  .slides-wrapper {
    height: 80vw;
    min-height: 280px;
  }

  /* Dept hero banner */
  .dept-hero-banner {
    max-height: 180px;
  }

  /* Navbar */
  .nav-logo {
    font-size: 0.95rem;
  }

  /* Ticker smaller */
  .ticker-track {
    font-size: 0.78rem;
  }

  /* Product grid single column */
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Department Product Pages ---------- */
.dept-page-hero {
  padding: 4.5rem 0 3rem;
  background: var(--surface);
  border-bottom: 1px solid #1e1e1e;
}

.dept-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.dept-page-breadcrumb a {
  color: var(--primary);
  transition: opacity var(--transition);
}

.dept-page-breadcrumb a:hover { opacity: 0.75; }

.dept-page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.dept-page-desc {
  color: var(--secondary);
  max-width: 640px;
  line-height: 1.8;
  font-size: 1rem;
}

.dept-hero-banner {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 2rem;
}

.dept-products {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.dept-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.dept-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dept-filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #333;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-collection {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10,10,10,0.75);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.dept-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.dept-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.dept-cta p {
  color: var(--secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* ---------- Blog Article Pages ---------- */
.article-hero {
  padding: 5rem 0 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid #1e1e1e;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 1.75rem;
}

.article-breadcrumb a {
  color: var(--primary);
  transition: opacity var(--transition);
}

.article-breadcrumb a:hover { opacity: 0.75; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.article-intro {
  font-size: 1.08rem;
  color: var(--secondary);
  max-width: 720px;
  line-height: 1.85;
}

.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 2.75rem;
  border: 1px solid #2a2a2a;
  display: block;
}

.article-body {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

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

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  line-height: 1.25;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.article-content p {
  color: var(--secondary);
  line-height: 1.88;
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}

.article-content ul,
.article-content ol {
  color: var(--secondary);
  line-height: 1.88;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  font-size: 0.97rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.55rem; }

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-tip {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.5rem;
  margin: 2rem 0;
}

.article-tip p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-tip p::before {
  content: "Pro Tip: ";
  color: var(--primary);
  font-weight: 700;
}

.article-cta {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.article-cta h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-cta p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-inline: auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.sidebar-post {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  text-decoration: none;
}

.sidebar-post:last-child { margin-bottom: 0; }

.sidebar-post img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: color var(--transition);
  display: block;
  margin-bottom: 0.2rem;
}

.sidebar-post:hover .sidebar-post-title { color: var(--primary); }

.sidebar-post-date {
  font-size: 0.72rem;
  color: var(--secondary);
}

.sidebar-contact { text-align: center; }

.sidebar-contact p {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.sidebar-contact .btn {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .sidebar-widget { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .article-sidebar { grid-template-columns: 1fr; }
}

/* ---------- Product Modal ---------- */
.product-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-modal-backdrop.open {
  display: flex;
}

.product-modal {
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #444;
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition), border-color var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.modal-img {
  background: #f5f5f5;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-collection {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.modal-name {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.modal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(204,0,0,0.12);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--secondary);
  line-height: 1.8;
}

.modal-divider {
  height: 1px;
  background: #2a2a2a;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 640px) {
  .product-modal {
    grid-template-columns: 1fr;
  }
  .modal-img {
    border-radius: 14px 14px 0 0;
    min-height: 220px;
  }
  .modal-info {
    padding: 1.5rem;
  }
}
