/* ============================================
   CITY WIGS – Professional Stylesheet
   ============================================
   HOW TO CUSTOMIZE:
   1. Logo: Replace the src of #brand-logo in every HTML file
      (or put your logo file in /images/logo.png and update the path)
   2. Background: Change the body background below or add a background-image
   3. Colors: Edit the CSS variables in :root
   ============================================ */

:root {
  --primary: #1a1a2e;
  --secondary: #8B1E3F;   /* matches CITYWIG logo burgundy */
  --accent: #5c0f2a;
  --gold: #c9a227;
  --light: #faf7f5;
  --white: #ffffff;
  --text: #2d2d2d;
  --muted: #6c757d;
  --success: #28a745;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--light);
  background-image:
    linear-gradient(180deg, rgba(250,247,245,0.92) 0%, rgba(250,247,245,0.88) 100%),
    url('../images/bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== HEADER / NAV ========== */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px 6px;
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: #d63651;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 0.75rem;
}

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

/* ========== SECTIONS ========== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CATALOG GRID ========== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.wig-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.wig-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.wig-image {
  position: relative;
  height: 260px;
  background: linear-gradient(145deg, #f0e6d8, #e8d5c4);
  overflow: hidden;
}

.wig-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.wig-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.wig-badge.sale {
  background: var(--gold);
  color: #1a1a2e;
}

.wig-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wig-info h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.wig-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.wig-desc {
  font-size: 0.9rem;
  color: #555;
  flex: 1;
  margin-bottom: 1rem;
}

.wig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
}

.price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.3rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* ========== FEATURES ========== */
.features {
  background: var(--white);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary), #ff6b81);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: white;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* ========== ABOUT / CONTACT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #444;
}

.contact-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-box h3 {
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ========== PAYMENT PAGE ========== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.method-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.method-card:hover,
.method-card.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
}

.method-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.method-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.method-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.payment-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.payment-form h2 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.payment-form .subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.instructions-box {
  background: #f8f9fa;
  border-left: 4px solid var(--secondary);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  display: none;
}

.instructions-box.active {
  display: block;
}

.instructions-box h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.instructions-box ol,
.instructions-box ul {
  margin-left: 1.2rem;
  font-size: 0.95rem;
}

.instructions-box li {
  margin-bottom: 0.35rem;
}

.crypto-addresses {
  font-family: monospace;
  background: #eee;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  word-break: break-all;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-info {
  background: #e7f3ff;
  border: 1px solid #b3d7ff;
  color: #004085;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  display: none;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    padding: 3.5rem 1.25rem;
  }
  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* Placeholder image style */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8d5c4, #d4b89a);
  color: #8b6f4e;
  font-size: 3rem;
  flex-direction: column;
  gap: 0.5rem;
}

.img-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}
