/* General Styles */
html, body {
  height: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
  flex: 1;
}

/* Consistent Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

p, .lead, label, span, a, li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

.card-title {
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
}

/* Form controls */
.form-control, .form-select, .btn, input, select, textarea, button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Text muted consistency */
.text-muted {
    font-size: 1rem;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Active nav link styling */
.navbar-nav .nav-link.active {
    border-bottom: 2px solid #fff;
    font-weight: 500;
}
.nav-link {
    margin: 0 10px 0 0;
}
/* Sidebar active item styling */
.list-group-item.active-sidebar {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

.list-group-item.active-sidebar a {
    font-weight: bold;
}

/* Smaller Coming Soon badge */
.list-group-item .badge {
    --bs-badge-font-size: 0.60em;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background: #343a40;
    color: white;
    padding: 15px 0;
}

/* Main Content */
.container {
    max-width: 900px;
}

/* Catalogue Grid */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.catalogue-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #f8f9fa;
}

.catalogue-item img {
    max-width: 100%;
    border-radius: 5px;
}
form {
    /*max-width: 600px;
    margin: 0 auto;*/
}

/* LOGO */

/* Brand (sprite-based logo) */
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.navbar .brand__icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  overflow: hidden;
  position: relative;
  flex: 0 0 32px;
}

/* This is the key: scale the whole sprite by setting width/height (no transform) */
.navbar .brand__icon img {
    position: absolute;
    width: 131.072px;
    height: 84.36px;
    left: -70.272px;
    top: -42.544px;
}


.navbar .brand__text {
  line-height: 1;
  visibility: hidden;
}

/* Footer */
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-link:hover {
  text-decoration: underline;
  color: #f0f0f0;
}

/* Home style*/

/* Home intro paragraph with inline logo */
.intro {
  line-height: 1.6;
  position: relative;
}

/* Home intro paragraph with large inline logo */
/* Home intro paragraph with large logo */
.intro__logo {
  float: left;
  width: 120px;
  margin: 0.25rem 1rem 0.5rem 0;
}

.intro__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.intro + a {
  display: inline-block;
  margin-top: 0.5rem;
}
.intro + a:hover {
  text-decoration: underline;
}

/* Collection Slider (horizontal scrolling grid) */
.collection-slider-container {
  position: relative;
  overflow: hidden;
}

.collection-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
  scrollbar-width: none;  /* Hide scrollbar Firefox */
}

.collection-slider::-webkit-scrollbar {
  display: none;  /* Hide scrollbar Chrome/Safari */
}

.collection-card {
  flex: 0 0 200px;
  min-width: 200px;
}

.collection-card .card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.collection-card .card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.collection-card .card-title {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Scroll buttons */
#scrollLeft, #scrollRight {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart badge in navbar */
.cart-badge {
  font-size: 0.65rem;
  padding: 0.25em 0.5em;
  min-width: 18px;
}

/* Catalogue grid improvements */
.catalogue-item {
  display: flex;
  flex-direction: column;
}

.catalogue-item h5 {
  min-height: 2.5em;
}

/* Cart page styling */
.cart-item-image {
  max-height: 80px;
  object-fit: contain;
}

/* Trust Banner Section */
.trust-banner {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.trust-banner-item {
    text-align: center;
    padding: 0.5rem;
}

.trust-banner-item svg {
    color: #198754;
    margin-bottom: 0.5rem;
}

.trust-banner-item p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    color: #495057;
}

/* Trust Accordion */
.trust-accordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
    box-shadow: none;
}

.trust-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* Cart Trust Card */
.trust-card .list-unstyled li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.trust-card .trust-check {
    color: #198754;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ── AI Chatbot (Floating Widget) ── */

.card-body .py-2 {
    padding-top: 1rem !important;
    padding-bottom: 0rem !important;
    margin-left: 0.5em !important;
}
/* NV run section headers sit inside accordion-body — give them bottom padding */
.card-body .accordion-body .py-2 {
    padding-bottom: 1rem !important;
}
/* NV social bodies sit inside accordion-body which already has top padding — cancel extra margin */
.card-body .accordion-body .pt-1 {
    margin-top: 0 !important;
}
.card-body .pt-1 {
    margin-left: 2.3em !important;
    margin-right: 2.3em !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
}
.accordion-item .accordion-body .accordion-button, .accordion-item .accordion-header .accordion-button {
    padding-bottom: 1rem !important;
}


/* Fixed container — bottom-right, above footer */
.chatbot-container {
    position: fixed;
    bottom: 120px;
    right: 40px;
    z-index: 1050;
}

/* Toggle wrapper — positions circle + arc text */
.chatbot-toggle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Curved arc label SVG — overlays the circle */
.chatbot-arc-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.chatbot-arc-label text {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 14px;
    fill: #0d6efd;
    letter-spacing: 1.5px;
}

/* Toggle button — round circle (blue) */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.chatbot-toggle-wrapper:hover .chatbot-toggle {
    background: #0b5ed7;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

/* Chat panel */
.chatbot-panel .card {
    width: 370px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

/* Messages container */
.chatbot-messages {
    height: 340px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 1rem;
}

/* Message row */
.chatbot-msg {
    display: flex;
    margin-bottom: 0.75rem;
}

.chatbot-msg-user {
    justify-content: flex-end;
}

.chatbot-msg-assistant {
    justify-content: flex-start;
}

/* Bubble */
.chatbot-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.chatbot-msg-user .chatbot-bubble {
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.chatbot-msg-assistant .chatbot-bubble {
    background: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 0.25rem;
}

/* Typing indicator (three bouncing dots) */
.chatbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 1rem !important;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    background: #adb5bd;
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-dot 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbot-dot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Override global form max-width inside chatbot */
.chatbot-input-area form {
    max-width: none;
}

/* Input area styling */
.chatbot-input-area {
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem;
}

/* Scrollbar for chat messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

article .asl-controls{
    margin-left: 5px;
}
article #asl-pause-btn{
    margin-top: -2px;
}



/* Mobile responsive — full width on small screens */
@media (max-width: 576px) {
    .chatbot-container {
        bottom: 0;
        right: 0;
        left: 0;
    }

    .chatbot-panel .card {
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
    }

    .chatbot-toggle-wrapper {
        position: fixed;
        bottom: 100px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .chatbot-toggle {
        width: 52px;
        height: 52px;
    }

    .chatbot-arc-label {
        display: none;
    }

    .chatbot-messages {
        height: 55vh;
    }
}

/* Tablet / medium screens */
@media (min-width: 577px) and (max-width: 768px) {
    .chatbot-panel .card {
        width: 340px;
    }

    .chatbot-container {
        right: 30px;
    }
}