/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #2a2a2a;
  line-height: 1.6;
}

/* Header Styles */
header {
  background-color: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
}

h1, .site-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}

.site-title {
  font-size: 1.5rem;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: #1a1a1a;
}

/* Filter Controls */
.filter-container {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #666;
  letter-spacing: 0.02em;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid #d0d0d0;
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #2a2a2a;
}

.filter-btn.active {
  background-color: #2a2a2a;
  color: #ffffff;
  border-color: #2a2a2a;
}

.pottery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pottery-item.hidden {
  display: none;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 4rem 3rem;
}

.pottery-item {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.pottery-item:hover {
  opacity: 0.85;
}

.image-container {
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 1.5rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pottery-info {
  padding: 0 0.5rem;
}

.pottery-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.pottery-description {
  font-size: 0.95rem;
  color: #666;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.pottery-price {
  font-size: 1.1rem;
  color: #2a2a2a;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.pottery-status {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* Detail Page Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  background-color: #ffffff;
  padding: 3rem;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.carousel-btn {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s;
  font-size: 1.2rem;
  color: #2a2a2a;
}

.carousel-btn:hover {
  background-color: #ffffff;
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d0d0d0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: #2a2a2a;
}

/* Detail Section */
.details-section {
  padding-top: 1rem;
}

.piece-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.piece-meta {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.piece-price {
  font-size: 1.8rem;
  color: #2a2a2a;
  font-weight: 400;
  margin: 1.5rem 0 1rem 0;
}

.piece-status {
  display: inline-block;
  font-size: 0.9rem;
  color: #4a7c59;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: #f0f7f4;
  border-radius: 4px;
  margin: 1.5rem 0 2rem 0;
}

.piece-status.sold {
  color: #8b4a4a;
  background-color: #f7f0f0;
}

.piece-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Interest Form */
.interest-form {
  background-color: #ffffff;
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.form-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #2a2a2a;
  background-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #2a2a2a;
  color: #ffffff;
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background-color: #1a1a1a;
}

/* Thank you message styles */
.thank-you-message {
  background-color: #ffffff;
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.thank-you-message .form-title {
  color: #4a7c59;
  margin-bottom: 1.5rem;
}

.thank-you-message .form-intro {
  margin-bottom: 1rem;
}

/* Piece Navigation */
.piece-navigation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #2a2a2a;
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.nav-link:hover {
  background-color: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-direction {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-spacer {
  min-width: 200px;
}

/* Footer */
footer {
  background-color: #ffffff;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #666;
}

/* Placeholder for demo images */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .carousel-container {
    padding: 2rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .header-nav {
    padding: 1rem;
  }

  h1, .site-title {
    font-size: 1.8rem;
  }

  .piece-title {
    font-size: 2rem;
  }

  .piece-navigation {
    padding: 2rem 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-link {
    width: 100%;
    min-width: auto;
    padding: 1rem 1.5rem;
  }

  .nav-spacer {
    display: none;
  }

  .filter-container {
    margin-bottom: 1.5rem;
  }

  .filter-title {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .filter-buttons {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }
}
