#packs {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #packs {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  #packs {
    padding: 15px 10px;
  }
}

.shop-title {
  text-align: center;
  color: var(--mk11-gold, #c9a961);
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }
  
  .shop-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-card h3 {
    font-size: 1.1rem;
  }
  
  .product-card .bonus {
    font-size: 0.6rem;
  }
  
  .product-card .bonus-icon {
    width: 11px;
    height: 11px;
  }
  
  .product-card .price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
  }
  
  .shop-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-card img {
    max-width: 150px;
  }
  
  .product-card .bonus {
    font-size: 0.55rem;
  }
  
  .product-card .bonus-icon {
    width: 10px;
    height: 10px;
  }
}

.product-card {
  background: var(--mk11-card, #0d0a08);
  border: 2px solid var(--mk11-border-gold, rgba(201, 169, 97, 0.5));
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: default;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--mk11-gold, #c9a961);
  box-shadow: 0 6px 25px rgba(201, 169, 97, 0.3);
}

.product-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--mk11-border, rgba(201, 169, 97, 0.25));
  object-fit: contain;
}

.product-card h3 {
  color: var(--mk11-gold, #c9a961);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.product-card .bonus {
  font-size: 0.65rem;
  color: var(--mk11-gold-bright, #e5c76a);
  margin-bottom: 8px;
  text-align: center;
  opacity: 0.9;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-card .bonus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-right: 2px;
}

.product-card .bonus-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  color: inherit;
}

.product-card .price {
  font-size: 1.5rem;
  color: var(--text-main, #f8f9ff);
  font-weight: bold;
  margin-bottom: 12px;
}

.btn-buy {
  background: linear-gradient(135deg, var(--mk11-gold, #c9a961), var(--mk11-gold-bright, #e5c76a));
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(201, 169, 97, 0.3);
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  text-align: center;
}

.btn-buy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-buy > * {
  position: relative;
  z-index: 2;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

#orderModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  max-width: 500px;
  margin: 50px auto;
  background: var(--mk11-card, #0d0a08);
  border: 2px solid var(--mk11-gold, #c9a961);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-content h2 {
  color: var(--mk11-gold, #c9a961);
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-main, #f8f9ff);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--mk11-border, rgba(201, 169, 97, 0.25));
  border-radius: 8px;
  background: var(--mk11-card-light, #1a1512);
  color: var(--text-main, #f8f9ff);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mk11-gold, #c9a961);
  box-shadow: 0 0 10px rgba(201, 169, 97, 0.3);
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn-cancel {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--mk11-border, rgba(201, 169, 97, 0.25));
  border-radius: 8px;
  background: transparent;
  color: var(--text-main, #f8f9ff);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: var(--mk11-card-light, #1a1512);
  border-color: var(--mk11-gold, #c9a961);
}

.btn-pay {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mk11-gold, #c9a961), var(--mk11-gold-bright, #e5c76a));
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(201, 169, 97, 0.3);
}

.btn-pay::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-pay > * {
  position: relative;
  z-index: 2;
}

.btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-pay:disabled::before {
  animation: none;
}

/* Мобильная адаптация модального окна */
@media (max-width: 768px) {
  #orderModal {
    padding: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-content {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 16px;
    border-radius: 12px;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  .modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 0.95rem;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .btn-cancel,
  .btn-pay {
    padding: 12px;
    font-size: 0.9rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #orderModal {
    padding: 5px;
  }
  
  .modal-content {
    margin: 10px auto;
    padding: 16px 12px;
    border-radius: 10px;
    max-height: calc(100vh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  
  .form-group input,
  .form-group select {
    padding: 9px;
    font-size: 0.9rem;
  }
  
  .form-buttons {
    gap: 8px;
    margin-top: 16px;
  }
  
  .btn-cancel,
  .btn-pay {
    padding: 11px;
    font-size: 0.85rem;
  }
}

/* Предотвращение прокрутки body при открытом модальном окне на мобильных */
@media (max-width: 768px) {
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}
