/* ============================================================
   Nobo Deal — Islamic Theme (Emerald & Gold)
   Loaded LAST in layouts/app.blade.php — overrides clone theme
   Palette: emerald #0b5c43 / deep #073b2e / gold #c9a24b / cream
   Motifs: 8-pointed star, arabesque lattice, mosque arch
   ============================================================ */



/* ---------- Design tokens ---------- */
:root {
  --primary-color: #c9a24b;          /* gold (replaces orange) */
  --secondary-color: #073b2e;        /* deep emerald */
  --title-color: #15362c;
  --body-color: #4d6159;
  --border-color: #e2dcc8;
  --bg-light: #faf6ec;
  --white: #ffffff;

  --nd-emerald: #0b5c43;
  --nd-emerald-deep: #073b2e;
  --nd-emerald-dark: #052d23;
  --nd-gold: #c9a24b;
  --nd-gold-bright: #e3c87e;
  --nd-gold-dark: #a8842f;
  --nd-cream: #faf6ec;
  --nd-cream-2: #f3ecd8;
  --nd-ink: #1c2a25;
  --nd-muted: #5d7268;
  --nd-red: #c0392b;
  --nd-green: #0e8a5f;

  --nd-radius: 14px;
  --nd-radius-sm: 9px;
  --nd-arch: 140px 140px 18px 18px;
  --nd-arch-sm: 90px 90px 12px 12px;

  --nd-shadow-soft: 0 6px 20px rgba(7, 59, 46, .08), 0 2px 6px rgba(7, 59, 46, .05);
  --nd-shadow-lift: 0 16px 38px rgba(7, 59, 46, .16), 0 5px 12px rgba(7, 59, 46, .08);
  --nd-shadow-gold: 0 8px 22px rgba(201, 162, 75, .35);

  --nd-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1'%3E%3Cpath d='M28 4 L36 20 L52 28 L36 36 L28 52 L20 36 L4 28 L20 20 Z' opacity='0.5'/%3E%3Ccircle cx='28' cy='28' r='9' opacity='0.35'/%3E%3Ccircle cx='28' cy='28' r='2.5' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  --nd-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M28 4 L36 20 L52 28 L36 36 L28 52 L20 36 L4 28 L20 20 Z' opacity='0.14'/%3E%3Ccircle cx='28' cy='28' r='9' opacity='0.1'/%3E%3Ccircle cx='28' cy='28' r='2.5' opacity='0.18'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html.js-enabled [data-reveal] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
html.js-enabled [data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(.92); }

body {
  background: var(--nd-cream);
  color: var(--nd-ink);
  font-family: 'Open Sans', 'Hind Siliguri', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .slider-title, .section-title, .product-title {
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}
::selection { background: var(--nd-gold); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--nd-cream-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--nd-emerald), var(--nd-emerald-deep)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--nd-gold); }

/* ---------- Scroll progress (gold bar) ---------- */
#nd-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--nd-gold-dark), var(--nd-gold-bright), var(--nd-gold));
  z-index: 100001; box-shadow: 0 0 10px rgba(201,162,75,.6); border-radius: 0 3px 3px 0;
}

/* ---------- Back to top (crescent) ---------- */
#nd-back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 9990;
  width: 46px; height: 46px; border: none; cursor: pointer;
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(135deg, var(--nd-emerald), var(--nd-emerald-deep));
  color: var(--nd-gold-bright); font-size: 19px;
  box-shadow: var(--nd-shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s ease;
  display: flex; align-items: center; justify-content: center;
}
#nd-back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#nd-back-top:hover { background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-dark)); color: #fff; transform: translateY(-3px); }

/* ---------- Preloader ---------- */
.preloader {
  background: radial-gradient(circle at 50% 40%, var(--nd-emerald), var(--nd-emerald-dark) 70%);
  flex-direction: column; gap: 18px;
}
.preloader::before {
  content: ""; width: 118px; height: 118px; position: absolute;
  border: 3px solid rgba(227,200,126,.25); border-top-color: var(--nd-gold-bright);
  border-radius: 50%; animation: ndSpin 1s linear infinite;
}
.preloader::after {
  content: ""; width: 150px; height: 150px; position: absolute;
  border: 1.5px dashed rgba(227,200,126,.18); border-radius: 50%;
  animation: ndSpin 2.4s linear infinite reverse;
}
@keyframes ndSpin { to { transform: rotate(360deg); } }
.preloader img { width: 96px; height: 96px; object-fit: contain; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: ndPulse 1.6s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes ndPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.preloader.loaded { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }

/* ---------- Header top ---------- */
.header-top {
  background: linear-gradient(90deg, var(--nd-emerald-dark), var(--nd-emerald) 45%, var(--nd-emerald-dark));
  background-image: var(--nd-pattern-light), linear-gradient(90deg, var(--nd-emerald-dark), var(--nd-emerald) 45%, var(--nd-emerald-dark));
  color: #d9e6df !important; border-bottom: 2px solid var(--nd-gold);
}
.header-top a { color: var(--nd-gold-bright) !important; }
.header-top a:hover { color: #fff !important; }

/* ---------- Header middle ---------- */
.header-middle { background: #fff; }
.header-middle.nd-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; box-shadow: 0 3px 16px rgba(5,45,35,.18); animation: ndSlideDown .35s ease; }
@keyframes ndSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-middle .logo { display: flex; align-items: center; }
.site-logo { max-height: 58px; width: auto; object-fit: contain; transition: transform .3s ease; }
.site-logo:hover { transform: scale(1.04); }
.header-middle .logo a { display: inline-flex; align-items: center; }
.header-search input {
  border: 2px solid var(--nd-emerald) !important; border-right: none !important;
  border-radius: 12px 0 0 12px !important; background: var(--nd-cream) !important;
  font-size: 14px; transition: box-shadow .25s ease;
}
.header-search input:focus { box-shadow: 0 0 0 4px rgba(201,162,75,.22); }
.header-search button {
  background: linear-gradient(135deg, var(--nd-emerald), var(--nd-emerald-deep)) !important;
  color: var(--nd-gold-bright) !important; border-radius: 0 12px 12px 0 !important;
  transition: all .25s ease;
}
.header-search button:hover { background: var(--nd-gold) !important; color: #fff !important; }
.header-action i { color: var(--nd-emerald-deep); transition: color .25s ease, transform .25s ease; }
.header-action > div:hover i, .header-action a:hover i { color: var(--nd-gold-dark); transform: translateY(-2px); }
.cart-count { background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-dark)) !important; box-shadow: 0 3px 8px rgba(201,162,75,.5); }

/* ---------- Header bottom nav ---------- */
.header-bottom {
  background: linear-gradient(90deg, var(--nd-emerald-deep), var(--nd-emerald) 50%, var(--nd-emerald-deep)) !important;
  background-image: var(--nd-pattern-light), linear-gradient(90deg, var(--nd-emerald-deep), var(--nd-emerald) 50%, var(--nd-emerald-deep)) !important;
  box-shadow: 0 4px 14px rgba(5,45,35,.25);
}
#main-nav > ul > li > a {
  color: #eef5f1 !important; font-weight: 600;
  position: relative; transition: color .25s ease, background .25s ease;
}
#main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, var(--nd-gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
#main-nav > ul > li:hover > a, #main-nav > ul > li > a.active {
  background: rgba(201,162,75,.18) !important; color: var(--nd-gold-bright) !important;
}
#main-nav > ul > li:hover > a::after, #main-nav > ul > li > a.active::after { transform: scaleX(1); }
#main-nav .dropdown, #main-nav .submenu {
  border-top: 3px solid var(--nd-gold) !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: var(--nd-shadow-lift) !important;
}
#main-nav .dropdown li a { border-left: 3px solid transparent; transition: all .2s ease; }
#main-nav .dropdown li a:hover {
  background: var(--nd-cream) !important; border-left-color: var(--nd-gold) !important; color: var(--nd-emerald-deep) !important; padding-left: 24px;
}
.nav-toggle { color: var(--nd-gold-bright) !important; }

/* ---------- Buttons ---------- */
.theme-btn, .btn-primary, .btn-dark, .single-slider .theme-btn {
  background: linear-gradient(135deg, var(--nd-gold-bright), var(--nd-gold) 55%, var(--nd-gold-dark)) !important;
  color: #fff !important; border: none !important;
  border-radius: var(--nd-radius-sm) !important;
  box-shadow: var(--nd-shadow-gold) !important;
  position: relative; overflow: hidden;
  transition: all .3s ease !important;
  font-weight: 700 !important; letter-spacing: .2px;
}
.theme-btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.theme-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,75,.45) !important; }
.theme-btn:hover::after { left: 130%; }
.theme-btn.secondary, .theme-btn.btn-outline, .btn-outline-primary {
  background: linear-gradient(135deg, var(--nd-emerald), var(--nd-emerald-deep)) !important;
  box-shadow: 0 8px 20px rgba(11,92,67,.3) !important;
}
.theme-btn.btn-light, .btn-light { background: var(--nd-cream) !important; color: var(--nd-emerald-deep) !important; box-shadow: none !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-area {
  background: linear-gradient(120deg, var(--nd-emerald-dark), var(--nd-emerald) 55%, var(--nd-emerald-deep)) !important;
  background-image: var(--nd-pattern-light), linear-gradient(120deg, var(--nd-emerald-dark), var(--nd-emerald) 55%, var(--nd-emerald-deep)) !important;
  border-bottom: 3px solid var(--nd-gold);
  position: relative; overflow: hidden;
}
.breadcrumb-area::after {
  content: ""; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 74px; height: 38px; background: var(--nd-gold);
  border-radius: 74px 74px 0 0; opacity: .9;
}
.breadcrumb-content h2 { color: #fff !important; font-family: 'Amiri', 'Poppins', serif; font-size: 34px; text-shadow: 0 3px 12px rgba(0,0,0,.25); }
.breadcrumb-content nav a { color: var(--nd-gold-bright) !important; }
.breadcrumb-content nav span { color: rgba(255,255,255,.55) !important; }

/* ---------- Section titles (crescent divider) ---------- */
.section-title, .section-title-wrap h2, .widget-title, .panel-head h4 {
  position: relative; padding-bottom: 14px;
}
.section-title::after, .section-title-wrap h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 64px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--nd-gold), var(--nd-gold-bright), transparent);
}
.section-title::before {
  content: "☪"; position: absolute; left: 66px; bottom: -6px;
  color: var(--nd-gold); font-size: 15px; line-height: 1;
}

/* ---------- Cards ---------- */
.product-card, .single-product, .banner-grid-item, .category-box, .offer-banner, .combos-card, .testimonial-item, .newsletter-box, .blog-card, .cart-item, .order-summary, .checkout-form-area, .login-register-area form, .faq-item, .page-content, .widget, .panel, .product-details-content, .product-gallery, .product-thumbs {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover, .single-product:hover, .banner-grid-item:hover, .category-box:hover, .offer-banner:hover, .combos-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nd-shadow-lift);
  border-color: rgba(201,162,75,.55);
}
.product-card img, .single-product img, .banner-grid-item img, .category-box img, .offer-banner img {
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover img, .single-product:hover img, .banner-grid-item:hover img, .category-box:hover img, .offer-banner:hover img { transform: scale(1.06); }
.product-card { overflow: hidden; position: relative; }
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--nd-emerald), var(--nd-gold), var(--nd-emerald));
  transform: scaleX(0); transition: transform .4s ease; transform-origin: left;
}
.product-card:hover::before { transform: scaleX(1); }
.product-price, .new-price { color: var(--nd-gold-dark) !important; font-weight: 800 !important; }
.old-price { color: #a8b3ad !important; }
.product-card .badge, .product-badge, .sale-badge, .hot-badge {
  background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-dark)) !important;
  color: #fff !important; border-radius: 8px !important; box-shadow: var(--nd-shadow-gold);
}

/* ---------- Swiper ---------- */
.swiper-pagination-bullet { background: rgba(201,162,75,.4) !important; width: 9px; height: 9px; }
.swiper-pagination-bullet-active { background: var(--nd-gold) !important; width: 26px; border-radius: 6px; }
.swiper-button-next, .swiper-button-prev {
  background: rgba(255,255,255,.85) !important; color: var(--nd-emerald-deep) !important;
  width: 42px !important; height: 42px !important; border-radius: 50% !important;
  box-shadow: var(--nd-shadow-soft); border: 1px solid rgba(201,162,75,.4);
  transition: all .25s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--nd-gold) !important; color: #fff !important; }

/* ---------- Footer ---------- */
footer.footer {
  background: var(--nd-emerald-dark) !important;
  background-image: var(--nd-pattern-light), linear-gradient(180deg, var(--nd-emerald-deep), var(--nd-emerald-dark)) !important;
  border-top: 3px solid var(--nd-gold);
  position: relative;
}
footer.footer::before {
  content: "﷽"; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-family: 'Amiri', serif; color: rgba(227,200,126,.28); font-size: 22px;
}
.footer-top h4 { color: var(--nd-gold-bright) !important; font-family: 'Poppins', sans-serif; letter-spacing: .4px; }
.footer-top ul li a:hover { color: var(--nd-gold-bright) !important; }
.footer-brand .logo a { color: #fff !important; font-family: 'Amiri', serif; font-size: 30px; }
.footer-brand .logo a span { color: var(--nd-gold) !important; }
.footer-logo-chip {
  display: inline-block; background: #fff; padding: 10px 18px; border-radius: 14px;
  box-shadow: var(--nd-shadow-lift); margin-bottom: 6px;
}
.footer-logo-chip img { height: 44px; width: auto; object-fit: contain; display: block; }
.footer-social a { background: rgba(201,162,75,.18) !important; color: var(--nd-gold-bright) !important; border: 1px solid rgba(201,162,75,.35); transition: all .25s ease; }
.footer-social a:hover { background: var(--nd-gold) !important; color: #fff !important; transform: translateY(-3px); }
.footer-contact li i { color: var(--nd-gold) !important; }
.footer-bottom { border-top: 1px solid rgba(201,162,75,.25) !important; background: rgba(0,0,0,.22); }
.footer-bottom p { color: #b9c9c1 !important; }

/* ---------- Mobile bottom nav ---------- */
.bottom-navigation { border-top: 2px solid var(--nd-gold) !important; box-shadow: 0 -6px 18px rgba(5,45,35,.12); }
.bottom-navigation ul li a i { color: var(--nd-emerald) !important; }
.bottom-navigation ul li a.active, .bottom-navigation ul li a.active i { color: var(--nd-gold-dark) !important; }
.cart-badge { background: linear-gradient(135deg, var(--nd-gold), var(--nd-gold-dark)) !important; }

/* ---------- Forms ---------- */
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  border: 1.5px solid #d9d3bf !important; border-radius: 10px !important;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--nd-emerald) !important;
  box-shadow: 0 0 0 4px rgba(11,92,67,.14) !important; outline: none;
}
label { color: var(--nd-emerald-deep); font-weight: 600; }

/* ---------- Admin-style stat cards & panels (frontend widgets) ---------- */
.stat-card { border-radius: var(--nd-radius); transition: transform .3s ease, box-shadow .3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--nd-shadow-lift); }

/* ---------- Order / checkout ---------- */
.order-summary h4, .checkout-form-area h4, .checkout-form-area h5 { color: var(--nd-emerald-deep); }
.order-summary { border-top: 4px solid var(--nd-gold); }
.cart-totals .fw-bold { color: var(--nd-gold-dark); }
.payment-methods .form-check-input:checked { background-color: var(--nd-emerald); border-color: var(--nd-emerald); }

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--nd-emerald-deep); border: 1px solid var(--border-color);
  border-radius: 9px !important; margin: 0 3px; transition: all .25s ease;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--nd-emerald), var(--nd-emerald-deep)) !important;
  border-color: var(--nd-emerald) !important; color: #fff !important;
  box-shadow: var(--nd-shadow-soft);
}
.pagination .page-link:hover { background: var(--nd-cream); color: var(--nd-gold-dark); }

/* ---------- Toastr ---------- */
#toast-container > div { border-radius: var(--nd-radius-sm) !important; box-shadow: var(--nd-shadow-lift) !important; border-left: 4px solid var(--nd-gold) !important; }

/* ---------- Misc ---------- */
.text-primary { color: var(--nd-emerald) !important; }
.bg-primary { background-color: var(--nd-emerald) !important; }
.btn-outline-danger:hover, .btn-danger { background: var(--nd-red) !important; border-color: var(--nd-red) !important; }
a { color: var(--nd-emerald); transition: color .2s ease; }
a:hover { color: var(--nd-gold-dark); }

/* Crescent ornament divider */
.nd-ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--nd-gold); margin: 8px 0 18px;
}
.nd-ornament::before, .nd-ornament::after {
  content: ""; height: 2px; width: 70px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--nd-gold));
}
.nd-ornament::after { background: linear-gradient(90deg, var(--nd-gold), transparent); }
.nd-ornament i { font-size: 18px; }

/* Performance: only transform/opacity animations, GPU-friendly */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html.js-enabled [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .site-logo { max-height: 46px; }
  .breadcrumb-content h2 { font-size: 27px; }
}
@media (max-width: 767.98px) {
  .site-logo { max-height: 40px; }
  .breadcrumb-content h2 { font-size: 23px; }
  #nd-back-top { right: 14px; bottom: 74px; width: 42px; height: 42px; }
}

/* ============================================================
   ==== Header v2 ====
   Redesigned top bar (deep emerald gradient + gold), logo
   behavior (home-only image logo, wordmark elsewhere), clean
   logo zone. Appended LAST so it wins the cascade over both
   the inline <style> block and the earlier theme rules.
   ============================================================ */

/* ---------- Header top: deep emerald gradient + gold ---------- */
.header-top {
  display: block !important;                 /* override base d-none on mobile */
  background-image: var(--nd-pattern-light), linear-gradient(90deg, var(--nd-emerald-dark) 0%, var(--nd-emerald) 38%, var(--nd-emerald) 62%, var(--nd-emerald-dark) 100%) !important;
  background-color: var(--nd-emerald-deep) !important;
  border-bottom: 2px solid var(--nd-gold) !important;
  color: #d9e6df !important;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease, opacity .35s ease, border-bottom-width .35s ease;
  max-height: 90px;
}
.header-top.ht-hidden {                      /* subtle hide on scroll down (islamic.js) */
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  opacity: 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* v3.1 */
  gap: 16px;
  min-height: 40px;
}
.header-top-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.ht-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e6df;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
  line-height: 1.5;
}
.ht-item i {
  color: var(--nd-gold-bright);
  font-size: 15px;
  text-shadow: 0 0 8px rgba(201, 162, 75, .45);
}
.ht-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nd-gold);
  box-shadow: 0 0 6px rgba(201, 162, 75, .85);
  flex: 0 0 auto;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ht-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  line-height: 1.5;
  transition: all .25s ease;
}
.ht-pill i { font-size: 13px; }
.ht-pill-outline {
  color: var(--nd-gold-bright) !important;
  background: rgba(201, 162, 75, .08);
  border: 1.5px solid rgba(201, 162, 75, .6);
}
.ht-pill-outline:hover {
  background: linear-gradient(135deg, var(--nd-gold-bright), var(--nd-gold));
  border-color: var(--nd-gold-bright);
  color: #fff !important;
  box-shadow: 0 0 16px rgba(201, 162, 75, .5);
  transform: translateY(-1px);
}
.ht-pill-solid {
  color: #fff !important;
  background: linear-gradient(135deg, var(--nd-emerald), var(--nd-emerald-deep));
  border: 1.5px solid rgba(227, 200, 126, .55);
  box-shadow: 0 4px 12px rgba(5, 45, 35, .4);
}
.ht-pill-solid:hover {
  background: linear-gradient(135deg, var(--nd-gold-bright), var(--nd-gold-dark));
  border-color: var(--nd-gold);
  color: #fff !important;
  box-shadow: var(--nd-shadow-gold);
  transform: translateY(-1px);
}

/* ---------- Logo: bigger + clean white zone (home only) ---------- */
.header-middle .logo.logo-home,
.header-middle .logo.logo-home a {
  background: #ffffff !important;
  background-image: none !important;         /* strip any pattern/gradient behind logo */
}
.header-middle .logo.logo-home a {
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(7, 59, 46, .07);
}
.header-middle .logo .site-logo,
.logo-home .site-logo {
  width: 210px !important;
  height: auto !important;
  max-height: 72px !important;               /* safety cap; 210px wide x ~132px tall at 1.59 ratio */
  object-fit: contain;
  display: block;
}
.logo-home .site-logo:hover { transform: scale(1.04); }

/* ---------- Search: fill wider column on non-home ---------- */
.header-middle .header-search { max-width: 720px; }

/* ---------- Wordmark (non-home pages: text only, gold) ---------- */
.logo-wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 27px !important;
  font-weight: 800 !important;
  letter-spacing: .4px;
  font-family: 'Poppins', sans-serif !important;
  color: var(--nd-emerald-deep) !important;
  background: none !important;
  background-image: none !important;
  text-decoration: none !important;
  line-height: 1.2;
}
.logo-wordmark a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--nd-gold-bright), var(--nd-gold) 65%);
  box-shadow: 0 0 8px rgba(201, 162, 75, .6);
}
.logo-wordmark a .wm-deal { color: var(--nd-gold) !important; }
.logo-wordmark:hover a .wm-deal { color: var(--nd-gold-dark) !important; }

/* ---------- Header v2 responsive ---------- */
@media (max-width: 991.98px) {
  .logo-home .site-logo { width: 170px !important; }
  .logo-wordmark a { font-size: 24px !important; }
  .header-top-inner { gap: 10px; }
  .ht-item { font-size: 12.5px; }
}
@media (max-width: 767.98px) {
  .header-top { display: block !important; padding: 5px 0; }
  .header-top .ht-email,
  .header-top .ht-register,
  .header-top .ht-admin { display: none !important; }  /* mobile: phone + login only */
  .header-top-inner { min-height: 32px; gap: 8px; }
  .ht-item { font-size: 12px; gap: 6px; }
  .ht-item i { font-size: 13px; }
  .ht-dot { display: none; }
  .header-top-actions { gap: 8px; }
  .ht-pill { padding: 4px 11px; font-size: 11.5px; gap: 5px; }
  .logo-home .site-logo { width: 150px !important; }
  .logo-wordmark a { font-size: 21px !important; }
}

/* ============================================================
   ==== Header v3 ====
   Top bar: contacts LEFT, auth (Login/Register/Admin) RIGHT.
   Mobile: phone + email AND all three auth links stay VISIBLE
   (compact; auth pills become icon-only below 576px; graceful
   2-row wrap on very narrow phones instead of overflow).
   Appended LAST so it wins the cascade over the v2 header
   rules AND the base inline <style> block.
   ============================================================ */

/* Right group: hard right-align (defensive - keeps auth on the
   right even when the inner bar wraps on narrow screens) */
.header-top-actions {
  margin-left: 0;
  flex-wrap: nowrap;
}

/* ---------- Header v3 responsive ---------- */
@media (max-width: 767.98px) {
  .header-top { display: block !important; padding: 5px 0; }

  /* v3 override: email + Register + Admin stay VISIBLE on mobile
     (v2 hid them; v3 requirement: keep them, just compact) */
  .header-top .ht-email,
  .header-top .ht-register,
  .header-top .ht-admin { display: inline-flex !important; }

  /* allow graceful 2-row wrap on narrow phones instead of overflow */
  .header-top-inner { flex-wrap: wrap; min-height: 32px; gap: 8px 12px; }

  .header-top-contacts { gap: 8px; }
  .ht-item { font-size: 11.5px; gap: 5px; line-height: 1.6; white-space: nowrap; }
  .ht-item i { font-size: 12px; }
  .ht-dot { display: none; }

  .header-top-actions { gap: 6px; }
  .ht-pill { padding: 4px 10px; font-size: 11px; gap: 4px; white-space: nowrap; }
}

/* Below 576px: auth pills become icon-only (labels stay in DOM,
   hidden visually) */
@media (max-width: 575.98px) {
  .ht-pill { padding: 5px 8px; }
  .ht-pill span { display: none; }
  .ht-pill i { font-size: 14px; }
}
