@charset "UTF-8";
/* ==========================================================================
   BIOCRIS — USER THEME (Global SCSS)
   Mobile-first, responsive, CLS-safe, Bootstrap-friendly
   ========================================================================== */
/* --------------------------------------------------------------------------
   0) IMPORTS (păstrează ordinea)
   -------------------------------------------------------------------------- */
/*-----------------------------------------------
|   Biocris buttons
-----------------------------------------------*/
/* -------------------------------------------------------------------------- */
/*                                Biocris button                              */
/* -------------------------------------------------------------------------- */
/* variabilele tale */
/* prettier-ignore */
/* variabile tema */
.custom-sticky-filter {
  top: 1rem;
}

.product-filters {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  border: none;
}
.product-filters .filter-search {
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--biocris-gray-300);
  transition: all 0.2s ease-in-out;
  background-color: var(--biocris-white);
}
.product-filters .filter-search::placeholder {
  color: var(--biocris-gray-500);
  font-size: 0.875rem;
}
.product-filters .filter-search:focus {
  border-color: var(--biocris-primary);
  box-shadow: 0 0 0 3px rgba(var(--biocris-primary-rgb), 0.1);
  outline: none;
}
.product-filters .collapse-indicator {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--biocris-gray-200);
  border-radius: 0;
  padding: 0.75rem 0;
  margin-top: 0;
  margin-bottom: 0;
  transition: border-color 0.2s ease;
}
.product-filters .collapse-indicator:hover {
  background: transparent;
  border-bottom-color: var(--biocris-gray-300);
}
.product-filters .collapse-indicator.collapsed .toggle-icon {
  transform: rotate(180deg);
}
.product-filters .collapse-indicator .toggle-icon {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: var(--biocris-gray-600);
}
.product-filters .collapse-indicator .fs-8 {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--biocris-gray-900);
  letter-spacing: -0.01em;
  text-transform: none;
}
.product-filters .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  padding-left: 0;
  margin-bottom: 0.5rem;
}
.product-filters .form-check:last-child {
  margin-bottom: 0;
}
.product-filters .form-check .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0;
  border-radius: 0.25rem;
  border: 1.5px solid var(--biocris-gray-400);
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.product-filters .form-check .form-check-input:checked {
  background-color: var(--biocris-primary);
  border-color: var(--biocris-primary);
}
.product-filters .form-check .form-check-input:focus {
  box-shadow: none;
  border-color: var(--biocris-primary);
}
.product-filters .form-check .form-check-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--biocris-gray-800);
  cursor: pointer;
  user-select: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-filters .input-group {
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.product-filters .input-group .form-control {
  font-size: 0.8125rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--biocris-gray-300);
  border-radius: 0.375rem;
}
.product-filters .input-group .form-control::placeholder {
  font-size: 0.8125rem;
  color: var(--biocris-gray-500);
}
.product-filters .input-group .form-control:focus {
  border-color: var(--biocris-primary);
  box-shadow: 0 0 0 3px rgba(var(--biocris-primary-rgb), 0.1);
}
.product-filters .btn-biocris-primary {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
}
.product-filters .rating-container .star-icon {
  font-size: 0.75rem;
}

.biocris-offcanvas.products-filter-offcanvas {
  background-color: var(--biocris-white);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  border: none;
}
.biocris-offcanvas.products-filter-offcanvas .offcanvas-header {
  display: none;
}
.biocris-offcanvas.products-filter-offcanvas .offcanvas-body {
  padding: 0 !important;
  overflow: hidden;
}
.biocris-offcanvas.products-filter-offcanvas .product-scrollbar {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.25rem;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters .collapse-indicator {
  border-bottom-color: var(--biocris-gray-200);
  padding: 0.875rem 0;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters .form-check {
  padding: 0.375rem 0 !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters .form-check .form-check-input {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters .form-check .form-check-label {
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  padding-left: 0.5rem !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.biocris-offcanvas.products-filter-offcanvas .product-filters .filter-search {
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.filter-section {
  margin-bottom: 0;
}
.filter-section:first-of-type .collapse-indicator {
  margin-top: 0;
  padding-top: 0;
}
.filter-section .collapse > div {
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
}
.filter-section .collapse .form-check:last-child {
  margin-bottom: 0;
}

.product-scrollbar {
  overflow-y: auto;
  overflow-x: hidden;
}
@media (min-width: 992px) {
  .product-scrollbar {
    padding-right: 0.75rem;
  }
}
.product-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.product-scrollbar::-webkit-scrollbar-track {
  background: var(--biocris-gray-200);
  border-radius: 3px;
}
.product-scrollbar::-webkit-scrollbar-thumb {
  background: var(--biocris-gray-400);
  border-radius: 3px;
}
.product-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--biocris-gray-500);
}

/* componente specifice */
/**
* BIOCRIS E-COMMERCE — MOBILE FIRST (CLEAN)
* Fix: no global padding override for .search-input
* Fix: remove iOS native search decorations
* Fix: valid media blocks, no stray properties
*/
/* ========================================
   GLOBAL MOBILE RESET
======================================== */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
}

/* ========================================
   SEARCH BOX (authoritative styles)
   Keep here so globals below won't override it
======================================== */
.search-box {
  position: relative;
  font-size: 0.8rem;
  width: 100%;
  max-width: none;
  --sb-icon-size: 0.875rem;
  --sb-icon-gap: 0.75rem;
}
.search-box .search-box-icon {
  position: absolute;
  color: var(--biocris-quaternary-color);
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: var(--sb-icon-gap);
  pointer-events: none;
  z-index: 1;
  font-size: var(--sb-icon-size);
  line-height: 1;
}
.search-box .search-input {
  /* padding calculat => textul nu intră sub icon */
  padding-inline-start: 1rem;
  padding-inline-end: calc(var(--sb-icon-size) + var(--sb-icon-gap) * 2);
  border-radius: 0.375rem;
  box-shadow: none;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* iOS/WebKit native search UI off */
  appearance: none;
  -webkit-appearance: none;
}
.search-box .search-input::-webkit-search-decoration, .search-box .search-input::-webkit-search-results-button, .search-box .search-input::-webkit-search-results-decoration, .search-box .search-input::-webkit-search-cancel-button {
  display: none;
}
.search-box .search-input.form-control-sm {
  --sb-icon-size: 0.75rem;
}
.search-box .search-input.form-control-lg {
  --sb-icon-size: 1rem;
}
@media (max-width: 576px) {
  .search-box {
    max-width: 100%;
    --sb-icon-size: 0.75rem;
    --sb-icon-gap: 0.5rem;
  }
  .search-box .search-input {
    font-size: 0.9rem;
  }
}
.search-box .file-thumbnail {
  width: 1.75rem;
  height: 1.75rem;
}
.search-box.ecommerce-search-box {
  width: 100%;
  max-width: 25rem;
}
@media (min-width: 768px) {
  .search-box.ecommerce-search-box {
    max-width: 31.25rem;
  }
}
.search-box.ecommerce-search-box .search-input {
  border-radius: 3rem;
}

/* Icon pe stânga (opțional) */
.search-box.icon-left .search-box-icon {
  inset-inline-start: var(--sb-icon-gap);
  inset-inline-end: auto;
}
.search-box.icon-left .search-input {
  padding-inline-start: calc(var(--sb-icon-size) + var(--sb-icon-gap) * 2);
  padding-inline-end: 1rem;
}

/* Navbar container specific (dropdown, focus, etc.) */
.navbar-top-search-box {
  width: 100%;
  max-width: 25rem;
}
.navbar-top-search-box .search-box {
  width: 100%;
}
.navbar-top-search-box .search-input:focus {
  border-color: var(--biocris-gray-300);
}
.navbar-top-search-box .show .search-input {
  border-radius: 0.375rem 0.375rem 0 0 !important;
}
.navbar-top-search-box .dropdown-menu {
  margin-top: 0;
}
.navbar-top-search-box .dropdown-menu.show {
  border-top: 0 !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.navbar-top-search-box .dropdown-menu .dropdown-item:hover {
  background: var(--biocris-body-highlight-bg);
}
.navbar-top-search-box [data-bs-toggle=search]:not(.show) + [data-bs-dismiss=search] {
  display: none;
}

/* ========================================
   HEADER & NAVIGATION — MOBILE COMPACT
   (no padding override for .search-input)
======================================== */
@media (max-width: 767px) {
  /* Ascunde TopContactBar (primul .navbar) */
  .navbar:has(+ .navbar) {
    display: none !important;
  }
  .d-flex.flex-column.min-vh-100 > .navbar:first-of-type {
    display: none !important;
  }
  .navbar {
    padding: 0.5rem 0.75rem !important;
    min-height: 56px !important;
  }
  .navbar-brand {
    padding: 0 !important;
    margin-right: 0.5rem !important;
  }
  .navbar-brand img {
    max-height: 32px !important;
    width: auto !important;
  }
  /* NU atinge .search-input (exclude explicit) */
  .navbar .form-control:not(.search-input) {
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 0.5rem 0.75rem !important;
    height: 40px !important;
  }
  .navbar .btn,
  .navbar .nav-link {
    padding: 0.375rem !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .navbar .btn svg,
  .navbar .nav-link svg {
    font-size: 1.25rem !important;
  }
  .navbar .btn-text,
  .navbar .btn > span:not(.badge) {
    display: none !important;
  }
  .navbar .badge {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    padding: 0.125rem 0.375rem !important;
    font-size: 0.75rem !important;
    min-width: 16px !important;
    height: 16px !important;
  }
}
@media (max-width: 374px) {
  .navbar {
    padding: 0.375rem 0.5rem !important;
    min-height: 52px !important;
  }
  .navbar-brand img {
    max-height: 28px !important;
  }
  .navbar .btn,
  .navbar .nav-link {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0.25rem !important;
  }
}
/* ========================================
   CATEGORY NAVIGATION
======================================== */
@media (max-width: 767px) {
  .cat-wrapper {
    margin: 0.75rem 0 !important;
    padding: 0 !important;
  }
  .cat-strip {
    padding: 0.5rem 0.75rem !important;
    gap: 0.5rem !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .cat-chip {
    width: 64px !important;
    flex: 0 0 64px !important;
    scroll-snap-align: start;
  }
  .custom-border-hover {
    width: 48px !important;
    height: 48px !important;
    padding: 0.5rem !important;
    border-width: 1.5px !important;
    border-radius: 0.625rem !important;
    margin: 0 auto 0.375rem !important;
  }
  .custom-border-hover img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
  .category-label {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding-bottom: 0 !important;
  }
  .category-label::after {
    display: none !important;
  }
  .cat-arrow {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  }
  .icon-nav-item:active .custom-border-hover {
    transform: scale(0.92) !important;
    border-color: #28b06f !important;
    background-color: #e9f8f2 !important;
  }
}
@media (max-width: 374px) {
  .cat-chip {
    width: 56px !important;
    flex: 0 0 56px !important;
  }
  .custom-border-hover {
    width: 44px !important;
    height: 44px !important;
    padding: 0.375rem !important;
  }
  .custom-border-hover img {
    width: 20px !important;
    height: 20px !important;
  }
  .category-label {
    font-size: 0.75rem !important;
  }
  .cat-strip {
    gap: 0.375rem !important;
  }
}
@media (min-width: 768px) {
  .category-label {
    font-size: 0.875rem !important; /* 14px pe desktop */
    line-height: 1.3 !important;
  }
}
/* ========================================
   TAB NAVIGATION
======================================== */
@media (max-width: 767px) {
  .nav-tabs,
  .nav-pills,
  [role=tablist] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    border-bottom-width: 1px !important;
    padding: 0 0.75rem !important;
    margin: 0 -0.75rem !important;
  }
  .nav-tabs::-webkit-scrollbar,
  .nav-pills::-webkit-scrollbar {
    display: none !important;
  }
  .nav-tabs .nav-link,
  .nav-pills .nav-link {
    white-space: nowrap !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    scroll-snap-align: start !important;
    flex: 0 0 auto !important;
  }
  .nav-tabs .nav-link.active,
  .nav-pills .nav-link.active {
    border-bottom-width: 2px !important;
  }
}
/* ========================================
   PRODUCT BANNER
======================================== */
@media (max-width: 767px) {
  .card,
  .bg-white {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
  }
  .auth-card,
  .auth-card .card {
    overflow: visible !important;
  }
  .card-body {
    padding: 1.25rem !important;
  }
  .card-body h1,
  .card-body h2,
  .card-body h3 {
    font-size: 1.375rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
  }
  .card-body p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  .auth-card .card-body .btn {
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    width: 100% !important;
  }
  .auth-card .form-check {
    padding-left: 1.5rem !important;
    min-height: unset !important;
  }
  .auth-card .form-check-input {
    width: 1rem !important;
    height: 1rem !important;
    min-width: unset !important;
    min-height: unset !important;
    margin-left: -1.5rem !important;
    margin-top: 0.2rem !important;
    float: left !important;
  }
  .auth-card .form-check-label {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
  }
  .card-body .btn.position-absolute {
    width: auto !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
  }
  .card-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1rem auto 0 !important;
  }
}
/* ========================================
   PRODUCT CARDS
======================================== */
@media (max-width: 767px) {
  .row.g-3 {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 1rem !important;
    margin: 0 -0.25rem !important;
  }
  .row.g-3 > [class*=col-] {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
  .product-3d-card-wrapper {
    margin-bottom: 0 !important;
  }
  .product-3d-card {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
  }
  .product-3d-top-controls {
    padding: 0.5rem !important;
  }
  .product-3d-favorite-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .product-3d-badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
  .product-3d-image-container {
    padding-top: 85% !important;
  }
  .product-3d-image-wrapper {
    padding: 0.5rem !important;
  }
  .product-3d-info {
    padding: 0.625rem !important;
    gap: 0.375rem !important;
  }
  .product-3d-category-badge {
    font-size: 0.75rem !important;
    padding: 0.1875rem 0.375rem !important;
    border-width: 1px !important;
  }
  .product-3d-title {
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    font-weight: 600 !important;
  }
  .product-3d-rating-stars {
    gap: 0.125rem !important;
  }
  .product-3d-rating-stars .star-filled,
  .product-3d-rating-stars .star-empty {
    font-size: 0.75rem !important;
  }
  .product-3d-rating-stars .review-count {
    font-size: 0.75rem !important;
    margin-left: 0.25rem !important;
  }
  .product-3d-price-discounted,
  .product-3d-price-regular {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
  }
  .product-3d-price-original {
    font-size: 0.75rem !important;
  }
  .product-3d-info .btn {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-top: 0.375rem !important;
  }
  .product-3d-info .btn svg {
    font-size: 0.875rem !important;
  }
  .product-3d-card-wrapper:hover,
  .product-3d-card:hover,
  .product-3d-card:hover .product-3d-image-wrapper {
    transform: none !important;
  }
  @keyframes cardEntrance {
    from, to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 374px) {
  .product-3d-image-container {
    padding-top: 90% !important;
  }
  .product-3d-image-wrapper {
    padding: 0.375rem !important;
  }
  .product-3d-info {
    padding: 0.5rem !important;
  }
  .product-3d-title {
    font-size: 0.75rem !important;
  }
  .product-3d-favorite-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
}
/* ========================================
   SPACING & LAYOUT
======================================== */
@media (max-width: 767px) {
  .pt-5 {
    padding-top: 1.5rem !important;
  }
  .pb-5,
  .mb-5 {
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .mb-9 {
    margin-bottom: 3rem !important;
  }
  .py-0 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  .container,
  .container-fluid,
  [class*=container-] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  /* page bottom spacing for sticky components (ex: tabbar) — OPTIONAL
  body { padding-bottom: 5rem !important; } */
}
/* ========================================
   FORMS & INPUTS (do not touch .search-input)
======================================== */
@media (max-width: 767px) {
  .form-control:not(.search-input):not(.input-spin-none),
  .form-select,
  input[type=text],
  input[type=email],
  input[type=password],
  textarea {
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 0.625rem 0.875rem !important;
    border-radius: 0.5rem !important;
  }
  /* Inputul de cantitate: padding minim pentru a nu se îngusta */
  .input-spin-none {
    font-size: 16px !important;
    padding: 0.375rem 0.25rem !important;
  }
  .input-group {
    flex-wrap: nowrap !important;
  }
  .btn {
    white-space: nowrap !important;
  }
}
/* ========================================
   MODALS
======================================== */
@media (max-width: 767px) {
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }
  .modal-content {
    border-radius: 1rem !important;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem !important;
  }
  .modal-footer {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .modal-footer .btn {
    width: 100% !important;
  }
}
/* ========================================
   UTILITIES
======================================== */
.text-truncate-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.text-truncate-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .card:active,
  a:active {
    opacity: 0.7 !important;
    transform: scale(0.98) !important;
  }
}
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left)) !important;
    padding-right: max(0px, env(safe-area-inset-right)) !important;
  }
}
/* ========================================
   PERFORMANCE
======================================== */
@media (max-width: 767px) {
  * {
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
  .card,
  .btn,
  .product-3d-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }
  .card:hover,
  .product-3d-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  }
}
/* ========================================
   ACCESSIBILITY
======================================== */
@media (max-width: 767px) {
  *:focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px !important;
  }
  button:not(.form-check-input):not(.btn-link):not(.btn-edit-link),
  a:not(.btn-link):not(.btn-edit-link) {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ========================================
   LANDSCAPE TWEAKS
======================================== */
@media (max-width: 915px) and (orientation: landscape) {
  .pt-5 {
    padding-top: 1rem !important;
  }
  .pb-5,
  .mb-5 {
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .mb-9 {
    margin-bottom: 1.5rem !important;
  }
  .navbar {
    min-height: 48px !important;
    padding: 0.375rem 0.75rem !important;
  }
  .cat-wrapper {
    margin: 0.5rem 0 !important;
  }
  .custom-border-hover {
    width: 40px !important;
    height: 40px !important;
  }
  .custom-border-hover img {
    width: 20px !important;
    height: 20px !important;
  }
  .cat-chip {
    width: 56px !important;
  }
  .category-label {
    font-size: 0.75rem !important;
  }
  /* 3 produse pe rând în landscape (opțional) */
  .row > [class*=col-6] {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}
/* mobile optimizations */
/* --------------------------------------------------------------------------
   1) ROOT & BASE
   -------------------------------------------------------------------------- */
:root {
  --brand-green: #28B06F;
  --brand-accent: #fdba74;
  --ink: #111;
  --paper: #fff;
  color-scheme: light; /* forțează doar light mode */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

/* Imagini fluide + previne CLS */
img, picture, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Wrapper imagine cu încadrare fixă (ex: carduri) */
.picture-cover {
  width: 100%;
  aspect-ratio: 1/1; /* schimbă la nevoie: 4/3, 3/2, 16/9 */
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Containere fără lățimi fixe */
.container, .section, main {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Grilă fallback (unde nu folosești grila Bootstrap) */
.grid-responsive {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 576px) {
  .grid-responsive {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 992px) {
  .grid-responsive {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Tipografie scalabilă */
:root {
  font-size: 16px;
}

h1, h2, h3 {
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
}

p, li {
  font-size: clamp(0.95rem, 1.8vw, 1rem);
}

/* Safe area iPhone */
body {
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
}

/* --------------------------------------------------------------------------
   2) Z-INDEX LAYERS (predictibile)
   -------------------------------------------------------------------------- */
/* Bază (content): 0 */
/* Dropdowns: 1000 */
/* Sticky header: 1020 */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Fixed elements: 1030 */
/* Modals backdrop: 1040 */
.modal-backdrop {
  z-index: 1040 !important;
}

/* Modals: 1050 */
.modal {
  z-index: 1050 !important;
}

/* Tooltips: 1070 */
.tooltip {
  z-index: 1070 !important;
}

/* Toasts/notifications: 1080 */
.toast, .notification, .offcanvas {
  z-index: 1080 !important;
}

/* --------------------------------------------------------------------------
   2b) TABLE ROW — highlight subtil pentru rânduri pending
   Containerul .pending-rows-table forțează overflow: visible pe div-ul
   .scrollbar (care are overflow:auto din chrome-scrollbar mixin), astfel
   box-shadow-ul de pe prima/ultima celulă se poate extinde în zona de
   padding a containerului (px-4 / px-lg-6) și acoperă toată lățimea.
   -------------------------------------------------------------------------- */
.pending-rows-table .scrollbar {
  overflow: visible !important;
}

/* Același var ca badge-urile warning (--bs-warning-bg-subtle = rgba(255, 193, 7, 0.12)).
   box-shadow pe primul/ultimul td extinde culoarea în padding-ul containerului. */
.table-row-pending > td,
.table-row-pending > th {
  background-color: rgba(255, 193, 7, 0.12) !important;
}

.table-row-pending > td:first-child,
.table-row-pending > th:first-child {
  box-shadow: calc(-1.5rem - 4px) 0 0 rgba(255, 193, 7, 0.12);
}

.table-row-pending > td:last-child,
.table-row-pending > th:last-child {
  box-shadow: calc(1.5rem + 4px) 0 0 rgba(255, 193, 7, 0.12);
}

@media (min-width: 992px) {
  .table-row-pending > td:first-child,
  .table-row-pending > th:first-child {
    box-shadow: calc(-2.5rem - 4px) 0 0 rgba(255, 193, 7, 0.12), -1rem 0 0 rgba(255, 193, 7, 0.12);
  }
  .table-row-pending > td:last-child,
  .table-row-pending > th:last-child {
    box-shadow: calc(2.5rem + 4px) 0 0 rgba(255, 193, 7, 0.12);
  }
}
/* --------------------------------------------------------------------------
   3) CATEGORY NAV (scroll orizontal, tap-friendly)
   -------------------------------------------------------------------------- */
.custom-border-hover {
  border: 1.5px solid rgba(232, 148, 10, 0.35);
  background-color: var(--bs-body-bg);
  width: clamp(56px, 6vw, 68px);
  height: clamp(56px, 6vw, 68px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Eticheta: scalabilă, 2 rânduri, fără să sară layout-ul */
.category-label {
  font-size: 0.75rem;
  color: var(--bs-emphasis-color, #000);
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  min-height: 2.4em; /* rezervă spațiu pt. 2 rânduri */
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: auto;
}
.category-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.icon-nav-item:hover .category-label {
  color: var(--brand-green);
}

.icon-nav-item:hover .category-label::after {
  transform: scaleX(1);
}

/* Container & strip */
.cat-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start; /* aliniere de sus, nu centru, ca textul de jos să nu fie tăiat */
}

.cat-strip {
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

/* ascundem scrollbar-ul */
.cat-strip::-webkit-scrollbar {
  height: 0;
  width: 0;
}

@supports (scrollbar-width: none) {
  .cat-strip {
    scrollbar-width: none;
  }
}
/* Chip-urile nu se micșorează și au lățime fluidă */
.cat-chip {
  flex: 0 0 auto;
  width: clamp(72px, 22vw, 100px);
  transition: transform 0.2s ease;
}

/* Hover effect pe desktop */
@media (hover: hover) {
  .cat-chip:hover {
    transform: translateY(-2px);
  }
  .cat-chip:hover .custom-border-hover {
    background-color: rgba(232, 148, 10, 0.08);
    border-color: rgba(232, 148, 10, 0.6);
    box-shadow: 0 3px 10px rgba(232, 148, 10, 0.15);
  }
}
/* Săgeți — în flow flex, aliniate cu centrul iconițelor via margin-top */
/* margin-top = padding-top strip (8px) + jum. icon box - jum. buton (20px) = clamp(16px, 3vw, 22px) */
.cat-arrow {
  flex-shrink: 0;
  margin-top: clamp(16px, 3vw, 22px);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 148, 10, 0.45);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  z-index: 2;
  font-size: 20px;
  line-height: 1;
  color: rgba(232, 148, 10, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-arrow:hover {
  background: #fff;
  border-color: rgba(232, 148, 10, 0.85);
  color: rgb(232, 148, 10);
  box-shadow: 0 3px 12px rgba(232, 148, 10, 0.25);
  transform: scale(1.08);
}

.cat-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  background: rgba(255, 255, 255, 0.5);
}

.cat-arrow:disabled:hover {
  transform: none;
}

.cat-arrow:focus-visible {
  outline-offset: 2px;
}

/* Doar pe tablete și desktop arată săgețile */
@media (min-width: 768px) {
  .cat-arrow {
    display: inline-flex;
  }
}
/* Pe mobile, padding mai mic pentru cat-strip */
@media (max-width: 767px) {
  .cat-strip {
    padding: 0.25rem 0.5rem 0.75rem !important;
  }
}
/* Dezactivează hover pe dispozitive touch pentru a evita jank */
@media (hover: none) {
  .cat-chip:hover {
    transform: none !important;
  }
  .cat-chip:hover .custom-border-hover {
    border-color: rgba(232, 148, 10, 0.35) !important;
    background-color: var(--bs-body-bg) !important;
    box-shadow: none !important;
  }
  .icon-nav-item:hover .category-label {
    color: #000 !important;
  }
  .icon-nav-item:hover .category-label::after {
    transform: scaleX(0) !important;
  }
}
/* --------------------------------------------------------------------------
   4) OPTIMIZED IMAGE COMPONENT (placeholders + fade)
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.optimized-image-wrapper {
  display: block;
  background-color: #f5f5f5;
}

.optimized-image {
  display: block;
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.optimized-image.loading {
  opacity: 0;
}

.optimized-image.loaded {
  opacity: 1;
}

.optimized-image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* --------------------------------------------------------------------------
   5) GENERAL MOBILE LAYOUT (spațieri, tipografie, grilă)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .container, .container-fluid {
    padding-inline: 0.75rem;
  }
  .row {
    margin-inline: -0.5rem;
  }
  .row > * {
    padding-inline: 0.5rem;
  }
  .mb-4, .my-4 {
    margin-bottom: 1rem !important;
  }
  .mt-4, .my-4 {
    margin-top: 1rem !important;
  }
  .py-5 {
    padding-block: 1.5rem !important;
  }
  h1 {
    font-size: 1.75rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }
  .btn-sm {
    min-height: 36px;
    padding: 0.375rem 0.75rem;
  }
}
/* XS foarte mici (≤375) */
@media (max-width: 375px) {
  .container, .container-fluid {
    padding-inline: 0.5rem;
  }
  .row {
    margin-inline: -0.25rem;
  }
  .row > * {
    padding-inline: 0.25rem;
  }
  .mb-3, .my-3 {
    margin-bottom: 0.75rem !important;
  }
  .mt-3, .my-3 {
    margin-top: 0.75rem !important;
  }
  h1 {
    font-size: 1.5rem !important;
  }
  h2 {
    font-size: 1.35rem !important;
  }
  h3 {
    font-size: 1.15rem !important;
  }
}
/* Tablete */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-inline: 1.5rem;
  }
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
}
/* Landscape telefoane */
@media (max-height: 600px) and (orientation: landscape) {
  .py-5 {
    padding-block: 1rem !important;
  }
  .py-4 {
    padding-block: 0.75rem !important;
  }
  .my-5 {
    margin-block: 1rem !important;
  }
}
/* --------------------------------------------------------------------------
   6) ACCESSIBILITY
   -------------------------------------------------------------------------- */
.cat-chip:focus-visible,
.cat-arrow:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .custom-border-hover {
    border-width: 2px !important;
  }
  .cat-arrow {
    border-width: 2px !important;
  }
}
/* Reduced motion (evită amețeala + boost la performance) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cat-strip {
    scroll-behavior: auto !important;
  }
}
/* --------------------------------------------------------------------------
   7) PERFORMANCE HINTS pe mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Micșorează duratele pentru a reduce costul la paint */
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  /* Imagini: hint-uri de redare */
  img {
    /* asigură claritate pe ecrane cu densitate mică (ex: mobile entry-level) */
    image-rendering: -webkit-optimize-contrast; /* Chrome, Edge, Safari */
    image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: crisp-edges; /* generic fallback */
    -ms-interpolation-mode: nearest-neighbor; /* vechi IE (fallback total) */
  }
  /* Umbre mai ușoare */
  .shadow, .shadow-sm {
    box-shadow: none !important;
  }
  .shadow-lg {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
}
/* --------------------------------------------------------------------------
   8) SCROLL ORIZONTAL UTIL (folosit și în alte locuri)
   -------------------------------------------------------------------------- */
.scroll-x-mobile {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.scroll-x-mobile > * {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   9) TAP TARGETS UNIVERSALE
   -------------------------------------------------------------------------- */
button, [role=button], .btn, a.btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10) SWIPER CONTAINERS - carduri uniforme cu înălțime identică
   -------------------------------------------------------------------------- */
.swiper-wrapper {
  display: flex;
  align-items: stretch !important;
}

.swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Forțează toate cardurile să aibă aceeași înălțime */
.swiper-slide .product-3d-card-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.swiper-slide .product-3d-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* --------------------------------------------------------------------------
   11) CUSTOMERS TABLE - Link hover effects
   -------------------------------------------------------------------------- */
.hover-primary {
  transition: color 0.2s ease;
}
.hover-primary:hover {
  color: var(--brand-green) !important;
}