:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --border: 214.3 31.8% 91.4%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto Mono', monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.description {
  color: #666;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button:hover {
  opacity: 0.9;
}

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

.button-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border: 1px solid currentColor;
}

.button-full {
  width: 100%;
  justify-content: center;
}

/* .tariff-info {
  max-width: 48rem;
  margin: 0 auto 2rem;
} */

.card {
  background-color: white;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



/* .tariff-card {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-align: center;
} */

.price {
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.cart-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 32rem;
  margin: 1rem auto;
  padding: 1rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.cart-badge {
  background-color: white;
  color: hsl(var(--primary));
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.bold {
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.artwork-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.artwork-image-container {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
}

.artwork-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.info-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.info-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.artwork-content {
  padding: 1rem;
}

.artwork-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.artwork-artist {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.option-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid #eee;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: #ccc;
}

.option-item.selected {
  border-color: hsl(var(--primary));
  background-color: rgba(0, 0, 10, 0.05);
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.option-price {
  font-size: 0.875rem;
  font-weight: 500;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 90%;
  max-width: 500px;
}

.contact-modal {
  max-width: 600px;
  width: 90%;
}

.close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-details {
  margin-top: 1rem;
}

.modal-details p {
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
}

.address-display {
  background-color: #f5f5f5;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
  width: auto;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.875rem;
}

.selected-artworks-summary {
  margin-bottom: 2rem;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1rem;
}

.selected-artworks-list {
  margin: 1rem 0;
}

.selected-artwork-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.selected-artwork-item:last-child {
  border-bottom: none;
}

.artwork-item-details span {
  display: block;
}

.total-section {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 1.125rem;
}

/* Responsive Styles */

/* Cart counter and total */
.cart-count, .cart-total {
    font-weight: bold;
    color: #0073aa;
}

/* Loading state */
.option-label span {
    transition: opacity 0.3s ease;
}

/* Selected option */
.option-item.selected {
    border-color: #0073aa;
    background-color: #f1f1f1;
}


/* Popup Styles */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 10001;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10002;
}

.popup-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.popup-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.popup-artist {
    font-style: italic;
    color: #666;
}

/* Right-align text container */
.details-right {
    margin-bottom: 15px;
	text-align:left
}

/* Keep description left-aligned */
.popup-description {
    text-align: left;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Optional: Adjust spacing for better visual hierarchy */
.popup-details p {
    margin: 8px 0;
}