.inner{
  width:1100px;
  margin:0 auto;
}

/* 모바일에서는 풀폭 */
@media (max-width:1200px){
  .inner{
    width:100%;
    padding:0 20px;
  }
}

@media (max-width:768px){
  body{
    min-width:100%;
  }
}

.content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.content-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.content-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.quick-links {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}
.quick-links a {
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border-radius: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}
.quick-links a.active {
    background: var(--primary);
    color: #eef2f7;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 252px 1fr;
    gap: 24px;
}

.side {
    position: sticky;
    top: 100px;
    height: max-content;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.side h3 {
    margin: 4px 0 14px;
    font-size: 17px;
}

.cat_left {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
}

.cat_left a {
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    color: #273750;
    font-size: 14px;
    font-weight: 900;
}

.cat_left a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.cat_left a.active {
    background: linear-gradient(135deg, #002d69, #004aa8);
    color: #fff;
}

.filter-title {
    margin: 22px 0 12px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    font-size: 15px;
    font-weight: 900;
}

.checks {
    display: grid;
    gap: 10px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #46556a;
    font-size: 14px;
    font-weight: 700;
}

.checks input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.field {
    margin-top: 12px;
}

.field select,
.field input,
.price-row input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    color: #1f2937;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    gap: 7px;
    align-items: center;
}

.price-row span {
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.side .submit,
.side .reset {
    width: 100%;
    border-radius: 8px;
    font-weight: 900;
	cursor:pointer;
}

.side .submit {
    height: 48px;
    margin-top: 20px;
    background: #0655d9;
    border: 0;
    color: #fff;
}

.side .reset {
    height: 44px;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #cfd9e8;
    color: #26436a;
}

.content {
    min-width: 0;
}

.toolbar {
    padding: 18px 20px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.summary-row strong {
    font-size: 18px;
}

.summary-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.view {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view select {
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    color: #334155;
    font-weight: 800;
}

.view button {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    color: #18345d;
    font-size: 20px;
    font-weight: 900;
	cursor:pointer;
}

.view button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sorts button {
    height: 36px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d7e1ee;
    border-radius: 999px;
    color: #40516a;
    font-weight: 900;
	cursor:pointer;
}

.sorts button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.18s;
}

.card:hover {
    background:#E0ECFE;
    border-color:#9CBFFF;
	transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.thumb {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #edf3fa);
}

.thumb img {
    max-width: 100%;
    max-height: 88%;
    object-fit: contain;
    display: block;
    /*width:110%;
    object-fit:cover;
    display:flex;
    justify-content:center;
    align-items:center;*/
}


.badge {
    position: absolute;
    left: 3px;
    top: 3px;
    height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.badge.red {
    background: var(--danger);
}
.badge.green {
    background: #49a21a;
}
.badge.gray {
    background: #64748b;
}

.heart {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 50%;
    color: #8796ac;
    font-size: 16px;
	cursor:pointer;
}
.heart.active {
	background: #FDC96E;
	color:#FF6B6B;
}

.body {
    padding: 17px 17px 16px;
}

.body h3 {
    margin: 0 0 8px;
    min-height: 46px;
    color: #111827;
    font-size: 17px;
    letter-spacing: -0.35px;
    line-height: 1.35;
}

.meta {
    margin-bottom: 14px;
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
}

.remain {
    margin-bottom: 10px;
    color: #0759c9;
    font-weight: 900;
}

.remain.red {
    color: var(--danger);
}

.price {
    color: #526176;
    font-size: 14px;

}

.price b {
    color: #002f86;
    font-size: 21px;
    letter-spacing: -0.5px;
}

.card-foot {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: #243752;
    font-size: 13px;
    font-weight: 900;
}

.progress {
    height: 3px;
    margin-top: 14px;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 999px;
}

.progress span {
    display: block;
    height: 100%;
    background: #ef2f3b;
}

.actions {
    padding: 0 17px 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.actions button {
    height: 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--primary);
    font-weight: 900;
	cursor:pointer;
}

.actions button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.list-mode .grid {
    display: block;
}

.list-mode .card {
    display: grid;
    grid-template-columns: 160px 1fr 150px;
    align-items: center;
    margin-bottom: 12px;
}

.list-mode .thumb {
    height: 128px;
}

.list-mode .body {
    display: grid;
    grid-template-columns: 1fr 145px 105px;
    gap: 14px;
    align-items: center;
}

.list-mode .body h3 {
    min-height: auto;
    font-size: 18px;
}

.list-mode .progress {
    display: none;
}

.list-mode .actions {
    grid-template-columns: 1fr;
    padding: 0 16px 0 0;
}

/* =========================
   MOBILE
========================= */
@media (min-width: 769px) {
    .mobile-backdrop,
    .mobile-backdrop.show,
    .mobile-panel,
    .mobile-panel.show {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1180px) {
    .mobile-panel {
        right: 0;
    }
}

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 220px 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-mode .card,
    .list-mode .body {
        display: block;
    }

    .list-mode .actions {
        grid-template-columns: 1fr 1fr;
        padding: 0 17px 17px;
    }
}

@media (max-width: 768px) {
    .content-head {
        display: block;
        margin-bottom: 20px;
    }

    .content-head h2 {
        font-size: 24px;
    }

    .quick-links {
        margin-top: 14px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .layout {
        display: block;
    }

    .side {
        position: static;
        margin-bottom: 18px;
        padding: 10px;
    }

    .cat_left {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat_left a {
        height: 38px;
        font-size: 13px;
    }

    .checks {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-row {
        display: block;
    }

    .view {
        margin-top: 14px;
    }

    .view select {
        flex: 1;
        min-width: 0;
    }

    .sorts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sorts::-webkit-scrollbar {
        display: none;
    }

    .sorts button {
        flex: 0 0 auto;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .thumb {
        height: 210px;
    }

    .list-mode .grid {
        display: grid;
    }

    .list-mode .card {
        display: block;
    }

    .list-mode .body {
        display: block;
    }

    .list-mode .thumb {
        height: 210px;
    }

    footer {
        display: block;
        padding: 26px 18px;
        font-size: 12px;
    }

    footer strong {
        font-size: 24px;
    }

    footer h4 {
        margin-top: 18px;
    }

    .call {
        font-size: 18px;
    }
}