/* Store Global Variables & Reset */
:root {
    --st-primary: #f36f21;
    --st-primary-dark: #d95a12;
    --st-primary-light: rgba(243, 111, 33, 0.08);
    --st-bg-light: #f8f9fa;
    --st-border-color: #e9ecef;
    --st-text-main: #212529;
    --st-text-muted: #6c757d;
    --st-text-light: #adb5bd;
    --st-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --st-shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --st-shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --st-radius: 16px;
}

.store-filter-wrap, .store-filter-wrap * { box-sizing: border-box !important; }

/* Store Filter Styles - Modern Refinement */
.store-filter-wrap { 
    margin-bottom: 30px; 
    padding: 20px; 
    background: #fff; 
    border: 1px solid var(--st-border-color); 
    border-radius: 12px;
    box-shadow: var(--st-shadow-sm);
}
.store-filter { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.filter-row { display: flex; gap: 8px; width: 100%; align-items: stretch; }

.st-select--custom, .st-input--custom { 
    display: block; width: 100%; height: 42px; padding: 0 14px; 
    background-color: #f8f9fa; border: 1px solid #dee2e6 !important; 
    border-radius: 8px !important;
    font-size: 14px; color: var(--st-text-main); transition: all 0.2s ease; outline: none;
    appearance: none !important; -webkit-appearance: none !important;
}
.st-select--custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 45px;
}
.st-select--custom:focus, .st-input--custom:focus { 
    border-color: var(--st-primary) !important; 
    background-color: #fff; 
    box-shadow: 0 0 0 4px var(--st-primary-light) !important; 
}

.filter-row--selects .filter-item { flex: 1; min-width: 0; }
.filter-row--search .filter-item--input { flex: 1; min-width: 0; }
.filter-row--search .filter-item--buttons { display: flex; gap: 8px; }

.bt-st-submit, .bt-st-reset {
    height: 42px; padding: 0 20px; border-radius: 8px !important; font-weight: 700; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap; transition: all 0.2s ease; border: none; cursor: pointer;
}
.bt-st-submit { background-color: var(--st-primary); color: #fff; min-width: 100px; }
.bt-st-submit:hover { background-color: var(--st-primary-dark); box-shadow: 0 4px 12px rgba(243, 111, 33, 0.2); }
.bt-st-reset { background-color: #f1f3f5; color: var(--st-text-muted); min-width: 80px; }
.bt-st-reset:hover { background-color: #e9ecef; }

/* Store Webzine Layout */
.list-document--webzine { margin-top: 30px; }
.store-webzine { 
    display: flex; 
    flex-direction: column;
    gap: 20px; 
    list-style: none; padding: 0; margin: 0; 
}

/* Pi Payment Icon */
.icon-pi { color: #6c5ce7; }
.pi-payment-value { font-weight: 600; color: #6c5ce7; }

/* Extra Vars Style */
.store-info-table th, .store-info-table td, .ae-extra th, .ae-extra td { 
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif !important; 
}

.store-read-wrap * {
    font-family: inherit !important;
}

.store-read-wrap i, 
.store-read-wrap svg,
.store-read-wrap .fas,
.store-read-wrap .far,
.store-read-wrap .fa-stack {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", FontAwesome !important;
}

/* Store Webzine Item */
.store-item { 
    background: #fff; 
    border: 1px solid var(--st-border-color); 
    border-radius: var(--st-radius); 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    position: relative;
}
.store-item:hover { 
    transform: translateX(5px); 
    box-shadow: var(--st-shadow-md); 
    border-color: var(--st-primary);
}

.item-image { 
    position: relative; 
    width: 220px; 
    min-width: 220px;
    aspect-ratio: 4 / 3; 
    overflow: hidden; display: block; background: #f1f3f5; 
}
.item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.store-item:hover .item-image img { transform: scale(1.1); }

.item-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; z-index: 10; }
.item-badges .badge { 
    padding: 3px 8px; border-radius: 4px; font-size: 9px; font-weight: 800; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-transform: uppercase;
}
.badge--loc { background: rgba(243, 111, 33, 0.05); color: var(--st-primary); border: 1px solid var(--st-primary); }
.badge--cat { background: rgba(33, 37, 41, 0.05); color: #212529; border: 1px solid #212529; }

.item-body { padding: 18px 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; justify-content: center; }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 10px; }
.title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--st-text-main); }
.item-title a { color: inherit; text-decoration: none; }

.item-rating { 
    display: flex; align-items: center; gap: 4px; color: var(--st-primary); 
    font-weight: 800; font-size: 13px; background: var(--st-primary-light); 
    padding: 2px 6px; border-radius: 4px; 
}

.item-meta { font-size: 12px; color: var(--st-text-light); white-space: nowrap; }
.item-meta span { display: flex; align-items: center; gap: 4px; }

.item-info { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.info-item { 
    margin: 0; font-size: 13px; color: var(--st-text-muted); 
    display: flex; align-items: center; gap: 6px; 
}

.break-time-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f1f3f5; border: 1px solid var(--st-border-color);
    padding: 2px 8px; border-radius: 4px;
}
.break-time-badge .bt-label { font-size: 9px; font-weight: 900; color: var(--st-text-muted); letter-spacing: 0.3px; }
.break-time-badge .bt-value { font-size: 11px; font-weight: 700; color: var(--st-primary); }
.info-item i { 
    color: var(--st-primary); font-size: 14px;
    display: flex; justify-content: center; align-items: center;
}

.item-footer { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    padding-top: 12px; border-top: 1px solid var(--st-bg-light);
    gap: 15px;
}
.item-summary { 
    margin: 0; font-size: 14px; color: var(--st-text-muted); 
    line-height: 1.6; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.bt-more { 
    font-size: 14px; font-weight: 800; color: var(--st-primary); 
    text-decoration: none; display: flex; align-items: center; gap: 6px; 
    white-space: nowrap; padding-bottom: 2px;
}

/* Store Read - Premium Detail View */
.store-read-wrap { 
    margin-bottom: 30px; 
    margin-top: 0; 
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
}
.store-hero { display: none; }

.store-info-card { 
    position: relative; z-index: 2; margin: 0; 
    background: transparent; border-radius: 0; padding: 0 0 30px 0; 
    box-shadow: none; border: none; 
}
.store-header { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; margin-bottom: 30px; border-bottom: 2px solid var(--st-bg-light); padding-bottom: 20px; }
.store-title-group { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.store-top-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 15px; width: 100%; margin-bottom: 15px; flex-wrap: nowrap; }
.store-name-row { display: flex; align-items: center; gap: 15px; width: 100%; }
.ae-ctrl--store { display: flex; flex-direction: row; gap: 8px; margin-left: auto; flex-shrink: 0; }
.ae-ctrl--store .lemon-style2 { 
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--st-bg-light); border-radius: 6px; color: var(--st-text-muted); font-size: 13px;
}
.ae-ctrl--store .lemon-style2:hover { background: var(--st-primary-light); color: var(--st-primary); }
.store-badges { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; margin-top: -40px; }
.store-badges .badge-group { display: flex; gap: 8px; flex-wrap: wrap; }
.store-badges .badge { 
    padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; 
    box-shadow: none; border: 1px solid rgba(0,0,0,0.05);
}
.store-name { margin: 0; font-size: 36px; font-weight: 800; color: var(--st-text-main); letter-spacing: -0.5px; }
.store-rating { 
    display: flex; align-items: center; gap: 8px; font-size: 24px; 
    font-weight: 800; color: var(--st-primary); 
    background: var(--st-primary-light); padding: 12px 20px; border-radius: 16px; 
}

/* Store Info Table Styles */
.store-info-table-wrap {
    margin-bottom: 40px;
}
.store-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.store-info-table tr th,
.store-info-table tr td {
    padding: 18px 0;
    border-bottom: 1px solid var(--st-border-color);
}
.store-info-table tr:last-child th,
.store-info-table tr:last-child td {
    border-bottom: none;
}
.store-info-table th {
    width: 120px;
    text-align: left;
    vertical-align: middle;
    color: var(--st-primary);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    font-family: inherit !important;
}
.store-info-table th i {
    width: 20px;
    margin-right: 5px;
    font-size: 14px;
}
.store-info-table td {
    color: var(--st-text-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    vertical-align: middle;
    font-family: inherit !important;
}
.store-info-table .value-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
    min-height: 24px;
}
.store-info-table .tel-link {
    color: var(--st-text-main);
    text-decoration: none;
}
.store-info-table .tel-link:hover {
    color: var(--st-primary);
}

.time-main { flex-shrink: 0; }
.break-time-badge {
    background: #fff; border: 1px solid var(--st-border-color); padding: 4px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 8px;
}
.break-time-badge .bt-label { font-size: 10px; font-weight: 900; color: var(--st-text-muted); letter-spacing: 0.3px; }
.break-time-badge .bt-value { font-size: 13px; font-weight: 700; color: var(--st-primary); }

.closed-day-badge {
    background: #fff5f5; border: 1px solid #ffa8a8; padding: 4px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 8px;
}
.closed-day-badge .cd-label { font-size: 10px; font-weight: 900; color: #ff6b6b; letter-spacing: 0.3px; }
.closed-day-badge .cd-value { font-size: 13px; font-weight: 700; color: #fa5252; }

/* Copy Button Animation */
.bt-copy {
    background: #e9ecef; border: none; color: var(--st-text-muted); 
    cursor: pointer; padding: 4px 8px; border-radius: 6px;
    transition: all 0.2s; font-size: 13px; display: inline-flex; 
    align-items: center; gap: 4px; vertical-align: middle;
}
.bt-copy:hover { background: var(--st-primary); color: #fff; }
.bt-copy:active { transform: scale(0.95); }

/* Premium Links Layout */
.store-links-wrap { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }

.vr-highlight .vr-btn { 
    flex-direction: row; gap: 12px; padding: 22px; 
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff; border: none; box-shadow: var(--st-shadow-md);
}
.vr-highlight .vr-btn svg { width: 32px; height: 32px; color: var(--st-primary); }
.vr-highlight .vr-btn span { font-size: 17px; letter-spacing: -0.3px; }
.vr-highlight .vr-btn:hover { background: #000; transform: translateY(-3px); box-shadow: var(--st-shadow-lg); color: #fff; }

.sub-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.st-link-btn { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; 
    padding: 20px 15px; border-radius: 16px; font-weight: 800; font-size: 14px;
    background: #fff; border: 1.5px solid var(--st-border-color); color: var(--st-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box;
}
.st-link-btn svg { width: 28px; height: 28px; color: var(--st-primary); }
.st-link-btn:hover { 
    background: var(--st-primary); color: #fff; border-color: var(--st-primary); 
    transform: translateY(-5px); box-shadow: var(--st-shadow-md);
}
.st-link-btn:hover svg { color: #fff; }

/* Mobile Navigation */
.bt-back-list {
    position: absolute; top: 20px; left: 20px; z-index: 100;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: #fff !important; font-size: 20px; text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.2s;
}
.bt-back-list:active { transform: scale(0.9); background: rgba(0,0,0,0.7); }

/* Responsive Refinement */
@media screen and (max-width: 1200px) {
    .item-image { width: 200px; min-width: 200px; }
    .item-body { padding: 15px 20px; }
}

@media screen and (max-width: 992px) {
    .item-summary { -webkit-line-clamp: 1; }
}

@media screen and (max-width: 1024px) {
    .store-header { position: relative; display: flex !important; flex-direction: column !important; }
    .store-top-row { width: 100% !important; margin-bottom: 10px !important; }
    .store-badges { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; margin-top: 10px; }
    .ae-ctrl--store { gap: 5px; display: flex !important; flex-direction: row !important; align-items: center !important; position: static !important; margin: 0 !important; }
}

@media screen and (max-width: 768px) {
    .store-header { position: relative; }
    .store-badges { margin-top: 0 !important; }
    .store-top-row { margin-bottom: 10px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
    .ae-ctrl--store { gap: 5px; display: flex !important; flex-direction: row !important; align-items: center !important; position: static !important; margin: 0 !important; }
    .store-webzine { gap: 12px; }
    .store-item { flex-direction: row; align-items: stretch; }
    .store-item:hover { transform: translateY(-3px); }
    
    .item-image { width: 120px; min-width: 120px; border-radius: 0; margin: 0; }
    .item-badges { top: 6px; left: 6px; gap: 2px; }
    .item-badges .badge { padding: 2px 5px; font-size: 8px; border-radius: 3px; }
    
    .item-body { padding: 12px; gap: 6px; }
    .item-header { margin-bottom: 2px; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
    .title-wrap { gap: 8px; flex: 1; display: flex; flex-wrap: wrap; align-items: center; }
    .item-title { font-size: 17px; line-height: 1.3; word-break: keep-all; }
    .item-rating { font-size: 11px; padding: 2px 5px; flex-shrink: 0; }
    .item-meta { display: none; }
    
    .item-info { gap: 4px; margin-bottom: 0; }
    .info-row { gap: 4px 12px; flex-wrap: wrap; }
    .info-item { font-size: 12px; gap: 4px; line-height: 1.4; word-break: keep-all; }
    .info-item i { font-size: 12px; flex-shrink: 0; margin-top: 2px; align-self: flex-start; }
    .break-time-badge { padding: 1px 5px; border-radius: 3px; gap: 3px; flex-shrink: 0; }
    .break-time-badge { padding: 1px 5px; border-radius: 3px; gap: 3px; }
    .break-time-badge .bt-label { font-size: 7px; }
    .break-time-badge .bt-value { font-size: 9px; }

    .item-footer { display: none; } /* 요약문 및 상세보기 버튼 숨김 (이미지/제목 클릭 유도) */
    
    .store-filter-wrap { padding: 15px; margin-bottom: 20px; border-radius: 12px; }
    .filter-row { flex-direction: column; }
    .filter-row--search .filter-item--buttons { width: 100%; }
    .filter-row--search .filter-item--buttons button { flex: 1; }

    .store-hero { display: none; }
    .store-read-wrap { margin-top: 15px; }
    .store-info-card { margin: 0; padding: 0 0 20px 0; }
    .store-name-row { flex-wrap: wrap; gap: 10px; }
    .store-name { font-size: 26px; }
    .store-header { flex-direction: column; align-items: stretch; gap: 15px; display: flex; }
    .store-info-table th { width: 90px; font-size: 13px; padding: 12px 0; }
    .store-info-table td { font-size: 14px; padding: 12px 0; }
    .store-info-table .value-group { gap: 10px; }
    .time-main { margin-bottom: 0; }
    .break-time-badge, .closed-day-badge { width: fit-content; box-sizing: border-box; padding: 1px 5px; border-radius: 3px; gap: 3px; }
    .closed-day-badge { background: #fff5f5; border-color: #ffa8a8; }
    .closed-day-badge .cd-label { font-size: 7px; color: #ff6b6b; }
    .closed-day-badge .cd-value { font-size: 9px; color: #fa5252; }

    .vr-highlight .vr-btn { padding: 18px; }
    .vr-highlight .vr-btn span { font-size: 15px; }
    .sub-links { grid-template-columns: repeat(2, 1fr); }
    .st-link-btn { padding: 15px 10px; }
    .st-link-btn svg { width: 24px; height: 24px; }
}
