/* ============================
   SINGLE BRAND PAGE
   (taxonomy-product_brand)
   ============================ */

.brand-page {
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 1200px;
  margin: auto;
}

/* Hero section */
.brand-hero {
  text-align: center;
  margin-bottom: 40px;
}

.brand-hero-logo {
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
}

.brand-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Brand description */
.brand-description {
  max-width: 750px;
  margin: 0 auto 50px;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

/* Product list title */
.brand-section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: left;
}

/* Product grid */
.brand-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* Product cards */
.brand-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: 0.25s ease;
}

.brand-product-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.brand-product-card img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.brand-product-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
}

.brand-product-price {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

/* Routine section */
.routine-section {
  margin-top: 60px;
  padding: 30px 0;
}

/* NAV stepovi */
.routine-steps-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 20px;
  background: #f5f1ea;
  border-radius: 12px;
}

.routine-step-nav-item {
  font-weight: 600;
  font-size: 15px;
}

/* Step Naslov */
.routine-step-title {
  margin: 40px 0 15px;
  font-size: 20px;
  font-weight: 700;
}

/* Grid proizvoda */
.routine-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px;
}

.routine-product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #eee;
  transition: 0.3s ease;
}

.routine-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

.routine-product-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================
   BRAND ROUTINE BLOCK
============================ */

.routine-section {
  margin-top: 60px;
  padding: 60px 40px;
  background: #e7dfd3; /* svetlo bež kao u slici */
  border-radius: 12px;
  border: 10px solid #fff;
}

.routine-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.routine-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: #444;
}

/* Step header */

.routine-steps-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Jedan step */

.routine-step {
  flex: 1 1 calc(20% - 20px);
  text-align: center;
}

.routine-step-header {
  margin-bottom: 15px;
}

.routine-step-name {
  font-size: 18px;
  font-weight: 600;
}

.routine-step-desc {
  font-size: 14px;
  color: #555;
}

/* Product card */

.routine-product-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.routine-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.routine-product-thumb img {
  border-radius: 10px;
  max-height: 240px;
  object-fit: cover;
  width: 100%;
}

.routine-product-title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.routine-product-price {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}
/* ============================
   BRAND RUTINA – TIMELINE
   ============================ */

.routine-section {
  margin-top: 60px;
  padding: 60px 40px;
  background: #d6c8d0; /* bež podloga – možeš da finije nijansiraš */
  border-radius: 12px;
  margin-bottom: 60px;
}

.routine-block + .routine-block {
  margin-top: 40px;
}

/* Wrapper oko stepover */

.routine-steps-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 3px; /* prostor za liniju + labelu */
  margin-bottom: 40px;
  flex-wrap: wrap; /* da se lepo lomi na manjem ekranu */
}

/* Horizontalna linija */

.routine-steps-wrapper::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  opacity: 0.9;
}

/* Pojedinačni step */

.routine-step {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  min-width: 160px;
}

/* Tačka iznad svakog stepa */

.routine-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
}

/* Naslov + opis ispod linije */

.routine-step-header {
  margin-top: 32px; /* spušta tekst ispod tačke i linije */
}

.routine-step-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding-top: 30px;
}

.routine-step-desc {
  font-size: 14px;
  line-height: 1.4;
  color: #f7f2e8;
}

/* Kartica proizvoda u okviru stepa */

.routine-product-card {
  display: block;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
}

.routine-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.routine-product-thumb img {
  border-radius: 10px;
  max-height: 230px;
  width: 100%;
  object-fit: cover;
}

.routine-product-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.routine-product-price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

/* Mobile – stepover jedan ispod drugog */

@media (max-width: 768px) {
  .routine-steps-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .routine-step::before,
  .routine-steps-wrapper::before {
    left: 50%;
    right: auto;
    width: 0;
  }

  .routine-steps-wrapper::before {
    display: none; /* na mobilnom možemo da isključimo liniju ako smeta */
  }
}
.routine-step {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.routine-step:nth-child(1) {
  animation-delay: 0.1s;
}
.routine-step:nth-child(2) {
  animation-delay: 0.25s;
}
.routine-step:nth-child(3) {
  animation-delay: 0.4s;
}
.routine-step:nth-child(4) {
  animation-delay: 0.55s;
}
.routine-step:nth-child(5) {
  animation-delay: 0.7s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@media (max-width: 768px) {
  .routine-steps-nav {
    flex-direction: column;
  }

  .routine-steps-nav::before {
    display: none;
  }

  .routine-step-nav-item {
    margin-bottom: 20px;
  }

  .routine-steps-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
  }

  .routine-step {
    flex: 0 0 80%;
    scroll-snap-align: start;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
  }
}
.routine-product-card {
  display: block;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.routine-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.routine-product-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-page.container {
  padding-top: 40px;
  padding-bottom: 40px;
}
