/*
	Theme Name: Loquet Child Theme
	
	Description: Child theme of Loquet theme
	Author: GP
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: loquet
	Template: loquet
	Version: 1.0.0
*/


/* --- 1. Clip the slide so the scaled image doesn't spill --- */

.gt-portfolio-slider .swiper-slide {
  overflow: hidden;
}


/* --- 2. Ken Burns on the background image --- */

.gt-portfolio-slider .gt-image {
  will-change: transform;
  transform: scale(1.15) translate(2.5%, 2.5%);
}

.gt-portfolio-slider .swiper-slide-active .gt-image {
  animation: kenburns 16s ease-out forwards;
}

@keyframes kenburns {
  0%   { transform: scale(1.15) translate(2.5%, 2.5%); }
  100% { transform: scale(1.15) translate(-2.5%, -2.5%); }
}


/* --- 3. Keep text above the transformed image --- */

.gt-portfolio-slider .gt-content {
  position: relative;
  z-index: 2;
}


/* --- 4. Staggered text entrance --- */

.gt-portfolio-slider .gt-content > * {
  opacity: 0;
  transform: translateY(30px);
}

.gt-portfolio-slider .swiper-slide-active .gt-content > * {
  animation: gtSlideUp 1s ease-out forwards;
}

.gt-portfolio-slider .swiper-slide-active .gt-content > *:nth-child(1) {
  animation-delay: 0.2s;
}
.gt-portfolio-slider .swiper-slide-active .gt-content > *:nth-child(2) {
  animation-delay: 0.4s;
}
.gt-portfolio-slider .swiper-slide-active .gt-content > *:nth-child(3) {
  animation-delay: 0.6s;
}
.gt-portfolio-slider .swiper-slide-active .gt-content > *:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes gtSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- 5. Accessibility: honour reduced-motion --- */

@media (prefers-reduced-motion: reduce) {
  .gt-portfolio-slider .swiper-slide-active .gt-image,
  .gt-portfolio-slider .swiper-slide-active .gt-content > * {
    animation: none;
  }
  .gt-portfolio-slider .gt-content > * {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   FEATURED PRODUCT SLIDER
   ========================================================== */

.nbj-product-slider {
  position: relative;
  padding: 0 0 40px;
}

.nbj-product-slider .swiper {
  overflow: hidden;
}

.nbj-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nbj-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3f2ef;
  margin-bottom: 20px;
}

.nbj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.nbj-card:hover .nbj-card__media img {
  transform: scale(1.05);
}

.nbj-card__title {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.nbj-card__price {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.nbj-card__price del { opacity: 0.5; margin-right: 6px; }
.nbj-card__price ins { text-decoration: none; }

/* --- Navigation arrows --- */

.nbj-product-slider .swiper-button-prev,
.nbj-product-slider .swiper-button-next {
  width: 44px;
  height: 44px;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.nbj-product-slider .swiper-button-prev:hover,
.nbj-product-slider .swiper-button-next:hover {
  opacity: 1;
}

.nbj-product-slider .swiper-button-prev::after,
.nbj-product-slider .swiper-button-next::after {
  font-size: 20px;
}

@media (max-width: 768px) {
  .nbj-product-slider .swiper-button-prev,
  .nbj-product-slider .swiper-button-next {
    display: none;
  }
}

/* ==========================================================
   PRODUCT CATEGORY SLIDER
   Append to: loquet-child/style.css
   ========================================================== */
.nbj-category-carousel {
  position: relative;
}
 
.nbj-category-carousel .swiper {
  overflow: hidden;
}
 
 
/* --- Card --- */
 
.nbj-cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
 
.nbj-cat-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f3f2ef;
  margin-bottom: 22px;
}
 
.nbj-cat-card__media img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
 
.nbj-cat-card:hover .nbj-cat-card__media img {
  transform: scale(1.06);
}
 
.nbj-cat-card__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
 
.nbj-cat-card__count {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b6b;
  opacity: 1;
}
 
 
/* --- Navigation --- */
 
.nbj-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 50px;
}
 
.nbj-prev,
.nbj-next {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #1a1a1a;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
 
.nbj-prev:hover,
.nbj-next:hover {
  opacity: 1;
}
 
.nbj-prev.swiper-button-disabled,
.nbj-next.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
}
 
.nbj-pagination {
  display: flex;
  align-items: center;
  gap: 18px;
}
 
.nbj-pagination .swiper-pagination-bullet {
  width: auto;
  height: auto;
  margin: 0 !important;
  background: none;
  border-radius: 0;
  opacity: 0.35;
  font-size: 14px;
  line-height: 1;
  color: #1a1a1a;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
 
.nbj-pagination .swiper-pagination-bullet:hover {
  opacity: 0.7;
}
 
.nbj-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}
.nbj-pagination .swiper-pagination-bullet {
  margin: 0 !important;
}
.nbj-pagination.swiper-pagination-horizontal,
.nbj-category-carousel .nbj-pagination {
  position: static !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}
.nbj-category-carousel .swiper:not(.swiper-initialized) {
  visibility: hidden;
  min-height: 400px;
}

.nbj-category-carousel .swiper-wrapper {
  display: flex;
}

.nbj-category-carousel .swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 25%;
  max-width: 25%;
}

@media (max-width: 1199px) {
  .nbj-category-carousel .swiper:not(.swiper-initialized) .swiper-slide {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}
@media (max-width: 899px) {
  .nbj-category-carousel .swiper:not(.swiper-initialized) .swiper-slide {
    flex-basis: 50%;
    max-width: 50%;
  }
}
/* --- Mobile --- */
@media (max-width: 599px) {
  .nbj-category-carousel .swiper,
  .nbj-product-carousel .swiper {
    padding: 0 16px;
  }
} 
@media (max-width: 767px) {
  .nbj-controls {
    gap: 18px;
    margin-top: 32px;
  }
  .nbj-prev svg,
  .nbj-next svg {
    width: 32px;
  }
}