/* ===== SPACENUTS LLC - WHOLESALE CANDY CATALOG ===== */
:root {
  --black: #0a0a0a;
  --dark: #111827;
  --dark2: #1f2937;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --border: #e5e7eb;
  --accent: #f97316;       /* orange — candy/energy vibe */
  --accent-dark: #ea6c0a;
  --accent2: #7c3aed;      /* purple accent */
  --text: #111827;
  --text-muted: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.1);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.6;
}

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

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--white);
}

.logo-sub {
  font-size: .7rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.header-nav a:hover { color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--dark2);
  color: var(--white);
}
.btn-secondary:hover { background: var(--black); }

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--gray-light); color: var(--text); }

.btn-order {
  background: var(--accent);
  color: var(--white);
  width: 100%;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .85rem;
}
.btn-order:hover { background: var(--accent-dark); }

.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a0a2e 50%, #0f1a2e 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🍬🍫🍭🍡🍩🧁🍪🍬🍫🍭';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  font-size: 3rem;
  opacity: .06;
  letter-spacing: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-badges span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 500;
}

/* ===== CATALOG SECTION ===== */
.catalog-section { padding: 40px 0 80px; }

/* Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.filters-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
}

.search-wrap input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--white);
  transition: border-color .2s;
  font-family: inherit;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
}

.category-select-wrap select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.category-select-wrap select:focus { outline: none; border-color: var(--accent); }

.result-count {
  font-size: .9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  aspect-ratio: 1;
  background: var(--gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .3s;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-category {
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-name {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}

.card-pack {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-price {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.5px;
}

.card-sku {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-footer {
  border-top: 1px solid var(--border);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all .2s;
}

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

.page-info {
  font-size: .85rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.contact-text p {
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-perks li {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  color: var(--text);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  margin-bottom: 12px;
  background: var(--gray-light);
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.contact-form textarea { resize: vertical; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-section {
  padding: 40px 0 80px;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.product-detail {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: start;
}

.detail-img {
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.no-img-placeholder {
  text-align: center;
  font-size: 3rem;
  color: var(--gray);
  padding: 40px;
}

.detail-category {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.detail-info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 10px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
}

.meta-label { color: var(--text-muted); font-weight: 500; }
.meta-val { font-weight: 600; }

.price-box {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #fed7aa;
  border-radius: 10px;
}

.price-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.price-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,.6);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
}

.footer-inner strong { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { gap: 12px; }
  .header-nav a:not(.btn) { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .product-detail {
    grid-template-columns: 1fr;
  }

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

  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
}
