/* ===================================================================
   Magazin MCA — stiluri peste tema Porto (Bootstrap 3) a site-ului mcagrup.ro.
   Sectiunea 1: shim de compatibilitate Bootstrap 5 -> Bootstrap 3/Porto
               (clasele BS5 folosite de paginile magazinului, pe care BS3 nu le are).
   Sectiunea 2: stiluri specifice magazinului (carduri produs, pret, cos, badge cos).
   Culoarea de accent = primary-ul identitatii 2026 a site-ului (#ed6d20, portocaliu).
   =================================================================== */

:root{
  /* Paleta identitatii 2026 a mcagrup.ro (portocaliu) */
  --mca-primary:#ed6d20;
  --mca-primary-dark:#be4d00;
  --mca-secondary:#e36159;
}

/* ------- Sectiunea 1: SHIM Bootstrap 5 -> Porto/BS3 ------- */

/* Display */
.d-none{display:none!important}
.d-block{display:block!important}
.d-inline-block{display:inline-block!important}
.d-grid{display:grid!important}
.d-grid > .btn{width:100%}
.d-flex{display:flex!important}
.flex-column{flex-direction:column!important}
.flex-wrap{flex-wrap:wrap!important}
.align-items-center{align-items:center!important}
.align-middle{vertical-align:middle!important}
.justify-content-between{justify-content:space-between!important}
.justify-content-center{justify-content:center!important}
.gap-2{gap:.5rem}
.row.g-3, .row.g-4{display:flex;flex-wrap:wrap}
.row.g-3 > [class*="col-"], .row.g-4 > [class*="col-"]{margin-bottom:1rem}

/* Sizing */
.w-100{width:100%!important}
.w-50{width:50%!important}
.w-25{width:25%!important}
.h-100{height:100%!important}
.row.justify-content-center{display:flex;flex-wrap:wrap;justify-content:center}

/* Spacing (scala BS5: 0,1=.25,2=.5,3=1,4=1.5,5=3 rem) */
.m-0{margin:0!important}.mt-0{margin-top:0!important}.mb-0{margin-bottom:0!important}
.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}
.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}
.ms-2{margin-left:.5rem!important}.me-2{margin-right:.5rem!important}
.mt-auto{margin-top:auto!important}
.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}
.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}
.py-3{padding-top:1rem!important;padding-bottom:1rem!important}
.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}

/* Text */
.text-end{text-align:right!important}
.text-start{text-align:left!important}
.text-decoration-none{text-decoration:none!important}
.text-dark{color:#24303a!important}
.fw-bold{font-weight:700!important}
.fw-semibold{font-weight:600!important}
.fs-5{font-size:1.25rem!important}
.lead{font-size:1.15rem;font-weight:300}
.display-6{font-size:2.2rem;font-weight:300;line-height:1.2}
.small{font-size:85%}

/* Grilaj: col simplu (BS5) + col-12 -> echivalent BS3 */
.col-12{position:relative;width:100%;padding-left:15px;padding-right:15px}

/* Carduri (BS3 nu are .card) */
.card{position:relative;background:#fff;border:1px solid #e6e9ee;border-radius:4px}
.card-body{padding:1rem}
.card.card-body{padding:1rem}

/* Formulare BS5 -> aspect BS3 */
.form-control-sm{height:30px;padding:4px 10px;font-size:13px}
.form-label{display:inline-block;margin-bottom:.3rem;font-weight:600;font-size:13px}
.form-select{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857;color:#555;background:#fff;border:1px solid #ccc;border-radius:4px}
.form-select-sm{height:30px;padding:4px 10px;font-size:13px}
.form-check{position:relative;display:block;padding-left:1.4em;margin-bottom:.1rem}
.form-check-input{position:absolute;left:0;margin-top:.2em}
.form-check-label{margin-bottom:0;font-weight:400}
.input-group-sm > .form-control,.input-group-sm > .btn{height:30px;font-size:13px}
.is-invalid{border-color:#a94442!important}
.invalid-feedback{display:none;color:#a94442;font-size:.85em;margin-top:.2rem}
.is-invalid ~ .invalid-feedback{display:block}

/* Butoane: outline (BS3 nu are) + alias btn-orange -> primary site */
.btn-outline-secondary{color:#555;background:#fff;border:1px solid #ccc}
.btn-outline-secondary:hover,.btn-outline-secondary:focus{background:#f2f2f2;color:#333}
.btn-orange{background:var(--mca-primary);border-color:var(--mca-primary);color:#fff}
.btn-orange:hover,.btn-orange:focus{background:var(--mca-primary-dark);border-color:var(--mca-primary-dark);color:#fff}
.btn-check{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.btn-check:checked + .btn{background:var(--mca-primary);border-color:var(--mca-primary);color:#fff}

/* Badge / label (BS3 .badge e gri-pill) */
.badge{display:inline-block;padding:.3em .55em;font-size:75%;font-weight:600;line-height:1;border-radius:.25rem;color:#fff;background:#777}
.badge.text-bg-success{background:#5cb85c}
.badge.text-bg-warning{background:#f0ad4e;color:#fff}
.badge.text-bg-light{background:#f2f2f2;color:#333}
.badge.border{border:1px solid #ddd}

/* Tabel condensat (BS5 table-sm -> BS3 table-condensed) */
.table-sm > thead > tr > th,.table-sm > tbody > tr > td,
.table-sm > tbody > tr > th,.table-sm > tfoot > tr > td{padding:5px}

/* Sticky */
.sticky-md-top{position:-webkit-sticky;position:sticky;top:80px;z-index:10}
@media (max-width:767px){.sticky-md-top{position:static}}

/* Alerte: BS3 are alert-success/info/warning/danger; alert-light fallback */
.alert-light{background:#f8f9fa;border:1px solid #e6e9ee;color:#333}
.border{border:1px solid #e6e9ee}
.rounded{border-radius:4px}

/* ------- Sectiunea 2: stiluri magazin ------- */

.shop-main{padding:30px 0 50px}
.text-orange{color:var(--mca-primary)!important}
.price-tva{color:var(--mca-primary);font-weight:700}

.product-card{transition:box-shadow .15s,transform .15s}
.product-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.10);transform:translateY(-2px)}
.product-title{line-height:1.25}
.shop-filters .form-check{margin-bottom:.15rem}

.cart-table th{font-size:.8rem;text-transform:uppercase;color:#6c757d;font-weight:600}

/* Link Cos in meniul Porto + badge numar produse */
#mainNav .shop-cart-link{position:relative}
#cart-badge{display:inline-block;min-width:18px;padding:2px 6px;font-size:11px;line-height:1;
  color:#fff;background:var(--mca-secondary);border-radius:10px;text-align:center;vertical-align:middle}

/* Toast confirmare adaugare in cos */
.shop-toast{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:2000;
  background:#5cb85c;color:#fff;padding:10px 18px;border-radius:4px;box-shadow:0 4px 14px rgba(0,0,0,.2);
  font-weight:600}

/* ascunde sageti number input pe webkit */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
