/* Ocultar flechas en input[type=number] */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

.quantity-input .form-control {
  width: 50px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.quantity-input .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.quantity-input .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/* Ocultar flechas en input[type=number] */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

.quantity-input .form-control {
  width: 50px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.quantity-input .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.quantity-input .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
:root {
  --bg: #ffffff;
  --sidebar: #1A1E34;
  --accent: #1585CD;
  --text: #3C4E56;
  --card: #ffffff;
  --white: #ffffff;
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

html, body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
}

body {
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6, strong, b, .fw-bold {
  font-weight: 400 !important;
    color: var(--text)!important;
}

h6.product-name, .card-body .product-price{
  font-size: 16px;
}

.card-body .product-category, .small-text div {
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
}

body > .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container-fluid.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.btn-primary{
  background: var(--accent)!important;
  border-color: var(--accent)!important;

}

.sidebar {
  background: #1A1E34;
  color: var(--white);
  padding: 32px 24px;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 997;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.row {
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
}

.sidebar .logo {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 32px;
  display: block;
  text-align: center;
  width: 100%;

}

.logo img{
  width: 180px;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  display: none;
}

.tablet-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 996;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.tablet-left,
.tablet-right {
  display: flex;
  align-items: center;
}

.tablet-right {
  justify-content: flex-end;
  min-width: 40px;
}

.tablet-logo img {
  width: 130px;
  height: auto;
  display: block;
}

.tablet-logo {
  justify-self: center;
}

.tablet-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}

.tablet-cart .cart-badge {
  background: var(--accent);
  color: #fff;
}

.text-bold{
  font-weight: 700;
}

.sidebar .cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .cat-list li {
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 14px;
  text-transform: capitalize!important;
}

.cat-list li a{
  font-size: 14px;
  text-transform: capitalize!important;
  color: var(--white)!important;
}

.main-content {
  padding: 32px;
  min-height: 100vh;
}

.main-content.main-content-full {
  padding-left: 0;
  padding-right: 0;
}

.admin-card.full-bleed {
  padding: 0 !important;
}

.admin-card.full-bleed .table {
  margin-bottom: 0;
}

.admin-card.full-bleed .table th,
.admin-card.full-bleed .table td {
  padding-left: 20px;
  padding-right: 20px;
}

.container-fluid {
  overflow: visible;
}

.product-stock{
  font-size: 12px;
  color: var(--accent)!important;
}

.product-card {
  background: var(--card);
  border: none;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.product-card.is-out {
  filter: none;
}

.product-card.is-out img,
.product-card.is-out .card-body,
.product-card.is-out .product-stock {
  filter: grayscale(1);
}

.product-card .card-body {
  padding: 16px;
}

.product-title-wrap {
  position: relative;
}

.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-title-badge {
  position: absolute;
  left: 0;
  top: -8px;
  transform: translateY(-100%);
  background: #1f1f1f;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: normal;
  max-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  display: none;
  z-index: 3;
}

.product-card .badge {
  background: var(--sidebar)!important;
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px 5px 0 0!important;
  background: var(--sidebar);
}

.product-card .badge.bg-danger,
.product-card .badge.badge-danger {
  background-color: #dc3545 !important;
  color: #fff !important;
}

.admin-card {
  background: var(--white);
  border-radius: 15px;
  padding: 24px!important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.admin-card.full-bleed {
  padding: 0 !important;
}

.admin-card.full-bleed .table {
  margin-bottom: 0;
}

.admin-card.full-bleed .table th,
.admin-card.full-bleed .table td {
  padding-left: 20px;
  padding-right: 20px;
}

.table-responsive-visible {
  overflow: visible;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-label {
  font-weight: 400;
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: var(--white);
  font-weight: 400;
}

.btn-accent:hover {
  background: var(--sidebar);
  color: var(--white);
}

.footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.footer-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-search form {
  width: 45%;
}

.footer-search-group {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
}

.footer-search input {
  width: 100%;
  border: none;
  outline: none;
  padding: 8px 12px;
  background: transparent;
}

.footer-search-btn {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: -webkit-fill-available;
}

.footer-search-btn i {
  font-size: 14px;
}

.footer-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d2b2b;
  font-weight: 400;
  background: transparent;
  border: none;
  padding: 0;
}

.footer-user-link {
  color: #1d2b2b;
  text-decoration: none;
}

.footer-user-link:hover {
  text-decoration: underline;
}

.cart-badge {
  background: var(--accent);
  color: var(--white);
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.sidecart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 998;
}

.sidecart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sidecart {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 24px rgba(0,0,0,0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

.sidecart.open {
  right: 0;
}

.sidecart-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidecart-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.sidecart-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sidecart-item.is-out {
  opacity: 0.8;
}

.sidecart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidecart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}

.sidecart-name {
  font-size: 14px;
}

.sidecart-price {
  font-size: 13px;
  color: #6b7280;
}

.sidecart-sep {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 12px 0;
}

.sidecart-section-title {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidecart-remove {
  margin-left: auto;
}

.sidecart-remove button {
  border: none;
  background: transparent;
  color: #dc3545;
  font-size: 14px;
}

.sidecart-footer {
  padding: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.sidecart-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #1d2b2b;
}

.sidecart-close:hover {
  color: #000;
}

.sidecart-info {
  min-width: 0;
}

.sidecart-item img {
  display: block;
}

.sidecart-total {
  font-weight: 400;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .sidecart {
    width: 100%;
    right: -100%;
  }
}

.thumb-80 {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08);
}

.cat-autocomplete {
  position: relative;
}

.cat-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  z-index: 5;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.cat-suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #fff;
}

.cat-suggest-item:hover {
  background: rgba(255,255,255,0.08);
}

@media (max-width: 991px) {
  .sidebar {
    position: sticky;
    top: 0;
  }

  .main-content {
    padding: 24px;
  }

  .footer-search form {
    width: 60%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .row .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    max-width: 260px;
    height: 100vh;
    z-index: 998;
    padding: 24px 16px;
    transition: left 0.25s ease;
  }

  .row .main-content {
    flex: 1 1 auto;
    max-width: 100%;
    padding:  0 24px 24px 24px;
  }

  .logo img {
    width: 140px;
  }

  .product-card .card-body {
    padding: 12px;
  }

  .product-name,
  .product-price,
  .product-category,
  .product-stock {
    font-size: 14px;
  }

  .footer-search form {
    width: 55%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  body.sidebar-open .row .sidebar {
    left: 0;
  }

  .sidebar .mobile-header {
    display: none;
  }

  .tablet-header {
    display: flex;
  }

  .tablet-header {
    width: 100vw;
    margin: -24px 0 16px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    box-sizing: border-box;
  }

  .footer-cart {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar .mobile-header {
    display: none;
  }

  .tablet-header {
    display: flex;
  }

  .tablet-header {
    width: 100vw;
    margin: -24px 0 16px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    box-sizing: border-box;
  }

  .footer-cart {
    display: none;
  }
}

@media (min-width: 1025px) {
  body.sidebar-open .row .sidebar {
    left: auto;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  .tablet-header {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    max-width: 260px;
    height: 100vh;
    z-index: 998;
    padding: 0;
    background: #1A1E34;
    transition: left 0.25s ease;
  }

  body.sidebar-open .sidebar {
    left: 0;
  }

  .menu-section {
    display: block;
  }

  .sidebar .logo {
    margin-bottom: 12px;
  }

  .logo img {
    width: 110px;
  }

  .mobile-header {
    display: none;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-user {
    width: 33.333%;
    text-align: left;
  }

  .footer-search {
    width: 33.333%;
  }

  .footer-search form {
    width: 100%;
  }

  .footer-cart {
    width: 33.333%;
    justify-content: flex-end;
  }

  .product-name,
  .product-price,
  .product-category,
  .product-stock {
    font-size: 14px;
  }

  .cat-scroll {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }

  .cat-scroll li {
    margin-bottom: 10px;
  }

  .cat-scroll a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    white-space: normal;
  }
}
