.filter-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
/* Копче ФИЛТРИ */
.filter-toggle {
  background: #8e24aa;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.filter-panel-vertical {
    display: none;
}
.filter-panel-vertical.active {
    display: block;
}

.filter-toggle:hover {
  background: #6a1b9a;
}

.mini-filter-nav {
  position: relative;
  display: inline-block;
}

.filter-panel-vertical {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #f3e6ff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
  width: 240px;
  z-index: 1000;
  flex-direction: column;
  gap: 15px;
}

.filter-panel-vertical.show {
  display: flex;
}

.filter-section h5 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #6a1b9a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .filter-panel-vertical {
    position: static;
    width: 100%;
    margin-top: 15px;
  }

  .filter-wrapper {
    justify-content: center;
  }

  .filter-toggle {
    width: 100%;
    justify-content: center;
  }
}

.text {
  padding-top: 150px;
  padding-bottom: 15px;
  text-align: center;
  text-shadow: #6a1b9a 2px 2px 4px;
  font-size: 60px;
}
/* .................... */
/* --- Flip card base --- */
/* -------------------- */
.discount-price {
  color: #d50000;
  font-weight: bold;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 5px;
}
/* Цена за производи на попуст */
.price .original-price.discount {
  text-decoration: line-through;
  color: #686868;
  font-size: 14px;
  margin-right: 5px;
}

/* Попустена цена */
.price .discount-price {
  color: #d50000;
  font-weight: bold;
  font-size: 16px;
}

/* Цена за производи кои не се на попуст */
.price .regular-price {
  color: #000;
  font-weight: bold;
  font-size: 16px;
}

form .form-check-label {
  font-weight: 500;
  color: #6a1b9a;
}

form .btn-primary {
  background-color: #8e24aa;
  border: none;
}

form .btn-primary:hover {
  background-color: #6a1b9a;
}

/* --- Product Card --- */
.product {
  background: #e6ccff;
  max-width: 310px;
  position: relative;
  margin: 0 auto;
  z-index: 1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border-end-end-radius: 10px;
  border-top-left-radius: 20px;
  margin-top: 30px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product:hover {
  perspective: 300px;
  overflow: visible;
  transform: translateY(-5px);
}

.product-sidebar {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 40px;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #e6ccff;
  z-index: 10;
  transform: rotateY(-15deg);
  transform-origin: left;
  transition: transform 0.7s ease-out, opacity 0.9s ease-out;
  opacity: 0;
}

.product:hover .product-sidebar {
  transform: translateX(0) rotateY(0deg);
  opacity: 1;
}

.product-sidebar button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 50px;
  border: none;
  background: transparent;
  color: #e600ff;
  font-size: 18px;
  cursor: pointer;
  overflow: visible;
  transition: color 0.3s ease;
}
.product-image {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
}
.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.product-image img:nth-child(2) {
  opacity: 0;
}
.product:hover .product-image img:nth-child(2) {
  opacity: 1;
}
.product:hover .product-image img:nth-child(1) {
  opacity: 0;
}

.product-description {
  background: #e6ccff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.product-description .info {
  margin-bottom: 10px;
}

.product-description h1 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #31353d;
}

.product-description p {
  font-size: 13px;
  color: #777;
  line-height: 1.3;
}

.product-description .price {
  font-size: 18px;
  font-weight: bold;
  color: #d50000;
}

/* --- Sidebar Buttons --- */

.product-sidebar button:hover {
  color: #88259b;
}
.product-sidebar button i {
  font-size: 18px;
}
.product-sidebar button span {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  padding: 5px 10px;
  background-color: #e6ccff;
  color: #88259b;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.product-sidebar button:hover span {
  opacity: 1;
  transform: translateX(0);
}
.product-sidebar button i {
  font-size: 18px;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.product-sidebar button span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #eed4fd transparent transparent;
}
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
}

.row > .product {
  display: flex;
  justify-content: center;
  flex: 1 1 100%;
}

.row > .col-12 {
  flex: 0 0 auto; /* ширина ќе се постави во media queries */
  margin-bottom: 30px;
}

/* ----------------- */
/* Мобилен (<576px) */
/* ----------------- */
@media (max-width: 575px) {
  .row > .col-12 {
    flex: 1 1 100%;
  }
  .row {
    gap: 20px;
  }

  .product:hover .product-image img:nth-child(2) {
    opacity: 0;
  }
}
@media (min-width: 576px) and (max-width: 998px) {
  .row > .col-12 {
    flex: 1 1 100%;
  }
  .row {
    gap: 35px;
  }

  .product:hover .product-image img:nth-child(2) {
    opacity: 0;
  }
}

/* Екстра мал таблет (576px - 979px) */
@media (min-width: 576px) and (max-width: 979px) {
  .product:hover .product-image img:nth-child(2) {
    opacity: 0;
  }
}

/* Таблет (994px - 1024px) */
@media (min-width: 994px) and (max-width: 1024px) {
  .row > .col-12 {
    flex: 1 1 calc(50% - 35px);
  }
  .row {
    gap: 35px;
  }
}

/* Лаптоп (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .row > .col-12 {
    flex: 0 0 calc((100% - 2 * 40px) / 2);
  }
  .row {
    gap: 40px;
  }
}

/* Голем десктоп (>1399px) */
@media (min-width: 1399px) {
  .row > .col-12 {
    flex: 0 0 calc((100% - 2 * 50px) / 3);
  }
  .row {
    gap: 50px;
  }
}
