:root {
	--brand:           #1A3A5C;
	--brand-light:     #2563A8;
	--accent:          #E8A020;
	--confirmed:       #0E7C5A;
	--confirmed-bg:    #EDFAF4;
	--confirmed-border:#A7E3CC;
	--danger:          #D94F38;
	--bg:              #F7F8FB;
	--surface:         #FFFFFF;
	--border:          #E2E8F0;
	--text-primary:    #1A202C;
	--text-secondary:  #4A5568;
	--text-muted:      #94A3B8;
	--tag-bg:          #EEF2FF;
	--tag-text:        #3B5BDB;
	--radius:          14px;
	--shadow-card:     0 2px 12px rgba(26,58,92,0.07);
	--shadow-hover:    0 6px 28px rgba(26,58,92,0.13);
}

.cf-page-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; border-bottom: 2px solid var(--brand); padding-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.cf-page-title { font-size: 22px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.cf-page-title-badge { display: flex; align-items: center; gap: 6px; background: var(--confirmed-bg); border: 1px solid var(--confirmed-border); border-radius: 24px; padding: 4px 14px; font-size: 11px; font-weight: 700; color: var(--confirmed); }
.cf-page-title-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--confirmed); box-shadow: 0 0 6px var(--confirmed); animation: cf-blink 1.4s infinite; display: inline-block; }
.cf-page-title-sub { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 6px; }
@keyframes cf-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.cf-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-filter-btn { padding: 7px 18px; border-radius: 24px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; color: var(--text-secondary); transition: all .2s; font-family: inherit; }
.cf-filter-btn.active, .cf-filter-btn:hover { border-color: var(--brand-light); background: var(--brand); color: #fff; }

.cf-product-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--border); margin-bottom: 18px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.cf-product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cf-card-top { display: grid; grid-template-columns: 300px 1fr 500px; gap: 0; }
.cf-image-wrap { position: relative; width: 300px; min-height: 160px; overflow: hidden; border-radius: var(--radius) 0 0 0; flex-shrink: 0; align-self: start; }
.cf-image-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cf-no-thumb { width: 100%; height: 100%; min-height: 160px; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); }
.cf-item-code { position: absolute; top: 10px; left: 10px; background: rgba(26,58,92,0.82); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: 0.5px; backdrop-filter: blur(4px); }
.cf-badge-dom { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 10px; font-weight: 700; background: #DCFCE7; color: #166534; margin-right: 5px; }
.cf-badge-ovs { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 10px; font-weight: 700; background: #DBEAFE; color: #1E40AF; margin-right: 5px; }
.cf-brief { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 9px; border-right: 1px solid var(--border); }
.cf-title { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.cf-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.cf-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cf-tag { font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--tag-bg); color: var(--tag-text); }
.cf-departure-panel { width: 500px; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.cf-departure-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cf-departure-label { font-size: 16px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.cf-departure-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--confirmed); display: inline-block; }
.cf-toggle-btn { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; font-family: inherit; padding: 3px 8px; border-radius: 6px; transition: background .15s; }
.cf-toggle-btn:hover { background: var(--bg); }
.cf-toggle-btn svg { transition: transform .3s; width: 13px; height: 13px; }
.cf-toggle-btn.open svg { transform: rotate(180deg); }
.cf-collapsed-summary { display: flex; align-items: center; justify-content: center; padding: 9px 10px; font-size: 16px; color: var(--text-muted); gap: 5px; background: none; border: none; width: 100%; font-family: inherit; }
.cf-collapsed-summary strong { font-weight: 700; color: var(--brand-light); }
.cf-table-wrap { overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.cf-table-inner { max-height: 300px; overflow-y: auto; }
.cf-table-inner::-webkit-scrollbar { width: 4px; }
.cf-table-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cf-departure-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cf-departure-table thead th { background: #F8FAFC; color: var(--text-muted); font-weight: 600; font-size: 14px; letter-spacing: 0.3px; padding: 7px 9px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; text-align: center; }
.cf-departure-table td { padding: 8px 9px; text-align: center; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.cf-departure-table tr:last-child td { border-bottom: none; }
.cf-departure-table tr:hover td { background: #F8FAFC; }
.cf-departure-table tr.row-hidden { display: none; }
.cf-date-cell { font-weight: 600; color: var(--brand-light); text-align: left !important; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cf-date-cell:hover { text-decoration: underline; }
.cf-seat { display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.cf-seat-many { background: #DCFCE7; color: #166534; }
.cf-seat-few { background: #FEF9C3; color: #854D0E; }
.cf-seat-urgent { background: #FEE2E2; color: #991B1B; animation: cf-pulse .8s infinite; }
.cf-seat-full { background: #F1F5F9; color: #94A3B8; }
@keyframes cf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.cf-memo-cell { text-align: left !important; }
.cf-memo-text { font-size: 10px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-loading { text-align: center; padding: 60px; color: var(--text-muted); font-size: 13px; }
.cf-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }

@media (max-width: 1024px) {
	.cf-card-top { grid-template-columns: 200px 1fr; }
	.cf-departure-panel { grid-column: 1 / -1; width: 100%; border-left: none; border-top: 1px solid var(--border); }
	.cf-image-wrap { width: 200px; }
}
@media (max-width: 640px) {
	.cf-card-top { grid-template-columns: 1fr; }
	.cf-image-wrap { width: 100%; height: 200px; border-radius: var(--radius) var(--radius) 0 0; }
	.cf-brief { border-right: none; border-bottom: 1px solid var(--border); }
	.cf-page-title-row { flex-direction: column; align-items: flex-start; }
}
.cf-brief { position: relative; justify-content: space-between; }
.cf-price-row { display: flex; align-items: baseline; gap: 5px; margin-top: auto; align-self: flex-end; }
.cf-price-label { font-size: 12px; color: var(--text-muted); }
.cf-price-value { font-size: 22px; font-weight: 700; color: var(--brand-light); letter-spacing: -0.5px; }
.cf-price-won { font-size: 14px; font-weight: 600; color: var(--text-secondary); }