@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Container */
.product-details-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  padding: 60px 40px 120px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}

.product-details-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Loading & Error States */
.product-details-loading,
.product-details-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.product-details-error button {
  padding: 12px 32px;
  background: #d4a574;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-details-error button:hover {
  background: #c59563;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 165, 116, 0.3);
}

/* Left Panel - Details */
.details-panel {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 20px;
  transition: all 0.3s ease;
}

.details-panel:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.details-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.details-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.tab-button:hover {
  color: #1a1a1a;
}

.tab-button.active {
  color: #1a1a1a;
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #d4a574;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.details-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content {
  padding: 0;
}

.details-description {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

.details-description strong {
  color: #1a1a1a;
  display: block;
  margin-top: 12px;
}

/* Center Panel - Product Image */
.product-image-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrapper {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(212, 165, 116, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image-wrapper:hover::before {
  opacity: 1;
}

.product-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
  animation: productSlideIn 0.6s ease;
}

@keyframes productSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Right Panel - Product Info */
.product-info-panel {
  background: white;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 20px;
  transition: all 0.3s ease;
}

.product-info-panel:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-name {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.product-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 30px 0;
}

.product-price {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 35px 0;
  letter-spacing: -1px;
}

.size-selector {
  margin-bottom: 30px;
}

.size-selector label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.size-dropdown {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}

.size-dropdown:hover {
  border-color: #d4a574;
  background: white;
}

.size-dropdown:focus {
  outline: none;
  border-color: #d4a574;
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

.add-to-cart-btn {
  width: 100%;
  padding: 18px 32px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  background: #d4a574;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212, 165, 116, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Navigation Arrows */
.navigation-arrows {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.arrow-button {
  width: 56px;
  height: 56px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.arrow-button:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.arrow-button:active {
  transform: translateY(-2px);
}

.arrow-button svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-details-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .details-panel,
  .product-info-panel {
    position: static;
  }

  .product-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .product-details-container {
    padding: 30px 20px 100px;
  }

  .product-details-wrapper {
    gap: 30px;
  }

  .details-panel,
  .product-info-panel {
    padding: 30px 20px;
  }

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

  .product-name {
    font-size: 26px;
  }

  .product-price {
    font-size: 28px;
  }

  .product-image-wrapper {
    padding: 20px;
    max-width: 100%;
  }

  .navigation-arrows {
    bottom: 30px;
  }

  .arrow-button {
    width: 48px;
    height: 48px;
  }

  .details-tabs {
    flex-wrap: wrap;
  }

  .tab-button {
    margin-right: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-details-container {
    padding: 20px 15px 80px;
  }

  .details-panel,
  .product-info-panel {
    padding: 25px 18px;
    border-radius: 12px;
  }

  .product-name {
    font-size: 22px;
  }

  .product-price {
    font-size: 24px;
  }

  .details-description {
    font-size: 14px;
  }

  .add-to-cart-btn {
    padding: 16px 28px;
    font-size: 15px;
  }

  .arrow-button {
    width: 44px;
    height: 44px;
  }
}
