.loader-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}

body.is-loading {
  overflow: hidden;
  pointer-events: none;
}

body.is-loading .loader-wrap {
  pointer-events: auto;
}

.loader-wrap .loader-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
}

.loader-wrap .loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.loader-wrap .loader-content .loader-tag {
  font-size: 11px;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  visibility: hidden;
}

.loader-wrap .loader-content .loader-title {
  font-family: var(--font-serif), serif;
  font-size: 10vw;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0;
  visibility: hidden;
}

.hero-video-container {
  position: relative;
  height: calc(100vh - var(--nav-height-mobile));
  margin-top: var(--nav-height-mobile);
  width: 100%;
  overflow: hidden;
  background: #000000;
  display: block;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.bestsellers-section {
  padding: 5vh 0;
  position: relative;
}

.bestsellers-section h2 {
  font-family: var(--font-serif), serif;
  font-size: 28px;
  margin-bottom: 30px;
}

.bestsellers-section .horizontal-scroll-wrapper {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.bestsellers-section .horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.bestsellers-section .horizontal-scroll-wrapper .p-card {
  min-width: 70vw;
  scroll-snap-align: start;
}

.bestsellers-section .horizontal-scroll-wrapper .p-card .p-img-box {
  background: var(--gray);
  aspect-ratio: 1/1.2;
  overflow: hidden;
}

.bestsellers-section .horizontal-scroll-wrapper .p-card .p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.bestsellers-section .horizontal-scroll-wrapper .p-card h3 {
  font-size: 15px;
  margin-top: 15px;
}

.bestsellers-section .section-header h2 {
  padding: 0 5vw;
  font-size: 30px;
}

.bestsellers-section .horizontal-scroll-wrapper:active {
  cursor: grabbing;
}

.bestsellers-section .horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.bestsellers-section .p-card {
  width: 25vw;
  min-width: 25vw;
  flex-shrink: 0;
  text-align: left;
  user-select: none;
  cursor: pointer;
}

.bestsellers-section .p-card .p-img-box {
  background: #f5f5f5;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  display: block;
}

.bestsellers-section .p-card .p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0%;
  transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

.bestsellers-section .p-card:hover .p-img-box img {
  /*transform: scale(1.04);*/
}

.bestsellers-section .p-card .p-info {
  padding: 14px 12px 0;
}

.bestsellers-section .p-card .p-info h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
  color: #111;
  line-height: 1.4;
}

.bestsellers-section .p-card .p-info .price {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
  display: block;
}

.bestsellers-section .p-card .p-info .p-meta {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bestsellers-section .p-card .p-info .p-meta::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.featured-routine {
  padding: 0 5vw 5vh;
}

.featured-routine .routine-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.featured-routine h2 {
  font-family: var(--font-serif), serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.featured-routine p {
  margin-bottom: 30px;
  font-size: 16px;
  color: #555;
}

.featured-routine .routine-image {
  position: relative;
  order: -1;
}

.featured-routine .routine-image img {
  width: 100%;
  height: 100%;
  z-index: 2;
  position: relative;
}

.featured-routine .routine-image .blob-element {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--beige);
  border-radius: 50%;
  filter: blur(40px);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.routine-text p {
  word-spacing: 0.1rem;
}

.commitments {
  padding: 5vh 0;
  text-align: center;
}

.commitments h2 {
  font-family: var(--font-serif), serif;
  font-size: 30px;
  font-style: italic;
  border-bottom: 1px solid #000;
}

.commitments .commitments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.commitments .commitment-item .c-icon {
  margin: 0 auto 15px;
  color: #111;
}

.commitments .commitment-item h3 {
  font-size: 10px;
  letter-spacing: 1px;
}

.commitments .commitment-item .c-icon {
  width: 50px;
  height: 50px;
}

.commitments .commitment-item .c-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collections-screenshot {
  padding: 5vh 5vw;
}

.collections-screenshot h2 {
  font-family: var(--font-serif), serif;
  font-size: 28px;
  font-style: italic;
  margin-bottom: 30px;
  border-bottom: 1px solid #000;
  display: inline-block;
}

.collections-screenshot .coll-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.collections-screenshot .section-header {
  text-align: center;
  margin-bottom: 0;
}

.collections-screenshot .section-header h2 {
  font-size: 30px;
}

.collections-screenshot .coll-card .img-container {
  overflow: hidden;
  margin-bottom: 15px;
}

.collections-screenshot .coll-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.collections-screenshot .coll-card .btn-see-all {
  margin-top: auto;
}

.collections-screenshot .coll-card:hover img {
  transform: scale(1.05);
}

.collections-screenshot .coll-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.collections-screenshot .coll-card h3 {
  font-family: var(--font-serif), serif;
  font-size: 20px;
  margin-bottom: 5px;
}

.collections-screenshot .coll-card h4 {
  font-size: 12px;
  color: #777;
  margin-bottom: 15px;
}

.marquee-rotator-section {
  height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-rotator-section .rotating-bg-products {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.marquee-rotator-section .p-rotator {
  position: absolute;
  height: 70%;
  width: auto;
  object-fit: contain;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.marquee-rotator-section .p-rotator.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.marquee-rotator-section .marquee-slow-wrapper {
  width: 100%;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.marquee-rotator-section .marquee-slow-content {
  display: inline-block;
  animation: marquee-anim 60s linear infinite;
}

.marquee-rotator-section .marquee-slow-wrapper .marquee-slow-content span {
  font-family: var(--font-serif), serif;
  font-size: clamp(80px, 12vw, 180px);
  margin-right: 80px;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.85);
  display: inline-block;
}

@keyframes marquee-anim {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 7b. SHOP BY CATEGORY */
.category-nav-section {
  position: relative;
  padding: 5vh 5vw;
  background: var(--white);
  overflow: hidden;
  text-align: center;
  counter-reset: cat-count;
}

.cat-floating-container {
  display: none;
}

.category-nav-section .category-list-wrapper .cat-subtitle {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 30px;
}

.category-nav-section .category-list-wrapper .cat-links {
  list-style: none;
  margin-bottom: 0;
}

.category-nav-section .category-list-wrapper .cat-links li {
  padding: 0 5vw;
  counter-increment: cat-count;
  position: relative;
}

.category-nav-section .category-list-wrapper .cat-links li::before {
  content: "0" counter(cat-count);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif), serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #bbb;
  display: block;
}

.category-nav-section .category-list-wrapper .cat-links li a {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 60px);
  color: #ccc;
  text-decoration: none;
  line-height: 1.1;
  display: block;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  pointer-events: all;
  transform: translateZ(0);
}

.category-nav-section .category-list-wrapper .cat-links li a:hover {
  color: #111;
  transform: scale(1.05) translateZ(0);
}

.category-nav-section .category-list-wrapper .cat-links:has(a:hover) a:not(:hover) {
  opacity: 0.3;
  filter: blur(2px);
}

/* Woocommerce look proizvoda */
.p-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

.p-img-box {
  position: relative !important;
  overflow: hidden !important;
}

.product-main-image,
.product-hover-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity .4s ease !important;
}

.product-hover-image {
  opacity: 0 !important;
}

/* Hover swap SAMO na desktop uredjajima sa mišem */
@media (hover: hover) and (pointer: fine) {
  .p-card:hover .product-hover-image {
    opacity: 1 !important;
  }

  .p-card:hover .product-main-image {
    opacity: 0 !important;
  }
}

/* Na touch uredjajima — sakrij hover sliku, nema swapa */
@media (hover: none) {
  .product-hover-image {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .loader-wrap .loader-content .loader-title {
    font-size: 5vw;
  }

  .bestsellers-section h2 {
    font-size: 38px;
  }

  .bestsellers-section .horizontal-scroll-wrapper .p-card {
    min-width: calc(50% - 15px);
  }

  .featured-routine .routine-container {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    text-align: left;
    align-items: center;
  }

  .featured-routine h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
  }

  .featured-routine .routine-image {
    order: 0;
  }

  .featured-routine.reversed .routine-container {
    direction: rtl;
  }

  .featured-routine.reversed .routine-text,
  .featured-routine.reversed .routine-image {
    direction: ltr;
  }

  .featured-routine .routine-image .blob-element {
    width: 300px;
    height: 300px;
    left: 10%;
    transform: none;
  }

  .commitments {
    padding: 5vh 0;
  }

  .commitments h2 {
    font-size: 42px;
  }

  .commitments .commitment-item h3 {
    font-size: 12px;
  }

  .commitments .commitments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collections-screenshot h2 {
    font-size: 36px;
    margin-bottom: 50px;
  }

  .collections-screenshot .coll-grid {
    display: flex;
    justify-content: center;
  }

  .collections-screenshot .coll-card {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
  }

  .collections-screenshot .section-header h2 {
    font-size: 38px;
  }

  .marquee-rotator-section .p-rotator {
    /*height: 75vh;
    padding: 100px 0;*/
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .modern-nav .nav-logo {
    font-family: var(--font-serif), serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 8px;
    text-decoration: none;
    color: var(--black);
  }

  .modern-nav .main-links,
  .modern-nav .nav-links {
    display: flex;
    gap: 35px;
  }

  .hero-video-container {
    margin-top: var(--nav-height-desktop);
    height: calc(100vh - var(--nav-height-mobile));
  }

  .bestsellers-section .horizontal-scroll-wrapper .p-card:hover img {
    /*transform: scale(1.08);*/
  }

  .bestsellers-section .horizontal-scroll-wrapper .p-card {
    min-width: calc(25% - 15px);
    scroll-snap-align: none;
  }

  .marquee-rotator-section .marquee-slow-content span {
    font-size: 10vw;
    margin-right: 150px;
  }

  .featured-routine .routine-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .featured-routine.reversed .routine-container {
    direction: rtl;
  }

  .featured-routine.reversed .routine-container .routine-text,
  .featured-routine.reversed .routine-container .routine-image {
    direction: ltr;
  }

  .featured-routine h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
  }

  .featured-routine p {
    margin-bottom: 36px;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
  }

  .featured-routine .routine-image {
    position: relative;
  }

  .featured-routine .routine-image img {
    width: 100%;
    z-index: 2;
    position: relative;
    display: block;
  }

  .featured-routine .routine-image .blob-element {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--beige);
    border-radius: 50%;
    filter: blur(50px);
    bottom: -20px;
    left: 10%;
    z-index: 1;
  }

  .commitments {
    padding: 5vh 0;
  }

  .commitments h2 {
    font-size: 60px;
  }

  .commitments .commitments-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .commitments .commitment-item h3 {
    font-size: 14px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
  }

  .category-nav-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 250px 185px;
    min-height: 70vh;
    overflow-x: hidden;
  }

  .cat-floating-container {
    display: flex;
    position: absolute;
    width: 25vw;
    height: 60vh;
    max-width: 800px;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .category-nav-section .cat-floating-container .floating-layer-float-left,
  .category-nav-section .cat-floating-container .floating-layer-float-right {
    width: 70% !important;
    height: 70% !important;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
  }

  .category-nav-section .cat-floating-container .floating-layer-float-left {
    top: -15% !important;
    left: 55% !important;
  }

  .category-nav-section .cat-floating-container .floating-layer-float-right {
    top: 40% !important;
    right: 57% !important;
  }

  .category-nav-section .cat-floating-container .floating-layer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.05));
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
  }

  .cat-floating-container.left {
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
  }

  .cat-floating-container.right {
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
  }

  .floating-layer img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .floating-layer img.active {
    opacity: 1;
  }

  .collections-screenshot .section-header h2 {
    font-size: 52px;
  }

  @keyframes float {
    0% {
      transform: translateY(0px) scale(1.1);
    }

    50% {
      transform: translateY(-30px) scale(1.1);
    }

    100% {
      transform: translateY(0px) scale(1.1);
    }
  }
}