/* Artwork Detail Page Styles */
.artwork-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.back-navigation {
  margin-bottom: 20px;
}

.back-link {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #666;
}

.artwork-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Images Column */
.artwork-images-column {
  display: flex;
  gap: 20px;
}

.thumbnail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  order: 1;
  max-width: 100px;
}

.main-image-container {
  flex: 1;
  order: 2;
}

.main-artwork-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.thumbnail-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-image.active {
  border: 2px solid #2c5530;
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* Hidden extra images grid - we'll use thumbnails instead */
.extra-images-grid {
  display: none;
}

/* Info Column */
.artwork-info-column {
  margin-bottom: 20px;
}

.artwork-category {
  font-size: 16px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.artwork-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #cdcdcd;
  line-height: 1.2;
  text-transform: uppercase;
  margin-left: 2rem;
}

.artwork-details {
  margin-bottom: 30px;
}

.artwork-details p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.artwork-details strong {
  color: #555;
}

.artwork-info {
  color: #8f8f8f;
  font-style: italic;
  margin-bottom: 15px;
}

.artwork-price {
  font-size: 24px;
  font-weight: bold;
  color: #2c5530;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Add to Cart Section */
.add-to-cart-section {
  margin-bottom: 30px;
}
.add-to-cart-btn {
  /* White text and border, transparent background */
  background: transparent;
  color: white;
  border: 0.5px solid white;
  padding: 10px 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;

  /* Layout */
  width: 100%;
  max-width: 250px;
  margin-left: 2rem;

  /* Smooth transition */
  transition: all 0.3s ease;

  /* Remove default styles */
  outline: none;
  user-select: none;
  text-decoration: none;
}

.add-to-cart-btn:hover:not(:disabled) {
  /* White background with black text on hover */
  background: white;
  color: black;
  border-color: white;
  text-decoration: none;
}

.add-to-cart-btn:active:not(:disabled) {
  /* No visual change when clicking */
  background: white;
  color: black;
  border-color: white;
  text-decoration: none;
}

.add-to-cart-btn:disabled {
  /* Disabled state */
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

/* Remove underline for links */
a.add-to-cart-btn {
  text-decoration: none;
}

a.add-to-cart-btn:hover {
  text-decoration: none;
}
.sold-label {
  display: inline-block;
  background-color: #762028;
  color: white;
  padding: 12px 25px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  margin-left: 2rem;
  text-align: center;
}

/* .reservation-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  color: #856404;
} */

/* Message Container */
.message-container {
  margin-top: 20px;
}

.message {
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: 500;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  margin-left: 2rem;
}

.message.error {
  background-color: rgb(185, 185, 185);
  color: black;
  margin-left: 2rem;
}

/* Description Section */
.artwork-description-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  grid-column: 1 / -1; /* Spans full width */
}

.artwork-description-section h3 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #dfdfdf;
  text-align: center;
}

.artwork-description {
  font-size: 18px;
  line-height: 1.6;
  color: #ababab;
  max-width: 800px;
  font-weight: 300;
  text-align: left;
  margin: 0 auto;
  font-family: "Oswald", sans-serif;
}

/* Error and No Artwork Messages */
.error-message,
.no-artwork {
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
  color: #666;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .artwork-detail-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .artwork-images-column {
    flex-direction: column;
    order: 1; /* Images first on mobile */
  }

  .artwork-info-column {
    order: 2; /* Info goes under images on mobile */
  }

  .thumbnail-gallery {
    flex-direction: row;
    max-width: none;
    order: 2;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
  }

  .main-image-container {
    order: 1;
  }

  .thumbnail-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .artwork-title {
    font-size: 24px;
  }

  .artwork-detail-container {
    padding: 15px;
  }

  .add-to-cart-btn {
    width: 100%;
    /* max-width: none; */
    align-items: center;
  }
}
