/**
 * Modern storefront top bar — aligned with app.ntrgroup.com.au landing style.
 * White sticky bar, gray page canvas, floating cards.
 */

body.storefront--modern {
    background: #f3f4f6;
    background-attachment: scroll;
    color: #111827;
}

.storefront-header--modern {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: transparent;
}

.storefront-header--modern .store-topbar {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 88px;
    padding: 0.55rem clamp(1rem, 4vw, 1.5rem);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.storefront-header--modern .store-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.storefront-header--modern .store-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #111827;
    flex-shrink: 0;
    min-width: 0;
}

.storefront-header--modern .store-topbar-brand .logo-img {
    max-height: none;
    width: auto;
    max-width: min(220px, 40vw);
    object-fit: contain;
}

.storefront-header--modern .store-topbar-brand-text {
    font-weight: 700;
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(40vw, 240px);
}

.storefront-header--modern .store-topbar-nav {
    display: none;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.storefront-header--modern .store-topbar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.storefront-header--modern .store-topbar-link { /* sized below */
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    color: #374151 !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.storefront-header--modern .store-topbar-link:hover {
    color: #3b82f6 !important;
    background: #f9fafb;
}

.storefront-header--modern .store-topbar-link.is-accent {
    color: #3b82f6 !important;
    font-weight: 600;
}

.storefront-header--modern .store-topbar-link.is-accent:hover {
    color: #2563eb !important;
    background: #eff6ff;
}

.storefront-header--modern .store-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.storefront-header--modern .store-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.storefront-header--modern .store-topbar-btn--primary {
    background: #111827;
    color: #fff !important;
    border: 1px solid #111827;
}

.storefront-header--modern .store-topbar-btn--primary:hover {
    background: #1f2937;
    border-color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.storefront-header--modern .store-topbar-btn--ghost {
    color: #3b82f6 !important;
    background: transparent;
    border: 1px solid transparent;
    padding-inline: 0.75rem;
}

.storefront-header--modern .store-topbar-btn--ghost:hover {
    color: #2563eb !important;
    text-decoration: underline;
}

.storefront-header--modern .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
}

.storefront-header--modern .nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #111827;
    border-radius: 1px;
}

/* Account chip — match app bar buttons */
.storefront-header--modern .nav-account-chip {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.storefront-header--modern .nav-account-chip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.storefront-header--modern .nav-account-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Mobile drawer */
.storefront-header--modern .store-mobile-backdrop {
    z-index: 1195;
}

.storefront-header--modern .store-mobile-drawer {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
}

.storefront-header--modern .store-mobile-drawer .store-mobile-drawer-head {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.1rem;
}

.storefront-header--modern .store-mobile-drawer .nav-link,
.storefront-header--modern .store-mobile-drawer .store-drawer-link {
    color: #374151;
    border-radius: 0.5rem;
}

.storefront-header--modern .store-mobile-drawer .nav-link:hover,
.storefront-header--modern .store-mobile-drawer .store-drawer-link:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Main content — floating card sections on gray canvas */
.storefront--modern .vb-page-main,
.storefront--modern main.vb-page-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem) 3rem;
}

.storefront--modern .hero,
.storefront--modern .design-card,
.storefront--modern .trust-card,
.storefront--modern .product-card,
.storefront--modern .blog-card,
.storefront--modern .ntr-platform-card,
.storefront--modern .card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.storefront--modern .hero:hover,
.storefront--modern .design-card:hover,
.storefront--modern .trust-card:hover,
.storefront--modern .product-card:hover,
.storefront--modern .blog-card:hover,
.storefront--modern .ntr-platform-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.storefront--modern .ntr-platform-showcase {
    background: transparent;
    padding-top: 1rem;
}

.storefront--modern .footer {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

@media (min-width: 900px) {
    .storefront-header--modern .store-topbar-nav {
        display: flex;
    }

    .storefront-header--modern .nav-hamburger {
        display: none !important;
    }

    .storefront-header--modern .store-topbar-actions {
        margin-left: 0;
    }
}

@media (max-width: 899px) {
    .storefront-header--modern .store-topbar-brand-text {
        max-width: min(50vw, 180px);
    }

    .storefront-header--modern .store-topbar-btn--ghost {
        display: none;
    }
}

/* Neurova: compact top bar + larger tabs (overrides kutchara) */
.storefront-header--modern .store-topbar-brand .logo-img,
.storefront-header--modern .store-topbar-brand .store-topbar-logo,
.store-topbar-brand .logo-img,
.store-topbar-brand .store-topbar-logo {
  display: block;
  height: 64px !important;
  width: auto !important;
  max-height: 64px !important;
  max-width: min(220px, 50vw);
  object-fit: contain;
  flex-shrink: 0;
}
.store-topbar-brand,
.storefront-header--modern .store-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}
.store-topbar,
.store-topbar-inner,
.storefront-header--modern .store-topbar,
.storefront-header--modern .store-topbar-inner {
  min-height: 72px !important;
  align-items: center;
  overflow: visible;
}
.storefront-header--modern .store-topbar {
  min-height: 72px !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  box-sizing: border-box;
}
@media (max-width: 767.98px) {
  .storefront-header--modern .store-topbar-brand .logo-img,
  .storefront-header--modern .store-topbar-brand .store-topbar-logo,
  .store-topbar-brand .logo-img,
  .store-topbar-brand .store-topbar-logo {
    height: 52px !important;
    max-height: 52px !important;
    max-width: min(180px, 52vw) !important;
  }
  .store-topbar,
  .store-topbar-inner,
  .storefront-header--modern .store-topbar,
  .storefront-header--modern .store-topbar-inner {
    min-height: 88px !important;
  }
}

/* Tabs — higher specificity than kutchara */
body.storefront--kutchara .storefront-header--modern .store-topbar-link,
body.storefront--modern .storefront-header--modern .store-topbar-link,
.storefront-header--modern .store-topbar-link.nav-link {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  padding: 0.35rem 0.75rem !important;
  line-height: 1.2 !important;
}
.storefront-header--modern .store-topbar-links {
  gap: 0.35rem 0.5rem;
}
body.storefront--kutchara .store-drawer-link,
body.storefront--kutchara .storefront-header--modern .store-mobile-drawer .nav-link,
.store-drawer-link,
.storefront-header--modern .store-mobile-drawer .nav-link {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  line-height: 1.25 !important;
}

/* Neurova tabs override kutchara */
body.storefront--kutchara .storefront-header--modern .store-topbar-link,
body.storefront--modern .storefront-header--modern .store-topbar-link,
.storefront-header--modern .store-topbar-link.nav-link {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  padding: 0.35rem 0.7rem !important;
  line-height: 1.2 !important;
}
.storefront-header--modern .store-topbar-links { gap: 0.35rem 0.45rem; }
body.storefront--kutchara .store-drawer-link,
.storefront-header--modern .store-mobile-drawer .nav-link {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

/* Neurova: taller bar + larger logo */
.storefront-header--modern .store-topbar-brand .logo-img,
.storefront-header--modern .store-topbar-brand .store-topbar-logo,
.store-topbar-brand .logo-img,
.store-topbar-brand .store-topbar-logo {
  height: 64px !important;
  max-height: 64px !important;
  width: auto !important;
}
.store-topbar,
.store-topbar-inner,
.storefront-header--modern .store-topbar,
.storefront-header--modern .store-topbar-inner {
  min-height: 88px !important;
}
@media (max-width: 767.98px) {
  .storefront-header--modern .store-topbar-brand .logo-img,
  .storefront-header--modern .store-topbar-brand .store-topbar-logo,
  .store-topbar-brand .logo-img,
  .store-topbar-brand .store-topbar-logo {
    height: 52px !important;
    max-height: 52px !important;
  }
  .store-topbar,
  .store-topbar-inner,
  .storefront-header--modern .store-topbar,
  .storefront-header--modern .store-topbar-inner {
    min-height: 72px !important;
  }
}
