/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #1a1a1a;
}

.btn-primary {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333333;
  border-color: #333333;
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-disabled {
  background: #cccccc;
  border-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
}

.header-top {
  padding: 12px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.nav-main ul {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-main a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-main a:hover {
  color: #666666;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #f5f5f5;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('/images/hero/hero-0x-half-face.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Product Grid */
.featured-products,
.products-list {
  padding: 80px 0;
}

.featured-products h2,
.products-list h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a1a1a;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}

.product-info {
  text-align: center;
}

.product-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info h3 a {
  transition: color 0.3s ease;
}

.product-info h3 a:hover {
  color: #666666;
}

.product-price {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 12px;
}

.coming-soon {
  font-size: 0.875rem;
  color: #999999;
  font-style: italic;
}

/* Products List Layout */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.filters {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.filter-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-section a {
  font-size: 0.875rem;
  color: #666666;
  transition: color 0.3s ease;
}

.filter-section a:hover {
  color: #1a1a1a;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.sort-select {
  padding: 8px 16px;
  font-size: 0.875rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #ffffff;
}

/* Product Detail */
.product-detail {
  padding: 60px 0;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.product-gallery {
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: auto;
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  font-size: 0.875rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info-section h1 {
  font-size: 2rem;
  font-weight: 700;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-group label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.size-guide-link {
  font-size: 0.875rem;
  color: #666666;
  text-decoration: underline;
  margin-bottom: 8px;
  display: inline-block;
}

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

.color-options li,
.size-options li {
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-options li:hover,
.size-options li:hover {
  border-color: #1a1a1a;
}

.product-actions {
  margin-top: 16px;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.share-section span {
  font-size: 0.875rem;
  font-weight: 600;
}

.share-links {
  display: flex;
  gap: 12px;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.share-link:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

/* Product Description */
.product-description {
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.product-description h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.product-content {
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-features h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-features ul {
  display: grid;
  gap: 12px;
}

.product-features li {
  padding-left: 24px;
  position: relative;
}

.product-features li::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  color: #666666;
}

/* Size Guide Detail */
.size-guide-detail {
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 40px;
}

.size-guide-detail h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e5e5;
}

.size-table th {
  background: #f8f8f8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* About Preview */
.about-preview {
  padding: 80px 0;
  background: #f8f8f8;
}

.about-preview h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content strong {
  font-weight: 700;
}

.about-content .btn {
  margin-top: 24px;
}

/* Page Single */
.page-single {
  padding: 60px 0;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.page-content {
  max-width: 800px;
  line-height: 1.8;
}

.page-content p {
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 32px 0 16px;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e5e5;
}

.page-content th {
  background: #f8f8f8;
  font-weight: 600;
}

.page-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
}

/* Blog List */
.blog-list {
  padding: 60px 0;
}

.blog-list h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.blog-posts {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-post-card {
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e5e5;
}

.blog-post-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-post-card h2 a {
  transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
  color: #666666;
}

.blog-post-card time {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 16px;
}

.blog-post-card p {
  line-height: 1.8;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #666666;
}

/* Blog Post Single */
.blog-post-single {
  padding: 60px 0;
  max-width: 800px;
}

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

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  gap: 24px;
  align-items: center;
}

.post-meta time {
  font-size: 0.875rem;
  color: #666666;
}

.post-categories {
  display: flex;
  gap: 8px;
}

.category-tag {
  background: #f8f8f8;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-featured-image {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  line-height: 1.8;
  margin-bottom: 32px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 32px 0 16px;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.post-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.post-tags span {
  font-weight: 600;
  font-size: 0.875rem;
}

.tag-link {
  background: #f8f8f8;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.tag-link:hover {
  background: #e5e5e5;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 60px 0 32px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 0.875rem;
  color: #999999;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #333333;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333333;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: #555555;
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  font-size: 0.875rem;
  color: #999999;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #999999;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.divider {
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .filters {
    display: none;
  }
  
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-content {
    padding: 24px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
  }
  
  .blog-post-card {
    padding-bottom: 24px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}
