/* ══════════════════════════════════════════════
   JULA MARKETPLACE — Global Stylesheet
   Brand: Navy Blue #0f2d5c | Gold #f5a623 | Warm White #fdf8f0
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #0f2d5c;
  --navy-dark:  #081a38;
  --navy-mid:   #1a3f73;
  --gold:       #f5a623;
  --gold-light: #ffc94d;
  --gold-pale:  #fff8ec;
  --warm-white: #fdf8f0;
  --gray-soft:  #f4f2ef;
  --gray-mid:   #9ca3af;
  --gray-dark:  #374151;
  --green-wa:   #25d366;
  --red:        #dc2626;
  --shadow-sm:  0 2px 8px rgba(15,45,92,0.08);
  --shadow-md:  0 6px 24px rgba(15,45,92,0.12);
  --shadow-lg:  0 16px 48px rgba(15,45,92,0.16);
  --radius:     10px;
  --radius-lg:  16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Typography ── */
.font-display { font-family: 'Playfair Display', serif; }

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-navy {
  background: var(--navy); color: #fff;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-wa {
  background: var(--green-wa); color: #fff;
  padding: 9px 18px; font-size: 0.85rem;
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

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

/* ══════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════ */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-flags { display: flex; gap: 16px; align-items: center; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.topbar-links a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
  padding: 0;
}
.navbar .container {
  display: flex; align-items: center;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo-mark {
  background: var(--navy);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  padding: 6px 16px;
  border-radius: 6px;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--gold);
}
.nav-logo-sub {
  font-size: 0.72rem; color: var(--gray-mid);
  font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-search {
  flex: 1; display: flex;
}
.nav-search input {
  flex: 1; border: 2px solid #e5e7eb;
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 18px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.nav-search input:focus { border-color: var(--navy); }
.nav-search button {
  background: var(--gold); border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700; font-size: 0.9rem; transition: background 0.2s;
  color: var(--navy-dark);
}
.nav-search button:hover { background: var(--gold-light); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 6px;
  font-weight: 500; font-size: 0.9rem;
  color: var(--gray-dark); transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--gold-pale); color: var(--navy);
}
.nav-links a.active { font-weight: 700; }

.nav-badge {
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  vertical-align: middle; margin-left: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.nav-cart {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  padding: 9px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; flex-shrink: 0;
}
.nav-cart:hover { background: var(--navy-mid); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all 0.3s;
}

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 60px 0;
  position: relative; overflow: hidden;
}
.page-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='%23f5a623' fill-opacity='0.05'%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");
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; }
.page-hero .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════════ */
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 { font-size: 2rem; color: var(--navy); margin-bottom: 8px; }
.section-title p { color: var(--gray-mid); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section-title .title-bar {
  width: 48px; height: 4px;
  background: var(--gold); border-radius: 2px;
  margin: 12px auto 0;
}

/* ══════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all 0.3s ease; position: relative;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.product-card-img {
  height: 200px; overflow: hidden;
  background: var(--gray-soft);
  display: flex; align-items: center; justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .placeholder-icon { font-size: 3rem; color: var(--gray-mid); }
.product-card-body { padding: 16px; }
.product-card-tag {
  font-size: 0.72rem; font-weight: 700;
  color: var(--navy); background: var(--gold-pale);
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-block; margin-bottom: 8px;
}
.product-card h3 { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.product-card-sub { font-size: 0.82rem; color: var(--gray-mid); margin-bottom: 10px; }
.product-card-price {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.product-card-price .old { font-size: 0.8rem; color: var(--gray-mid); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-card-actions { display: flex; gap: 8px; }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.product-badge.new { background: var(--navy); }
.product-badge.hot { background: #ea580c; }

/* ══════════════════════════════════════════════
   CLASSIFIEDS CARDS
   ══════════════════════════════════════════════ */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.cl-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid #f0ede8;
  transition: all 0.25s ease;
}
.cl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.cl-card-icon {
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.cl-card-body { padding: 16px; }
.cl-tag {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-block; margin-bottom: 8px;
}
.cl-card h3 { font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cl-card-sub { font-size: 0.8rem; color: var(--gray-mid); margin-bottom: 12px; }
.cl-card-actions {
  display: flex; gap: 8px; align-items: center;
  padding-top: 12px; border-top: 1px solid #f0ede8;
}

/* ══════════════════════════════════════════════
   CATEGORY PILLS
   ══════════════════════════════════════════════ */
.category-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.cat-pill {
  padding: 8px 20px; border-radius: 30px;
  background: #fff; border: 2px solid #e5e7eb;
  font-weight: 500; font-size: 0.88rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--navy); background: var(--navy); color: #fff;
}

/* ══════════════════════════════════════════════
   PARTNERS / SPONSORS
   ══════════════════════════════════════════════ */
.partners-section { background: #fff; padding: 60px 0; }
.partner-logo-grid {
  display: flex; flex-wrap: wrap;
  gap: 24px; justify-content: center; align-items: center;
}
.partner-logo-card {
  background: var(--gray-soft); border-radius: var(--radius);
  padding: 20px 32px; text-align: center;
  transition: all 0.25s;
  min-width: 160px;
}
.partner-logo-card:hover { background: var(--gold-pale); transform: scale(1.04); box-shadow: var(--shadow-sm); }
.partner-logo-card .p-icon { font-size: 2rem; margin-bottom: 8px; }
.partner-logo-card .p-name { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.partner-logo-card .p-sub { font-size: 0.75rem; color: var(--gray-mid); margin-top: 2px; }

/* ══════════════════════════════════════════════
   FACEBOOK GROUP SECTION
   ══════════════════════════════════════════════ */
.fb-section {
  background: linear-gradient(135deg, #1877f2 0%, #0a5ac2 100%);
  padding: 60px 0; color: #fff;
}
.fb-section .container {
  display: flex; align-items: center; gap: 60px;
}
.fb-content { flex: 1; }
.fb-content h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.fb-content p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 24px; max-width: 480px; }
.fb-stats { display: flex; gap: 32px; margin-bottom: 28px; }
.fb-stat .number { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.fb-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.fb-graphic {
  flex-shrink: 0; width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 6rem; backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.2);
}
.btn-fb {
  background: #fff; color: #1877f2;
  font-weight: 700; padding: 12px 28px;
  border-radius: var(--radius); display: inline-flex;
  align-items: center; gap: 8px; transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-fb:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand .nav-logo-mark { font-size: 1.8rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s; color: #fff;
}
.social-btn:hover { background: var(--gold); color: var(--navy-dark); }

footer h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; font-family: 'DM Sans', sans-serif; letter-spacing: 0.5px; }
footer ul li { margin-bottom: 10px; }
footer ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
footer ul li a:hover { color: var(--gold); }
footer ul li span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom .powered { color: var(--gold); font-weight: 600; }

/* ══════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--green-wa); color: #fff;
  padding: 14px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  display: flex; align-items: center; gap: 8px;
  z-index: 999; transition: all 0.25s;
  animation: pulse-wa 2s infinite;
}
.wa-float:hover { background: #1da851; transform: translateY(-3px); animation: none; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,0.7); }
}

/* ══════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-soft); }
.section-dark { background: var(--navy); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar-links { display: none; }
  .nav-search { display: none; }
  .nav-links { display: none; }
  .nav-cart { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .navbar .container { flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }

  .fb-section .container { flex-direction: column; gap: 32px; text-align: center; }
  .fb-stats { justify-content: center; }
  .fb-graphic { width: 120px; height: 120px; font-size: 3.5rem; }

  .page-hero h1 { font-size: 1.8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .section { padding: 48px 0; }

  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}

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

/* ══════════════════════════════════════════════
   MOBILE NAV MENU (toggled)
   ══════════════════════════════════════════════ */
.mobile-menu {
  display: none; background: #fff;
  border-top: 1px solid #f0ede8;
  padding: 16px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0;
  border-bottom: 1px solid #f0ede8;
  font-weight: 500; color: var(--gray-dark);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-search {
  display: flex; margin-bottom: 16px;
}
.mobile-search input {
  flex: 1; border: 2px solid #e5e7eb; border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px; font-family: 'DM Sans', sans-serif; outline: none;
}
.mobile-search button {
  background: var(--gold); border: none; padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 700;
}
