/* stripe-integrations-wp/public/style.css */
.stripe-products-container {
  margin-top: 120px;
  padding: 20px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.stripe-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;
}

.stripe-product {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stripe-product:hover {
  transform: translateY(-5px);
}

.stripe-product img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}

.stripe-product h2, .stripe-product h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #333;
  white-space: normal;
  word-wrap: break-word;
}

.stripe-product p {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0;
  white-space: normal;
  word-wrap: break-word;
}

.stripe-product button {
  background: #6772e5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stripe-product button:hover {
  background: #5469d4;
}

@media (max-width: 1200px) {
  .stripe-products {
    grid-template-columns: repeat(4, minmax(460px, 1fr));
  }
}

@media (max-width: 900px) {
  .stripe-products {
    grid-template-columns: repeat(3, minmax(380px, 1fr));
  }
}

@media (max-width: 600px) {
  .stripe-products {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

@media (max-width: 460px) {
  .stripe-products {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

@media (max-width: 360px) {
  .stripe-products {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}



/* Cart Styles */
.stripe-cart-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.cart-icon {
  position: relative;
  background: #6772e5;
  color: white;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stripe-cart {
  display: none;
  position: absolute;
  right: 0;
  top: 70px;
  width: 350px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  padding: 20px;
}

.stripe-cart.open {
  display: block;
}

.stripe-cart h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.stripe-cart ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

.stripe-cart li {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.stripe-cart li img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  color: #333;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #666;
}

.remove-from-cart {
  background: none;
  border: none;
  color: #ff4757;
  cursor: pointer;
  padding: 5px;
}

.cart-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  font-weight: bold;
  color: #333;
}

.checkout-button {
  width: 100%;
  background: #6772e5;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkout-button:hover {
  background: #5469d4;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .stripe-cart-wrapper {
    top: 10px;
    right: 10px;
  }
  
  .stripe-cart {
    width: 300px;
    top: 60px;
  }
}


