/* Кнопки «Заказать» / «Заказать сейчас» — яркое мерцающее свечение */

.products-grid .product-card,
.product-card {
  overflow: visible !important;
}

.products-grid .product-card .product-img,
.product-card .product-img {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.products-grid .product-card .product-body,
.product-card .product-body {
  overflow: visible;
  padding-bottom: 22px;
}

.products-grid .product-card:hover,
.product-card:hover {
  border: 1px solid #C9A84C;
  box-shadow:
    0 0 20px rgba(201, 168, 76, 0.4),
    inset 0 0 20px rgba(201, 168, 76, 0.05);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.btn-order,
.btn-order-main,
button[class*="order"],
.btn-cart {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: visible;
  border: none !important;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #9A7B1A, #C9A84C, #B8922A) !important;
  color: #1a1200 !important;
  -webkit-text-fill-color: #1a1200 !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: glow-pulse 2s ease-in-out infinite;
}

.btn-order,
.btn-cart {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-order-main {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
}

.product-card-footer .btn-cart,
.product-footer .btn-cart {
  width: auto;
}

/* Яркое пятно под кнопкой */
.btn-order::after,
.btn-order-main::after,
button[class*="order"]::after,
.btn-cart::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 12%;
  width: 76%;
  height: 16px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.55) 0%, rgba(184, 134, 11, 0.35) 45%, transparent 72%);
  filter: blur(10px);
  transform-origin: center bottom;
  animation: under-glow 2s ease-in-out infinite;
}

.products-grid .product-card:nth-child(1) .btn-order::after,
.products-grid .product-card:nth-child(1) .btn-cart::after { animation-delay: 0s; }
.products-grid .product-card:nth-child(2) .btn-order::after,
.products-grid .product-card:nth-child(2) .btn-cart::after { animation-delay: 0.38s; }
.products-grid .product-card:nth-child(3) .btn-order::after,
.products-grid .product-card:nth-child(3) .btn-cart::after { animation-delay: 0.75s; }
.products-grid .product-card:nth-child(4) .btn-order::after,
.products-grid .product-card:nth-child(4) .btn-cart::after { animation-delay: 1.12s; }

@keyframes glow-pulse {
  0% {
    box-shadow:
      0 0 6px rgba(201, 168, 76, 0.25),
      0 0 12px rgba(184, 134, 11, 0.15);
  }
  50% {
    box-shadow:
      0 0 12px rgba(201, 168, 76, 0.45),
      0 0 24px rgba(184, 134, 11, 0.3),
      0 0 40px rgba(201, 168, 76, 0.18);
  }
  100% {
    box-shadow:
      0 0 6px rgba(201, 168, 76, 0.25),
      0 0 12px rgba(184, 134, 11, 0.15);
  }
}

@keyframes under-glow {
  0% {
    opacity: 0.2;
    transform: scaleX(0.75);
  }
  50% {
    opacity: 0.5;
    transform: scaleX(1.05);
  }
  100% {
    opacity: 0.2;
    transform: scaleX(0.75);
  }
}

.btn-order:hover,
.btn-order-main:hover,
button[class*="order"]:hover,
.btn-cart:hover {
  transform: scale(1.02);
  filter: brightness(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .btn-order,
  .btn-order-main,
  button[class*="order"],
  .btn-cart {
    animation: none;
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.3);
  }
  .btn-order::after,
  .btn-order-main::after,
  button[class*="order"]::after,
  .btn-cart::after {
    animation: none;
    opacity: 0.55;
    transform: scaleX(1);
  }
}
