/* Fincsiland Wireframes - Shared Styles */
:root {
  --border: #999;
  --bg-light: #f5f5f5;
  --bg-medium: #e0e0e0;
  --bg-dark: #ccc;
  --text: #333;
  --text-light: #666;
  --accent: #000;
  --white: #fff;
  --placeholder-bg: #d9d9d9;
  --radius: 4px;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

.wireframe-label {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 9999;
  text-transform: uppercase;
}

.page-container {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.logo-placeholder {
  width: 140px;
  height: 50px;
  background: var(--placeholder-bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--accent);
}

.category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 2px solid var(--accent);
  flex-wrap: wrap;
  background: var(--white);
}

.cat-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.cat-btn:hover, .cat-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 2px solid var(--accent);
  padding: 40px 24px;
  margin-top: 60px;
  background: var(--bg-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h4 {
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer p, .footer a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.8;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-light);
}

/* ===== SHARED COMPONENTS ===== */
.placeholder-img {
  background: var(--placeholder-bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  font-style: italic;
  min-height: 200px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-align: center;
}

.btn-outline {
  background: var(--white);
  color: var(--accent);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid #eee;
}

.annotation {
  background: #fffde7;
  border: 1px solid #f0e68c;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group .required { color: #c00; }

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
}

.form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

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

select.form-input {
  appearance: auto;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card .placeholder-img {
  height: 180px;
  min-height: unset;
}

.product-card-body {
  padding: 12px;
}

.product-card-body h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.product-card-body .price {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-body .price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 12px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
    background: var(--bg-light);
  }

  .category-bar {
    padding: 10px 16px;
    gap: 6px;
  }

  .cat-btn {
    font-size: 11px;
    padding: 4px 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .top-bar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    font-size: 12px;
    gap: 8px;
  }
}
