/**
 * MartMax – Professional Bootstrap 5 E-commerce Theme
 * Primary: Orange (#fd7e14). Clean, modern, responsive.
 */
:root {
  --bs-primary: #fd7e14;
  --bs-primary-rgb: 253, 126, 20;
  --martmax-primary: #fd7e14;
  --martmax-primary-hover: #e96b00;
  --martmax-dark: #1a1d23;
  --martmax-body-bg: #f8f9fa;
  /* 3rem = 48px at default root; same idea as Tailwind w-12 / h-12 */
  --martmax-thumb: 3rem;
}

/* Fixed 48×48px tiles — use with Bootstrap: d-inline-flex, align-items-center, object-fit-cover, rounded-3 */
.martmax-thumb-48 {
  width: var(--martmax-thumb);
  height: var(--martmax-thumb);
  flex-shrink: 0;
}

body {
  background-color: var(--martmax-body-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #212529;
}

/* Navbar */
.navbar-martmax {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  min-height: 72px;
}
.navbar-martmax .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.navbar-martmax .nav-link {
  font-weight: 500;
  color: #2c3e50 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: color .2s, background .2s;
}
.navbar-martmax .nav-link:hover,
.navbar-martmax .nav-link.active {
  color: var(--martmax-primary) !important;
  background: rgba(253, 126, 20, .08);
}
.navbar-martmax .nav-icon-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #495057;
  transition: background .2s, color .2s, transform .2s;
}
.navbar-martmax .nav-icon-link:hover {
  background: rgba(253, 126, 20, .1);
  color: var(--martmax-primary);
  transform: translateY(-2px);
}
.navbar-martmax .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid #fff;
}

/* Buttons */
.btn-primary,
.btn-martmax {
  background: var(--martmax-primary);
  border-color: var(--martmax-primary);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: background .2s, border-color .2s, transform .02s;
}
.btn-primary:hover,
.btn-martmax:hover {
  background: var(--martmax-primary-hover);
  border-color: var(--martmax-primary-hover);
}
.btn-outline-primary {
  border-color: var(--martmax-primary);
  color: var(--martmax-primary);
}
.btn-outline-primary:hover {
  background: rgba(253, 126, 20, .1);
  border-color: var(--martmax-primary);
  color: var(--martmax-primary-hover);
}

/* Cards */
.card-martmax {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.card-martmax:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.card-martmax .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}
.card-martmax:hover .card-img-top {
  transform: scale(1.03);
}
.card-martmax .card-title {
  font-weight: 600;
  color: #1a1d23;
  font-size: 1rem;
  line-height: 1.4;
}
.card-martmax .text-primary {
  color: var(--martmax-primary) !important;
  font-weight: 700;
}

/* Section headings */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: 0.25rem;
}
.section-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Hero / Carousel */
.carousel-martmax .carousel-item {
  min-height: 420px;
}
@media (min-width: 768px) {
  .carousel-martmax .carousel-item {
    min-height: 500px;
  }
}
.carousel-martmax .carousel-caption {
  bottom: 3rem;
  left: 1.5rem;
  right: 1.5rem;
  text-align: left;
}
.carousel-martmax .carousel-control-prev,
.carousel-martmax .carousel-control-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: background .2s;
}
.carousel-martmax .carousel-control-prev:hover,
.carousel-martmax .carousel-control-next:hover {
  background: rgba(255,255,255,.4);
}
.carousel-martmax .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.5);
  border: none;
}
.carousel-martmax .carousel-indicators button.active {
  background-color: #fff;
  width: 28px;
  border-radius: 5px;
}

/* Hero — split layout (dark + product cutout) */
.carousel-martmax.hero-martmax-dark .carousel-item {
  min-height: 0;
}
.hero-martmax-split {
  background: linear-gradient(155deg, #121822 0%, #1a2332 42%, #152028 100%);
  color: #fff;
}
.hero-martmax-row {
  min-height: 420px;
}
@media (min-width: 992px) {
  .hero-martmax-row {
    min-height: min(78vh, 560px);
  }
}
.hero-martmax-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--martmax-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.95rem;
  border-radius: 0.35rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: system-ui, sans-serif;
}
.hero-martmax-badge .fa-star {
  font-size: 0.65rem;
  opacity: 0.95;
}
.hero-martmax-title {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.hero-martmax-pill {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.hero-martmax-price {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--martmax-primary);
  line-height: 1.2;
}
.hero-martmax-price-was {
  display: inline-block;
  margin-left: 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  vertical-align: middle;
}
.hero-martmax-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 992px) {
  .hero-martmax-lead {
    margin-left: 0;
    margin-right: 0;
  }
}
.hero-martmax-cta {
  border-radius: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border: none;
  box-shadow: 0 8px 24px rgba(253, 126, 20, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-martmax-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(253, 126, 20, 0.45);
}
/* Hero product image: sizing via Bootstrap (w-*, img-fluid, object-fit-contain); shadow only here */
.hero-martmax-product-img {
  max-height: 55vh;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 60px rgba(253, 126, 20, 0.12));
}
@media (min-width: 992px) {
  .hero-martmax-product-img {
    max-height: min(50vh, 320px);
  }
}
.carousel-martmax.hero-martmax-dark .hero-martmax-indicators {
  margin-bottom: 1rem;
}
.carousel-martmax.hero-martmax-dark .hero-martmax-indicators button {
  background-color: rgba(255, 255, 255, 0.35);
}
.carousel-martmax.hero-martmax-dark .hero-martmax-indicators button.active {
  background-color: var(--martmax-primary);
  width: 28px;
  border-radius: 5px;
}
.carousel-martmax.hero-martmax-dark .hero-martmax-control.carousel-control-prev,
.carousel-martmax.hero-martmax-dark .hero-martmax-control.carousel-control-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.carousel-martmax.hero-martmax-dark .hero-martmax-control.carousel-control-prev:hover,
.carousel-martmax.hero-martmax-dark .hero-martmax-control.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
}
.carousel-martmax.hero-martmax-dark .carousel-control-prev-icon,
.carousel-martmax.hero-martmax-dark .carousel-control-next-icon {
  filter: invert(1);
  width: 1.25rem;
  height: 1.25rem;
}

/* Product quick actions on hover */
.card-martmax .card-actions {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity .2s;
}
.card-martmax:hover .card-actions {
  opacity: 1;
}
.card-martmax .btn-action {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #495057;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.card-martmax .btn-action:hover {
  background: #1a1d23;
  color: #fff;
}

/* Alerts */
.alert-success {
  border-radius: 0.5rem;
  border-left: 4px solid #198754;
}
.alert-danger {
  border-radius: 0.5rem;
  border-left: 4px solid #dc3545;
}

/* Footer */
.footer-martmax {
  background: #0b1120;
  color: #adb5bd;
  padding-top: 3rem;
  margin-top: auto;
}
.footer-martmax .footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-martmax a {
  color: #adb5bd;
  text-decoration: none;
  transition: color .2s;
}
.footer-martmax a:hover {
  color: var(--martmax-primary);
}
.footer-martmax .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  font-size: 0.875rem;
}

/* Bottom nav mobile */
.bottom-nav-martmax {
  height: 64px;
  background: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
/* Reserve space so content isn't hidden behind fixed bottom nav on mobile */
@media (max-width: 991.98px) {
  main { padding-bottom: 80px; }
}
.bottom-nav-martmax .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.7rem;
  padding: 0.5rem;
}
.bottom-nav-martmax .nav-link i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.bottom-nav-martmax .nav-link.active {
  color: var(--martmax-primary);
  font-weight: 600;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--martmax-primary);
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, .25);
}

/* Quantity input group */
.input-group-qty .btn {
  width: 38px;
  padding: 0;
  border-color: #dee2e6;
  color: #495057;
}
.input-group-qty .form-control {
  text-align: center;
  max-width: 4rem;
  border-left: 0;
  border-right: 0;
}

/* Sticky summary card */
.summary-card-sticky {
  position: sticky;
  top: 6rem;
}

/* Toast */
.toast-martmax {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
