/* ===== HEADER & FOOTER — Palettes du Faso ===== */

:root {
  --hf-primary: #8B4513;
  --hf-secondary: #CC7A00;
  --hf-dark: #2c1810;
  --hf-cream: #faf6f1;
  --hf-border: rgba(139, 69, 19, 0.15);
}

/* ---- Top bar ---- */
.top-bar {
  background: linear-gradient(90deg, var(--hf-dark), #3d2817);
  color: rgba(255,255,255,0.95);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.top-bar strong { color: var(--hf-secondary); }

/* ---- Header ---- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(139, 69, 19, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  padding: 0.5rem 0;
}

.site-header .navbar-brand {
  gap: 0.6rem;
}

.site-header .navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.site-header .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hf-dark) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.site-header .nav-link:hover {
  background: var(--hf-cream);
  color: var(--hf-primary) !important;
}

.site-header .nav-link.active {
  background: linear-gradient(135deg, var(--hf-primary), var(--hf-secondary));
  color: #fff !important;
}

/* ---- Search (suggestive) ---- */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-wrap .form-control {
  border-radius: 999px;
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  border: 1px solid var(--hf-border);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap .form-control:focus {
  border-color: var(--hf-secondary);
  box-shadow: 0 0 0 3px rgba(204, 122, 0, 0.15);
}

.search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a7359;
  pointer-events: none;
  font-size: 1rem;
}

.search-wrap .search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  padding: 0.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.search-wrap .form-control:not(:placeholder-shown) ~ .search-clear,
.search-wrap .search-clear:hover { opacity: 1; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--hf-border);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-dropdown.show { display: block; }

.search-dropdown .search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s;
}

.search-dropdown .search-item:last-child { border-bottom: none; }

.search-dropdown .search-item:hover {
  background: var(--hf-cream);
}

.search-dropdown .search-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--hf-cream);
}

.search-dropdown .search-item-body {
  flex: 1;
  min-width: 0;
}

.search-dropdown .search-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hf-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown .search-item-desc {
  font-size: 0.75rem;
  color: #6b5344;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown .search-item-price {
  font-weight: 700;
  color: var(--hf-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-dropdown .search-loading,
.search-dropdown .search-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #6b5344;
  font-size: 0.9rem;
}

.search-dropdown .search-view-all {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--hf-primary);
  background: var(--hf-cream);
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: background 0.2s;
}

.search-dropdown .search-view-all:hover {
  background: #ede5db;
  color: var(--hf-dark);
}

/* ---- Cart btn ---- */
.btn-cart-header {
  background: linear-gradient(135deg, var(--hf-primary), var(--hf-secondary)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cart-header:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 122, 0, 0.35);
}

@media (max-width: 991px) {
  .search-wrap { max-width: 100%; }
  .site-header .navbar-collapse { margin-top: 0.75rem; }
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, #1a1210 0%, #0f0b0a 100%);
  color: rgba(255,255,255,0.9);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--hf-secondary);
}

.site-footer .footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.site-footer .footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.9);
}

.site-footer .footer-contact-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer .footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
  font-size: 0.95rem;
}

.site-footer .footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer .footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.site-footer .footer-socials a:hover {
  background: var(--hf-secondary);
  transform: scale(1.08);
}

.site-footer .footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.site-footer .footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.site-footer .footer-bottom a {
  color: rgba(255,255,255,0.75);
  margin-right: 1.25rem;
}

@media (max-width: 767px) {
  .site-footer .footer-contact-item,
  .site-footer .footer-title { text-align: left; }
  .site-footer .footer-socials { justify-content: flex-start; }
}
