:root {
  --primary-color: #2c3e50;
  --accent-color: #8e44ad;
  --stripe-color: #635bff;
  --paypal-color: #0070ba;
  --bg-color: #f8f9fa;
  --text-color: #333333;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.shop-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.card-price {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-view {
  margin-top: auto;
  padding: 0.6rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 850px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.media-viewport img, .media-viewport video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

.media-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.shipping-selector {
  margin: 1.5rem 0;
}

.shipping-selector select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
}

.total-display {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

.btn-stripe { background-color: var(--stripe-color); }
.btn-paypal { background-color: var(--paypal-color); }