/* B2B overrides for ROTA theme */

/* ============================================
   MARQUEE SECTION - Full visibility on all screens
   ============================================ */

/* Marquee container: visible with proper styling */
.marquee-section-1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99;
  position: relative;
  background-color: var(--theme, #ff914d);
  width: 100%;
  overflow: hidden;
}

/* Marquee slider: ALWAYS visible on ALL screen sizes */
/* This overrides main.css which sets display:none at max-width:1399px */
.marquee-section-1 .marquee-1,
html body .marquee-section-1 .marquee-1,
html body.auth-login-page .marquee-section-1 .marquee-1,
html body.b2b-area .marquee-section-1 .marquee-1 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  --duration: 30s;
  --gap: 0px;
  overflow: hidden;
  user-select: none;
  gap: 20px;
}

/* Marquee group animation */
.marquee-section-1 .marquee-1 .marquee-group {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  animation: scroll var(--duration) linear infinite;
  min-width: 100%;
}

/* Marquee text styling */
.marquee-section-1 .marquee-1 .text {
  line-height: 1;
  font-weight: 500;
  font-size: 14px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.marquee-section-1 .marquee-1 .text img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Mobile/Tablet explicit override (max-width: 1399px) */
@media (max-width: 1399px) {

  .marquee-section-1 .marquee-1,
  html body .marquee-section-1 .marquee-1 {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .marquee-section-1 .marquee-1 .marquee-group {
    display: flex !important;
    animation: scroll var(--duration) linear infinite;
  }
}

/* Very small screens */
@media (max-width: 767px) {
  .marquee-section-1 .marquee-1 {
    display: flex !important;
    padding: 8px 0;
  }

  .marquee-section-1 .marquee-1 .text {
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .marquee-section-1 .marquee-1 {
    display: flex !important;
    padding: 6px 0;
  }

  .marquee-section-1 .marquee-1 .text {
    font-size: 11px;
  }
}

/* ============================================
   FOOTER - Full viewport width
   ============================================ */

.footer-fullwidth,
.footer-fullwidth .footer-bottom {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-fullwidth .footer-fullwidth-inner,
.footer-fullwidth .footer-bottom-inner {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.footer-fullwidth .footer-head,
.footer-fullwidth .footer-bottom-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-fullwidth .footer-head {
  justify-content: center;
}

.footer-fullwidth .footer-bottom-wrapper {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer content - same as login: info columns and bottom bar */
.b2b-footer .footer-widget {
  margin-bottom: 0;
}

.b2b-footer .widget-title {
  font-size: 16px;
  font-weight: 600;
  color: #121212;
  margin-bottom: 12px;
}

.b2b-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b2b-footer .footer-links li {
  margin-bottom: 8px;
}

.b2b-footer .footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  font-size: 14px;
}

.b2b-footer .footer-links a:hover {
  color: var(--theme, #ff914d);
  padding-left: 4px;
}

.b2b-footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b2b-footer .footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.b2b-footer .footer-contact i {
  color: var(--theme, #ff914d);
  margin-top: 2px;
  font-size: 14px;
}

.b2b-footer .footer-contact a,
.b2b-footer .footer-contact span {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.b2b-footer .footer-contact a:hover {
  color: var(--theme, #ff914d);
}

.b2b-footer .b2b-footer-about {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.b2b-footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 0;
  color: #333;
  transition: all 0.2s;
  text-decoration: none;
}

.b2b-footer-social .social-link:hover {
  background: var(--theme, #ff914d);
  color: #fff;
}

.b2b-footer .footer-divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 24px 0 0;
}

.b2b-footer .footer-bottom {
  background: #121212;
  padding: 0;
}

.b2b-footer .footer-bottom .footer-bottom-wrapper p {
  color: #fff;
  font-size: 14px;
  margin: 0;
}

.b2b-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.b2b-footer .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
}

.b2b-footer .footer-bottom-links a:hover {
  color: #fff;
}

.b2b-footer .footer-bottom-links span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (max-width: 768px) {
  .b2b-footer .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .b2b-footer .footer-bottom-links {
    justify-content: center;
  }
}

/* ============================================
   B2B THEME - Admin-like (sharp, corporate)
   ============================================ */

:root {
  --b2b-primary: #ff914d;
  --b2b-dark: #121212;
  --b2b-border: #e0e0e0;
  --b2b-light-bg: #f8f9fa;
}

/* Sticky footer: body is flex column, page-wrap grows so footer stays at bottom */
body.b2b-area {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--b2b-light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Wrapper grows to fill space above footer so footer stays at bottom */
.b2b-area .b2b-page-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Main content grows inside wrapper, pushes footer to bottom when content is short */
.b2b-area .b2b-main {
  flex: 1 0 auto;
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Footer always at bottom, never shrinks */
.b2b-area .footer-section.footer-fullwidth {
  flex-shrink: 0;
}

/* Theme cards - sharp, like admin */
.b2b-area .b2b-card {
  background: #fff;
  border: 1px solid var(--b2b-border);
  border-radius: 0;
  padding: 24px;
  margin-bottom: 24px;
}

.b2b-area .b2b-card .card-header,
.b2b-area .b2b-card .list-group-item {
  border-radius: 0;
  border-color: var(--b2b-border);
}

.b2b-area .b2b-card .list-group-item.active {
  background: #fff8f5;
  color: var(--b2b-primary);
  border-left: 3px solid var(--b2b-primary);
  font-weight: 600;
}

.b2b-area .b2b-card .list-group-item:hover:not(.active) {
  background: #fafafa;
}

/* Theme buttons - like admin */
.b2b-area .b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 0;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.b2b-area .b2b-btn-primary {
  background: var(--b2b-dark);
  color: #fff;
  border-color: var(--b2b-dark);
}

.b2b-area .b2b-btn-primary:hover:not(:disabled) {
  background: var(--b2b-primary);
  border-color: var(--b2b-primary);
  color: #fff;
}

.b2b-area .b2b-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.b2b-area .b2b-btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid var(--b2b-border);
}

.b2b-area .b2b-btn-outline:hover {
  border-color: var(--b2b-dark);
  color: var(--b2b-dark);
}

/* Page title - admin style */
.b2b-area .b2b-page-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--b2b-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--b2b-dark);
  letter-spacing: 1px;
}

/* Breadcrumb - admin style */
.b2b-area .b2b-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.b2b-area .b2b-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.b2b-area .b2b-breadcrumb a:hover {
  color: var(--b2b-dark);
}

.b2b-area .b2b-breadcrumb .sep {
  color: #ccc;
}

.b2b-area .b2b-breadcrumb .current {
  color: var(--b2b-dark);
  font-weight: 600;
}

/* Form controls in B2B content */
.b2b-area .b2b-content .form-control,
.b2b-area .b2b-content .form-select {
  border-radius: 0;
  border: 1px solid #dcdcdc;
  font-size: 14px;
}

.b2b-area .b2b-content .form-control:focus {
  border-color: var(--b2b-dark);
  outline: none;
  box-shadow: none;
}

.b2b-area .b2b-content .form-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

/* Product cards in shop */
.b2b-area .b2b-product-card {
  background: #fff;
  border: 1px solid var(--b2b-border);
  border-radius: 0;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.b2b-area .b2b-product-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.b2b-area .b2b-product-card .card-img-top {
  border-radius: 0;
}

.b2b-area .b2b-product-card .card-title a {
  color: var(--b2b-dark);
  text-decoration: none;
}

.b2b-area .b2b-product-card .card-title a:hover {
  color: var(--b2b-primary);
}

.b2b-area .b2b-product-card .badge {
  border-radius: 0;
  font-size: 11px;
}

/* Table - admin style */
.b2b-area .b2b-table-wrap {
  background: #fff;
  border: 1px solid var(--b2b-border);
  border-radius: 0;
  overflow: hidden;
}

.b2b-area .b2b-table-wrap .table {
  margin-bottom: 0;
}

.b2b-area .b2b-table-wrap .table thead th {
  background: #f8f9fa;
  border-color: var(--b2b-border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
  padding: 12px 16px;
}

.b2b-area .b2b-table-wrap .table tbody td {
  border-color: var(--b2b-border);
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: middle;
}

.b2b-area .b2b-table-wrap .table tbody tr:hover {
  background: #fafafa;
}

/* Section background override for B2B pages */
.b2b-area .section-bg {
  background: transparent !important;
}

/* ============================================
   HEADER FIX - No white space when marquee absent
   ============================================ */

/* Ensure header appears above marquee on mobile/tablet */
@media (max-width: 1399px) {
  #header-sticky.header-1 {
    z-index: 1000 !important;
    position: relative !important;
  }
}

/* When NO marquee exists, header should not create white space at top */
/* This is detected via JS which adds 'no-marquee' class to body */
body.no-marquee.auth-login-page #header-sticky.header-1,
body.no-marquee.b2b-area #header-sticky.header-1 {
  position: relative !important;
  top: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Desktop-specific override for no-marquee case */
@media (min-width: 1400px) {

  body.no-marquee.auth-login-page #header-sticky.header-1,
  body.no-marquee.b2b-area #header-sticky.header-1 {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
  }
}

/* ============================================
   B2B SEARCH SUGGESTIONS
   ============================================ */
.b2b-search-widget {
  position: relative;
}
.b2b-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 1002;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}
.b2b-search-suggestions.is-open { display: block; }
.b2b-search-title {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #f0f0f0;
}
.b2b-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #121212;
  border-bottom: 1px solid #f5f5f5;
}
.b2b-search-item:hover { background: #fafafa; }
.b2b-search-item--simple {
  gap: 8px;
  font-size: 13px;
}
.b2b-search-item--simple i {
  width: 16px;
  color: #808080;
}
.b2b-search-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #eee;
  background: #fff;
}
.b2b-search-meta { display: flex; flex-direction: column; gap: 2px; }
.b2b-search-name { font-weight: 600; font-size: 13px; }
.b2b-search-sku { font-size: 11px; color: #808080; }
.b2b-search-price { font-size: 12px; color: #e67e3a; font-weight: 600; }
.b2b-search-show-all {
  display: block;
  padding: 10px 12px;
  background: #fff6f0;
  color: #e67e3a;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.b2b-search-empty {
  padding: 12px;
  font-size: 13px;
  color: #808080;
}

/* ============================================
   B2B HEADER RESPONSIVE
   ============================================ */
.b2b-area .header__hamburger .sidebar__toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .b2b-area .header-1 .header-main {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .b2b-area .header-1 .header-main .header-left {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .b2b-area .header-1 .header-main .header-left .mean__menu-wrapper {
    display: none;
  }

  .b2b-area .header-1 .header-main .header-right {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .b2b-area .header-1 .header-main .header-right .search-widget {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 420px;
    order: 1;
  }

  .b2b-area .header-1 .header-main .header-right .search-widget form {
    width: 100%;
  }

  .b2b-area .header-1 .header-main .header-right .header-icon {
    order: 2;
  }

  .b2b-area .header-1 .header-main .header-right .header__hamburger {
    order: 3;
  }

  .b2b-area .header-1 .header-main .header-right .header-icon {
    order: 2;
    margin-left: 0;
  }
}

/* Keep search + profile + cart visible on tablet/mobile */
@media (max-width: 1399px) {
  .b2b-area .header-main .header-right .search-widget {
    display: block !important;
  }

  .b2b-area .header-main .header-right .header-icon {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .b2b-area .header-1 .header-main {
    padding: 8px 0;
  }

  .b2b-area .header-1 .header-main .header-right {
    gap: 8px;
  }

  .b2b-area .header-1 .header-main .header-right .search-widget form input {
    font-size: 13px;
    padding: 8px 36px;
  }

  .b2b-area .header-1 .header-main .header-right .header-icon {
    gap: 12px;
  }

  .b2b-area .header-1 .header-main .header-right .header-icon li a {
    font-size: 18px;
  }

  .b2b-area .header-1 .header-main .header-right .search-widget {
    max-width: 46vw;
  }

  .b2b-area .header-1 .header-main .logo img {
    max-width: 110px;
    height: auto;
  }
}
