@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #777;
  --bg: #f9f9f9;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
}

img {
  max-width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.logo img { margin-right: 10px; }
.logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.header-notice {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.brand-section {
  background: var(--light);
  padding: 15px 0;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}
.brand-logo { width: 50px; height: 50px; }

.hero-section {
  background: #fff;
  padding: 40px 0;
}
.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
}
.author-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.content-section { padding: 30px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.main-article {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.main-article p { margin-bottom: 20px; }
.main-article h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.article-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 25px 0;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.article-list {
  padding-left: 20px;
  margin: 20px 0;
}
.article-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}
.article-list li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--secondary);
}
.testimonial {
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
  margin: 25px 0;
  border-left: 4px solid var(--secondary);
}
.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}
.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: right;
}

.cta-container {
  margin: 30px 0;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}
.btn-outline {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
}
.btn-primary {
  background-color: var(--secondary);
  color: white;
}
.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}
.btn-full {
  width: 100%;
}

.main-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.widget {
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-title i { color: var(--secondary); }

.product-card { text-align: center; }
.product-image {
  width: 100%;
  max-width: 200px;
  border-radius: var(--radius);
  margin: 0 auto 15px;
  display: block;
  box-shadow: var(--shadow);
}
.product-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
}
.product-rating { margin-bottom: 10px; }
.product-rating i { color: #ffc107; }
.product-rating span {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 10px;
}
.product-price { margin-bottom: 10px; }
.new-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}
.shipping {
  color: var(--text-light);
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 15px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 5px;
}
.feature-content strong { display: block; margin-bottom: 5px; }
.feature-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.specs {
  width: 100%;
  border-collapse: collapse;
}
.specs td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.specs td:first-child {
  font-weight: 600;
  color: var(--text-light);
}
.specs td:last-child { text-align: right; }
.specs tr:last-child td { border-bottom: none; }

.cta-widget {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}
.cta-widget .widget-title,
.cta-widget .widget-title i { color: white; }
.cta-widget p { color: rgba(255,255,255,0.9); }
.cta-widget .btn {
  background: white;
  color: var(--primary);
  border: none;
}
.cta-widget .btn:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.contact-section {
  background: #fff;
  padding: 50px 0;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-container h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
}
.contact-container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.checkbox-group {
  flex-direction: row;
  align-items: center;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-label a {
  color: var(--secondary);
  text-decoration: none;
}

.page-footer {
  background: var(--dark);
  color: white;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  margin: 0 auto 30px;
}

.footer-logo img { margin-right: 10px; }
.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 100%;
  justify-items: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}
.footer-nav a:hover { color: white; }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info p {
  margin: 0;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 30px 0 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 20px;
  word-break: break-word;
}
.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.legal-content h2 {
  font-size: 1.8rem;
  margin: 25px 0 15px;
  font-family: var(--font-heading);
}
.legal-content h3 {
  font-size: 1.4rem;
  margin: 20px 0 10px;
  font-family: var(--font-heading);
}
.legal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.legal-content li { margin-bottom: 8px; }

.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light), var(--bg));
  padding: 40px 20px;
}
.thanks-container {
  max-width: 800px;
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thanks-logo { margin-bottom: 20px; }
.thanks-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}
.thanks-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .main-sidebar { order: -1; }
  .section-inner { flex-direction: column; gap: 15px; text-align: center; }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .logo { justify-content: center; }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-info {
    align-items: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { grid-column: auto; }
  .footer-disclaimer { grid-column: auto; }
  .footer-copyright { grid-column: auto; }
  .btn { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .section-inner {
    padding: 0 12px;
  }
  .main-article {
    padding: 16px;
  }
  .contact-container {
    padding: 20px 12px;
  }
  .form-grid {
    gap: 12px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
  .hero-section {
    padding: 24px 0;
  }
  .hero-section h1 {
    font-size: 1.3rem;
  }
  .widget {
    padding: 16px;
  }
  .thanks-container {
    padding: 24px 12px;
  }
  .thanks-content h1 {
    font-size: 1.5rem;
  }
  .legal-content {
    padding: 24px 12px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}
