:root {
  --bg-main: #080712;
  --bg-card: rgba(18, 15, 29, 0.94);
  --bg-card-hover: rgba(28, 22, 44, 0.98);
  --primary: #ff2a85;
  --primary-hover: #ff4797;
  --primary-glow: rgba(255, 42, 133, 0.45);
  --accent-purple: #9333ea;
  --accent-flame: #ff7700;
  --accent-cyan: #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.4);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-light: #e5e7eb;
  --border: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 42, 133, 0.7);
  --input-bg: rgba(12, 10, 20, 0.95);
  --error-color: #ff4d4d;
  --success-color: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(255, 42, 133, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(0, 229, 255, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #090714 0%, #0d0a1d 35%, #06050e 100%);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* Неонові сценічні промені Demon Hunters */
.stage-glow-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.stage-glow-right {
  position: fixed;
  top: 10%;
  right: 0;
  width: 450px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.stage-glow-center {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 700px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 65%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.top-bar {
  background: linear-gradient(90deg, #ff2a85 0%, #9333ea 50%, #00e5ff 100%);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 12px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 42, 133, 0.3);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px;
}

.hero {
  text-align: center;
  padding: 25px 20px 15px;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-logo-badge {
  font-size: 32px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 42, 133, 0.15);
  border: 1px solid rgba(255, 42, 133, 0.5);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.4), inset 0 0 15px rgba(255, 42, 133, 0.2);
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 42, 133, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
  }
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff559f;
  border: 1px solid rgba(255, 42, 133, 0.4);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(255, 42, 133, 0.1);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.2);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #ffffff 40%, #ff2a85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px var(--primary-glow);
  margin-bottom: 8px;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.highlight-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.catalog-section {
  margin: 24px 0 32px;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: rgba(255, 42, 133, 0.4);
  box-shadow: 0 12px 35px rgba(255, 42, 133, 0.2);
}

.product-card.is-selected {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.35);
}

/* Галерея з підтримкою Touch-свайпу та відображення без обрізання */
.product-gallery {
  position: relative;
  width: 100%;
  height: 360px;
  background: radial-gradient(circle at center, rgba(30, 22, 50, 0.95) 0%, rgba(10, 8, 18, 0.98) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  touch-action: pan-y;
  user-select: none;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Картинка повністю вміщується без обрізання! */
  transition: opacity 0.25s ease, transform 0.3s ease;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8));
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

.gallery-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

.gallery-thumbs {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.swipe-hint {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 769px) {
  .swipe-hint {
    display: none;
  }
}

.product-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  z-index: 10;
  box-shadow: 0 0 12px var(--primary-glow);
}

.product-tag.bundle-3 {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.product-tag.bundle-5 {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-short-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.product-specs {
  font-size: 12px;
  color: #d1d5db;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-pricing {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 22px;
  font-weight: 900;
  color: #ff559f;
  text-shadow: 0 0 12px rgba(255, 42, 133, 0.4);
}

.quantity-control {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.btn-qty {
  background: transparent;
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-qty:hover {
  background: rgba(255, 42, 133, 0.4);
  color: #fff;
}

.qty-display {
  width: 34px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.cart-summary-banner {
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.2) 0%, rgba(147, 51, 234, 0.2) 50%, rgba(0, 229, 255, 0.15) 100%);
  border: 1px solid rgba(255, 42, 133, 0.5);
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 42, 133, 0.2);
}

.cart-summary-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-summary-label {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-summary-items {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.cart-total-amount {
  font-size: 24px;
  font-weight: 900;
  color: #ff559f;
  text-shadow: 0 0 15px rgba(255, 42, 133, 0.5);
}

.btn-scroll-order {
  background: linear-gradient(135deg, #ff2a85 0%, #9333ea 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-scroll-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 42, 133, 0.6);
}

.order-form {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-header h2 {
  font-size: 24px;
  color: #fff;
}

.form-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.order-items-review {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #f3f4f6;
}

.review-count {
  font-size: 12px;
  color: var(--primary);
  background: rgba(255, 42, 133, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.review-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #e5e7eb;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-selection-prompt {
  font-size: 13px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px dashed rgba(251, 191, 36, 0.3);
}

.review-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.review-total-row strong {
  font-size: 22px;
  color: #ff559f;
}

.form-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-top: 6px;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

label {
  font-weight: 600;
  font-size: 13px;
  color: #e5e7eb;
}

.required {
  color: var(--primary);
  font-weight: bold;
}

.optional {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: normal;
}

input,
select,
textarea {
  background: var(--input-bg);
  color: #fff;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
  background: rgba(20, 16, 30, 0.98);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon input {
  padding-left: 44px;
}

.search-input-wrapper {
  position: relative;
}

.input-loader {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.delivery-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(14, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.radio-icon {
  font-size: 24px;
}

.radio-text {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.radio-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.radio-card:hover .radio-card-content {
  border-color: rgba(255, 42, 133, 0.5);
  background: rgba(255, 42, 133, 0.08);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  border-color: var(--primary);
  background: rgba(255, 42, 133, 0.18);
  box-shadow: 0 0 18px var(--primary-glow);
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-title {
  color: #ff559f;
}

.field-error {
  display: none;
  color: var(--error-color);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--error-color);
  background: rgba(255, 77, 77, 0.06);
}

.form-group.has-error .field-error {
  display: block;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--primary);
  border-radius: 12px;
  display: none;
  background: #151122;
  z-index: 50;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  margin-top: 4px;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: rgba(255, 42, 133, 0.25);
  color: #fff;
}

.region-sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.dropdown-empty {
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.error-text {
  color: var(--error-color);
}

.btn-submit {
  margin-top: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #ff2a85 0%, #9333ea 50%, #00e5ff 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px var(--primary-glow);
  position: relative;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255, 42, 133, 0.65);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 42, 133, 0.5);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(255, 42, 133, 0.3);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  font-size: 54px;
  margin-bottom: 14px;
}

.success-card h2 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 26px;
}

.success-info {
  color: #ff559f;
  font-size: 17px;
  margin-bottom: 12px;
}

.status-badge {
  color: #10b981;
  font-weight: 700;
}

.order-summary-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin: 22px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  color: #e5e7eb;
}

.summary-row strong {
  color: #fff;
  text-align: right;
  max-width: 60%;
}

.products-summary-text {
  color: #ffaa44 !important;
}

.summary-row.total-highlight {
  font-size: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-row.total-highlight strong {
  color: #ff559f;
  font-size: 22px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  padding: 24px 0;
  margin-top: 30px;
}

@media (max-width: 650px) {
  .hero-title {
    font-size: 32px;
  }

  .name-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .delivery-radio-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-summary-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }

  .order-form {
    padding: 22px 16px;
  }

  .product-gallery {
    height: 320px;
  }
}