/* ============================================================
   Shop2BeBong — Main Stylesheet
   Color system: Colors.md / StyleSet.md
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Tier 1 — Foundation */
  --bg-primary:       #F3E5D0;
  --bg-section:       #E6CBA8;
  --bg-light:         #F6E9D7;
  --text-main:        #2B2B2B;
  --text-secondary:   #5A4634;
  --header-base:      #3B2A1E;

  /* Tier 2 — Brand Structure */
  --terracotta:       #C65D2E;
  --teal:             #2F8F8B;
  --palm-green:       #6FA06A;
  --muted-green:      #6C8E7B;
  --divider:          #8C6A5D;

  /* Tier 3 — CTA */
  --cta-gold:         #F4A300;
  --cta-hover:        #FF8C42;
  --cta-sale:         #FF6F61;
  --cta-premium:      #C9A227;

  /* Tier 4 — Fashion / Boho */
  --dusty-rose:       #D8A7B1;
  --lavender:         #B8A0C9;
  --mauve:            #A97C8D;

  /* Logo letter colors */
  --logo-shop:        #E4572E;
  --logo-2:           #FFB000;
  --logo-be:          #1FA5A0;
  --logo-bong:        #C06C9F;

  /* Misc */
  --radius:           10px;
  --shadow:           0 2px 12px rgba(59,42,30,0.10);
  --transition:       0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

img { display: block; max-width: 100%; }

/* --- Header / Nav --- */
header {
  background: var(--header-base);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}
.site-logo .s-shop { color: var(--logo-shop); }
.site-logo .s-2    { color: var(--logo-2); }
.site-logo .s-be   { color: var(--logo-be); }
.site-logo .s-bong { color: var(--logo-bong); }

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--bg-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--cta-gold);
  border-bottom-color: var(--cta-gold);
}

/* --- Banner --- */
.banner {
  width: 100%;
  background: #fff;
  border-bottom: 3px solid var(--bg-section);
  display: flex;
  justify-content: center;
}

.banner img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* --- Section Wrappers --- */
.section { padding: 2.5rem 1.5rem; }
.section-alt { background: var(--bg-section); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--divider), transparent);
  margin-left: 0.5rem;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(59,42,30,0.15);
}

.product-card .img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-section);
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .img-wrap img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.product-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.product-card .card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--terracotta);
}

.product-card .card-price .was {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: 0.3rem;
}

.badge-sale {
  display: inline-block;
  background: var(--cta-sale);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-ebay {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cta-gold);
  color: var(--header-base);
}
.btn-primary:hover { background: var(--cta-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: #fff; }

.btn-sm { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

/* --- eBay Listings Section --- */
.ebay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* eBay cards reuse product-card styles */

/* --- Hero Tagline Strip --- */
.tagline-strip {
  background: var(--header-base);
  color: var(--bg-light);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.tagline-strip span {
  color: var(--cta-gold);
  font-weight: 700;
}

/* --- Footer --- */
footer {
  background: var(--header-base);
  color: var(--bg-section);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

footer h4 {
  color: var(--cta-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
footer ul li a { color: var(--bg-section); font-size: 0.88rem; }
footer ul li a:hover { color: var(--cta-gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-green);
}

.footer-logo { font-size: 1.1rem; font-weight: 900; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* --- Responsive --- */
@media (max-width: 640px) {
  header { flex-wrap: wrap; }
  nav { gap: 1rem; font-size: 0.85rem; }
  .banner img { max-width: 100%; }
  .section { padding: 1.75rem 1rem; }
  .product-grid, .ebay-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 400px) {
  .product-grid, .ebay-grid { grid-template-columns: 1fr; }
}
