/* ========================================
   PRODUCTS & DETAIL PAGES — AURA EDÖRR
   ======================================== */

/* ─── Active Navigation Link ─── */
.active-link {
  color: var(--accent) !important;
  position: relative;
}

.active-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* ========================================
   PRODUCTS HERO
   ======================================== */
.products-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 10rem 4% 5rem;
  background: var(--bg-dark);
}

.products-hero__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(217, 4, 41, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(239, 35, 60, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(217, 4, 41, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.products-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.products-hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.products-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.products-hero__title em {
  font-style: italic;
  color: var(--accent-light);
}

.products-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.products-hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.products-hero__stat {
  text-align: center;
}

.products-hero__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
}

.products-hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   FINISH OPTIONS BANNER
   ======================================== */
.finish-banner {
  background: var(--bg-warm);
  padding: 1.5rem 4%;
  border-bottom: 1px solid var(--border);
}

.finish-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.finish-banner__title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.finish-banner__options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.finish-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-body);
  letter-spacing: 0.5px;
}

.finish-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

/* ========================================
   PRODUCT CATEGORIES GRID
   ======================================== */
.products-section {
  padding: 5rem 4%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.product-category-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s;
  display: flex;
  flex-direction: column;
}

.product-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
  border-color: transparent;
}

.product-category-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-category-card__image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-category-card:hover .product-category-card__image img {
  transform: scale(1.08);
}

.product-category-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.product-category-card:hover .product-category-card__overlay {
  opacity: 1;
}

.product-category-card__view {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.3s, border-color 0.3s;
}

.product-category-card:hover .product-category-card__view {
  border-color: var(--accent-light);
  background: var(--accent);
}

.product-category-card__body {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  flex: 1;
}

.product-category-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 4, 41, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.product-category-card:hover .product-category-card__icon {
  background: var(--accent);
  color: #fff;
}

.product-category-card__info {
  flex: 1;
  min-width: 0;
}

.product-category-card__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-category-card__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-category-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.product-category-card__count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.product-category-card__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.product-category-card:hover .product-category-card__arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ========================================
   PRODUCTS CTA SECTION
   ======================================== */
.products-cta {
  background: var(--bg-warm);
  padding: 6rem 4%;
  text-align: center;
}

.products-cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.products-cta__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.products-cta__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.products-cta__desc {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.products-cta__actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ========================================
   BREADCRUMB BAR
   ======================================== */
.breadcrumb-bar {
  padding: 6.5rem 4% 1rem;
  background: #fff;
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-bar a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.3s;
}

.breadcrumb-bar a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  font-size: 0.55rem;
  color: var(--border);
}

.breadcrumb-current {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   DETAIL HERO
   ======================================== */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
  background: #fff;
}

.detail-hero__content {
  padding: 4rem 6% 4rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease both;
}

.detail-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.detail-hero__desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.detail-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.detail-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-body);
}

.detail-hero__meta-item i {
  color: var(--accent);
  width: 18px;
  font-size: 0.9rem;
}

.detail-hero__visual {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.detail-hero__visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,4,41,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.detail-hero__visual img {
  max-width: 70%;
  max-height: 350px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s 0.2s ease both;
}

/* ========================================
   DETAIL PRODUCTS GRID
   ======================================== */
.detail-products {
  padding: 4rem 4% 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.detail-products__header {
  text-align: center;
  margin-bottom: 3rem;
}

.detail-products__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.detail-products__subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.detail-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.03);
}

.product-item__image-wrap {
  background: var(--bg-warm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.product-item__image-wrap::after {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-body);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-item:hover .product-item__image-wrap::after {
  opacity: 1;
}

.product-item__image-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-item:hover .product-item__image-wrap img {
  transform: scale(1.06);
}

.product-item__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}

.product-item__details {
  padding: 1.2rem 1.5rem 1.5rem;
}

.product-item__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.product-item__code {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.product-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-item__price {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
}

.product-item__enquiry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #25D366;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.3s;
}

.product-item__enquiry:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.product-item__enquiry i {
  font-size: 0.95rem;
}

/* ========================================
   PREV / NEXT NAVIGATION
   ======================================== */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-nav__link {
  text-decoration: none;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.3s;
}

.detail-nav__link:hover {
  background: var(--bg-warm);
}

.detail-nav__prev {
  text-align: left;
}

.detail-nav__next {
  text-align: right;
}

.detail-nav__label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-nav__next .detail-nav__label {
  justify-content: flex-end;
}

.detail-nav__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.detail-nav__all {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-body);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.3s, color 0.3s;
}

.detail-nav__all:hover {
  background: var(--accent);
  color: #fff;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox__img {
  max-width: 85%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

/* ========================================
   RESPONSIVE — PRODUCTS PAGES
   ======================================== */
@media (max-width: 1024px) {
  .products-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero__visual {
    min-height: 300px;
  }

  .detail-hero__content {
    padding: 3rem 6%;
  }
}

@media (max-width: 768px) {
  .products-section__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  
  .products-hero {
    min-height: 55vh;
    padding: 9rem 4% 4rem;
  }
  
  .products-hero__stats {
    gap: 1.5rem;
  }

  .products-hero__stat-num {
    font-size: 2rem;
  }

  .finish-banner__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .finish-banner__options {
    gap: 1rem;
    justify-content: center;
  }

  .breadcrumb-bar {
    padding: 6rem 4% 0.8rem;
    font-size: 0.72rem;
  }

  .detail-hero__content {
    padding: 2.5rem 5%;
  }

  .detail-hero__visual {
    padding: 2rem;
    min-height: 250px;
  }

  .detail-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-item__details {
    padding: 1rem;
  }

  .product-item__name {
    font-size: 0.95rem;
  }

  .product-item__price {
    font-size: 1rem;
  }

  .product-item__enquiry {
    font-size: 0.65rem;
    padding: 0.4rem 0.7rem;
  }

  .detail-nav {
    grid-template-columns: 1fr 1fr;
  }

  .detail-nav__all {
    grid-column: 1 / -1;
    justify-content: center;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .detail-nav__link {
    padding: 1.5rem;
  }

  .detail-nav__name {
    font-size: 1rem;
  }

  .products-cta__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .detail-products__grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .products-hero__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .product-item__footer {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}
