/* Textiles & Apparel Template Stylesheet */
:root {
  --color-primary: #92400E;
  --color-secondary: #D97706;
  --color-accent: #DC2626;
  --color-bg: #FFFBEB;
  --color-text: #451A03;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-size: 20px; font-weight: 700; color: #fff; }
.site-header .logo img { height: 36px; vertical-align: middle; margin-right: 8px; }
.site-nav a { color: rgba(255,255,255,0.85); margin-left: 24px; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 640px; margin: 0 auto 32px; }
.hero .btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
}
.hero .btn-cta:hover { opacity: 0.9; text-decoration: none; }

/* Section */
.section { padding: 64px 0; }
.section-alt { background: #FFFBEB; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card .placeholder-img {
  width: 100%; height: 220px;
  background: var(--color-secondary);
  opacity: 0.1;
  display: flex; align-items: center; justify-content: center;
}
.product-card .info { padding: 16px; }
.product-card .info h4 { font-size: 16px; margin-bottom: 8px; }
.product-card .info p { font-size: 13px; color: #6B7280; }
.product-card .specs { padding: 0 16px 16px; }
.product-card .specs table { width: 100%; font-size: 12px; }
.product-card .specs td { padding: 3px 0; color: #6B7280; }
.product-card .specs td:first-child { font-weight: 600; color: var(--color-text); width: 40%; }

/* About */
.about-grid { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 16px; color: #4B5563; }
.about-img { flex: 1; min-width: 300px; }
.about-img img { border-radius: 8px; width: 100%; }

/* Contact */
.contact-grid { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 280px; }
.contact-info p { margin-bottom: 12px; color: #4B5563; }
.contact-info strong { color: var(--color-text); }
.contact-form { flex: 1; min-width: 280px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #D1D5DB; border-radius: 6px;
  margin-bottom: 12px; font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button {
  background: var(--color-primary);
  color: #fff; padding: 12px 32px;
  border: none; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  transition: opacity 0.2s;
}
.contact-form button:hover { opacity: 0.9; }

/* Footer */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.8); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-grid h5 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; text-align: center; font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 50px 0; }
  .section { padding: 40px 0; }
  .site-nav { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { flex-direction: column; }
}
