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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #151515;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.2);
  --accent: #ff6900;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 390px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-right {
  display: flex;
  gap: 8px;
}

.cart-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Hero Section */
.hero {
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('Final9.jpg') center/cover;
  margin-top: 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.37px;
  max-width: 280px;
}

.hero p {
  font-size: 16px;
  line-height: 1.5em;
  color: #ffffff;
  max-width: 280px;
}

/* Buttons */
.btn-primary {
  background: white;
  color: black;
  padding: 12px 32px;
  font-size: 14px;
  letter-spacing: 0.55px;
  border: none;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 33px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  margin: 40px auto 0;
  display: block;
}

/* Sections */
section {
  padding: 64px 16px;
  border-top: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 40px;
}

.section-header.centered {
  text-align: center;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.header-title h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.07px;
}

.count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* Product Section */
.product-section {
  position: relative;
}

.product-card.featured {
  margin-bottom: 32px;
  cursor: pointer;
}

.product-image-3d {
  width: 100%;
  height: 447.5px;
  background: var(--bg-secondary);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

#canvas-3d {
  width: 100%;
  height: 100%;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.product-info a {
  color: inherit;
}

.price {
  font-size: 12px;
  color: var(--text-secondary);
}

.category {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  margin-bottom: 0;
}

.product-card-small {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.product-image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 15px;
}

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 400;
  background: var(--accent);
  color: white;
}

/* Stories Section */

.section-header h2 {
  margin-bottom: 10px;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.story-item {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.story-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.number {
  font-size: 12px;
  color: var(--text-tertiary);
}

.story-item h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.story-item p {
  font-size: 14px;
  line-height: 22.75px;
  color: var(--text-secondary);
  margin-left: 28px;
}

/* About Section */
.about-content {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.about-image {
  overflow: hidden;
  width: 50%;
  aspect-ratio: 3/4;
  position: relative;
  object-fit: cover;
}

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

.about-info {
  display: flex;
  width: 50%;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background-color: #151515;
  align-items: center;
}

.year {
  font-size: 12px;
  color: var(--text-tertiary);
}

.location {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}

.contact-item p {
  font-size: 14px;
  line-height: 22.75px;
}

/* Newsletter */
.newsletter {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 48px;
}

.newsletter h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 8px;
}

.newsletter p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: white;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: var(--text-tertiary);
}

.newsletter-form .btn-primary {
  width: 66px;
  padding: 14px 24px;
}

/* Social Links */
.social-links {
  margin-bottom: 48px;
}

.social-links label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

/* Footer */
.footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: -40px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
}

/* Detail Page Styles */
.detail-page {
  background: var(--bg-primary);
}

.detail-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.back-btn {
  position: absolute;
  left: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.detail-header h1 {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* Image Slider */
.image-slider {
  margin-top: 65px;
  position: relative;
  height: 520px;
  background: var(--bg-secondary);
}

.slider-container {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.slide {
  min-width: 390px;
  height: 520px;
}

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

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #0a0a0a;
}

/* Detail Content */
.detail-content {
  padding: 32px 16px 100px;
}

.product-header {
  margin-bottom: 32px;
}

.product-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-title h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
}

.product-title .price {
  font-size: 18px;
  color: white;
}

.material {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Options */
.option-group {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.option-group label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s;
}

.color-btn.active {
  border: 2px solid white;
}

.size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.size-guide-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  flex: 1;
  padding: 11px 0;
  background: transparent;
  border: 1px solid var(--border-light);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.size-btn.active {
  background: white;
  color: black;
  border-color: white;
}

/* Accordion */
.accordion-group {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 20px;
}

.accordion-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Cart Actions */
.cart-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  padding: 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

.quantity-selector {
  width: 130px;
  height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

.quantity {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: white;
}

.add-to-cart {
  flex: 1;
  height: 46px;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.55px;
}

/* Fade-in Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive for exactly 390px */
@media (max-width: 390px) {
  body {
    width: 100%;
  }

  .navigation,
  .detail-header,
  .cart-actions {
    width: 100%;
  }
}
