/* 고객 페이지 스타일 */

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
  --primary-color: #0c328a;
  --secondary-color: #333333;
  --accent-color: #0c328a;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #ffffff;
  --dark-color: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-100);
  font-weight: 500;
}

/* 카테고리 가로스크롤 쉐브론 힌트: 기본(데탑) 숨김 */
.category-scroll-hint {
  display: none;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, b, strong {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/* Bootstrap 오버라이드 - 모던 디자인 */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #c72020;
  box-shadow: 0 4px 8px rgba(12, 50, 138, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
}

/* 상품 목록 담기 버튼: 기본 회색, 호버·장바구니 담김 시 레드 */
#productGrid .product-card {
  overflow: visible;
}

#productGrid .btn-add-cart {
  position: relative;
  height: 32px;
  min-height: 32px;
  padding: 0 0.65rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-600);
  border: 1px solid var(--gray-500);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  overflow: visible;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#productGrid .btn-add-cart .btn-add-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  padding: 0 !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  border: 2px solid var(--gray-500);
  pointer-events: none;
  flex-shrink: 0;
}

#productGrid .btn-add-cart.is-in-cart .btn-add-cart-count {
  border-color: var(--primary-color);
}

#productGrid .btn-add-cart:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
}

#productGrid .btn-add-cart.is-in-cart {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
}

#productGrid .btn-add-cart.is-in-cart:hover {
  background-color: #c72020;
  border-color: #c72020;
}

/* 위험/중요 액션용 버튼 - 포인트 컬러 사용 */
.btn-danger {
  background-color: var(--accent-color);
  border: none;
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-danger:hover {
  background-color: #c72020;
  box-shadow: 0 4px 8px rgba(12, 50, 138, 0.25);
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(12, 50, 138, 0.15);
}

.text-danger {
  color: var(--accent-color) !important;
}

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

.text-dark {
  color: var(--dark-color) !important;
}

/* 가격 텍스트는 포인트 컬러로 강조 */
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.bg-danger {
  background-color: var(--accent-color) !important;
}

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

.bg-light {
  background-color: var(--light-color) !important;
}

.btn-outline-danger {
  color: var(--accent-color);
  border-color: var(--accent-color);
  font-weight: 500;
}

.btn-outline-danger:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--light-color);
}

.btn-outline-primary {
  color: var(--dark-color);
  border-color: var(--dark-color);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: var(--light-color);
}

.btn-outline-dark {
  color: var(--dark-color);
  border-color: var(--dark-color);
  font-weight: 500;
}

.btn-outline-dark:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: var(--light-color);
}

.btn-dark {
  background-color: var(--dark-color);
  border: none;
  font-weight: 500;
}

.btn-dark:hover {
  background-color: var(--gray-800);
}

.btn-light {
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 1px solid var(--gray-300);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

/* Navbar - 모던 미니멀 디자인 */
.navbar-dark {
  background-color: var(--light-color) !important;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-dark .navbar-brand {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-dark .navbar-brand:hover {
  color: var(--accent-color);
}

.navbar-dark .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.navbar-dark .nav-link:hover {
  color: var(--dark-color);
}

.navbar-dark .nav-link.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  background-color: transparent;
}

/* 네비게이션 */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

/* 배너 캐러셀 */
.banner-carousel {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* 모바일 홈: 배너 아래 빠른 버튼 박스 */
.mobile-quick-actions {
  margin: 0 auto 1rem;
}

.mobile-quick-actions-box {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.mobile-quick-action-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.mobile-quick-action-item i {
  font-size: 18px;
  line-height: 1;
}

.mobile-quick-action-item.is-products {
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  border-color: rgba(17, 24, 39, 0.18);
}
.mobile-quick-action-item.is-products i { color: #111827; }

.mobile-quick-action-item.is-reserve {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border-color: rgba(211, 47, 47, 0.22);
}
.mobile-quick-action-item.is-reserve i { color: #D32F2F; }

.mobile-quick-action-item.is-kakao {
  background: linear-gradient(135deg, #fff8cc 0%, #ffffff 100%);
  border-color: rgba(254, 229, 0, 0.55);
}
.mobile-quick-action-item.is-kakao i { color: #3C1E1E; }

.mobile-quick-action-item.is-channel {
  background: linear-gradient(135deg, #ffe7e7 0%, #ffffff 100%);
  border-color: rgba(211, 47, 47, 0.22);
}
.mobile-quick-action-item.is-channel i { color: #D32F2F; }

.mobile-quick-action-item:active {
  transform: translateY(1px);
}

.mobile-quick-action-item:hover {
  color: #111;
}

.mobile-quick-action-item:focus {
  outline: none;
}

.carousel-item {
  width: 100%;
  aspect-ratio: 4 / 1; /* 1000:250 ratio */
  background-color: var(--light-color);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.carousel-caption {
  bottom: 10%;
  text-align: left;
  left: 5%;
  right: 5%;
  z-index: 10;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.banner-description {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-btn {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .banner-carousel {
    margin-bottom: 1rem;
  }

  .carousel-item {
    aspect-ratio: 4 / 1;
  }
  .banner-title {
    font-size: 1.5rem;
  }
  .banner-description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .banner-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

/* 히어로 섹션 (기존 스타일 유지하되 캐러셀 없을 때만 사용) */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-800) 100%);
  color: var(--light-color);
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(12, 50, 138, 0.1) 100%);
  pointer-events: none;
}

.hero-section h1 {
  color: var(--light-color);
  font-weight: 700;
  letter-spacing: -1px;
}

/* 소식 피드 카드 */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.news-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

/* 모바일: Event/News는 제목만 노출(요약 숨김) */
@media (max-width: 768px) {
  .news-card .card-text {
    display: none;
  }
}

/* 상품 카드 */
.product-card {
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  background-color: var(--light-color);
  border-radius: 12px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--gray-300);
}

.product-image {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray-200);
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.product-category {
  background-color: var(--gray-800);
  color: var(--light-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 상품 상태 배지 */
.condition-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.condition-new {
  background-color: var(--success-color);
  color: white;
}

.condition-excellent {
  background-color: var(--gray-700);
  color: var(--light-color);
}

.condition-good {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.condition-fair {
  background-color: var(--gray-500);
  color: var(--light-color);
}

/* 카테고리 탭 */
#categoryTabs .nav-link {
  border: 1px solid var(--gray-300);
  border-radius: 24px;
  margin: 0 0.35rem;
  padding: 0.5rem 1.5rem;
  color: var(--gray-700);
  background-color: var(--light-color);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

#categoryTabs .nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

#categoryTabs .nav-link.active {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(12, 50, 138, 0.2);
}

#categoryTabs .nav-link i {
  margin-right: 0.5rem;
}

/* 수량 선택 */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  color: var(--gray-900);
  font-size: 0;
  line-height: 0;
  overflow: visible;
  vertical-align: middle;
}

.quantity-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px));
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  pointer-events: none;
}

.quantity-btn[data-qty-action='minus']::before {
  content: '-';
}

.quantity-btn[data-qty-action='plus']::before {
  content: '+';
}

.quantity-btn:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.quantity-input {
  width: 60px;
  height: 32px;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 0.25rem 5px;
  margin: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#productGrid .product-card .mt-auto > .d-flex.align-items-center {
  align-items: center !important;
}

#productGrid .quantity-selector .quantity-btn,
#productGrid .quantity-selector .quantity-input,
#productGrid .btn-add-cart {
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
}

#productGrid .product-card .d-flex.align-items-center > .quantity-selector {
  align-self: center;
}

#productGrid .quantity-btn::before {
  font-family: inherit;
}

/* 플로팅 장바구니 버튼 (채널톡 FAB와 정렬) */
.floating-cart {
  position: fixed;
  right: calc(20px + 70px + 12px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
}

.floating-cart .btn {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  background: var(--primary-color, #0c328a) !important;
  color: #fff !important;
}

.floating-cart .btn:active {
  transform: translateY(1px);
}

.floating-cart .btn i {
  font-size: 28px;
}

.floating-cart .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background-color: #111;
  color: #fff;
  border: 2px solid var(--primary-color, #0c328a);
}

/* 주문서 모달 */
.selected-product-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: var(--light-color);
  transition: all 0.2s ease;
}

.selected-product-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-300);
}

.selected-product-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

/* 주문 상태 배지 */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-rejected {
  background-color: #ffe0e0;
  color: var(--accent-color);
  border: 1px solid #ffcccc;
}

.status-in-rental {
  background-color: var(--gray-100);
  color: var(--dark-color);
  border: 1px solid var(--gray-300);
}

/* 로딩 스피너 */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-600);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  color: var(--gray-400);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem !important;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  /* 장비 리스트: 모바일 2컬럼 컴팩트 레이아웃 */
  #productGrid .product-card {
    margin-bottom: 0;
    overflow: visible;
  }

  #productGrid .product-image {
    height: 110px;
  }

  #productGrid .product-card .card-body {
    padding: 0.6rem;
  }

  #productGrid .product-card .card-title {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #productGrid .product-category {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0;
  }

  #productGrid .product-card .card-body > .mb-2 {
    margin-bottom: 0.35rem !important;
  }

  #productGrid .product-price {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.35rem;
  }

  #productGrid .product-card .card-body,
  #productGrid .product-card .mt-auto,
  #productGrid .product-card .d-flex.align-items-center {
    overflow: visible;
  }

  #productGrid .product-card .d-flex.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.4rem;
  }

  #productGrid .quantity-selector {
    justify-content: center;
    gap: 0.25rem;
    margin-right: 0 !important;
    align-items: center;
  }

  #productGrid .quantity-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0 !important;
  }

  #productGrid .quantity-btn::before {
    font-size: 1rem;
    transform: translate(calc(-50% + 1px), calc(-50% + 1px));
  }

  #productGrid .quantity-input {
    width: 40px;
    height: 28px;
    padding: 6px 0.15rem 4px;
    font-size: 0.8rem;
    line-height: 1;
  }

  #productGrid .quantity-selector .quantity-btn,
  #productGrid .quantity-selector .quantity-input,
  #productGrid .btn-add-cart {
    height: 28px;
    min-height: 28px;
  }

  #productGrid .product-card .btn-add-cart.btn-sm {
    height: 28px;
    min-height: 28px;
    font-size: 0.78rem;
    padding: 0 0.5rem;
    line-height: 1;
  }

}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }

  /* 헤더/액션 영역: 작은 화면에서 줄바꿈/오버플로우 방지 */
  .header-actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  /* 헤더 로그인/회원가입은 가로 정렬 유지 (전역 .d-flex.gap-3 모바일 규칙의 영향 차단) */
  .header-actions #loginNav.d-flex.gap-3 {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .header-search {
    width: auto;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 120px;
  }

  .header-search input {
    width: 100%;
    max-width: none;
    min-width: 0; /* flex item shrink 허용 */
  }

  /* 아이콘/드롭다운/로그인 영역은 줄어들지 않게 */
  .header-actions > a,
  .header-actions > .dropdown,
  .header-actions > #loginNav {
    flex: 0 0 auto;
  }

  /* 사용자 이름이 길면 한 줄 말줄임 */
  #userNav > a {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }

  /* input-group: 버튼 텍스트 줄 밀림 방지(모바일에서는 수직 스택 허용) */
  .input-group {
    flex-wrap: wrap;
  }

  .input-group > .form-control,
  .input-group > .form-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .input-group > .btn,
  .input-group > .input-group-text {
    flex: 1 1 auto;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* 모달: 내용이 많은 페이지에서 패딩/폭을 조금 더 타이트하게 */
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    max-width: 100%;
  }

  .modal-body {
    padding: 1rem;
  }

  /* 버튼: 아이콘/텍스트 정렬(줄 밀림 체감 완화) */
  .btn:not(.btn-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  /* action row: 모바일에서는 세로로 쌓기 */
  .d-flex.gap-2,
  .d-flex.gap-3 {
    flex-direction: column;
    align-items: stretch !important;
  }

  /* 예약 요약 패널: 전역 모바일 규칙 간섭 차단 */
  .floating-cart-panel-card .fcp-datetime-row {
    flex-direction: row !important;
    align-items: center !important;
  }

  .floating-cart-panel-card .fcp-item-controls {
    flex-direction: row !important;
    align-items: center !important;
  }

  /* 주문서(예약) 요약: 모바일에서는 sticky 비활성화 */
  .order-summary-card.sticky-top {
    position: static !important;
    top: auto !important;
  }

  /* 데스크탑 전용 sticky는 모바일에서 비활성화 */
  .order-summary-sticky-desktop {
    position: static !important;
    top: auto !important;
  }

  /* 상품 목록 카테고리 탭: 모바일에서는 가로 스크롤 */
  .category-tabs-wrap {
    margin-bottom: 0.75rem !important;
  }

  .category-tabs-scroll {
    position: relative;
    --category-tabs-pad-top: 4px;
    --category-tabs-pad-bottom: 6px;
    --category-pill-h: 36px; /* #categoryTabs .nav-link min-height와 맞춤 */
  }

  /* 좌/우 스크롤 힌트 (스크롤 위치에 따라 JS로 토글) */
  .category-scroll-hint {
    display: block;
    position: absolute;
    /* "메뉴(필)" 라인에 정확히 맞춰 정렬 */
    top: var(--category-tabs-pad-top);
    height: var(--category-pill-h);
    width: 34px;
    display: block;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease;
    background: transparent;
  }

  .category-scroll-hint.is-left {
    left: 0;
  }

  .category-scroll-hint.is-right {
    right: 0;
  }

  .category-scroll-hint i {
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: block;
    color: rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
  }

  .category-tabs-scroll.can-scroll-left .category-scroll-hint.is-left {
    opacity: 1;
  }

  .category-tabs-scroll.can-scroll-right .category-scroll-hint.is-right {
    opacity: 1;
  }

  #categoryTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: 4px;
    padding: 4px 24px 6px;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
    justify-content: flex-start !important; /* mobile에서는 왼쪽부터 */
  }

  #categoryTabs .nav-item {
    margin: 0;
    padding: 0;
  }

  /* 메뉴 자체가 사이드로 갈수록 100%→50% 투명해지도록 마스크 적용 */
  .category-tabs-scroll {
    --category-fade-w: 24px; /* 페이드 폭 */
  }

  .category-tabs-scroll.can-scroll-left.can-scroll-right #categoryTabs {
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 1) var(--category-fade-w),
      rgba(0, 0, 0, 1) calc(100% - var(--category-fade-w)),
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 1) var(--category-fade-w),
      rgba(0, 0, 0, 1) calc(100% - var(--category-fade-w)),
      rgba(0, 0, 0, 0) 100%
    );
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
  }

  .category-tabs-scroll.can-scroll-left:not(.can-scroll-right) #categoryTabs {
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 1) var(--category-fade-w),
      rgba(0, 0, 0, 1) 100%
    );
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 1) var(--category-fade-w),
      rgba(0, 0, 0, 1) 100%
    );
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
  }

  .category-tabs-scroll.can-scroll-right:not(.can-scroll-left) #categoryTabs {
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) calc(100% - var(--category-fade-w)),
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) calc(100% - var(--category-fade-w)),
      rgba(0, 0, 0, 0) 100%
    );
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
  }

  #categoryTabs .nav-link {
    white-space: nowrap;
    min-height: 36px;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
  }

  #categoryTabs .nav-link i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
  }

  /* 주문서 선택 상품: 모바일에서는 세로로 쌓아 버튼/수량 영역 밀림 방지 */
  .selected-product-item .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .selected-product-item .quantity-controls {
    display: flex;
    align-items: center;
  }
}

/* 메인: 영상제작/촬영외주 바로가기 배너 */
.production-outsourcing-banner {
  margin-bottom: 1.5rem;
}

.production-outsourcing-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f2e 0%, #2d1f3d 55%, #4a1942 100%);
  box-shadow: 0 10px 28px rgba(31, 31, 46, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.production-outsourcing-banner-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 31, 46, 0.28);
}

.production-outsourcing-banner-link:active {
  transform: translateY(0);
}

.production-outsourcing-banner-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.production-outsourcing-banner-inner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(12, 50, 138, 0.18);
  pointer-events: none;
  z-index: 0;
}

.production-outsourcing-banner-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
}

.production-outsourcing-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.production-outsourcing-banner-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 50, 138, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.production-outsourcing-banner-title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.production-outsourcing-banner-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.production-outsourcing-banner-cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #1f1f2e;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.production-outsourcing-banner-cta i {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .production-outsourcing-banner-inner {
    flex-wrap: wrap;
    padding: 1rem 1rem 0.9rem;
    gap: 0.75rem;
  }

  .production-outsourcing-banner-title {
    font-size: 1.1rem;
  }

  .production-outsourcing-banner-desc {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .production-outsourcing-banner-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.15rem;
  }
}

/* 주문서(예약) 요약: 데스크탑에서만 스크롤 따라가기 */
@media (min-width: 992px) {
  .order-summary-sticky-desktop {
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }

  /* Bootstrap sticky-top을 쓰는 경우에도 top/z-index 보정 */
  .order-summary-card.sticky-top {
    top: 20px;
    z-index: 1020;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 5px;
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* Featured Products 섹션 */
.featured-products-section {
  position: relative;
}

.featured-products-section .product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: white;
}

.featured-products-section .product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.featured-products-section .product-card:hover img {
  transform: scale(1.05);
}

.featured-products-section .product-card img {
  transition: transform 0.4s ease;
}

.featured-products-section .badge {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Featured Products 반응형 */
@media (max-width: 768px) {
  .featured-products-section h2 {
    font-size: 1.8rem !important;
  }
  
  .featured-products-section p {
    font-size: 1rem !important;
  }
}

/* 추가 유틸리티 클래스 */
.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.shadow-lg {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 모달 스타일 개선 */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
  border-radius: 12px 12px 0 0;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
  border-radius: 0 0 12px 12px;
}

/* 예약조회(예약보기) - 구분선/아웃라인 대비 강화 */
.reservation-lookup-page hr,
.reservation-lookup-page .dropdown-divider {
  opacity: 1 !important;
  border-top: 2px solid var(--gray-300) !important;
}

.reservation-lookup-page .list-group-item {
  border-color: var(--gray-400) !important;
}

/* 예약 상세 모달(예약보기) - 섹션 경계선 대비 강화 */
.reservation-lookup-page #orderDetailModal .modal-header {
  border-bottom: 2px solid var(--gray-300);
}

.reservation-lookup-page #orderDetailModal .p-3.bg-light.rounded {
  border: 1px solid var(--gray-400);
}

.reservation-lookup-page #orderDetailModal .border-top {
  border-top: 2px solid var(--gray-400) !important;
}

.reservation-lookup-page #orderDetailModal .list-group-item {
  border-color: var(--gray-400) !important;
}

/* 상품 선택 모달: 리스트 영역 확보 + 하단 버튼 항상 노출 */
#productSelectorModal .product-selector-grid {
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 담기 버튼 카운트 배지 */
#productSelectorModal #modalAddSelectedBtn {
  position: relative;
}

#productSelectorModal .modal-add-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--dark-color);
  color: var(--light-color);
  border: 2px solid var(--gray-50);
}

/* 상품 선택 모달: 선택 버튼(카드 폭 전체) */
#productSelectorModal .modal-select-wrap {
  width: 100%;
}

#productSelectorModal .modal-select-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#productSelectorModal .modal-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--light-color);
  color: var(--dark-color);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  gap: 0.6rem;
  line-height: 1.1;
  min-height: 36px;
}

#productSelectorModal .modal-select-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  position: relative;
  flex: 0 0 auto;
}

#productSelectorModal .modal-select-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
}

#productSelectorModal .modal-select-text {
  flex: 0 0 auto;
}

#productSelectorModal .modal-select-input:checked + .modal-select-btn {
  background: var(--dark-color);
  border-color: var(--dark-color);
  color: var(--light-color);
}

#productSelectorModal .modal-select-input:checked + .modal-select-btn .modal-select-check {
  border-color: var(--light-color);
}

#productSelectorModal .modal-select-input:checked + .modal-select-btn .modal-select-check::after {
  border-right-color: var(--light-color);
  border-bottom-color: var(--light-color);
}

/* 모바일 리스트: 카테고리/가격 2번째 줄 */
#productSelectorModal .modal-product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.2;
}

#productSelectorModal .modal-meta-sep {
  opacity: 0.6;
}

#productSelectorModal .modal-product-price {
  font-weight: 800;
  color: var(--primary-color);
}

/* 모달 리스트: 수량 + 선택(절반씩) */
#productSelectorModal .modal-actions-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#productSelectorModal .modal-actions-row .modal-qty,
#productSelectorModal .modal-actions-row .modal-select-wrap {
  flex: 1 1 0;
}

#productSelectorModal .modal-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--light-color);
  min-height: 36px;
  padding: 0.2rem 0.25rem;
}

#productSelectorModal .modal-qty-btn {
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--dark-color);
  font-weight: 900;
}

#productSelectorModal .modal-qty-value {
  font-weight: 900;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  /* 상단 필터 영역 높이 축소 */
  #productSelectorModal .product-selector-filters .mb-3 {
    margin-bottom: 0.5rem !important;
  }
  #productSelectorModal .product-selector-filters .form-label {
    display: none;
  }
  #productSelectorModal .product-selector-filters small.text-muted {
    display: none !important;
  }
  #productSelectorModal .product-selector-filters .form-control,
  #productSelectorModal .product-selector-filters .form-select {
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 576px) {
  /* 모바일: 모달을 화면 높이에 맞추고, 리스트는 내부 스크롤 */
  #productSelectorModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100dvh;
  }

  #productSelectorModal .modal-content {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
  }

  #productSelectorModal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 0.5rem 0.75rem;
  }

  #productSelectorModal .product-selector-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #productSelectorModal .product-selector-grid {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #productSelectorModal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background-color: var(--gray-50);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  /* 모바일: 닫기/담기 버튼 높이 축소 + 한 줄 배치 */
  #productSelectorModal .modal-footer .btn {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    line-height: 1.1;
    flex: 1 1 0;
  }

  /* 모바일에서는 검색 초기화 버튼 숨김 */
  #productSelectorModal .product-selector-reset-col {
    display: none !important;
  }

  /* 선택 버튼도 모바일에서 조금 더 컴팩트하게 */
  #productSelectorModal .modal-select-btn {
    padding: 0.5rem 0.75rem; /* footer 버튼과 높이 맞춤 */
  }
}

/* 폼 요소 스타일 개선 */
.form-control, .form-select {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--dark-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* 테이블 스타일 개선 */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background-color: var(--gray-100);
  border-bottom: 2px solid var(--gray-300);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: var(--gray-700);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* 카드 컴포넌트 개선 */
.card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
}

/* ============================================
   예약 요약 플로팅 패널 (fcp-*)
   ============================================ */

.floating-cart-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9997;
}

.floating-cart-panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-panel {
  position: fixed;
  right: calc(20px + 70px + 12px);
  bottom: calc(20px + 70px + 12px + env(safe-area-inset-bottom, 0px));
  width: 360px;
  max-width: calc(100vw - 40px);
  z-index: 9998;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.floating-cart-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cart-panel-card {
  --fcp-control-h: 32px;
  --fcp-radius: 6px;
  --fcp-section-gap: 0.875rem;
  --fcp-row-gap: 0.5rem;
  --fcp-title-size: 0.875rem;
  --fcp-body-size: 0.8125rem;
  border: none;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
}

.floating-cart-panel-card .fcp-header {
  padding: 0.625rem 0.875rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.floating-cart-panel-card .fcp-panel-title {
  font-size: var(--fcp-title-size);
  font-weight: 700;
}

.floating-cart-panel-card .fcp-body {
  padding: 0.75rem 0.875rem;
  overflow: auto;
}

.floating-cart-panel-card .fcp-section + .fcp-section {
  margin-top: var(--fcp-section-gap);
  padding-top: var(--fcp-section-gap);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.floating-cart-panel-card .fcp-section-title {
  font-size: var(--fcp-title-size);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.floating-cart-panel-card .fcp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.floating-cart-panel-card .fcp-text-muted {
  font-size: var(--fcp-body-size);
  color: var(--gray-600);
}

.floating-cart-panel-card .fcp-empty-state {
  padding: 1rem 0;
  font-size: var(--fcp-body-size);
}

.floating-cart-panel-card .fcp-control {
  height: var(--fcp-control-h);
  min-height: var(--fcp-control-h);
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
  border-radius: var(--fcp-radius);
  box-sizing: border-box;
}

.floating-cart-panel-card .fcp-icon-btn {
  width: var(--fcp-control-h);
  height: var(--fcp-control-h);
  min-width: var(--fcp-control-h);
  max-width: var(--fcp-control-h);
  min-height: var(--fcp-control-h);
  max-height: var(--fcp-control-h);
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
  font-size: var(--fcp-body-size);
}

.floating-cart-panel-card .fcp-icon-btn .fa-trash {
  font-size: 0.72rem;
}

.floating-cart-panel-card .fcp-action-btn {
  height: var(--fcp-control-h);
  min-height: var(--fcp-control-h);
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: var(--fcp-body-size);
  white-space: nowrap;
}

.floating-cart-panel-card .fcp-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0;
}

.floating-cart-panel-card .fcp-item-info {
  min-width: 0;
}

.floating-cart-panel-card .fcp-item-name {
  display: block;
  font-size: var(--fcp-body-size);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-cart-panel-card .fcp-item-meta {
  display: block;
  font-size: var(--fcp-body-size);
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-cart-panel-card .fcp-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.floating-cart-panel-card .fcp-item-qty {
  min-width: 1.25rem;
  text-align: center;
  font-size: var(--fcp-body-size);
  font-weight: 700;
  line-height: var(--fcp-control-h);
}

.floating-cart-panel-card .fcp-more-items {
  padding-top: 0.25rem;
  font-size: var(--fcp-body-size);
  color: var(--gray-600);
}

.floating-cart-panel-card .fcp-rental-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--fcp-row-gap);
}

.floating-cart-panel-card .fcp-field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--fcp-body-size);
  color: var(--gray-600);
}

.floating-cart-panel-card .fcp-datetime-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.floating-cart-panel-card .fcp-datetime-row .fcp-control:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.floating-cart-panel-card .fcp-time-select {
  flex: 0 0 110px;
  width: 110px;
  max-width: 110px;
}

.floating-cart-panel-card .fcp-rental-meta {
  margin-top: 0.25rem;
  font-size: var(--fcp-body-size);
}

.floating-cart-panel-card .fcp-notice {
  margin-bottom: 0.5rem;
}

.floating-cart-panel-card .fcp-checkbox {
  margin-bottom: 0.625rem;
}

.floating-cart-panel-card .fcp-checkbox-label {
  font-size: var(--fcp-body-size);
}

.floating-cart-panel-card .fcp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
  font-size: var(--fcp-body-size);
}

.floating-cart-panel-card .fcp-price-row--total {
  margin-bottom: 0.75rem;
  font-size: var(--fcp-title-size);
}

.floating-cart-panel-card .fcp-cta {
  display: grid;
}

.floating-cart-panel-card .fcp-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
}

body.modal-open .floating-cart-panel,
body.modal-open .floating-cart-panel-backdrop {
  display: none !important;
}

@media (min-width: 992px) {
  .floating-cart-panel-card {
    --fcp-control-h: 29px;
    height: auto;
    max-height: 70vh;
  }

  .floating-cart-panel-card .fcp-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

@media (max-width: 991px) {
  .floating-cart-panel-backdrop {
    background: rgba(0, 0, 0, 0.45);
  }

  .floating-cart-panel {
    inset: 0;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.25s ease, opacity 0.15s ease;
  }

  .floating-cart-panel.is-open {
    transform: translateY(0);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .floating-cart-panel-card {
    border-radius: 0;
    max-height: none;
    height: 100%;
    height: 100dvh;
    box-shadow: none;
    overflow: hidden;
  }

  .floating-cart-panel-card .fcp-header {
    padding: 14px 16px;
    flex-shrink: 0;
  }

  .floating-cart-panel-card .fcp-panel-title {
    font-size: 1rem;
  }

  .floating-cart-panel-card .fcp-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  html.floating-cart-panel-open,
  body.floating-cart-panel-open {
    overflow: hidden !important;
    height: 100%;
  }

  body.floating-cart-panel-open .floating-cart,
  body.floating-cart-panel-open .floating-talk-buttons {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .floating-cart-panel-card .btn:not(.btn-link) {
    gap: 0.35rem;
  }
}
