/*-----------------------------------*\
  #SHOP PAGE STYLES
\*-----------------------------------*/

.shop-content {
  margin-bottom: var(--space-4xl);
}

.shop-title {
  margin-bottom: var(--space-3xl);
  position: relative;
  display: inline-block;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.product-card {
  position: relative;
  background: var(--border-gradient-onyx);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  border-top: 3px solid var(--orange-yellow-crayola);
  transition: all var(--transition-1);
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 40px rgba(255, 193, 7, 0.2);
  border-top-color: var(--vegas-gold);
}

.product-image {
  width: 100%;
  height: 180px;
  background: var(--bg-gradient-yellow-2);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-title {
  color: var(--white-1);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: var(--space-md);
}

.product-price {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-bottom: var(--space-lg);
}

.buy-button {
  background: #ffda6b;
  color: var(--eerie-black-2);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  cursor: pointer;
  transition: all var(--transition-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--border-gradient-onyx);
  margin: 5% auto;
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  border-top: 3px solid var(--orange-yellow-crayola);
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.close {
  color: var(--light-gray);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
}

.close:hover {
  color: var(--orange-yellow-crayola);
}

.form-title {
  color: var(--white-1);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  color: var(--white-1);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  margin-bottom: var(--space-sm);
  display: block;
}

.form-input {
  background: var(--border-gradient-onyx);
  border: 1px solid var(--jet);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  color: var(--white-1);
  font-size: var(--fs-6);
  width: 100%;
  transition: all var(--transition-1);
}

.form-input:focus {
  outline: none;
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.submit-button {
  background: #ffda6b;
  color: var(--eerie-black-2);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  cursor: pointer;
  transition: all var(--transition-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  margin-top: var(--space-lg);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  display: none;
  background: var(--bg-gradient-yellow-2);
  color: var(--eerie-black-2);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  margin-top: var(--space-lg);
  font-weight: var(--fw-500);
}

/* Ratio Section */
.ratio-section {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: var(--border-gradient-onyx);
  border-radius: var(--border-radius-lg);
  border-top: 3px solid var(--orange-yellow-crayola);
}

.ratio-title {
  color: var(--white-1);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.ratio-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ratio-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.ratio-label {
  color: var(--white-1);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  min-width: 80px;
}

.ratio-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.ratio-bar {
  flex: 1;
  height: 20px;
  background: var(--jet);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.ratio-fill {
  height: 100%;
  background: var(--text-gradient-yellow);
  border-radius: inherit;
  transition: width 1s ease;
  position: relative;
}

.ratio-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.ratio-percentage {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  min-width: 50px;
  text-align: right;
}

/*-----------------------------------*\
  #RESPONSIVE - SHOP PAGE
\*-----------------------------------*/

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .product-image {
    height: 120px;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: var(--space-lg);
  }
  
  .ratio-item {
    gap: var(--space-sm);
    text-align: center;
  }
  
  .ratio-bar-container {
    width: 100%;
  }
}

@media (min-width: 580px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
