/*
  motookazja-theme.css
  Modern theme for motookazja.pl — Bootstrap 4.6 base
  Palette: Navy #1B2A4A | Orange #E84118 | Light bg #F5F6FA
*/

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --mo-navy:        #1B2A4A;
  --mo-navy-light:  #243560;
  --mo-navy-dark:   #111c34;
  --mo-orange:      #E84118;
  --mo-orange-h:    #c93510;
  --mo-bg:          #F5F6FA;
  --mo-border:      #dee2e6;
  --mo-text:        #2d3436;
  --mo-muted:       #6c757d;
  --mo-white:       #ffffff;
  --mo-gold:        #F4B30A;
  --mo-shadow:      0 2px 12px rgba(0,0,0,.18);
  --mo-radius:      6px;
  --mo-font:        'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ─── BASE ───────────────────────────────────────────────── */
body {
  font-family: var(--mo-font);
  color: var(--mo-text);
  background: var(--mo-bg);
}

a { color: var(--mo-text); text-decoration: none; }
a:hover { color: var(--mo-orange); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mo-font);
  font-weight: 700;
}

/* ─── TOP INFO BAR ──────────────────────────────────────── */
.mo-topinfo {
  background: var(--mo-navy-dark);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  padding: 5px 0;
  text-align: center;
  letter-spacing: .01em;
}
.mo-topinfo a { color: rgba(255,255,255,.82); }
.mo-topinfo a:hover { color: var(--mo-orange); }

/* ─── MAIN HEADER (non-sticky logo bar) ──────────────────── */
.mo-header {
  background: var(--mo-white);
  border-bottom: 3px solid var(--mo-orange);
  padding: 10px 0;
}
.mo-logo-img {
  max-height: 56px;
  width: auto;
}
.mo-tagline-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--mo-navy);
  margin: 0;
  line-height: 1.4;
}
.mo-ratings-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stars in header */
.div-opinie-sklep ul {
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 1px;
}
.div-opinie-sklep li {
  list-style: none;
  font-size: 20px;
  color: #d1d5db;
  text-shadow: none;
  line-height: 1;
}
.div-opinie-sklep .selected {
  color: var(--mo-gold);
}
.ile-opinii-sklep {
  font-size: 12px;
  color: var(--mo-muted);
  display: block;
  margin-top: 2px;
}
.ile-opinii-sklep a { color: var(--mo-muted); }
.ile-opinii-sklep a:hover { color: var(--mo-orange); }

/* ─── STICKY BAR ─────────────────────────────────────────── */
.mo-sticky {
  background: var(--mo-navy);
  box-shadow: var(--mo-shadow);
  z-index: 1030;
}
.mo-sticky .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Contact links in sticky */
.mo-contact-bar {
  white-space: nowrap;
  font-size: 13px;
}
.mo-contact-link {
  color: rgba(255,255,255,.80);
  font-size: 13px;
  transition: color .15s;
}
.mo-contact-link:hover { color: var(--mo-orange); }
.mo-sep { color: rgba(255,255,255,.3); }

/* Search bar */
.mo-search-wrap {
  max-width: 480px;
  min-width: 160px;
}
.mo-search-input {
  border: none;
  border-radius: var(--mo-radius) 0 0 var(--mo-radius) !important;
  font-size: 14px;
  height: 38px;
  background: rgba(255,255,255,.95);
}
.mo-search-input:focus {
  background: var(--mo-white);
  box-shadow: 0 0 0 3px rgba(232,65,24,.35);
}
.mo-search-btn {
  background: var(--mo-orange);
  color: var(--mo-white);
  border: none;
  border-radius: 0 var(--mo-radius) var(--mo-radius) 0 !important;
  height: 38px;
  padding: 0 14px;
  transition: background .15s;
}
.mo-search-btn:hover { background: var(--mo-orange-h); color: var(--mo-white); }

/* Actions: cart + account */
.mo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mo-cart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.2;
  transition: color .15s;
  min-width: 46px;
  text-align: center;
}
.mo-cart-btn:hover { color: var(--mo-orange); }
.mo-cart-btn .fa-shopping-cart { font-size: 22px; }
.mo-cart-info {
  font-size: 10px;
  margin-top: 2px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mo-account-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.2;
  min-width: 46px;
  text-align: center;
  transition: color .15s;
}
.mo-account-btn:hover { color: var(--mo-orange); }
.mo-account-btn .fa-user-circle { font-size: 22px; }
.mo-account-label {
  font-size: 10px;
  margin-top: 2px;
}

/* Mobile logo in sticky */
.mo-mobile-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mo-mobile-logo img { height: 34px; width: auto; }

/* ─── CATEGORY NAV ───────────────────────────────────────── */
.mo-catnav {
  background: var(--mo-navy-light);
}
.mo-catnav .container {
  padding-top: 0;
  padding-bottom: 0;
}
.mo-catnav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.mo-catnav-item { position: relative; }
.mo-catnav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.mo-catnav-link:hover,
.mo-catnav-link.active {
  color: var(--mo-white);
  background: rgba(255,255,255,.10);
}
.mo-catnav-link.active {
  border-bottom: 3px solid var(--mo-orange);
}
.mo-catnav-link i { font-size: 13px; opacity: .8; }

/* Hamburger dropdown */
.mo-catnav-more { position: relative; margin-left: auto; }
.mo-catnav-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mo-catnav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.82);
  border-radius: 2px;
  transition: background .15s;
}
.mo-catnav-hamburger:hover span { background: var(--mo-white); }
.mo-catnav-more .dropdown-menu {
  right: 0; left: auto;
  border-radius: var(--mo-radius);
  border: none;
  box-shadow: var(--mo-shadow);
  min-width: 180px;
}
.mo-catnav-more .dropdown-item {
  font-size: 14px;
  padding: 8px 18px;
}
.mo-catnav-more .dropdown-item:hover { color: var(--mo-orange); }

/* Mobile category nav */
.mo-catnav-mobile {
  background: var(--mo-navy-light);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mo-catnav-mobile::-webkit-scrollbar { display: none; }
.mo-catnav-mobile .mo-catnav-link {
  padding: 9px 14px;
  font-size: 13px;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.mo-breadcrumb {
  background: var(--mo-navy-dark);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 15px;
  letter-spacing: .01em;
}
.mo-breadcrumb a { color: rgba(255,255,255,.65); }
.mo-breadcrumb a:hover { color: var(--mo-orange); }

/* ─── CAR SELECTOR SECTION ───────────────────────────────── */
.mo-carsection {
  background: var(--mo-navy);
  color: var(--mo-white);
  padding: 0;
}
.mo-carinfo {
  padding: 8px 15px;
  color: var(--mo-white);
}
.mo-carinfo a { color: rgba(255,255,255,.80); }
.mo-carinfo a:hover { color: var(--mo-orange); }

/* Car selector dropdowns */
.mo-car-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: absolute;
  z-index: 100;
  padding: 10px;
}
.mo-car-selector .btn {
  font-size: 13px;
  font-weight: 500;
}
.mo-car-bg {
  padding: 72px 0 12px;
}

/* ─── MODALS — Bootstrap override ───────────────────────── */
.modal-content {
  border-radius: var(--mo-radius);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.modal-header {
  background: var(--mo-navy);
  color: var(--mo-white);
  border-radius: var(--mo-radius) var(--mo-radius) 0 0;
  padding: .75rem 1rem;
}
.modal-header .modal-title { font-weight: 600; font-size: 16px; }
.modal-header .close { color: rgba(255,255,255,.8); opacity: 1; }
.modal-header .close:hover { color: var(--mo-white); }
.modal-footer {
  background: #f8f9fa;
  border-radius: 0 0 var(--mo-radius) var(--mo-radius);
}

/* Contact form modal inputs */
.modal .form-control {
  border-radius: var(--mo-radius);
  font-size: 14px;
}
.modal .btn-unique {
  background: var(--mo-orange);
  color: var(--mo-white);
  border: none;
  border-radius: var(--mo-radius);
  font-weight: 600;
  padding: 8px 28px;
  transition: background .15s;
}
.modal .btn-unique:hover { background: var(--mo-orange-h); color: var(--mo-white); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.mo-footer {
  background: var(--mo-navy);
  color: rgba(255,255,255,.75);
  padding-top: 40px;
}
.mo-footer a { color: rgba(255,255,255,.65); transition: color .15s; }
.mo-footer a:hover { color: var(--mo-orange); }

.mo-footer-links {
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mo-footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}
.mo-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mo-footer-list li {
  margin-bottom: 8px;
  font-size: 13px;
}
.mo-footer-contact li { display: flex; align-items: flex-start; }
.mo-footer-contact .fas { margin-top: 3px; color: var(--mo-orange); flex-shrink: 0; }

.mo-footer-payments { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mo-footer-payments img {
  border-radius: 4px;
  background: white;
  padding: 2px 4px;
  height: 26px;
  width: auto;
}

.mo-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.40);
}
.mo-footer-copy { color: rgba(255,255,255,.40); }
.mo-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  margin-left: 6px;
  transition: background .15s, color .15s;
}
.mo-footer-social a:hover {
  background: var(--mo-orange);
  color: white;
}

/* Legacy footer classes — override to transparent so new styles apply */
.footer { background: transparent !important; border-radius: 0 !important; padding: 0 !important; }
.footer_element { border: none !important; }

/* ─── COOKIE BAR ─────────────────────────────────────────── */
.mo-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--mo-navy-dark);
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  font-size: 13px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.25);
}
.mo-cookie-bar a { color: var(--mo-orange); }
.mo-cookie-bar a:hover { color: var(--mo-orange-h); }
.mo-cookie-btn {
  background: var(--mo-orange);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.mo-cookie-btn:hover { background: var(--mo-orange-h); }
@media (max-width: 575px) {
  .mo-cookie-bar { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--mo-orange);
  border-color: var(--mo-orange);
  font-weight: 600;
  border-radius: var(--mo-radius);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--mo-orange-h);
  border-color: var(--mo-orange-h);
}
.btn-success { border-radius: var(--mo-radius); }
.btn-secondary { border-radius: var(--mo-radius); }
.btn-warning  { border-radius: var(--mo-radius); }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--mo-radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.card-body { padding: 16px; }

/* ─── NEWSLETTER SLIDE-IN ────────────────────────────────── */
.newsletter-slidein .card {
  border-top: 3px solid var(--mo-orange);
}

/* ─── GENERAL HELPERS ────────────────────────────────────── */
.no-padding { padding-left: 0 !important; padding-right: 0 !important; }
.mo-sep { color: rgba(255,255,255,.25); padding: 0 4px; }

/* ─── HERO SECTION ──────────────────────────────────────── */
.mo-hero {
  background: linear-gradient(135deg, var(--mo-navy) 0%, var(--mo-navy-light) 100%);
  border-radius: var(--mo-radius);
  padding: 32px 28px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.mo-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(232,65,24,.12);
  pointer-events: none;
}
.mo-hero-content { position: relative; z-index: 1; }
.mo-hero-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--mo-white);
  margin-bottom: 12px;
  line-height: 1.25;
}
.mo-hero-accent { color: var(--mo-orange); }
.mo-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.mo-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-badge {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* ─── USP CARDS ──────────────────────────────────────────── */
.mo-usp-row { gap: 0; }
.mo-usp-card {
  background: var(--mo-white);
  border-radius: var(--mo-radius);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border-left: 3px solid var(--mo-orange);
  transition: box-shadow .15s;
}
.mo-usp-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.11); }
.mo-usp-icon {
  color: var(--mo-orange);
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.mo-usp-text { display: flex; flex-direction: column; }
.mo-usp-text strong { font-size: 13px; color: var(--mo-text); line-height: 1.3; }
.mo-usp-text span, .mo-usp-text a {
  font-size: 11px;
  color: var(--mo-muted);
  line-height: 1.3;
}
.mo-usp-text a:hover { color: var(--mo-orange); }

/* ─── CAR BRAND / MODEL LIST ─────────────────────────────── */
.mo-car-item {
  line-height: 1.4;
  padding: 2px 0;
}
.mo-car-item a {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  color: var(--mo-text);
  padding: 2px 4px;
  border-radius: 3px;
  transition: background .12s, color .12s;
}
.mo-car-item a:hover {
  background: rgba(232,65,24,.06);
  color: var(--mo-orange);
}
.mo-car-name { font-weight: 500; }
.mo-car-years { font-size: 11px; color: var(--mo-muted); white-space: nowrap; }

/* ─── PRODUCT LISTING ENHANCEMENTS ───────────────────────── */
.card {
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.10); }
.card-title { font-size: 15px; font-weight: 600; }

/* Product card layout */
.mo-prod-card { margin-bottom: 8px; }
.mo-prod-left { max-width: 75%; }
.mo-prod-name-wrap { max-width: 80%; }
.mo-prod-info { display: inline-block; }
.mo-prod-info b { font-size: 14px; color: var(--mo-text); }

/* Price display */
.mo-price-old { text-decoration: line-through; color: var(--mo-muted); }
.cena_brutto { font-size: 13px; }
.cena_bold { font-weight: 700; font-size: 16px; color: var(--mo-navy); }
.cena_red  { color: var(--mo-orange) !important; }

/* Add-to-cart button — listing */
.mo-cart-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mo-orange);
  color: var(--mo-white);
  border: none;
  border-radius: var(--mo-radius);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.mo-cart-add-btn:hover { background: var(--mo-orange-h); color: var(--mo-white); }

/* ─── PRODUCT INFO PAGE ──────────────────────────────────── */
/* Right-side meta box (price, cart) */
.mo-prod-meta {
  background: var(--mo-bg);
  border-radius: var(--mo-radius);
  padding: 14px 14px 0;
  border-left: 3px solid var(--mo-orange);
}

/* Price in product_info */
.mo-pi-price { font-size: 1.5rem; font-weight: 700; color: var(--mo-navy); }
.mo-pi-price-vat { font-size: 80%; color: var(--mo-muted); line-height: 1; margin-bottom: 4px; }
.mo-pi-price-old { text-align: right; display: inline-block; text-decoration: line-through; color: var(--mo-muted); }

/* Add-to-cart button — product info */
.mo-pi-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mo-orange);
  color: var(--mo-white);
  border: none;
  border-radius: var(--mo-radius);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(232,65,24,.30);
}
.mo-pi-cart-btn:hover {
  background: var(--mo-orange-h);
  color: var(--mo-white);
  box-shadow: 0 4px 14px rgba(232,65,24,.40);
}
.mo-pi-cart-btn:active { transform: translateY(1px); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .mo-search-wrap { max-width: 100%; }
}
@media (max-width: 767px) {
  .mo-sticky .container { padding-top: 6px; padding-bottom: 6px; }
  .mo-catnav-link { padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 575px) {
  .mo-actions .btn-success { display: none; }
  .mo-search-wrap { min-width: 0; }
}
