/* =========================================================
   UrbanNest Furniture — design tokens
   Palette: warm walnut + burnt clay + linen (deliberately
   distinct from SolarFlow's green/mint system)
   Type: Fraunces (display serif) + Manrope (body sans)
   ========================================================= */
:root {
  --un-linen: #f6efe4;
  --un-linen-deep: #efe4d1;
  --un-ink: #241a14;
  --un-walnut: #4a2f22;
  --un-walnut-deep: #2b1d16;
  --un-clay: #b5651d;
  --un-clay-deep: #8f4e15;
  --un-sage: #7c8a6f;
  --un-border: rgba(43, 29, 22, 0.14);
  --un-shadow: 0 20px 44px rgba(43, 29, 22, 0.14);
}

body.urbannest {
  background: var(--un-linen);
  color: var(--un-ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

.urbannest h1, .urbannest h2, .urbannest h3, .urbannest h4,
.urbannest .un-display {
  font-family: "Fraunces", Georgia, serif;
  color: var(--un-walnut-deep);
  letter-spacing: -0.01em;
}

.urbannest a { color: inherit; }

/* ---------- Navbar ---------- */
.un-navbar {
  background: var(--un-walnut-deep);
  padding: 0.9rem 0;
  border-bottom: 3px solid var(--un-clay);
}
.un-navbar .navbar-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--un-linen);
  font-weight: 600;
}
.un-navbar .navbar-brand span {
  color: var(--un-clay);
}
.un-navbar .nav-link {
  color: rgba(246, 239, 228, 0.78);
  font-weight: 600;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.un-navbar .nav-link:hover,
.un-navbar .nav-link.active {
  color: #fff;
  background: rgba(181, 101, 29, 0.35);
}
.un-navbar .un-crosslink {
  border: 1px solid rgba(246, 239, 228, 0.3);
}
.un-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--un-clay);
  color: #fff !important;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.un-cart-btn:hover { background: var(--un-clay-deep); }
.un-cart-badge {
  background: var(--un-walnut-deep);
  color: #fff;
  font-size: 0.72rem;
}

/* ---------- Buttons ---------- */
.btn-un-primary {
  background: var(--un-clay);
  border-color: var(--un-clay);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}
.btn-un-primary:hover {
  background: var(--un-clay-deep);
  border-color: var(--un-clay-deep);
  color: #fff;
}
.btn-un-outline {
  border: 1.5px solid var(--un-walnut);
  color: var(--un-walnut-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: transparent;
}
.btn-un-outline:hover {
  background: var(--un-walnut);
  color: #fff;
}

/* ---------- Hero / Carousel ---------- */
.un-hero-carousel .carousel-item {
  min-height: 480px;
  display: none;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.un-hero-carousel .carousel-item.active,
.un-hero-carousel .carousel-item.carousel-item-next,
.un-hero-carousel .carousel-item.carousel-item-prev {
  display: flex;
}
.un-hero-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(43,29,22,0.82) 0%, rgba(43,29,22,0.45) 55%, rgba(43,29,22,0.15) 100%);
}
.un-hero-caption {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: var(--un-linen);
  padding: 0 3rem;
}
.un-hero-caption .un-kicker {
  color: var(--un-clay);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.un-hero-caption h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}
.un-hero-caption p {
  color: rgba(246, 239, 228, 0.88);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.un-hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--un-clay);
}

/* ---------- Sections ---------- */
.un-section { padding: 4rem 0; }
.un-section-title { margin-bottom: 0.5rem; }
.un-section-lead {
  color: #5c4a3d;
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.un-band {
  background: var(--un-linen-deep);
}

/* ---------- Cards ---------- */
.un-card {
  border: 1px solid var(--un-border);
  border-radius: 4px;
  background: #fffdf9;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.un-card:hover {
  box-shadow: var(--un-shadow);
  transform: translateY(-3px);
}
.un-card a {
  display: block;
  text-decoration: none;
}
.un-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(181,101,29,0.06), rgba(43,29,22,0.04));
}
.un-card .card-body { padding: 1.35rem; }
.un-card .un-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}
.un-card .un-price {
  color: var(--un-clay-deep);
  font-weight: 700;
  font-size: 1.05rem;
}
.un-badge {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4em 0.75em;
  border-radius: 999px;
}
.un-badge-bestseller { background: var(--un-clay); color: #fff; }
.un-badge-new { background: var(--un-sage); color: #fff; }

/* ---------- Category filter pills ---------- */
.un-filter-pills .nav-link {
  border: 1px solid var(--un-border);
  border-radius: 999px;
  color: var(--un-walnut-deep);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.un-filter-pills .nav-link.active {
  background: var(--un-walnut-deep) !important;
  color: #fff !important;
  border-color: var(--un-walnut-deep);
}

/* ---------- Product detail ---------- */
.un-product-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
}
.un-product-gallery img {
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--un-shadow);
  background: linear-gradient(135deg, rgba(181,101,29,0.06), rgba(43,29,22,0.04));
}
.un-price-lg {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--un-clay-deep);
  font-family: "Fraunces", Georgia, serif;
}
.un-nav-tabs .nav-link {
  color: #5c4a3d;
  font-weight: 700;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
.un-nav-tabs .nav-link.active {
  color: var(--un-walnut-deep);
  border-bottom-color: var(--un-clay);
  background: transparent;
}
.un-tab-content { padding: 1.5rem 0; }

/* ---------- Accordion (About) ---------- */
.un-accordion .accordion-button {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--un-walnut-deep);
  background: #fffdf9;
}
.un-accordion .accordion-button:not(.collapsed) {
  background: var(--un-linen-deep);
  color: var(--un-clay-deep);
  box-shadow: none;
}
.un-accordion .accordion-item { border-color: var(--un-border); }

/* ---------- Forms ---------- */
.urbannest .form-control,
.urbannest .form-select {
  border-radius: 4px;
  border-color: var(--un-border);
  padding: 0.75rem 1rem;
}
.urbannest .form-control:focus,
.urbannest .form-select:focus {
  border-color: var(--un-clay);
  box-shadow: 0 0 0 0.2rem rgba(181, 101, 29, 0.15);
}
.un-payment-option {
  border: 1.5px solid var(--un-border);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.un-payment-option:has(input:checked) {
  border-color: var(--un-clay);
  background: rgba(181, 101, 29, 0.06);
}
.un-payment-method-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(74, 47, 34, 0.05);
  border: 1px solid rgba(74, 47, 34, 0.12);
  color: var(--un-walnut-deep);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Cart table ---------- */
.un-cart-table th {
  font-weight: 700;
  color: var(--un-walnut-deep);
  border-bottom-width: 2px;
  border-color: var(--un-walnut-deep);
}
.un-cart-table td { vertical-align: middle; }
.un-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--un-border);
  border-radius: 999px;
  overflow: hidden;
}
.un-qty-control button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--un-clay-deep);
  font-weight: 700;
}
.un-qty-control span { min-width: 1.8rem; text-align: center; font-weight: 700; }

/* ---------- Footer ---------- */
.un-footer {
  background: var(--un-walnut-deep);
  color: rgba(246, 239, 228, 0.75);
  padding: 2.5rem 0 1.5rem;
}
.un-footer strong { color: var(--un-linen); }

/* ---------- Toast override (Bootstrap toast, contrast vs solar's custom one) ---------- */
.un-toast {
  --bs-toast-bg: var(--un-walnut-deep);
  color: var(--un-linen);
  border: none;
}

@media (max-width: 767px) {
  .un-hero-carousel .carousel-item { min-height: 400px; }
  .un-hero-caption { padding: 0 1.5rem; }
}
