/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Remove gradient on desktop for Eventy Firmowe card */
@media (min-width: 768px) {
  .eventy-firmowe-card {
    background: hsl(var(--muted) / 0.5) !important;
    background-image: none !important;
  }

  .eventy-firmowe-card:hover {
    background: hsl(var(--muted)) !important;
  }
}

/* Tailwind CSS Custom Configuration */
:root {
  --background: 0 0% 100%;
  --foreground: 210 50% 20%;

  --card: 0 0% 100%;
  --card-foreground: 210 50% 20%;

  --popover: 0 0% 100%;
  --popover-foreground: 210 50% 20%;

  --primary: 25 95% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 60% 25%;
  --secondary-foreground: 0 0% 100%;

  --muted: 210 20% 96%;
  --muted-foreground: 210 20% 45%;

  --accent: 25 95% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 210 20% 90%;
  --input: 210 20% 90%;
  --ring: 25 95% 55%;

  --radius: 0.5rem;

  --brand-orange: 25 95% 55%;
  --brand-navy: 210 60% 25%;
  --brand-navy-light: 210 50% 35%;

  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 210 50% 20%;
  --sidebar-primary: 25 95% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 210 20% 96%;
  --sidebar-accent-foreground: 210 50% 20%;
  --sidebar-border: 210 20% 90%;
  --sidebar-ring: 25 95% 55%;

  /* Pricing Page Colors */
  --electric: 200 80% 50%;
  --electric-light: 200 80% 95%;
  --mtb: 142 50% 40%;
  --mtb-light: 142 50% 95%;
  --downhill: 28 85% 55%;
  --downhill-light: 28 85% 95%;
  --accessories: 270 50% 55%;
  --accessories-light: 270 50% 95%;

  /* Pricing Page Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(142 50% 35%) 0%, hsl(160 45% 45%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(40 20% 98%) 100%);
  --gradient-electric: linear-gradient(135deg, hsl(200 80% 50%) 0%, hsl(220 70% 55%) 100%);
  --gradient-mtb: linear-gradient(135deg, hsl(142 50% 40%) 0%, hsl(160 45% 50%) 100%);
  --gradient-downhill: linear-gradient(135deg, hsl(28 85% 55%) 0%, hsl(15 80% 50%) 100%);
  --gradient-accessories: linear-gradient(135deg, hsl(270 50% 55%) 0%, hsl(290 45% 50%) 100%);
}

.dark {
  --background: 210 50% 10%;
  --foreground: 210 20% 95%;

  --card: 210 50% 12%;
  --card-foreground: 210 20% 95%;

  --popover: 210 50% 12%;
  --popover-foreground: 210 20% 95%;

  --primary: 25 95% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 40% 20%;
  --secondary-foreground: 210 20% 95%;

  --muted: 210 40% 18%;
  --muted-foreground: 210 20% 65%;

  --accent: 25 95% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 62.8% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 210 40% 20%;
  --input: 210 40% 20%;
  --ring: 25 95% 55%;

  --brand-orange: 25 95% 55%;
  --brand-navy: 210 60% 70%;
  --brand-navy-light: 210 50% 80%;

  --sidebar-background: 210 50% 10%;
  --sidebar-foreground: 210 20% 95%;
  --sidebar-primary: 25 95% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 210 40% 18%;
  --sidebar-accent-foreground: 210 20% 95%;
  --sidebar-border: 210 40% 20%;
  --sidebar-ring: 25 95% 55%;
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Utility classes for HSL colors */
.bg-background {
  background-color: hsl(var(--background));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-card {
  background-color: hsl(var(--card));
}

.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.bg-popover {
  background-color: hsl(var(--popover));
}

.text-popover-foreground {
  color: hsl(var(--popover-foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.bg-accent {
  background-color: hsl(var(--accent));
}

.text-accent-foreground {
  color: hsl(var(--accent-foreground));
}

.bg-destructive {
  background-color: hsl(var(--destructive));
}

.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}

.border-border {
  border-color: hsl(var(--border));
}

.border-input {
  border-color: hsl(var(--input));
}

.ring-ring {
  --tw-ring-color: hsl(var(--ring));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-secondary {
  color: hsl(var(--secondary));
}

/* Animations - DISABLED (except for specific elements) */

/* Float animation for bike badge */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Fade in left animation for About section */
@keyframes fade-in-left {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in right animation for About section */
@keyframes fade-in-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in up animation for section headers */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-left {
  animation: fade-in-left 0.8s ease-out both;
}

.animate-fade-in-right {
  animation: fade-in-right 0.8s ease-out both;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out both;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(1px)) {
  .backdrop-blur {
    backdrop-filter: blur(8px);
  }
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Accordion styles */
.accordion-item {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: all 0.3s;
}

.accordion-item:hover {
  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
  border-color: hsl(var(--primary) / 0.2);
}

.accordion-item.open {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  border-color: hsl(var(--primary) / 0.3);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

.accordion-trigger.open {
  color: hsl(var(--primary));
}

.accordion-content {
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}

.accordion-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-trigger.open .accordion-chevron {
  transform: rotate(180deg);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 50;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  max-width: 28rem;
  width: 100%;
  margin: 0 1rem;
}

/* Carousel styles */
#bikesCarousel {
  overflow: hidden;
  width: 100%;
}

#bikesCarouselContainer {
  display: flex;
  overflow: hidden;
  width: 500%;
  position: relative;
}

.carousel-slide {
  flex: 0 0 20% !important;
  width: 20% !important;
  min-width: 20% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
}

.carousel-transition {
  transition: transform 0.5s ease-in-out;
}

/* Date picker styles */
.date-picker-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.date-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.date-picker-day:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.date-picker-day.selected {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.date-picker-day.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.date-picker-day.today {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .lg\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================================
   RESERVATION HERO SECTION
   ============================================ */
.reservation-hero {
  position: relative;
  height: 65vh;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(var(--secondary) / 0.8) 100%);
  margin: 0;
  padding: 0;
  display: block;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('src/assets/hero-bike-mountains.jpg');
  transform: translateY(0px) scale(1.1);
  transition: transform 100ms;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      hsla(var(--secondary), 0.9) 0%,
      hsla(var(--secondary), 0.7) 50%,
      hsla(var(--secondary), 0.95) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  border: 2px solid hsla(var(--primary), 0.2);
}

.float-shape:nth-child(2) {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-shape:nth-child(3) {
  border: 1px solid hsla(var(--primary), 0.15);
}

.float-shape:nth-child(4) {
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.glow-orb:nth-child(6) {
  background-color: hsla(var(--primary), 0.1);
}

.glow-orb:nth-child(7) {
  background-color: hsla(var(--primary), 0.05);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-content-box {
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-content-box {
    padding: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsla(var(--primary), 0.2);
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid hsla(var(--primary), 0.3);
  opacity: 1;
  transform: scale(1);
}

.hero-icon {
  width: 1rem;
  height: 1rem;
}

.hero-heading {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 3.75rem;
  }
}

.hero-gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8), hsl(var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-highlight {
  color: hsl(var(--primary));
  font-weight: 500;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transform: translateY(0);
}

.scroll-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.scroll-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  margin: 0;
  padding: 0;
  height: 120px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-wave svg {
  width: 100%;
  height: 120px;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
  position: relative;
  background: transparent;
  border: none;
  outline: none;
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.filters-section {
  padding: 3rem 1.5rem;
  background-color: hsla(var(--muted), 0.3);
  margin-top: -1px;
  display: block;
  position: relative;
  z-index: 1;
}

.filters-container {
  max-width: 72rem;
  margin: 0 auto;
}

/* Rezerwacja: pełna szerokość (tylko reservation.html) */
.filters-container--reservation-wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

/* Karta terminu zostaje wąska i wycentrowana; szeroki tylko pas tła sekcji */
.filters-section--reservation-wide {
  padding-left: 0;
  padding-right: 0;
  padding-top: 2rem;
  padding-bottom: 0.75rem;
  /* Ponad inline koszyk (.cart-modal-content z-index: 10), żeby kalendarz nie chował się pod kafelkami */
  z-index: 100;
  position: relative;
}

.filters-section--reservation-wide .date-picker-section {
  margin-bottom: 0;
}

.rental-term-with-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 58rem;
}

.rental-term-with-cart-row .rental-term-card {
  flex: 1 1 min(100%, 28rem);
  max-width: 48rem;
}

.reservation-cart-peek {
  flex: 0 0 auto;
  width: min(100%, 9.5rem);
  min-height: 6.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.875rem;
  margin: 0;
  border: none;
  border-radius: 0.75rem;
  background: hsl(142 55% 42% / 0.18);
  color: hsl(142 61% 28%);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: none;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Na mobile kafelek jest zbędny — koszyk jest na dolnej belce (#mobileBottomBar) */
@media (min-width: 768px) {
  .reservation-cart-peek {
    display: flex;
  }
}

.reservation-cart-peek:hover {
  background: hsl(142 55% 38% / 0.26);
  color: hsl(142 65% 22%);
}

.reservation-cart-peek:active {
  transform: scale(0.98);
}

.reservation-cart-peek:focus-visible {
  outline: 2px solid hsl(142 55% 40%);
  outline-offset: 2px;
}

.reservation-cart-peek-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.reservation-cart-peek-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: inherit;
}

.reservation-cart-peek-icon svg {
  width: 100%;
  height: 100%;
}

.reservation-cart-peek-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: hsl(142 61% 28%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.reservation-cart-peek-badge:empty,
.reservation-cart-peek-badge[hidden] {
  display: none;
}

.reservation-cart-peek-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 639px) {
  .rental-term-with-cart-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 48rem;
  }
}

.date-picker-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  overflow: visible;
  position: relative;
  /* Wyżej niż koszyk / podsumowanie inline (.cart-modal-content z-index: 10), poniżej fixed header (z-110) */
  z-index: 99;
}

.filters-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.popover-wrapper {
  position: relative;
  width: 100%;
  max-width: 28rem;
}

.date-picker-button {
  width: 100%;
  max-width: 28rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-weight: 400;
  height: 3.5rem;
  font-size: 1rem;
  border: 2px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  padding: 0 1rem;
  border-radius: 0.5rem;
  transition: border-color 0.2s;
  cursor: pointer;
}

.date-picker-button:hover {
  border-color: hsl(var(--primary));
}

.date-picker-button:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

.calendar-icon {
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.popover-content {
  position: absolute;
  z-index: 50;
  width: auto;
  padding: 0;
  margin-top: 0.5rem;
  background-color: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  left: 50%;
  transform: translateX(-50%);
}

.popover-content.open {
  display: block !important;
}

.popover-content:not(.open) {
  display: none !important;
}

/* When datepicker is opened from cart modal, it needs higher z-index */
.popover-content.open[style*="z-index"] {
  z-index: 1001 !important;
}

.popover-header {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsla(var(--muted), 0.5);
}

.popover-hint {
  font-size: 0.875rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.calendar-wrapper {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .calendar-wrapper {
    padding: 1rem;
  }
}

.date-range-input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.date-range-info {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.date-range-info .days-count {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Rental Term Card Styles */
.rental-term-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
  max-width: 48rem;
  position: relative;
  overflow: visible;
}

.rental-term-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: hsl(var(--primary));
}

.rental-term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rental-term-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rental-term-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.rental-days-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: #fef3e2;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.rental-days-badge #rentalDaysCount {
  font-weight: 700;
  font-size: 1rem;
}

.rental-term-icon svg {
  width: 100%;
  height: 100%;
}

.rental-term-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.rental-date-fields {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rental-date-field-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  z-index: auto;
}

.rental-date-field-wrapper .popover-content.open {
  z-index: 9999;
}

.rental-date-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.rental-date-field:hover {
  border-color: hsl(var(--border));
}

.rental-date-field.has-date {
  background: hsl(var(--muted));
}

.rental-date-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rental-date-icon.pickup-active {
  background: #fff4e6;
  color: hsl(var(--primary));
}

.rental-date-icon.return-active {
  background: #fff4e6;
  color: hsl(var(--primary));
}

.rental-date-icon.return-inactive {
  background: #f3f4f6;
  color: #9ca3af;
}

.rental-date-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rental-date-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rental-date-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

.rental-date-label.return-inactive {
  color: #9ca3af;
}

.rental-date-placeholder {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.rental-date-placeholder.return-inactive {
  color: #d1d5db;
}

.rental-date-arrow {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rental-date-arrow svg {
  width: 100%;
  height: 100%;
}

.rental-date-input {
  display: none;
}

/* Popover styles for rental date fields */
.rental-date-field-wrapper .popover-content {
  position: absolute;
  z-index: 9999;
  width: auto;
  padding: 0;
  margin-top: 0.5rem;
  background-color: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  left: 0;
  transform: none;
}

.rental-date-field-wrapper .popover-content.open {
  display: block !important;
}

@media (max-width: 640px) {
  .rental-date-fields {
    flex-direction: column;
  }

  .rental-date-arrow {
    transform: rotate(90deg);
  }

  .rental-date-field-wrapper {
    width: 100%;
  }

  /* Większy obszar dotyku i czytelność na mobile */
  .rental-date-field {
    padding: 1.25rem 1.125rem;
    min-height: 4.5rem;
    gap: 1rem;
  }

  .rental-date-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .rental-date-icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  .rental-date-content {
    gap: 0.375rem;
  }

  .rental-date-field-wrapper .popover-content {
    left: 0;
    right: 0;
    transform: none;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }
}

.category-filters-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .category-title {
    margin-bottom: 1.5rem;
  }
}

.category-buttons-wrapper {
  width: 100%;
  max-width: 64rem;
  position: relative;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-buttons::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .category-buttons {
    gap: 0.75rem;
    padding-left: 0;
    padding-right: 0;
  }
}

.category-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--border));
  transition: all 300ms;
  flex-shrink: 0;
  cursor: pointer;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-weight: 500;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .category-button {
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
  }
}

.category-button:hover {
  border-color: hsl(var(--primary));
  box-shadow: 0 10px 15px -3px hsla(var(--primary), 0.1);
  transform: translateY(-2px);
  background-color: hsla(var(--primary), 0.05);
}

.category-button.selected {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
  box-shadow: 0 10px 15px -3px hsla(var(--primary), 0.25);
}

.category-button.selected .category-icon {
  color: white;
}

.category-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
  transition: color 0.2s;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .category-icon {
    width: 1rem;
    height: 1rem;
  }
}

.category-button.selected-indicator {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

@media (min-width: 768px) {
  .category-button.selected-indicator {
    display: block;
  }
}

/* Category Scroll Indicator (Mobile) */
.category-scroll-indicator {
  display: none;
  margin-top: 1rem;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .category-scroll-indicator {
    display: flex;
  }
}

.scroll-indicator-bar {
  width: 100%;
  max-width: 200px;
  height: 4px;
  background-color: hsl(var(--muted));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.scroll-indicator-fill {
  height: 100%;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  border-radius: 2px;
  transition: width 0.2s ease-out;
  width: 0%;
  position: absolute;
  left: 0;
  top: 0;
}

.scroll-indicator-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

.scroll-hint-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
}

/* ============================================
   REZERWACJA: kategorie w lewej kolumnie (desktop)
   ============================================ */
.reservation-main-grid {
  background-color: hsl(var(--background));
  padding: 0.75rem 0 4rem;
}

@media (min-width: 640px) {
  .reservation-main-grid {
    padding: 1rem 0 4rem;
  }
}

@media (min-width: 1024px) {
  .reservation-main-grid {
    padding: 1rem 0 4rem;
  }
}

.reservation-main-grid-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

/* Kategorie na rezerwacji: wyrównanie do lewej (mobile + desktop) */
.reservation-main-grid .category-filters-section {
  align-items: flex-start;
}

.reservation-main-grid .category-title {
  text-align: left;
  width: 100%;
}

.reservation-main-grid .category-buttons {
  justify-content: flex-start;
}

.reservation-main-grid .category-button {
  justify-content: flex-start;
  text-align: left;
}

.reservation-main-grid .category-button .category-button-label {
  text-align: left;
}

@media (min-width: 1024px) {
  .reservation-main-grid-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .reservation-category-column {
    flex: 0 0 16rem;
    position: sticky;
    top: 5.5rem;
    z-index: 10;
    padding: 1.25rem;
    background-color: hsla(var(--muted), 0.4);
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .reservation-category-column .category-filters-section {
    align-items: stretch;
    width: 100%;
  }

  .reservation-category-column .category-title {
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
  }

  .reservation-category-column .category-buttons-wrapper {
    max-width: none;
    width: 100%;
  }

  .reservation-category-column .category-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: visible;
    overflow-y: visible;
    padding-left: 0;
    padding-right: 0;
    gap: 0.5rem;
  }

  .reservation-category-column .category-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    flex-shrink: 0;
  }

  .reservation-category-column .category-button .category-button-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.25;
  }

  .reservation-category-column .category-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

.reservation-main-grid-inner--cart-open .reservation-category-column {
  display: none;
}

.reservation-main-grid-inner--cart-open .reservation-bikes-column {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.reservation-main-grid-inner--cart-open .cart-modal.cart-modal--inline {
  padding-left: 0;
  padding-right: 0;
}

.reservation-bikes-column {
  flex: 1;
  min-width: 0;
}

.reservation-bikes-column .bike-list-section {
  padding: 0 0 2rem;
}

.reservation-bikes-column .bike-list-container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Węższa siatka obok sidebara — bez ściskania kart */
@media (min-width: 1024px) {
  .reservation-bikes-column .bike-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .reservation-bikes-column .bike-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1536px) {
  .reservation-bikes-column .bike-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   BIKE LIST SECTION
   ============================================ */
.bike-list-section {
  padding: 4rem 0.5rem;
  background-color: hsl(var(--background));
}

@media (min-width: 640px) {
  .bike-list-section {
    padding: 4rem 1rem;
  }
}

@media (min-width: 1024px) {
  .bike-list-section {
    padding: 4rem 1.5rem;
  }
}

.bike-list-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}

@media (min-width: 1280px) {
  .bike-list-container {
    max-width: 95rem;
    padding: 0 1rem;
  }
}

@media (min-width: 1536px) {
  .bike-list-container {
    max-width: 100rem;
  }
}

.bike-list-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bike-list-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bike-list-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.bike-list-subtitle {
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.separator {
  margin: 0 0.25rem;
}

.bike-count {
  color: hsl(var(--primary));
  font-weight: 500;
}

.bike-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bike-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .bike-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .bike-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.bike-card {
  position: relative;
  background-color: hsl(var(--card));
  border-radius: 1rem;
  border: 2px solid hsl(var(--border));
  overflow: hidden;
  transition: all 300ms;
  opacity: 1;
}

.bike-card:hover {
  border-color: hsl(var(--primary));
  box-shadow: 0 20px 25px -5px hsla(var(--primary), 0.1);
  transform: translateY(-4px);
}

.bike-card.unavailable {
  opacity: 0.6;
}

.bike-image-container {
  position: relative;
  height: 17rem;
  overflow: hidden;
}

.bike-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.bike-card:hover .bike-image {
  transform: scale(1.1);
}

.bike-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.bike-badge.available {
  background-color: rgba(34, 197, 94, 0.9);
  color: white;
}

.bike-badge.unavailable {
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
}

.bike-price {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background-color: rgba(34, 197, 94, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

.bike-price-amount {
  font-size: 1.125rem;
  font-weight: 700;
}

.bike-price-unit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.25rem;
}

.bike-content {
  padding: 1.25rem;
}

.bike-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.bike-card:hover .bike-name {
  color: hsl(var(--primary));
}

.bike-specs {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Dynamic grid based on number of specs */
.bike-specs.specs-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bike-specs.specs-count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bike-specs.specs-count-4 {
  grid-template-columns: repeat(2, 1fr);
}

.bike-specs.specs-count-5 {
  grid-template-columns: repeat(3, 1fr);
}

.bike-specs.specs-count-6,
.bike-specs.specs-count-7,
.bike-specs.specs-count-8,
.bike-specs.specs-count-9 {
  grid-template-columns: repeat(3, 1fr);
}

.bike-spec {
  text-align: center;
  padding: 0.5rem;
  background-color: hsl(var(--muted));
  border-radius: 0.5rem;
}

.bike-spec-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.125rem;
}

.bike-spec-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: hsl(var(--primary));
}

.bike-spec-label {
  font-size: 0.5625rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bike-spec-value {
  font-size: 0.625rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bike-reserve-button {
  width: 100%;
  transition: all 300ms;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}

.bike-reserve-button.available {
  background-color: hsl(var(--primary));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bike-reserve-button.available:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.25);
}

.bike-reserve-button.unavailable {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  cursor: not-allowed;
}

.bike-reserve-button.in-cart {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-emoji {
  font-size: 3rem;
}

.empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.empty-text {
  color: hsl(var(--muted-foreground));
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .toast-container {
    top: 5.5rem;
    /* Below header */
    right: 0.75rem;
  }
}

.toast {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.toast-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   FLATPICKR CUSTOMIZATION
   ============================================ */
.flatpickr-calendar {
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

/* Inline kalendarz w popoverze terminu — nad ewentualnymi nakładkami w obrębie wrappera */
.rental-date-field-wrapper .flatpickr-calendar {
  position: relative;
  z-index: 2;
}

.flatpickr-months {
  background: transparent;
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.75rem;
}

.flatpickr-month {
  color: hsl(var(--foreground));
}

.flatpickr-current-month {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
  transition: opacity 0.2s;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  opacity: 1;
}

.flatpickr-weekdays {
  background: transparent;
  border-bottom: 1px solid hsl(var(--border));
}

.flatpickr-weekday {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  font-weight: 400;
}

.flatpickr-days {
  padding: 0.5rem;
}

.flatpickr-day {
  color: hsl(var(--foreground));
  border-radius: 0.375rem;
  border: none;
  transition: all 0.2s;
}

.flatpickr-day:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
}

.flatpickr-day.inRange {
  background: hsla(var(--primary), 0.2);
  color: hsl(var(--foreground));
  box-shadow: none;
}

.flatpickr-day.today {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 700;
}

.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
}

.flatpickr-day.disabled {
  cursor: not-allowed;
}

/* FLATPICKR CUSTOMIZATION - ANIMATIONS DISABLED */

/* Mobile Cart Bar */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  background-color: hsl(var(--card));
  border-top: 2px solid hsl(var(--border));
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  display: none;
}

@media (max-width: 767px) {
  .mobile-cart-bar {
    display: block;
  }
}

.mobile-cart-bar.visible {
  transform: translateY(0);
}

.mobile-cart-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-cart-button:hover {
  background-color: hsla(var(--primary), 0.9);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.mobile-cart-button:active {
  transform: translateY(0);
}

.mobile-cart-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.mobile-cart-text {
  flex: 1;
  text-align: left;
}

.mobile-cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop Floating Cart Icon */
.desktop-cart-icon {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 3.5rem;
  height: 3.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px hsla(var(--primary), 0.4);
  transition: all 0.3s ease-out;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

@media (min-width: 768px) {
  .desktop-cart-icon {
    display: flex;
  }
}

.desktop-cart-icon.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.desktop-cart-icon:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 15px 35px -5px hsl(var(--primary) / 0.5);
  transform: scale(1.1);
}

.desktop-cart-icon:active {
  transform: scale(0.95);
}

.desktop-cart-svg {
  width: 1.75rem;
  height: 1.75rem;
}

.desktop-cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.375rem;
  background-color: hsl(var(--destructive));
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid hsl(var(--card));
}

/* ============================================
   CART MODAL
   ============================================ */

/* Okna popup w reservation.html osadzonym w iframe (auto-height) — u góry, nie na środku dokumentu */
body[data-page="reservation-zlotygron"] .reservation-overlay-modal {
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 1rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-page="reservation-zlotygron"] .reservation-overlay-modal > .relative {
  flex-shrink: 0;
  width: 100%;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  padding: 1rem;
}

.cart-modal.visible {
  opacity: 1;
  visibility: visible;
}

/* Koszyk w treści strony (rezerwacja) — bez „karty”, tylko lekkie marginesy boczne */
.cart-modal.cart-modal--inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
  width: 100%;
  padding: 0 clamp(0.5rem, 2.5vw, 1rem);
  margin-top: 0;
  transition: none;
}

.reservation-bikes-column--cart-open .reservation-bikes-view {
  display: none;
}

.cart-modal.cart-modal--inline.visible {
  display: flex;
}

.cart-modal.cart-modal--inline .cart-modal-overlay {
  display: none;
}

.cart-modal.cart-modal--inline .cart-modal-content {
  position: relative;
  max-width: none;
  width: 100%;
  max-height: none;
  height: auto;
  transform: none;
  transition: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: none;
  overflow: visible;
}

.cart-modal.cart-modal--inline.visible .cart-modal-content {
  transform: none;
}

.cart-modal.cart-modal--inline .cart-modal-header {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
}

.cart-modal.cart-modal--inline .cart-modal-body {
  padding: 1.25rem 0;
  background: transparent;
  flex: 0 0 auto;
  overflow: visible;
  min-height: 0;
}

.cart-modal.cart-modal--inline .cart-modal-footer {
  padding: 1rem 0;
  background: transparent;
  border-top: 1px solid hsl(var(--border));
}

/* Podsumowanie rezerwacji — ten sam układ co koszyk (strona rezerwacji, nie popup) */
.checkout-modal.checkout-modal--inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
  width: 100%;
  padding: 0 clamp(0.5rem, 2.5vw, 1rem);
  margin-top: 0;
  transition: none;
}

.checkout-modal.checkout-modal--inline.visible {
  display: flex;
}

.checkout-modal.checkout-modal--inline .checkout-modal-overlay {
  display: none;
}

.checkout-modal.checkout-modal--inline .checkout-modal-inner {
  position: relative;
  max-width: none;
  width: 100%;
  max-height: none;
  height: auto;
  transform: none;
  transition: none;
  overflow: visible;
}

/* scrollIntoView(block: start) — tytuł „Podsumowanie rezerwacji” pod stałym headerem */
.checkout-modal.checkout-modal--inline .checkout-modal-inner > div:first-child {
  scroll-margin-top: 5.5rem;
}

.reservation-main-grid-inner--cart-open .checkout-modal.checkout-modal--inline {
  padding-left: 0;
  padding-right: 0;
}

.cart-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cart-modal-content {
  position: relative;
  z-index: 10;
  background-color: hsl(var(--card));
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

.cart-modal.visible .cart-modal-content {
  transform: scale(1);
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.cart-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.cart-modal-header--inline-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Przy scrollIntoView(block: start) — tytuł „Koszyk rezerwacji” pod stałym headerem strony (h-20) */
.cart-modal.cart-modal--inline .cart-modal-header--inline-nav {
  scroll-margin-top: 5.5rem;
}

.cart-modal-header--inline-nav .cart-modal-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .cart-modal-header--inline-nav .cart-modal-title {
    font-size: 1.5rem;
  }
}

.cart-modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem 0.5rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}

.cart-modal-back-btn:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.cart-modal-back-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.cart-modal-header-trailing {
  flex-shrink: 0;
  width: 5.25rem;
  pointer-events: none;
}

.cart-modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.cart-modal-close:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.cart-modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modal Columns Layout */
@media (min-width: 768px) {
  .cart-modal-body {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
}

.cart-modal-column-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-modal-column-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cart-modal-column-left {
    overflow-y: auto;
    min-height: 0;
    height: 100%;
  }

  .cart-modal-column-right {
    width: 350px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 100%;
  }
}

/* Koszyk inline (rezerwacja): przewijanie tylko strony; szersza kolumna z dodatkami + podsumowaniem */
@media (min-width: 768px) {
  .cart-modal.cart-modal--inline .cart-modal-column-left {
    overflow: visible;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .cart-modal.cart-modal--inline .cart-modal-column-right {
    flex: 0 0 26rem;
    width: 26rem;
    max-width: 100%;
    overflow: visible;
    max-height: none;
  }
}

.cart-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-section-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

/* Date Section */
.cart-date-section {
  padding: 1rem;
  background-color: hsl(var(--muted) / 0.5);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
}

.cart-date-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: hsl(var(--foreground));
}

.cart-date-placeholder {
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.cart-date-from,
.cart-date-to {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.cart-date-separator {
  color: hsl(var(--muted-foreground));
}

.cart-date-days {
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.875rem;
}

.cart-date-change-btn {
  margin-left: auto;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.cart-date-change-btn:hover {
  background-color: hsl(var(--primary) / 0.2);
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
}

.cart-date-change-btn:active {
  transform: scale(0.98);
}

.cart-date-change-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Koszyk rezerwacji (inline): kafelki zamiast jednego bloku „Wybrany termin” */
.cart-date-section--action-tiles {
  padding: 0;
  background: transparent;
  border: none;
}

.cart-date-display--tiles {
  display: block;
}

.cart-action-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
  width: 100%;
}

/* Na mobile nadal dwa kafelki obok siebie — ciaśniejszy układ */
@media (max-width: 520px) {
  .cart-action-tiles {
    gap: 0.5rem;
  }

  .cart-action-tile {
    padding: 1rem 0.5rem;
    min-height: 5.75rem;
    gap: 0.5rem;
    border-radius: 1rem;
  }

  .cart-action-tile-icon {
    width: 2.65rem;
    height: 2.65rem;
  }

  .cart-action-tile-icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .cart-action-tile-label {
    font-size: 0.75rem;
    max-width: none;
    line-height: 1.25;
  }
}

.cart-action-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem 1rem 1.35rem;
  min-height: 6.5rem;
  margin: 0;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.85);
  cursor: pointer;
  font: inherit;
  text-align: center;
  color: hsl(var(--foreground));
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.65),
    0 2px 4px hsl(var(--secondary) / 0.04),
    0 12px 32px -8px hsl(var(--secondary) / 0.12);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease,
    background 0.3s ease;
}

/* Kolorowy pasek u góry + „plama” w rogu */
.cart-action-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(
    90deg,
    hsl(var(--primary)) 0%,
    hsl(28 90% 58%) 50%,
    hsl(var(--primary)) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.cart-action-tile--add-bikes {
  background-color: hsl(0 0% 100%);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, hsl(142 45% 45% / 0.14), transparent 55%),
    radial-gradient(ellipse 70% 60% at -10% 110%, hsl(var(--primary) / 0.08), transparent 50%),
    linear-gradient(168deg, hsl(142 35% 98%) 0%, hsl(0 0% 100%) 45%, hsl(var(--muted) / 0.5) 100%);
}

.cart-action-tile--add-bikes::before {
  background: linear-gradient(
    90deg,
    hsl(142 48% 38%) 0%,
    hsl(160 42% 42%) 35%,
    hsl(var(--primary)) 100%
  );
}

.cart-action-tile--change-date {
  background-color: hsl(0 0% 100%);
  background-image:
    radial-gradient(ellipse 110% 75% at 0% -15%, hsl(200 75% 52% / 0.12), transparent 52%),
    radial-gradient(ellipse 65% 55% at 105% 105%, hsl(var(--primary) / 0.12), transparent 48%),
    linear-gradient(168deg, hsl(200 60% 98%) 0%, hsl(0 0% 100%) 50%, hsl(var(--muted) / 0.55) 100%);
}

.cart-action-tile--change-date::before {
  background: linear-gradient(
    90deg,
    hsl(200 72% 48%) 0%,
    hsl(210 65% 52%) 40%,
    hsl(var(--primary)) 100%
  );
}

.cart-action-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, hsl(0 0% 100% / 0.55) 0%, transparent 38%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.cart-action-tile:hover {
  border-color: hsl(var(--primary) / 0.35);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.8),
    0 4px 12px hsl(var(--primary) / 0.12),
    0 20px 44px -12px hsl(var(--primary) / 0.28);
}

.cart-action-tile--add-bikes:hover {
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, hsl(142 45% 45% / 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at -10% 110%, hsl(var(--primary) / 0.12), transparent 50%),
    linear-gradient(168deg, hsl(142 38% 96%) 0%, hsl(0 0% 100%) 50%, hsl(var(--muted) / 0.65) 100%);
}

.cart-action-tile--change-date:hover {
  background-image:
    radial-gradient(ellipse 110% 75% at 0% -15%, hsl(200 75% 52% / 0.18), transparent 52%),
    radial-gradient(ellipse 65% 55% at 105% 105%, hsl(var(--primary) / 0.16), transparent 48%),
    linear-gradient(168deg, hsl(200 55% 96%) 0%, hsl(0 0% 100%) 52%, hsl(var(--muted) / 0.65) 100%);
}

.cart-action-tile:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

.cart-action-tile:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.5),
    0 2px 8px hsl(var(--secondary) / 0.08);
}

.cart-action-tile-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-action-tile:hover .cart-action-tile-icon {
  transform: scale(1.06);
}

.cart-action-tile--add-bikes .cart-action-tile-icon {
  color: hsl(142 48% 32%);
  background: linear-gradient(145deg, hsl(142 42% 94%) 0%, hsl(142 38% 88%) 100%);
  border: 1px solid hsl(142 35% 78%);
  box-shadow:
    0 4px 14px hsl(142 40% 40% / 0.15),
    inset 0 1px 0 hsl(0 0% 100% / 0.9);
}

.cart-action-tile--change-date .cart-action-tile-icon {
  color: hsl(200 70% 38%);
  background: linear-gradient(145deg, hsl(200 70% 96%) 0%, hsl(25 100% 97%) 100%);
  border: 1px solid hsl(200 45% 82%);
  box-shadow:
    0 4px 14px hsl(200 60% 45% / 0.12),
    inset 0 1px 0 hsl(0 0% 100% / 0.95);
}

.cart-action-tile-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  filter: drop-shadow(0 1px 2px hsl(0 0% 0% / 0.06));
}

.cart-action-tile-label {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 12rem;
  color: hsl(var(--secondary));
}

@media (prefers-reduced-motion: reduce) {
  .cart-action-tile,
  .cart-action-tile:hover,
  .cart-action-tile:active,
  .cart-action-tile:hover .cart-action-tile-icon {
    transform: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
}

/* Bikes Section */
.cart-bikes-section {
  /* Removed flex: 1 to prevent overlapping with accessories */
  display: flex;
  flex-direction: column;
}

.cart-bikes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Removed max-height to allow filling the column */
  overflow-y: visible;
  /* Scroll handled by column wrapper */
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.cart-empty-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-bike-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.2s;
}

.cart-bike-item:hover {
  background-color: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--primary) / 0.3);
}

.cart-bike-item.cart-bike-unavailable {
  background-color: hsl(var(--muted) / 0.2);
  border-color: hsl(var(--destructive) / 0.3);
}

.cart-bike-item.cart-bike-unavailable .cart-bike-image {
  filter: grayscale(100%);
  pointer-events: none;
  opacity: 0.5;
}

.cart-bike-item.cart-bike-unavailable .cart-bike-name,
.cart-bike-item.cart-bike-unavailable .cart-bike-price,
.cart-bike-item.cart-bike-unavailable .cart-bike-info {
  pointer-events: none;
  opacity: 0.5;
}

.cart-bike-item.cart-bike-unavailable .cart-bike-remove {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
  filter: none !important;
  color: hsl(var(--destructive)) !important;
}

.cart-bike-item.cart-bike-unavailable .cart-bike-remove:hover {
  background-color: hsl(var(--destructive) / 0.1) !important;
  opacity: 1 !important;
}

.cart-bike-item.cart-bike-unavailable .cart-bike-name,
.cart-bike-item.cart-bike-unavailable .cart-bike-price,
.cart-bike-item.cart-bike-unavailable .cart-bike-category,
.cart-bike-item.cart-bike-unavailable .cart-bike-height-line {
  color: hsl(var(--muted-foreground));
}

.cart-bike-unavailable-text {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin: 0.25rem 0 0 0;
  font-weight: 500;
}

.cart-bike-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cart-bike-image {
    width: 8rem;
    height: 8rem;
    border-radius: 0.75rem;
  }
}

.cart-bike-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-bike-name {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-bike-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin: 0;
  line-height: 1.3;
}

.cart-bike-height-line {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.35;
}

.cart-bike-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-bike-price {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.cart-bike-size-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background-color: rgba(34, 197, 94, 0.2);
  /* Półprzezroczysty zielony */
  border-radius: 0.5rem;
  min-width: 3.5rem;
  flex-shrink: 0;
}

/* Mobile version - smaller size badge and different layout */
@media (max-width: 767px) {
  .cart-bike-item {
    flex-wrap: wrap;
  }

  .cart-bike-info {
    width: 100%;
    order: 2;
  }

  .cart-bike-name {
    width: 100%;
  }

  .cart-bike-price-row {
    width: 100%;
    justify-content: space-between;
  }

  .cart-bike-size-badge {
    padding: 0.375rem 0.5rem;
    min-width: 2.5rem;
    order: 3;
  }

  .cart-bike-size-label {
    font-size: 0.5rem;
  }

  .cart-bike-size-value {
    font-size: 0.75rem;
  }

  .cart-bike-remove {
    order: 1;
    align-self: flex-start;
  }
}

.cart-bike-size-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(22, 163, 74, 0.9);
  /* Ciemniejszy zielony dla tekstu */
  text-transform: lowercase;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.cart-bike-size-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(22, 163, 74, 1);
  /* Ciemniejszy zielony dla wartości */
  line-height: 1;
}

.cart-bike-remove {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: hsl(var(--destructive));
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cart-bike-remove:hover {
  background-color: hsl(var(--destructive) / 0.1);
}

.cart-bike-remove svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Summary Section */
.cart-summary-section {
  padding: 1.25rem;
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cart-summary-row:last-child {
  margin-bottom: 0;
}

.cart-summary-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.cart-summary-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.cart-summary-divider {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 1rem 0;
}

.cart-summary-total .cart-summary-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.cart-summary-total .cart-summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* Modal Footer */
.cart-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
}

.cart-button-secondary,
.cart-button-primary {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cart-button-secondary {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.cart-button-secondary:hover {
  background-color: hsl(var(--muted) / 0.8);
}

.cart-button-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-button-primary:hover:not(.disabled) {
  background-color: hsl(var(--primary) / 0.85);
  box-shadow: 0 8px 16px -3px hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
}

.cart-button-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-button-icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 767px) {
  .cart-modal.cart-modal--inline {
    margin-top: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  .cart-modal.cart-modal--inline .cart-modal-content {
    max-height: none;
    height: auto;
    border-radius: 0;
    transform: none;
    box-shadow: none;
  }

  .cart-modal.cart-modal--inline.visible .cart-modal-content {
    transform: none;
  }

  .cart-modal.cart-modal--inline .cart-modal-footer {
    position: static;
    box-shadow: none;
  }

  .cart-modal.cart-modal--inline .cart-modal-body {
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
  }

  .cart-modal {
    padding: 0;
    align-items: flex-end;
  }

  .cart-modal-content {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
  }

  .cart-modal.visible .cart-modal-content {
    transform: translateY(0);
  }

  .cart-modal-header {
    padding: 1.25rem;
    flex-shrink: 0;
  }

  .cart-modal-body {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .cart-modal-footer {
    padding: 1rem;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background-color: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-direction: row !important;
    gap: 0.75rem;
    z-index: 10;
  }

  .cart-button-secondary,
  .cart-button-primary {
    flex: 1 !important;
    width: 50% !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .category-buttons {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .popover-content {
    left: 0;
    right: 0;
    transform: none;
    max-width: 100%;
  }

  .reservation-hero {
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    position: relative;
    left: 0;
    right: 0;
  }

  .hero-background {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-overlay {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-shapes {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-wave {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    position: absolute;
  }

  .hero-wave svg {
    width: 100% !important;
    max-width: 100% !important;
    height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
    outline: none !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
  }

  .filters-section {
    margin-top: -1px !important;
    border-top: none !important;
    outline: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
}

/* Cart Discount Section */
.cart-discount-section {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.cart-discount-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-discount-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.cart-discount-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsla(var(--primary), 0.2);
}

.cart-discount-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-discount-btn:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 8px -2px hsl(var(--primary) / 0.3);
}

.cart-discount-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-discount-message {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Validation Utilities */
.border-success {
  border-color: hsl(var(--success, 142 76% 36%)) !important;
}

.border-destructive {
  border-color: hsl(var(--destructive)) !important;
}

.text-success {
  color: hsl(var(--success, 142 76% 36%));
}

.text-destructive {
  color: hsl(var(--destructive));
}

/* Accessories in Cart */
.cart-accessories-section {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.cart-accessories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.accessory-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  transition: all 0.2s;
  height: 100%;
}

.accessory-tile:hover {
  border-color: hsl(var(--muted-foreground) / 0.5);
}

.accessory-tile.selected {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.accessory-info {
  margin-bottom: 0.75rem;
  text-align: center;
}

.accessory-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin-bottom: 0.25rem;
  text-align: center;
}

.accessory-price {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.accessory-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(var(--muted) / 0.5);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.accessory-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.accessory-btn:hover:not(:disabled) {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.accessory-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: transparent;
  border-color: transparent;
}

.accessory-quantity {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  width: 1.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .cart-accessories-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Rich Text Content Styling (from Quill) */
.rich-text-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.rich-text-content table td,
.rich-text-content table th {
  border: 1px solid hsl(var(--border));
  padding: 0.5rem;
  text-align: left;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.rich-text-content ul {
  list-style-type: disc;
}

.rich-text-content ol {
  list-style-type: decimal;
}

.rich-text-content h1 {
  font-size: 2em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}

.rich-text-content h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}

.rich-text-content h3 {
  font-size: 1.17em;
  font-weight: bold;
  margin: 1em 0 0.5em;
}

.rich-text-content blockquote {
  border-left: 4px solid hsl(var(--border));
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.rich-text-content p {
  margin-bottom: 0.5em;
}

/* ========================================
   Cookie Banner - półprzezroczysty box
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  /* Powyżej #mobileBottomBar (z-[9999]) i typowych belek dolnych */
  z-index: 10050;
  max-width: 360px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(1rem) scale(0.95);
  pointer-events: none;
}
.cookie-banner__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(210, 50, 30, 0.12);
}
.cookie-banner__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.08));
  border-radius: 0.625rem;
  color: hsl(var(--primary));
}
.cookie-banner__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.cookie-banner__content {
  flex: 1;
  min-width: 0;
}
.cookie-banner__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.9);
  margin: 0 0 0.75rem 0;
}
.cookie-banner__link {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.cookie-banner__link:hover {
  color: hsl(var(--primary) / 0.85);
}
.cookie-banner__btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.9));
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.4);
}
.cookie-banner__btn:active {
  transform: translateY(0);
}
@media (max-width: 480px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}