* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
background: #FFFFFF;
background: linear-gradient(270deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 66%, rgba(217, 217, 217, 1) 100%);
}

/* Main Header */
.main-header {
  background: white;
  padding: 30px 40px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -1px;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-name {
  font-size: 3rem;
  font-weight: 300;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

/* Slider Section */
.slider-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
}

.slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 0;
  scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
  height: 4px;
}

.slider-track::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.slider-track::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.slider-track::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.slider-item {
  flex: 0 0 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #f0f0f0;
  transition: all 0.2s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-item:hover {
  border-color: #ddd;
}

.slider-item.active {
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn {
  background: white;
  color: #000;
  border: 1px solid #f0f0f0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 300;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  border-color: #000;
}

.slider-btn:active {
  transform: scale(0.95);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  min-height: 500px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  background-attachment: local;
}

.product-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.product-info h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: #000;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  display: none;
}

.product-info .category {
  font-size: 0.95em;
  color: #888;
  text-transform: capitalize;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.spec-group {
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.spec-group h3 {
  font-size: 0.85em;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.spec-group p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

.attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attribute {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 3px;
  font-size: 0.9em;
  color: #555;
  text-transform: capitalize;
}

.price-section {
  margin-top: 50px;
  padding-top: 30px;
  position: relative;
  z-index: 2;
}

.price-label {
  font-size: 1.1em;
  color: #000;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-btn {
  padding: 12px 30px;
  background: #000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background: #333;
}

.contact-btn:active {
  transform: scale(0.98);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #000;
}

.modal-content h2 {
  font-size: 1.8em;
  font-weight: 300;
  margin-bottom: 30px;
  color: #000;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9em;
  color: #333;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95em;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #333;
}

/* Footer */
.footer {
  background: #000;
  color: white;
  padding: 30px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-btn {
  background: none;
  color: white;
  border: none;
  font-size: 0.95em;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: opacity 0.2s;
  padding: 0;
  font-family: inherit;
}

.footer-btn:hover {
  opacity: 0.7;
}

.footer-btn:active {
  opacity: 0.5;
}

/* Modal text styling */
.modal-text {
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content {
    gap: 40px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .slider-section {
    justify-content: center;
  }

  .slider-item {
    flex: 0 0 90px;
    height: 90px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-image {
    min-height: 400px;
  }

  .product-info h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-title {
    font-size: 2rem;
    width: 100%;
  }

  .slider-section {
    width: 100%;
    justify-content: center;
  }

  .slider-item {
    flex: 0 0 80px;
    height: 80px;
  }

  .container {
    padding: 40px 20px;
  }

  .product-image {
    min-height: 300px;
  }

  .product-info h1 {
    font-size: 1.8rem;
  }

  .product-info .description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .slider-section {
    justify-content: center;
  }

  .slider-item {
    flex: 0 0 70px;
    height: 70px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 20px 15px;
  }

  .product-detail {
    gap: 20px;
  }

  .product-image {
    min-height: 250px;
  }

  .product-info h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .product-info .description {
    margin-bottom: 15px;
  }
}
