/* ==========================================================================
   components.css — 공통 UI 컴포넌트
   ========================================================================== */

/* ==========================================================================
   1. Section Title & List Nav
   ========================================================================== */
.section-title {
  color: #242424;
}
.section-title .breadcrumb-arrow {
  font-size: 1.25rem;
  position: relative;
  top: -2px;
  margin: 0 2px;
}
@media (max-width: 767px) {
  .section-title {
    font-size: 20px;
  }
  .section-title .breadcrumb-arrow {
    font-size: 1rem;
  }
}
.list-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ebebeb;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242424;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.list-nav-btn i {
  -webkit-text-stroke: 0.8px currentColor;
  display: flex;
}
.list-nav-btn:not(.swiper-button-disabled):hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.list-nav-btn.swiper-button-disabled {
  background-color: #fff;
  border-color: #f1f1f1;
  color: #ccc;
  cursor: default;
  pointer-events: none;
}
/* ==========================================================================
   2. Cards
   ========================================================================== */
.card-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 26px;
  overflow: hidden;
  background-color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  transition: transform 0.4s;
}
.design-card:hover .card-bg {
  transform: scale(1.1);
}
.card-img-box .card-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ebebeb;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #242424;
  z-index: 5;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.card-img-box .card-slide-btn i {
  -webkit-text-stroke: 0.8px currentColor;
  display: flex;
}
.card-img-box:hover .card-slide-btn {
  opacity: 1;
  visibility: visible;
}
.card-img-box:hover .card-slide-btn.swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
}
.card-img-box .card-slide-btn.prev { left: 10px; }
.card-img-box .card-slide-btn.next { right: 10px; }
/* Heart Icon */
.icon-heart {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  z-index: 10;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.icon-heart i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease;
}
.icon-heart .icon-border { color: #ffffff; z-index: 2; }
.icon-heart .icon-fill   { color: rgba(0, 0, 0, 0.5); z-index: 1; }
.icon-heart.active .icon-fill { color: rgba(255, 0, 255, 0.8); }
/* Badges */
.badge-discount {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(var(--primary-rgb), 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 0 0 16px;
  font-weight: 700;
  z-index: 10;
}
.badge-vendor {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 16px 0 0;
  z-index: 10;
}
.badge-distance {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--trip-color);
  color: #fff;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 10;
}
.card-title {
  color: #242424;
  font-size: 16px;
  font-weight: 500;
}
.card-cate {
  font-size: 12px;
  background-color: var(--stay-color);
  border-radius: 12px;
}
.item-basic-list {
  font-size: 14px;
  font-weight: 400;
  color: #242424;
}
.item-basic-list i {
  color: var(--trip-color);
  margin-right: 4px;
}
.item-notice {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}
.multi-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em;
}
/* ==========================================================================
   3. Map UI & Overlays
   ========================================================================== */
#nearMeMenu .offcanvas-body {
  display: block;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
#kakaoMap {
  width: 100% !important;
  height: 100% !important;
  background-color: #eee;
  z-index: 0;
}
.map-overlay-buttons {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 90%;
  max-width: 420px;
}
#nearCategoryGroup {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 50px !important;
}
.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 50;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.map-warning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.warning-box {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.warning-box .bi-exclamation-circle-fill { font-size: 2rem; }
.warning-box p { font-size: 16px; line-height: 1.5; }
.loading-box {
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}
.loading-box .spinner-border { width: 1.5rem; height: 1.5rem; }
.btn-near-cat {
  border: 1px solid transparent;
  font-size: 14px;
  border-radius: 50px;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  font-weight: 500;
}
.btn-near-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-near-cat.cat-all  { border-color: var(--primary-color); color: var(--primary-color); }
.btn-near-cat.cat-trip { border-color: var(--trip-color);    color: var(--trip-color);    }
.btn-near-cat.cat-stay { border-color: var(--stay-color);    color: var(--stay-color);    }
.btn-near-cat.cat-dish { border-color: var(--dish-color);    color: var(--dish-color);    }
.btn-near-cat.cat-all:hover,  .btn-near-cat.cat-all.active  { background-color: var(--primary-color); color: #fff; }
.btn-near-cat.cat-trip:hover, .btn-near-cat.cat-trip.active { background-color: var(--trip-color);    color: #fff; }
.btn-near-cat.cat-stay:hover, .btn-near-cat.cat-stay.active { background-color: var(--stay-color);    color: #fff; }
.btn-near-cat.cat-dish:hover, .btn-near-cat.cat-dish.active { background-color: var(--dish-color);    color: #fff; }
#mapMsg {
  z-index: 9999;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
#nearMeSwiper .card-img-box {
  height: 135px;
  border-radius: 0;
}
#nearMeSwiper .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
#nearMeSwiper .card-title { flex: 1; }
/* ==========================================================================
   4. Wishlist / Grid & Coupon
   ========================================================================== */
.wishlist-section {
  position: relative;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 576px) {
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1280px) {
  .wishlist-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.wishlist-login-icon        { font-size: 48px; opacity: 0.4; }
.wishlist-login-btn         { background-color: var(--primary-color); }
.wishlist-login-btn:hover   { background-color: #0099d6; color: #fff; }
.wishlist-section-title     { font-size: 18px; color: #242424; border-bottom: var(--bs-border-width) solid var(--bs-border-color); }
.wishlist-grid .design-card { min-width: 0; }
.empty-wishlist {
  background-color: #f8f9fa;
  border-radius: 20px;
  border: 1px dashed #d4d4d4;
  padding: 60px 20px;
}
.wishlist-empty-icon        { font-size: 36px; opacity: 0.5; }
.wishlist-empty-text        { font-size: 15px; }
.wishlist-spacer            { height: 60px; }
/* SweetAlert */
.alert-icon  { font-size: 11px; }
.swal2-icon  { font-size: 13px; }
.swal2-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 0; }
/* 지도 말풍선 */
.map-info-bubble {
  background-color: #fff;
  border: 1px solid var(--trip-color);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  bottom: 36px;
  z-index: 5 !important;
}
.map-info-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--trip-color);
}
/* 쿠폰함 리스트 그리드 */
#couponListWrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}
#couponListWrap .product-grid-item {
  width: 100%;
  min-width: 0;
  border-radius: 26px;
  background-color: #fff;
  overflow: hidden;
}
@media (max-width: 767px) {
  #couponListWrap { gap: 16px; }
}
/* 쿠폰 상세 뷰 */
#couponDetailContent .view-wrap        { padding-top: 1rem; padding-bottom: 4rem; }
#couponDetailContent .gallery-wrapper  { width: 100%; height: 546px; }
#couponDetailContent .cp-gallery-main  { width: 970px; height: 100%; flex-shrink: 0; }
#couponDetailContent .cp-gallery-main .swiper-pagination {
  position: absolute;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
#couponDetailContent .cp-gallery-main .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: #fff; opacity: 0.4;
  border-radius: 4px; transition: all 0.4s;
  margin: 0 !important;
}
#couponDetailContent .cp-gallery-main .swiper-pagination-bullet-active {
  width: 24px; opacity: 1;
}
#couponDetailContent .cp-gallery-thumbs {
  width: calc(100% - 960px - 20px);
  height: 100%;
  box-sizing: border-box;
}
#couponDetailContent .cp-gallery-thumbs .swiper-slide {
  height: calc((100% - 50px) / 6) !important;
  cursor: pointer;
}
#couponDetailContent .cp-gallery-thumbs .thumb-img {
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.5;
  filter: grayscale(30%);
}
#couponDetailContent .cp-gallery-thumbs .swiper-slide-thumb-active .thumb-img,
#couponDetailContent .cp-gallery-thumbs .swiper-slide:hover .thumb-img {
  border-color: var(--primary-color);
  opacity: 1;
  filter: grayscale(0%);
}
#cpDetailMap .map-info-bubble {
  padding: 6px 16px; font-size: 13px; font-weight: 700; color: #333;
  background-color: #fff; border: 1px solid var(--trip-color);
  border-radius: 20px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative; bottom: 45px; white-space: nowrap;
}
#cpDetailMap .map-info-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--trip-color);
}
/* ==========================================================================
   Detail Page — Shared Components (item.view.php & coupon.php 공통)
   ========================================================================== */
.alert {
  line-height: 1.6;
  font-weight: 500;
  border-radius: 12px !important;
  padding: 24px !important;
}
.detail-sections section { margin-bottom: 3rem; }
.detail-sections .text-secondary {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}
.detail-sections .facility-item .text-secondary { font-size: 14px !important; }
.section-head {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.view-img-box {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}
.view-img-box img { display: block; width: 100%; height: auto; border-radius: 0; }
.price-table th { background-color: #f8f9fa; font-weight: 600; font-size: 14px; color: #495057; }
.price-table td { font-size: 14px; }
.facility-simple-list .facility-icon { width: 24px; height: 24px; object-fit: contain; opacity: 0.8; }
.facility-simple-list .facility-text { font-size: 15px; color: #333; font-weight: 500; line-height: 1; }
.btn-circle-action {
  width: 34px;
  height: 34px;
  background-color: #f5f5f5 !important;
  transition: all 0.2s ease;
}
.btn-circle-action i { font-size: 14px; line-height: 1; }
.btn-circle-action:hover { background-color: #e0e0e0 !important; transform: translateY(-2px); }
.btn-circle-action .heart-icon { color: #ccc; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-circle-action:hover .heart-icon,
.btn-wishlist.active .heart-icon { color: #ff4081; transform: scale(1.1); }
.blog-review-item {
  display: flex;
  align-items: stretch;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.blog-review-item:hover { opacity: 0.7; }
.blog-review-item .blog-thumb {
  width: 120px; height: 120px;
  flex-shrink: 0; border-radius: 12px;
  overflow: hidden; background-color: #f0f0f0;
  margin-right: 20px;
}
.blog-review-item .blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-review-item .blog-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px; padding-bottom: 2px;
}
.blog-review-item .blog-title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 4px; margin-bottom: 6px; color: #222;
}
.blog-review-item .blog-desc {
  font-size: 14px; line-height: 1.5; color: #666;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 0;
}
.blog-review-item .blog-meta { font-size: 12px; color: #999 !important; margin-top: auto; margin-bottom: 4px; }
@media (max-width: 767px) {
  .blog-review-item .blog-thumb  { width: 100px; height: 100px; margin-right: 15px; }
  .blog-review-item .blog-title  { font-size: 15px; }
  .blog-review-item .blog-desc   { font-size: 13px; }
  .facility-simple-list .facility-text { font-size: 14px; }
}
/* 쿠폰 티켓 컴포넌트 */
.coupon-box {
  background-color: #fff8e1;
  border-radius: 16px;
  padding: 6px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.coupon-box::before,
.coupon-box::after {
  content: "";
  position: absolute;
  left: 106px;
  width: 24px; height: 24px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  border: none;
}
.coupon-box::before { top: -10px; }
.coupon-box::after  { bottom: -10px; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.05); }
.coupon-inner {
  border: 1px dashed var(--trip-color);
  border-radius: 12px;
  height: 100%;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #fff8e1;
}
.coupon-vertical-line {
  position: absolute;
  top: 0; bottom: 0; left: 100px;
  width: 0;
  border-left: 1px dashed rgba(255, 152, 0, 0.5);
  transform: translateX(-1px);
  z-index: 1;
}
.coupon-hor-line {
  width: 100%;
  border-top: 1px dashed #ccc;
  margin: 8px 0;
  opacity: 0.7;
}
.coupon-left,
.coupon-right { position: relative; z-index: 2; }
.coupon-left { width: 100px; }
.coupon-left .badge {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.coupon-right p.text-primary { letter-spacing: -0.5px; }
.coupon-right .fw-medium { font-size: 15px; }
/* Flatpickr 커스텀 */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--coupon-color) !important;
  border-color: var(--coupon-color) !important;
  color: #fff !important;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  background: #ffe6ff !important;
  border-color: #ffe6ff !important;
}
#cpDateRangeWrapper .flatpickr-calendar {
  position: absolute !important;
  top: 100% !important; left: 0 !important; right: 0 !important;
  transform: none !important;
  width: 100% !important; max-width: 100% !important;
  box-sizing: border-box;
  margin-top: 8px !important;
  border-radius: 14px !important;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f1f1 !important;
  z-index: 1050 !important;
}
.flatpickr-calendar.multiMonth { width: 100% !important; max-width: 100% !important; }
.flatpickr-calendar::before,
.flatpickr-calendar::after { display: none !important; }
.flatpickr-innerContainer,
.flatpickr-rContainer { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.flatpickr-weekdays,
.flatpickr-days { display: flex !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
@media (min-width: 768px) {
  .flatpickr-weekdays .flatpickr-weekdaycontainer,
  .flatpickr-days .dayContainer { width: 50% !important; min-width: 50% !important; max-width: 50% !important; }
}
@media (max-width: 767px) {
  .flatpickr-weekdays .flatpickr-weekdaycontainer,
  .flatpickr-days .dayContainer { width: 100% !important; min-width: 100% !important; max-width: 100% !important; }
}
.flatpickr-day {
  width: 14.285% !important; max-width: 14.285% !important;
  flex-basis: 14.285% !important;
  height: 46px !important; line-height: 46px !important;
  box-sizing: border-box;
}
.flatpickr-months .flatpickr-month { height: 50px; }
.flatpickr-current-month { padding-top: 15px; font-weight: 600; font-size: 110%; }
/* 쿠폰 미디어 쿼리 */
@media (max-width: 1399px) {
  #couponDetailContent .cp-gallery-main   { width: 75%; }
  #couponDetailContent .cp-gallery-thumbs { width: 25%; }
}
@media (min-width: 992px) {
  #couponDetailContent .cp-sticky-sidebar { position: sticky; top: 24px; z-index: 90; transition: top 0.3s ease; }
}
@media (max-width: 991px) {
  #couponDetailContent .gallery-wrapper   { height: 540px !important; margin-bottom: 30px !important; }
  #couponDetailContent .cp-gallery-main   { width: 100% !important; height: 100% !important; max-height: none !important; }
  #couponDetailContent .cp-gallery-thumbs { display: none !important; }
}
@media (max-width: 767px) {
  #couponDetailContent .gallery-wrapper {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    height: 360px !important;
    margin-bottom: 24px !important;
  }
  #couponDetailContent .cp-gallery-main { border-radius: 0 !important; box-shadow: none !important; }
  #couponDetailContent .cp-gallery-main .swiper-pagination { bottom: 20px !important; }
}
/* 타이머 */
.coupon-timer-font {
  font-variant-numeric: tabular-nums;
  font-family: monospace, sans-serif;
  letter-spacing: -2px;
}
.global-coupon-timer {
  position: absolute;
  top: 54px; right: 0;
  background-color: var(--stay-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 166, 147, 0.4);
  z-index: 1040;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}
.global-coupon-timer.show { opacity: 1; visibility: visible; transform: translateY(0); }
.global-coupon-timer .timer-label { font-size: 11px; font-weight: 500; margin-bottom: 2px; opacity: 0.9; letter-spacing: -0.5px; }
.global-coupon-timer .timer-time  { font-size: 18px; font-weight: 700; line-height: 1; }
@media (min-width: 992px) {
  .global-coupon-timer { padding: 12px 30px; border-radius: 36px; border-bottom-right-radius: 4px; }
  .global-coupon-timer .timer-label { font-size: 17px; margin-bottom: 3px; }
  .global-coupon-timer .timer-time  { font-size: 27px; }
}
/* PIN 키패드 */
.pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: #f1f3f5;
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
}
.pin-dot.filled { background-color: var(--coupon-color); border-color: var(--coupon-color); transform: scale(1.1); }
.pin-btn {
  width: 72px; height: 72px;
  border-radius: 50% !important;
  font-size: 28px !important; font-weight: 600 !important;
  display: flex; align-items: center; justify-content: center;
  border: none !important;
  color: #212529; background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease;
  margin: 0 auto;
}
.pin-btn:active { background-color: #e9ecef !important; transform: scale(0.92); box-shadow: none; }
.pin-display.pin-error { animation: pinShake 0.4s ease-in-out; }
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-10px); }
  40%, 80%  { transform: translateX(10px); }
}
/* 자동완성 드롭다운 */
.suggest-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 12px);
  right: 0; left: auto;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 15px 0;
  animation: fadeInDown 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.suggest-dropdown:empty { display: none; }
.suggest-scroll-box { max-height: 360px; overflow-y: auto; }
.suggest-scroll-box::-webkit-scrollbar       { width: 4px; }
.suggest-scroll-box::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 4px; }
.suggest-item {
  display: flex; align-items: center;
  padding: 12px 18px; font-size: 14px; color: #333;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
  outline: none; gap: 10px;
  white-space: nowrap; overflow: hidden;
}
.suggest-item::before {
  content: "\F52A";
  font-family: "bootstrap-icons";
  font-size: 13px; color: #bbb; flex-shrink: 0;
}
.suggest-item-text   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover,
.suggest-item:focus  { background-color: #f8f9fa; }
.suggest-item-sub    { font-size: 12px; color: #aaa; }
.suggest-item mark   { background: none; color: var(--primary-color); font-weight: 700; padding: 0; }
@media (max-width: 767px) {
  .suggest-dropdown { border-radius: 12px; width: 200px; right: 0; }
}
/* 검색 결과 없음 */
.search-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: #aaa;
  grid-column: 1 / -1; width: 100%;
}
.search-empty-state i { font-size: 48px; margin-bottom: 16px; color: #ccc; }
.search-empty-state p { font-size: 15px; line-height: 1.7; margin: 0; color: #888; }
/* 사용완료 워터마크 */
.product-grid-item.is-used { position: relative; }
.product-grid-item.is-used::after {
  content: "사용완료";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
  z-index: 10;
  border-radius: inherit;
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.product-grid-item.is-used .badge-discount {
  background-color: #6c757d !important;
  color: #fff !important;
  border-color: #6c757d !important;
}
/* ==========================================================================
   5. Detail Page Layout — item.view.php & story.view.php
   ========================================================================== */
.page-view .search-bar {
  display: none !important;
}
.page-view .view-wrap {
  width: 100%;
  padding-top: calc(var(--header-h-default) + 56px);
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: calc(var(--header-h-default) + 20px);
    z-index: 90;
    transition: top 0.3s ease;
  }
}
@media (max-width: 991px) {
  .page-view .view-wrap {
    padding-top: calc(var(--header-h-default) + 24px);
    padding-bottom: 8px;
  }
  .sticky-sidebar {
    position: static;
  }
}
@media (max-width: 767px) {
  .page-view .view-wrap {
    padding-top: calc(var(--header-h-scroll) + 24px);
    padding-bottom: 8px;
  }
}

/* ==========================================================================
   6. Mobile Floating Button Group
   ========================================================================== */
.floating-btn-group {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.floating-btn-group.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-btn {
  font-size: 14px !important;
  padding: 10px 18px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .floating-btn-group {
    display: none !important;
  }
}

/* ==========================================================================
   7. Share Modal
   ========================================================================== */
.share-icon-green {
  font-size: 22px !important;
  color: #2db400 !important;
}
.share-icon-blue {
  font-size: 22px !important;
  color: #0d6efd !important;
}

/* ==========================================================================
   8. Sub Page Common
   ========================================================================== */
.sub-page-title { font-size: 32px; letter-spacing: -1px; }

/* ==========================================================================
   9. Custom Utilities
   ========================================================================== */
.bg-cover-base {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.bg-cover-zminus {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
  z-index: -1;
}
