/*
* brand.css
* File include item demo only specific css only
******************************************************************************/

/* Prevent scrollbar layout shift - reserve space for scrollbar */
html {
    scrollbar-gutter: stable; /* Modern browsers - reserves space for scrollbar */
}

body {
    scrollbar-gutter: stable; /* Modern browsers - reserves space for scrollbar */
    overflow-x: hidden;
}

/* Fallback for browsers that don't support scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
    /* Use padding-right to compensate for potential scrollbar (15-17px typical) */
    html {
        padding-right: 0; /* Will be adjusted by JS if needed */
    }
}

/* Hide template customizer gear icon permanently */
#template-customizer,
.template-customizer,
.dropdown-style-switcher {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Navbar Search Suggestions Styles
******************************************************************************/
/* Mobile responsive navbar search - AGGRESSIVE OVERRIDES */
@media (max-width: 991.98px) {
  .navbar-nav-left {
    flex: 0 0 auto !important;
    max-width: fit-content !important;
    width: auto !important;
  }
  .navbar-search-wrapper {
    width: auto !important;
    max-width: fit-content !important;
  }
  .navbar-search {
    width: auto !important;
  }
  .navbar-search-form {
    width: auto !important;
  }
  /* HIDE desktop search input on mobile - be specific to avoid affecting mobile */
  .navbar-search-form .d-lg-block .input-group.input-group-merge,
  .navbar-search-form .d-none.d-lg-block .input-group.input-group-merge {
    display: none;
  }
  /* SHOW search icon button on mobile */
  .navbar-search-form .d-lg-none {
    display: block;
  }
  /* CRITICAL: Ensure mobile search collapse input is ALWAYS visible */
  .navbar-search-mobile-collapse .input-group,
  .navbar-search-mobile-collapse .input-group.input-group-merge,
  .navbar-search-mobile-collapse.show .input-group {
    display: flex;
    visibility: visible;
    opacity: 1;
  }
  .navbar-nav-right {
    flex: 0 0 auto !important;
    min-width: fit-content !important;
    margin-left: auto !important;
  }
  .navbar-nav-right .navbar-nav {
    flex-wrap: nowrap !important;
    width: auto !important;
  }
  .navbar-nav-right .nav-item {
    flex-shrink: 0 !important;
  }
}

.navbar-search-wrapper {
  position: relative;
}

.navbar-search-suggestions {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1050 !important;
  margin-top: 0.25rem !important;
  background: #fff !important;
  border: 1px solid #d9dee3 !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 0.25rem 1rem rgba(161, 172, 184, 0.45) !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 400px !important;
  overflow-y: auto !important;
}

.dark-style .navbar-search-suggestions {
  background: #283144 !important;
  border-color: #3b4253 !important;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5) !important;
}

.suggestions-content {
  padding: 0 !important;
}

.suggestions-header {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #d9dee3 !important;
  background: #f5f5f9 !important;
}

.dark-style .suggestions-header {
  background: #2b3141 !important;
  border-color: #3b4253 !important;
}

.suggestion-title {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #697a8d !important;
}

.dark-style .suggestion-title {
  color: #a1acb8 !important;
}

.suggestions-body {
  padding: 0.5rem 0 !important;
  max-height: 300px !important;
  overflow-y: auto !important;
}

.suggestion-section {
  padding: 0 !important;
}

.suggestion-category {
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #697a8d !important;
  background: #f5f5f9 !important;
}

.dark-style .suggestion-category {
  color: #a1acb8 !important;
  background: #2b3141 !important;
}

.suggestion-item {
  margin: 0 !important;
  padding: 0 !important;
}

.suggestion-item a {
  display: flex !important;
  align-items: center !important;
  padding: 0.75rem 1rem !important;
  text-decoration: none !important;
  color: #697a8d !important;
  transition: background-color 0.15s ease !important;
  border: none !important;
}

.suggestion-item a:hover,
.suggestion-item a.hover-bg-light:hover {
  background-color: #f5f5f9 !important;
  color: #566a7f !important;
}

.dark-style .suggestion-item a {
  color: #a1acb8 !important;
}

.dark-style .suggestion-item a:hover,
.dark-style .suggestion-item a.hover-bg-light:hover {
  background-color: #2b3141 !important;
  color: #cfd3da !important;
}

.suggestion-item .fw-medium {
  font-weight: 500 !important;
  color: #566a7f !important;
  margin-bottom: 0.25rem !important;
}

.dark-style .suggestion-item .fw-medium {
  color: #cfd3da !important;
}

.suggestion-item .text-muted {
  color: #a1acb8 !important;
  font-size: 0.8125rem !important;
}

.dark-style .suggestion-item .text-muted {
  color: #7c8fa1 !important;
}

.suggestion-footer {
  padding: 0.75rem 1rem !important;
  border-top: 1px solid #d9dee3 !important;
  background: #f5f5f9 !important;
  text-align: center !important;
}

.dark-style .suggestion-footer {
  background: #2b3141 !important;
  border-color: #3b4253 !important;
}

.suggestion-footer a {
  color: #2092ec !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.suggestion-footer a:hover {
  color: #5f61e6 !important;
  text-decoration: underline !important;
}

.dark-style .suggestion-footer a {
  color: #8b8dff !important;
}

.dark-style .suggestion-footer a:hover {
  color: #a3a5ff !important;
}

/*
* Product Image Small - Global Style
******************************************************************************/
.product-image-small {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background-color: #f8f9fa !important;
  padding: 2px !important;
}

/*
* SKU Code - Global Style
******************************************************************************/
.sku-display .sku-code,
.sku-display a.sku-code,
.sku-display span.sku-code,
a.sku-code,
span.sku-code,
.sku-code {
    font-size: 13px;
    font-weight: 400;
    color: rgb(32, 146, 236);
    text-decoration: none;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.sku-display a.sku-code:hover,
a.sku-code:hover {
    color: rgb(29, 131, 212);
    text-decoration: none;
}

/*
* Notification Toast Close Button Styles
******************************************************************************/
.toast .btn-close {
  opacity: 0.8 !important;
  font-size: 1.1rem !important;
  width: 1.5em !important;
  height: 1.5em !important;
  padding: 0.5em !important;
  margin: 0 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  cursor: pointer !important;
}

.toast .btn-close:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.toast .btn-close:focus {
  opacity: 1 !important;
  box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.25) !important;
}

.toast .btn-close-lg {
  width: 1.75em !important;
  height: 1.75em !important;
  font-size: 1.2rem !important;
}

.dark-style .toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

.dark-style .toast .btn-close:hover {
  filter: invert(1) grayscale(100%) brightness(250%) !important;
}

/* Vuexy has no bg-*-subtle utilities; restore toast type colors */
.bg-success-subtle {
  background-color: #e8f8ef !important;
}
.bg-danger-subtle {
  background-color: #fdecec !important;
}
.bg-warning-subtle {
  background-color: #fff4e6 !important;
}
.bg-info-subtle {
  background-color: #e7f6fd !important;
}

.modern-toast.toast {
  --bs-toast-border-width: 0;
  overflow: hidden;
}

.modern-toast .border-success {
  border-color: #28c76f !important;
}
.modern-toast .border-danger {
  border-color: #ea5455 !important;
}
.modern-toast .border-warning {
  border-color: #ff9f43 !important;
}
.modern-toast .border-info {
  border-color: #00cfe8 !important;
}

.modern-toast .toast-body.border-start,
.modern-toast .toast-header.border-2 {
  border-left-width: 4px !important;
  border-left-style: solid !important;
}

/* Shared shop + admin footer */
.content-footer .footer-container {
  block-size: auto;
  min-block-size: 56px;
  overflow: visible;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.75rem;
  padding: 1.15rem 0;
  flex-wrap: wrap;
}

.site-footer-copy {
  font-weight: 600;
  color: #2f3349;
  font-size: 0.875rem;
  line-height: 1.4;
}

.site-footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.35rem;
}

.site-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6f6b7d;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.site-footer-item i {
  color: #8b8fa3;
  font-size: 1rem;
  line-height: 1;
}

a.site-footer-item:hover,
a.site-footer-item:hover i {
  color: #2092ec;
}

/* Footer bar — shared shop + admin (matches storefront light theme) */
.content-footer.footer.bg-footer-theme {
  background-color: #fff !important;
  border-top: 1px solid rgba(67, 89, 113, 0.12) !important;
  color: #6f6b7d !important;
}

@media (max-width: 767.98px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0 1.45rem;
  }

  .site-footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
  }
}
