/* ============================================================
   QR 주문 메뉴 페이지 - 배달의민족 스타일
   ============================================================ */

/* ---- 페이지 배경 ---- */
#menuPage .page__content {
    background: #f5f5f5;
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* ============================================================
   상단 헤더
   ============================================================ */
.qr-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.qr-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.qr-header-store-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.qr-header-branch-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: #f2f2f2;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.qr-header-table-tag {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #FA3E3F;
    background: #FFF0F0;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.qr-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qr-header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #333;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.qr-header-btn:active {
    background: #f5f5f5;
}

.qr-cart-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.qr-cart-cnt {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #FA3E3F;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}

/* ============================================================
   히어로 이미지
   ============================================================ */
.qr-hero {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #d0d0d0;
}

.qr-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   섹션 탭 (상품 | 가게정보)
   ============================================================ */
.qr-sec-tabs {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 190;
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.qr-sec-tab {
    flex: 1;
    height: 46px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.2px;
}

.qr-sec-tab.active {
    color: #FA3E3F;
    border-bottom-color: #FA3E3F;
}

/* ============================================================
   카테고리 칩 바
   ============================================================ */
.qr-cat-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 96px; /* 50px header + 46px sec-tabs */
    z-index: 180;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.qr-cat-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 14px;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.qr-cat-scroll::-webkit-scrollbar {
    display: none;
}

.qr-cat-chip {
    flex-shrink: 0;
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.qr-cat-chip.active {
    background: #FA3E3F;
    border-color: #FA3E3F;
    color: #fff;
    font-weight: 700;
}

/* ============================================================
   상품 목록
   ============================================================ */
.qr-prd-list {
    background: #fff;
    margin-top: 8px;
}

/* ── 카테고리 섹션 타이틀 (scroll spy) ── */
.qr-cat-section-title {
    padding: 14px 16px 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    border-top: 8px solid #f5f5f5;
}
.qr-cat-section:first-child .qr-cat-section-title {
    border-top: none;
}

.qr-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}
.qr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top-color: #2ac1bc;
    border-radius: 50%;
    animation: qrSpin 0.7s linear infinite;
}
@keyframes qrSpin {
    to { transform: rotate(360deg); }
}

.qr-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
    color: #bbb;
    gap: 10px;
}

.qr-no-data img {
    width: 52px;
    opacity: 0.45;
}

.qr-no-data span {
    font-size: 14px;
    color: #bbb;
}

/* ---- 상품 카드 ---- */
.qr-prd-item {
    display: flex;
    align-items: center;
    padding: 16px 14px;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    gap: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.08s;
}

.qr-prd-item:active {
    background: #fafafa;
}

.qr-prd-item.st_none {
    opacity: 0.55;
}

/* ---- 상품 이미지 ---- */
.qr-prd-thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.qr-prd-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 다중 이미지 배지 */
.qr-prd-multi-img {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
    line-height: 1.4;
    pointer-events: none;
}

.qr-sold-out {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

/* ---- 상품 정보 ---- */
.qr-prd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qr-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1px;
}

.qr-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 3px;
    line-height: 18px;
}

.qr-badge-tag {
    background: #FFF0F0;
    color: #FA3E3F;
}

.qr-badge-new {
    background: #FA3E3F;
    color: #fff;
}

.qr-badge-hot {
    background: #FF6B00;
    color: #fff;
}

.qr-prd-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.qr-prd-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.qr-prd-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 3px;
}

.qr-prd-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.qr-ori-price {
    font-size: 12px;
    color: #c0c0c0;
    text-decoration: line-through;
}

.qr-sale-rate {
    font-size: 12px;
    color: #FA3E3F;
    font-weight: 600;
}

/* ---- 추가 버튼 ---- */
.qr-prd-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FA3E3F;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(250,62,63,0.30);
    transition: opacity 0.12s, transform 0.12s;
    padding: 0 0 2px 0;
    -webkit-tap-highlight-color: transparent;
}

.qr-add-btn:active {
    opacity: 0.75;
    transform: scale(0.93);
}

.qr-add-btn.disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ============================================================
   가게정보 섹션
   ============================================================ */
.qr-store-info-wrap {
    background: #fff;
    margin-top: 8px;
    padding: 20px 16px 30px;
}

.qr-info-section {
    margin-bottom: 24px;
}

.qr-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.3px;
}

.qr-info-row {
    display: flex;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #fafafa;
}

.qr-info-label {
    width: 68px;
    flex-shrink: 0;
    color: #aaa;
    font-weight: 500;
}

.qr-info-value {
    flex: 1;
    color: #333;
    line-height: 1.55;
    word-break: break-all;
}

.qr-info-value a {
    color: #FA3E3F;
    text-decoration: none;
}

/* 지점명 소형 태그 */
.qr-info-branch-tag {
    display: inline-block;
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 지도 영역 */
.qr-map-wrap {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.qr-map-iframe {
    display: block;
    width: 100%;
    height: 200px;
    border: none;
}

.qr-map-btns {
    display: flex;
    gap: 1px;
    background: #eee;
}

.qr-map-btn {
    flex: 1;
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.qr-map-btn.kakao { color: #3C1E1E; }
.qr-map-btn.naver { color: #03C75A; }

/* ============================================================
   리뷰 섹션
   ============================================================ */

/* 리뷰통계 */
.qr-review-stats {
    background: #fff;
    margin-top: 8px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.qr-review-stats-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 12px;
}

.qr-stats-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-stats-num {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.qr-stats-star {
    font-size: 22px;
    color: #FFC200;
}

.qr-stats-cnt {
    font-size: 13px;
    color: #999;
    margin-left: 2px;
}

/* 사장님 공지 */
.qr-notice-wrap {
    background: #fff;
    margin-top: 8px;
    padding: 20px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.qr-notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.qr-notice-body {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.qr-notice-body p {
    margin: 0 0 4px 0;
}

/* 리뷰 목록 섹션 헤더 */
.qr-review-section {
    background: #fff;
    margin-top: 8px;
}

.qr-review-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 18px 16px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.qr-review-list {
    background: #fff;
}

/* 개별 리뷰 카드 */
.qr-review-item {
    padding: 16px 16px 14px;
    border-bottom: 1px solid #f2f2f2;
}

.qr-review-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.qr-review-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    overflow: hidden;
}

.qr-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-review-meta {
    flex: 1;
    min-width: 0;
}

.qr-review-nick {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.qr-review-date {
    display: block;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 4px;
}

.qr-review-stars {
    display: flex;
    gap: 2px;
}

.qr-review-stars .fa {
    font-size: 12px;
    color: #FFC200;
}

.qr-review-stars .fa-star-o {
    color: #ddd;
}

.qr-review-report {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 11px;
    color: #bbb;
    cursor: pointer;
    padding: 2px 0;
    -webkit-tap-highlight-color: transparent;
    align-self: flex-start;
    margin-top: 2px;
}

.qr-review-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-all;
}

/* 리뷰 이미지 */
.qr-review-imgs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qr-review-imgs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* ============================================================
   검색 오버레이
   ============================================================ */
.qr-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.qr-search-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
    gap: 8px;
    flex-shrink: 0;
    min-height: 54px;
}

.qr-search-icon {
    color: #aaa;
    font-size: 16px;
}

.qr-search-input {
    flex: 1;
    height: 40px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #222;
    background: none;
    -webkit-appearance: none;
}

.qr-search-input::placeholder {
    color: #bbb;
}

.qr-search-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 6px;
    -webkit-tap-highlight-color: transparent;
}

.qr-search-results {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
    padding-top: 8px;
}

.qr-search-results .qr-prd-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* ---- 상품 상세 팝업 ---- */
#detailViewPopup .modal__content {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.qr-popup-wrap {
    display: flex;
    flex-direction: column;
    height: 90vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    position: relative;
    color: #1a1a1a;
}
.qr-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    border: none;
    color: #fff;
    font-size: 16px;
    z-index: 10;
    cursor: pointer;
}
.qr-popup-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.qr-popup-img-wrap {
    width: 100%;
    height: 220px;
    background: #eee;
    overflow: hidden;
    position: relative;
}
.qr-popup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}
/* 네이티브 스와이프 슬라이더 */
.qr-img-slider {
    display: flex;
    width: 100%;
    height: 220px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.qr-img-slider::-webkit-scrollbar { display: none; }
.qr-img-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 220px;
    scroll-snap-align: start;
    overflow: hidden;
    background: #f5f5f5;
}
.qr-img-slide img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}
.qr-img-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}
.qr-img-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s;
}
.qr-img-dot.active { background: #fff; }
.qr-popup-info {
    padding: 16px 16px 8px;
}
.qr-popup-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.qr-popup-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}
.qr-popup-price {
    font-size: 16px;
    font-weight: 700;
    color: #FA3E3F;
}
/* 옵션 그룹 */
.qr-popup-options {
    padding: 0 16px 16px;
    text-align: left;
    color: #1a1a1a;
}
.qr-opt-group {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}
.qr-opt-group-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
}
.qr-opt-required {
    background: #FA3E3F;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.qr-opt-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    line-height: 1;
}
.qr-opt-item span {
    flex: 1;
    text-align: left;
    line-height: 1.4;
    align-self: center;
}
.qr-opt-radio, .qr-opt-check {
    accent-color: #FA3E3F;
    width: 18px; height: 18px;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    vertical-align: middle;
}
/* 필수 옵션 미선택 경고 */
.qr-opt-group.opt-error .qr-opt-group-title {
    color: #FA3E3F;
}
.qr-opt-group.opt-error {
    background: #fff5f5;
    border-radius: 8px;
    padding: 10px 10px 4px;
    margin-top: 4px;
    border-top: none;
    outline: 1px solid #FA3E3F;
}
.qr-opt-error-msg {
    font-size: 11px;
    color: #FA3E3F;
    margin-top: 2px;
    margin-bottom: 4px;
}
/* 가격 옵션 그룹 스타일 */
.qr-opt-price-tag {
    background: #0d6efd;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
/* .viewModal label { display: block } 규칙보다 높은 specificity로 override */
.viewModal .qr-opt-price-item {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.viewModal .qr-opt-price-item:last-child {
    border-bottom: none;
}
.viewModal .qr-opt-price-item input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #FA3E3F;
    margin: 0 10px 0 0;
    cursor: pointer;
}
.viewModal .qr-opt-price-nm {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    flex: 1;
    min-width: 0;
}
.viewModal .qr-opt-price-val {
    font-size: 15px;
    font-weight: 700;
    color: #FA3E3F;
    white-space: nowrap;
    padding-left: 12px;
}
/* 팝업 하단 */
.qr-popup-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.qr-popup-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 12px;
}
.qr-popup-minus, .qr-popup-plus {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333 !important;
    line-height: 1;
    padding: 0 4px;
}
.qr-popup-qty-num {
    font-size: 15px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: #222 !important;
    display: inline-block;
}
.qr-popup-cart-btn {
    flex: 1;
    padding: 12px;
    background: #FA3E3F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   리뷰 섹션
   ============================================================ */

/* 리뷰 통계 */
.qr-review-stat {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
}
.qr-review-stat-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}
.qr-review-empty-stat {
    color: #aaa;
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
}
.qr-stat-avg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.qr-stat-avg-num {
    font-size: 32px;
    font-weight: 800;
    color: #222;
}
.qr-stat-avg-star { color: #FA3E3F; font-size: 16px; }
.qr-stat-total    { font-size: 13px; color: #999; }
.qr-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.qr-stat-label {
    font-size: 12px;
    color: #666;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}
.qr-stat-bar-wrap {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}
.qr-stat-bar {
    height: 100%;
    background: #FA3E3F;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.qr-stat-cnt {
    font-size: 12px;
    color: #999;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

/* 사장님 공지 */
.qr-notice-wrap {
    background: #fff8e1;
    border-left: 3px solid #FFC107;
    padding: 14px 16px;
    margin-bottom: 8px;
}
.qr-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 8px;
}
.qr-notice-body {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* 리뷰 작성 폼 */
.qr-review-write-wrap {
    background: #fff;
    padding: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.qr-review-write-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.qr-review-star-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.qr-write-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s;
}
.qr-write-star.active { color: #FA3E3F; }
.qr-review-nick-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
    outline: none;
}
.qr-review-text-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    resize: none;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
    line-height: 1.6;
}
.qr-review-submit-btn {
    width: 100%;
    padding: 12px;
    background: #FA3E3F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ── 사진 업로드 ── */
.qr-photo-upload-area {
    margin-bottom: 12px;
}
.qr-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.qr-photo-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}
.qr-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qr-photo-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.qr-photo-add-btn {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.qr-photo-add-btn i {
    font-size: 20px;
}
.qr-photo-hint {
    font-size: 11px;
    color: #bbb;
}

/* ── 주문자만 작성 가능 안내 ── */
.qr-no-order-review-msg {
    margin: 0 16px 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
    text-align: center;
}
.qr-no-order-review-msg .fa {
    margin-right: 5px;
    color: #ccc;
}

/* ── 리뷰 필터 바 ── */
.qr-review-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 8px;
}
.qr-review-filter-bar-text {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}
.qr-review-filter-btns {
    display: flex;
    gap: 6px;
}
.qr-rv-filter {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.qr-rv-filter.active {
    border-color: #FA3E3F;
    background: #FA3E3F;
    color: #fff;
    font-weight: 600;
}

/* ── 버튼 로딩 상태 ── */
.qr-btn-submitting {
    opacity: 0.72;
    pointer-events: none;
    position: relative;
}
.qr-btn-submitting::after {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qrSpin 0.6s linear infinite;
    margin-left: 7px;
    vertical-align: middle;
}
@keyframes qrSpin {
    to { transform: rotate(360deg); }
}

/* ── 업로드 진행바 ── */
.qr-upload-progress {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
}
.qr-upload-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #e65100;
    font-weight: 600;
    margin-bottom: 6px;
}
.qr-progress-track {
    height: 6px;
    background: #ffe0b2;
    border-radius: 4px;
    overflow: hidden;
}
.qr-progress-fill {
    height: 100%;
    background: #FA3E3F;
    border-radius: 4px;
    width: 0%;
    transition: width 0.15s ease;
}

/* 리뷰 아이템 */
.qr-review-list { background: #fff; }
.qr-review-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f4;
}
.qr-review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.qr-review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    color: #bbb;
    font-size: 16px;
    flex-shrink: 0;
}
.qr-review-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qr-review-nick {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.qr-review-date {
    font-size: 11px;
    color: #aaa;
}
.qr-review-stars { color: #FA3E3F; font-size: 12px; }
.qr-review-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}
.qr-review-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.qr-review-imgs img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   통화 선택 바
   ============================================================ */
#currencySelector {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;         /* .qr-header 높이와 동일 */
    z-index: 195;      /* sec-tabs(190)보다 위 */
}
#currencyBtnWrap::-webkit-scrollbar { display: none; }

.qr-currency-btn {
    flex-shrink: 0;
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}
.qr-currency-btn.active {
    background: #2ac1bc;
    border-color: #2ac1bc;
    color: #fff;
}

/* sec-tabs top 값: 헤더 50 + 통화 선택 바가 보일 때 추가 46px → JS로 동적 조정 */

/* ---- 두플 브랜드 푸터 ---- */
.qr-dople-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 0 10px;
    opacity: 0.35;
}
.qr-dople-footer-text {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.3px;
}
.qr-dople-footer-logo {
    height: 16px;
    width: auto;
    display: block;
}

/* ============================================================
   Pull to Refresh
   ============================================================ */
#qrPullHook {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.qr-pull-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}
.qr-pull-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}
.qr-pull-text {
    font-weight: 500;
}
