.ds-product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
}

.ds-product-item {
    flex: 1 1 250px;
    min-width: 430px;
    max-width: 430px;
    height: 630px;
    text-align: center;
    padding: 13px 0px 47px 0px;
    border: none;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    background: #fff;
    transition: transform 0.3s ease;
}

.ds-product-item:hover {
    transform: translateY(-5px);
}

/* .ds-product-item img {
    height: 360px !important;
} */
.ds-product-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    max-height: 360px;
}


.ds-product-item h3 {
    text-decoration: none;
    font-family: "Inter", Sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: normal;
    color: #000000;
    padding: 30px 25px 20px 25px;
    min-height: 134px;
}

.ds-product-item .price del {
    color: #757575; /* світло-сірий */
    font-family: "Inter", Sans-serif;
    font-size: 1.8rem;
    line-height: normal;
    font-weight: 600;
    text-decoration: line-through;
    
}

.ds-product-item .price ins {
    color: #000000; /* нова ціна */
    font-family: "Inter", Sans-serif;
    font-size: 1.8rem;
    line-height: normal;
    font-weight: 600;
    text-decoration: none;
    margin-left: 24px;
}

.ds-product-item .button {
  width: 280px;
  height: 40px;
    background-color: #FF8325 !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px !important;
    border-radius: 5px !important;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 3.5173px 3.5173px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    text-align: center;
    line-height: 15px;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
    margin-top: 40px !important;
    
}
.ds-product-item a {
  display: block;
  /* margin-top: 1rem; */
}

.ds-product-item .button:hover {
    transform: scale(1.03); /* легке збільшення при наведенні */
}

@media (max-width: 768px) {
  .ds-product-grid {
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0px;
  }

  .ds-product-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0px;
  }

}

/* міні корзина */
.mini-cart-wrapper {
  position: relative;
  display: inline-block;
  z-index: 10000;
}

.mini-cart-icon {
  position: relative;
  font-size: 24px;
  color: #FF8325;
  text-decoration: none;
  cursor: pointer;
}

.mini-cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cart-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  width: 320px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 15px;
  border-radius: 10px;
  max-height: 400px;
  overflow-y: auto;
}

/* Показати при наведенні */
.mini-cart-wrapper:hover .mini-cart-dropdown {
  display: block;
}

/* Стилізація списку товарів */
.woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.woocommerce-mini-cart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

.woocommerce-mini-cart-item a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  flex-grow: 1;
  line-height: 1.3;
}

.woocommerce-mini-cart-item a:hover {
  text-decoration: underline;
}

/* Ціни + кількість */
.woocommerce-mini-cart__total {
  font-weight: 600;
  margin-top: 10px;
  text-align: right;
  font-size: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  color: #2a2a2a;
}

/* Кнопки "View Cart" і "Checkout" */
.woocommerce-mini-cart__buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}

.woocommerce-mini-cart__buttons a {
  flex: 1;
  background-color: #FF8325;
  color: white !important;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.woocommerce-mini-cart__buttons a:hover {
  background-color: #e56e12;
}

@media (max-width: 768px) {
  .mini-cart-wrapper {
    display: flex;
    justify-content: center;
  }

  .mini-cart-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 400px;
  }
}
.mini-cart-dropdown.show-cart {
  display: block !important;
}
/* ярлики на фото */
.ds-product-image-wrapper {
  position: relative;
  display: block;
}

.ds-label-wrapper {
  position: absolute;
  top: 0;
  right: 38px;
  z-index: 10;
}

.ds-label {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  font-family: Montserrat;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  padding: 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Помаранчевий - знижка */
.ds-label--orange {
  background: #FF8325;
  top: 30px;
}

/* Зелений - доставка */
.ds-label--green {
  background: #E4F5D5;
  top: 100px;
  font-size: 11px;
  font-weight: 400;
  font-family: Montserrat;
  text-align: center;
  line-height: 1.2;
  color: #000000;
  padding-top: 26px;
}

@media (max-width: 768px) {
  .orange-label, .green-label {
    left: 50% !important;
    transform: translateX(-50%);
  }
  .ds-label-wrapper {
  position: absolute;
  top: 0;
  right: 38px;
  z-index: 10;
  }

.ds-label {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  font-family: Montserrat;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  padding: 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Зелений - доставка */
.ds-label--green {
  background: #E4F5D5;
  top: 90px;
  font-size: 10px;
  font-weight: 400;
  font-family: Montserrat;
  text-align: center;
  line-height: 1.2;
  color: #000000;
  padding-top: 26px;
}
}
/* ==== Лейбли в картці товару ==== */
.ds-label-wrapper--single {
    position: absolute;
    top: 80px;
    right: 30px;
    z-index: 10;
}

.ds-label.single {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    font-family: Montserrat;
    text-align: center;
    line-height: 1.2;
    color: #fff;
    padding: 16px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Помаранчевий - знижка */
.ds-label--orange.single {
    background: #FF8325;
    top: 0;
    z-index: 1;
}

/* Зелений - доставка (накладається) */
.ds-label--green.single {
    background: #E4F5D5;
    top: 60px; /* менше, щоб накладалась */
    font-size: 12px;
    font-weight: 500;
    color: #000;
    padding-top: 22px;
    z-index: 2;
}
@media (max-width: 768px) {
  .ds-label.single {
    width: 70px;
    height: 70px;
  }

  .ds-label-wrapper--single {
      top: 170px;
      right: 14px;
  }
  .ds-label--green.single {
    background: #E4F5D5;
    top: 60px; /* менше, щоб накладалась */
    font-size: 11px;
}
