body {
  background: #e6f8f1;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

.catalog {
  max-width: 420px;
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.dashed-title {
  border: 4px dashed #000;
  padding: 12px 24px;
  display: inline-block;
  margin: 24px auto;
  border-radius: 4px;
  background-color: transparent;
  text-align: center;
}

.dashed-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.product {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  text-align: center;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.dots span.active {
  background: #000;
}

.price {
  margin: 12px 0;
}

.price .old {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.price .new {
  color: #d33;
  font-weight: bold;
}

button {
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 24px 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.modal input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  outline: none;
  transition: border 0.2s ease;
}

.modal input:focus {
  border-color: #d63a3a;
}

.modal button {
  background: #d63a3a;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal button:hover {
  background: #b93131;
}

.close {
  font-size: 14px;
  color: #999;
  cursor: pointer;
  margin-top: 6px;
}

.thank-you {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease forwards;
}

.thank-you-box {
  background: white;
  padding: 30px 24px;
  border-radius: 18px;
  text-align: center;
  font-size: 18px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: popUp 0.3s ease;
}

.thank-you-box p {
  margin: 8px 0;
  font-size: 18px;
}

.thank-you-box button {
  margin-top: 14px;
  padding: 12px 24px;
  background: #d63a3a;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.thank-you-box button:hover {
  background: #b93131;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popUp {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.order-steps.dark {
  background: #2f2f2f;
  color: white;
  padding: 16px;
  max-width: 388px;
  /* точна ширина як у товару */
  margin: 50px auto;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid #444;
  border-radius: 0;
  /* без заокруглень */
}

.order-steps.dark h2 {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.order-steps.dark ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-steps.dark li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-steps.dark .icon {
  width: 42px;
  height: 42px;
  background: #444;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-steps.dark .icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  /* робить svg білим */
}

.order-steps.dark .text {
  font-size: 15px;
  line-height: 1.4;
}

.delivery-bonus {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed #ffb4a1;
  padding: 14px;
  border-radius: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: #ffb4a1;
  text-align: center;
}

.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ff3b3b;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.3s ease;
}

.floating-cart-btn:hover {
  background-color: #cc2c2c;
}

.cart-icon {
  width: 28px;
  height: 28px;
  filter: invert(1);
  /* Робить іконку білою */
}

.cart-count {
  position: absolute;
  top: -6px;
  left: -6px;
  background-color: #ff3b3b; /* той самий, що фон кнопки */
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px white; /* створює контур */
}

.cart-modal {
  display: none;
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.cart-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cart-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.cart-actions button {
  background: #d63a3a;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cart-actions button:hover {
  background: #b93131;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #333;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

.cart-close-top {
  text-align: right;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  margin-bottom: 8px;
}

.cart-close-top:hover {
  color: #d63a3a;
}

.cart-items-list {
  padding: 0;
  list-style: none;
  margin: 0 0 10px 0;
}

.cart-items-list li {
  text-align: left;
  font-size: 16px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  gap: 6px;
}

.item-name {
  flex: 1;
  font-weight: 500;
}

.item-qty {
  color: #666;
  font-size: 14px;
}

.remove-item {
  background: none;
  border: none;
  color: #d63a3a;
  font-size: 16px;
  cursor: pointer;
}

.remove-item:hover {
  color: #a62828;
}

.cart-total {
  margin-top: 12px;
  text-align: right;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 12px;
  box-sizing: border-box;
  pointer-events: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
  transition: background-color 0.3s ease;
}

.arrow.left {
  left: 12px;
}

.arrow.right {
  right: 12px;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.button-group button {
  flex: 1 1 calc(50% - 8px); /* 2 кнопки в ряд */
  padding: 10px;
}
