/* Professional Store CSS - Gold/Beige Theme */
.store-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
}

.store-hero-section {
  position: relative;
  background: linear-gradient(135deg, #d29b61 0%, #e4d5b8 100%);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(228, 213, 184, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.store-main-title {
  font-family: "Prata", serif;
  font-size: 3.5rem;
  font-weight: normal;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.store-hero-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  color: rgba(26, 26, 26, 0.8);
  margin: 0;
  font-weight: 500;
}

.store-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.store-content {
  position: relative;
}

.important-rules-section {
  background: linear-gradient(135deg, rgba(210, 155, 97, 0.1) 0%, rgba(228, 213, 184, 0.05) 100%);
  border: 1px solid rgba(210, 155, 97, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rules-header svg {
  color: #d29b61;
  flex-shrink: 0;
}

.rules-header h2 {
  font-family: "Prata", serif;
  font-size: 1.8rem;
  color: #d29b61;
  margin: 0;
  font-weight: normal;
}

.rules-content {
  padding-left: 2.5rem;
}

.rules-intro {
  color: #e4d5b8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  color: #e4d5b8;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  opacity: 0.9;
  line-height: 1.6;
}

.rules-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d29b61;
  font-weight: 700;
  font-size: 1.5rem;
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-item-card {
  background: linear-gradient(135deg, #2a2520 0%, #1a1a1a 100%);
  border: 1px solid rgba(210, 155, 97, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d29b61 0%, #e4d5b8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-item-card:hover::before {
  opacity: 1;
}

.product-item-card:hover {
  transform: translateY(-8px);
  border-color: rgba(210, 155, 97, 0.5);
  box-shadow: 0 20px 40px rgba(210, 155, 97, 0.25);
}

.discount-badge-ribbon {
  position: absolute;
  top: 16px;
  right: -8px;
  background: linear-gradient(135deg, #d29b61 0%, #e4d5b8 100%);
  color: #1a1a1a;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(210, 155, 97, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-icon-wrapper {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-icon {
  width: 150px;
  height: 150px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.product-item-card:hover .product-icon {
  transform: scale(1.1);
}

.product-information {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-name {
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e4d5b8;
  margin: 0;
  line-height: 1.4;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-original,
.price-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  color: #e4d5b8;
  opacity: 0.7;
  font-size: 0.9rem;
}

.price-value {
  color: #e4d5b8;
  font-size: 1.2rem;
  font-weight: 600;
}

.price-value-discount {
  color: #d29b61;
  font-size: 1.8rem;
  font-weight: 800;
}

.savings-amount {
  background: linear-gradient(135deg, #d29b61 0%, #e4d5b8 100%);
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.buy-button-card {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d29b61 0%, #e4d5b8 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: auto;
  font-family: "Roboto", sans-serif;
}

.buy-button-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(210, 155, 97, 0.4);
  background: linear-gradient(135deg, #e4d5b8 0%, #d29b61 100%);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(210, 155, 97, 0.2);
  border-top-color: #d29b61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.order-modal-content,
.payment-success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #2a2520 0%, #1a1a1a 100%);
  border: 1px solid rgba(210, 155, 97, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(210, 155, 97, 0.2);
}

.modal-title {
  font-family: "Prata", serif;
  font-size: 1.8rem;
  color: #d29b61;
  margin: 0;
  font-weight: normal;
}

.modal-close-btn {
  color: #e4d5b8;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
}

.modal-close-btn:hover {
  color: #d29b61;
  background: rgba(210, 155, 97, 0.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.price-summary {
  background: rgba(210, 155, 97, 0.1);
  border: 1px solid rgba(210, 155, 97, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: #e4d5b8;
}

.price-row.highlight {
  border-top: 1px solid rgba(210, 155, 97, 0.3);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.price-strike {
  text-decoration: line-through;
  opacity: 0.6;
}

.price-final {
  color: #d29b61;
  font-size: 2rem;
  font-weight: 800;
}

.paypal-button-wrapper {
  padding: 1rem 0;
}

.error-message-box {
  text-align: center;
  padding: 2rem;
  background: rgba(210, 155, 97, 0.1);
  border: 1px solid rgba(210, 155, 97, 0.3);
  border-radius: 12px;
}

.error-message-box svg {
  color: #d29b61;
  margin-bottom: 1rem;
}

.error-message-box p {
  color: #e4d5b8;
  font-size: 1.1rem;
  margin: 0;
}

/* Payment Success Modal */
.payment-success-modal {
  text-align: center;
}

.success-icon {
  margin-bottom: 2rem;
}

.success-icon svg {
  color: #d29b61;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: "Prata", serif;
  font-size: 2rem;
  color: #d29b61;
  margin: 0 0 2rem 0;
  font-weight: normal;
}

.payment-details {
  background: rgba(210, 155, 97, 0.1);
  border: 1px solid rgba(210, 155, 97, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(210, 155, 97, 0.2);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #e4d5b8;
  opacity: 0.7;
  font-weight: 600;
}

.detail-value {
  color: #d29b61;
  font-weight: 700;
  font-size: 1.1rem;
}

.back-to-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 28px;
  background: linear-gradient(135deg, #d29b61 0%, #e4d5b8 100%);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.back-to-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(210, 155, 97, 0.4);
}

@media (max-width: 768px) {
  .store-main-title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .store-products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .order-modal-content,
  .payment-success-modal {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }
}
.tebex-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 15px 20px;

    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    border-radius: 14px;
    border: none;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.tebex-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.55);
}

/* Click */
.tebex-btn:active {
    transform: scale(0.97);
}

/* Icon */
.tebex-icon {
    width: 22px;
    height: 22px;
    background: url("/images/tebex.svg") center/contain no-repeat;
    filter: brightness(0) invert(1);
}

/* Glow Effect */
.tebex-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tebex-btn:hover::before {
    opacity: 1;
}