@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0F2027;
  --secondary: #203A43;
  --accent: #2C5364;
  --highlight: #00E5FF;
  --bg: #F4F7F6;
  --text: #1A1A1A;
  --light-text: #555;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.header-notice {
  font-size: 0.8rem;
  color: var(--light-text);
  background: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

main {
  flex: 1 0 auto;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

main h1 {
  margin-bottom: 2rem;
  color: var(--primary);
}

section {
  margin-bottom: 64px;
}

.hero-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-product > * {
  min-width: 0;
  max-width: 100%;
}

.gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.thumb {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumb.active, .thumb:hover {
  border-color: var(--highlight);
}

.product-info h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 1rem 0;
}

.rating {
  color: #FFD700;
  margin-bottom: 1rem;
}

.rating span {
  color: var(--light-text);
  margin-left: 0.5rem;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.current-price {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--light-text);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.options-group {
  margin-bottom: 1.5rem;
}

.options-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.option-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.option-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.option-btn.active, .option-btn:hover {
  border-color: var(--highlight);
  background: rgba(0, 229, 255, 0.1);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.article-intro, .features-tech, .specs-sizes, .reviews, .guarantee {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-intro h2, .features-tech h2, .specs-sizes h2, .reviews h2, .guarantee h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.article-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.article-content > * {
  min-width: 0;
  max-width: 100%;
}

.article-content img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.article-content p {
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--highlight);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table td {
  padding: 1rem 0;
}

.specs-table td:first-child {
  width: 40%;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--highlight);
}

.review-author {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.review-text {
  font-style: italic;
  color: var(--light-text);
}

.contact-form {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
}

.contact-form h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--highlight);
  background: rgba(255,255,255,0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.2rem;
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-links h4, .footer-contact h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--highlight);
}

.footer-contact p {
  margin: 0.3rem 0;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cart-item, .checkout-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.cart-product {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-product img {
  border-radius: 8px;
  object-fit: cover;
}

.cart-details h3 {
  margin-bottom: 0.5rem;
}

.cart-details p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
}

.cart-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-method {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-method i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.payment-method.active {
  border-color: var(--highlight);
  background: rgba(0, 229, 255, 0.05);
}

.card-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.card-fields.visible {
  display: grid;
}

.card-fields .form-group input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.thanks-content {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 4rem auto;
}

.thanks-content img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.thanks-content h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.thanks-content p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

.thanks-content .btn-primary {
  max-width: 300px;
  margin: 2rem auto 0;
}

.legal-content {
  max-width: 800px;
  margin: 2rem auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  word-break: break-word;
}

.legal-content h1 {
  color: var(--primary);
  margin-top: 0;
}

.legal-content h2 {
  color: var(--secondary);
  margin-top: 2rem;
}

.legal-content p, .legal-content li {
  line-height: 1.7;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .header-notice {
    display: none;
  }
  
  main {
    padding: 1rem;
  }
  
  .hero-product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery {
    position: static;
  }
  
  .article-content {
    grid-template-columns: 1fr;
  }
  
  .features-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .payment-methods {
    flex-direction: column;
  }
  
  .card-fields {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cart-product {
    grid-template-columns: 80px 1fr;
  }
  
  .cart-price {
    grid-column: 1 / -1;
    text-align: right;
  }

  .article-intro h2,
  .features-tech h2,
  .specs-sizes h2,
  .reviews h2,
  .guarantee h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

@media (max-width: 640px) {
  .header-notice {
    word-break: break-all;
  }

  a.logo {
    flex-direction: column;
  }

  .logo span {
    word-break: break-all;
    min-width: 0;
    flex: 1;
  }

  .footer-contact,
  .footer-links,
  .footer-about {
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }

  main {
    padding: 0.75rem;
  }

  .article-intro,
  .features-tech,
  .specs-sizes,
  .reviews,
  .guarantee,
  .contact-form {
    padding: 1.25rem;
  }

  .legal-content {
    padding: 1.25rem;
  }

  .form-container,
  .checkout-form {
    padding: 0;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.85rem;
  }
}

.checkout-form .form-group label {
  color: var(--text);
  font-weight: 500;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus {
  outline: none;
  border-color: var(--highlight);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.checkout-form .checkbox-group label {
  color: var(--text);
}

.checkout-form .checkbox-group input[type="checkbox"] {
  accent-color: var(--highlight);
  width: auto;
  margin-top: 0.25rem;
}