:root {
    --sc-bg: #f6f8fc;
    --sc-surface: #ffffff;
    --sc-text: #111827;
    --sc-muted: #64748b;
    --sc-line: #e5e7eb;
    --sc-primary: #4f46e5;
    --sc-primary-dark: #3730a3;
    --sc-primary-soft: #eef2ff;
    --sc-green: #15803d;
    --sc-green-soft: #f0fdf4;
    --sc-amber: #b45309;
    --sc-amber-soft: #fffbeb;
    --sc-red: #b91c1c;
    --sc-shadow: 0 14px 36px rgba(15, 23, 42, .08);
    --sc-radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--sc-bg);
    color: var(--sc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.catalog-page { min-height: 100vh; }
.catalog-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.catalog-hero { padding: 28px 0 12px; }
.catalog-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr);
    gap: 22px;
    padding: 28px;
    border: 1px solid #dde3f3;
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 8%, rgba(99,102,241,.12), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    box-shadow: var(--sc-shadow);
}
.catalog-hero-content h1 { margin: 12px 0 8px; font-size: clamp(25px, 4vw, 42px); line-height: 1.1; letter-spacing: -.8px; }
.catalog-hero-content > p { margin: 0; color: var(--sc-muted); font-size: 14px; }
.catalog-brand-inline { display: flex; align-items: center; min-height: 52px; }
.catalog-brand-logo { width: 104px; max-height: 54px; object-fit: contain; object-position: left center; }
.catalog-hero-note { margin-top: 9px; color: #94a3b8; font-size: 11.5px; }
.catalog-hero-side { display: grid; align-content: start; gap: 12px; }
.catalog-side-card {
    padding: 16px;
    border: 1px solid var(--sc-line);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
}
.catalog-action-card strong { display: block; margin-bottom: 5px; font-size: 13px; }
.catalog-action-card span { display: block; color: var(--sc-muted); font-size: 11.5px; line-height: 1.45; }
.catalog-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 39px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 800;
}
.catalog-action-main { background: var(--sc-primary); color: white; }
.catalog-action-wa { background: #16a34a; color: white; }

.catalog-search-form { margin-top: 20px; }
.catalog-search-wrap { position: relative; display: flex; gap: 8px; }
.catalog-search-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d8deea;
    border-radius: 13px;
    outline: none;
    background: white;
    color: var(--sc-text);
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.catalog-search-input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.catalog-search-button {
    flex: 0 0 auto;
    min-width: 88px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: var(--sc-primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.catalog-autocomplete {
    position: absolute;
    z-index: 50;
    top: 56px;
    left: 0;
    right: 96px;
    display: none;
    max-height: 360px;
    overflow: auto;
    border: 1px solid #dce2ee;
    border-radius: 14px;
    background: white;
    box-shadow: 0 18px 45px rgba(15,23,42,.14);
}
.catalog-autocomplete.is-open { display: block; }
.catalog-autocomplete-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.catalog-autocomplete-item:last-child { border-bottom: 0; }
.catalog-autocomplete-item:hover, .catalog-autocomplete-item.is-active { background: #f8faff; }
.catalog-autocomplete-thumb { width: 42px; height: 42px; border-radius: 9px; background: #f1f5f9; object-fit: cover; }
.catalog-autocomplete-name { overflow: hidden; font-size: 11.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.catalog-autocomplete-code { color: #94a3b8; font-size: 9.8px; }
.catalog-autocomplete-price { color: var(--sc-primary-dark); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.catalog-autocomplete-empty, .catalog-autocomplete-loading { padding: 14px; color: var(--sc-muted); font-size: 11px; text-align: center; }

.catalog-section { padding: 16px 0; }
.catalog-product-section { padding-bottom: 34px; }
.catalog-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.catalog-section-label { display: block; margin-bottom: 2px; color: var(--sc-primary); font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.catalog-section-head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.catalog-see-all { color: var(--sc-primary); font-size: 11.5px; font-weight: 800; }

.catalog-category-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: thin; }
.catalog-category-chip {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #dde3ef;
    border-radius: 999px;
    background: white;
    color: #475569;
    font-size: 10.8px;
    font-weight: 700;
}
.catalog-category-chip:hover { border-color: #a5b4fc; background: var(--sc-primary-soft); color: var(--sc-primary-dark); }

.catalog-product-grid, .catalog-search-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.catalog-product-card, .catalog-product-row {
    display: block;
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    background: white;
    box-shadow: 0 7px 20px rgba(15,23,42,.045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.catalog-product-card:hover, .catalog-product-row:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 13px 30px rgba(15,23,42,.09); }
.catalog-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f5f8;
}
.catalog-product-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef1f5 25%, #f8fafc 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: catalogShimmer 1.25s infinite;
}
.catalog-product-image:not(.is-loading) .catalog-image-skeleton { display: none; }
@keyframes catalogShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.catalog-product-body, .catalog-product-info { padding: 12px; }
.catalog-product-title { min-height: 36px; color: #1f2937; font-size: 12px; line-height: 1.42; font-weight: 700; }
.catalog-product-info { display: grid; gap: 4px; }
.catalog-product-info span, .catalog-product-info small { color: var(--sc-muted); font-size: 10px; }
.catalog-product-info strong, .catalog-product-row-price { color: #111827; font-size: 12.5px; font-weight: 900; }

.catalog-search-page { padding: 22px 0 36px; }
.catalog-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 14px; color: var(--sc-muted); font-size: 10.5px; }
.catalog-breadcrumb a { color: var(--sc-primary); font-weight: 700; }
.catalog-search-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 18px; align-items: start; }
.catalog-filter-card, .catalog-search-results {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.catalog-filter-card { position: sticky; top: 12px; padding: 15px; }
.catalog-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.catalog-filter-head strong { font-size: 13px; }
.catalog-filter-reset { color: var(--sc-primary); font-size: 10px; font-weight: 800; }
.catalog-filter-form { display: grid; gap: 12px; }
.catalog-filter-group label { display: block; margin-bottom: 5px; color: #475569; font-size: 10.5px; font-weight: 700; }
.catalog-filter-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    background: white;
    outline: none;
}
.catalog-price-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.catalog-filter-submit { min-height: 42px; border: 0; border-radius: 11px; background: var(--sc-primary); color: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.catalog-search-results { padding: 16px; }
.catalog-search-result-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 13px; }
.catalog-search-result-head h1 { margin: 0; font-size: 18px; }
.catalog-search-result-head span { color: var(--sc-muted); font-size: 10.5px; }
.catalog-search-active-filter { margin: -3px 0 13px; color: #475569; font-size: 10.5px; }
.catalog-pagination { margin-top: 18px; }
.catalog-pagination nav { display: flex; justify-content: center; }
.catalog-pagination .pagination { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.catalog-pagination .page-link { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid #e2e8f0; border-radius: 9px; background: white; color: #475569; font-size: 10.5px; }
.catalog-pagination .active .page-link { border-color: var(--sc-primary); background: var(--sc-primary); color: white; }
.catalog-pagination .disabled .page-link { opacity: .45; }

.catalog-empty-state, .catalog-search-empty {
    padding: 34px 20px;
    border: 1px dashed #d9e0eb;
    border-radius: 15px;
    background: #fafbfc;
    text-align: center;
}
.catalog-empty-state h3, .catalog-search-empty h3 { margin: 0 0 6px; font-size: 16px; }
.catalog-empty-state p, .catalog-search-empty p { margin: 0; color: var(--sc-muted); font-size: 11.5px; }
.catalog-empty-state ul, .catalog-search-empty ul { display: inline-block; margin: 12px auto 0; padding-left: 18px; color: #64748b; font-size: 10.8px; text-align: left; }

.catalog-detail { padding: 22px 0 40px; }
.catalog-detail-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: white;
    box-shadow: var(--sc-shadow);
}
.catalog-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcff;
}
.catalog-detail-brand { display: flex; align-items: center; gap: 8px; }
.catalog-detail-brand img { width: 84px; max-height: 40px; object-fit: contain; }
.catalog-detail-header-actions { display: flex; gap: 7px; align-items: center; }
.catalog-detail-header-btn, .catalog-detail-header-wa {
    display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 10px; font-weight: 800;
}
.catalog-detail-header-btn { border: 1px solid #dce2eb; background: white; color: #475569; }
.catalog-detail-header-wa { background: #16a34a; color: white; }
.catalog-detail-search { padding: 12px 16px; border-bottom: 1px solid #eef2f7; }
.catalog-detail-search-wrap { position: relative; display: flex; gap: 7px; }
.catalog-detail-search-input { flex: 1; min-width: 0; height: 41px; padding: 0 12px; border: 1px solid #dce2eb; border-radius: 10px; outline: none; }
.catalog-detail-search-btn { min-width: 72px; border: 0; border-radius: 10px; background: var(--sc-primary); color: white; font-size: 10.5px; font-weight: 800; }
.catalog-detail-info { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.3fr); gap: 24px; padding: 20px; }
.catalog-detail-image-wrap { position: relative; }
.catalog-detail-image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid #edf1f5; border-radius: 16px; background: #f8fafc; padding: 8px; }
.catalog-detail-code { display: inline-flex; margin-bottom: 8px; padding: 4px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; }
.catalog-detail-info h1 { margin: 0 0 10px; font-size: clamp(20px,3vw,30px); line-height: 1.18; }
.catalog-detail-price { margin: 8px 0 13px; color: #dc2626; font-size: 22px; font-weight: 900; }
.catalog-detail-description { color: #475569; font-size: 11.5px; line-height: 1.6; }
.catalog-detail-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.catalog-detail-meta-item { padding: 10px; border: 1px solid #edf1f5; border-radius: 11px; background: #fafbfc; }
.catalog-detail-meta-item span { display: block; color: #94a3b8; font-size: 9.5px; }
.catalog-detail-meta-item strong { display: block; margin-top: 2px; color: #334155; font-size: 11.5px; }
.catalog-stock-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.catalog-stock-status.is-available { background: var(--sc-green-soft); color: var(--sc-green); }
.catalog-stock-status.is-unavailable { background: #fef2f2; color: var(--sc-red); }
.catalog-share-area { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.catalog-share-icon, .catalog-detail-copy, .catalog-action-btn { cursor: pointer; }
.catalog-share-icon, .catalog-detail-copy {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 10px; border: 1px solid #dce2eb; border-radius: 10px; background: white; color: #475569; font-size: 10px; font-weight: 800;
}
.catalog-copy-toast { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: none; padding: 10px 13px; border-radius: 10px; background: #0f172a; color: white; font-size: 10.5px; box-shadow: 0 12px 30px rgba(15,23,42,.25); }
.catalog-copy-toast.is-visible { display: block; }

.catalog-detail-wholesale, .catalog-store-section { padding: 0 20px 20px; }
.catalog-wholesale-head, .catalog-store-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 18px; margin-bottom: 10px; border-top: 1px solid #eef2f7; }
.catalog-wholesale-head strong, .catalog-store-head strong { font-size: 14px; }
.catalog-wholesale-head span, .catalog-store-head span { color: var(--sc-muted); font-size: 10px; }
.catalog-wholesale-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.catalog-wholesale-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #e5e7eb; border-radius: 11px; background: #fafbfc; }
.catalog-wholesale-qty span, .catalog-wholesale-price span { display: block; color: #94a3b8; font-size: 9px; }
.catalog-wholesale-qty strong, .catalog-wholesale-price strong { display: block; color: #334155; font-size: 11px; }
.catalog-wholesale-empty, .catalog-store-empty { padding: 12px; border: 1px dashed #d8dee8; border-radius: 11px; background: #fafbfc; color: #64748b; font-size: 10.5px; }
.catalog-store-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 11px; }
.catalog-store-summary-item { padding: 9px 10px; border-radius: 10px; background: #f8fafc; }
.catalog-store-summary-item span { display: block; color: #94a3b8; font-size: 9px; }
.catalog-store-summary-item strong { display: block; color: #334155; font-size: 11px; }
.catalog-store-group-wrap { display: grid; gap: 12px; }
.catalog-store-group { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.catalog-store-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.catalog-store-group-title span { color: #334155; font-size: 11.5px; font-weight: 800; }
.catalog-store-group-title strong { color: #64748b; font-size: 9.5px; }
.catalog-store-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; }
.catalog-store-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #e7ebf1; border-radius: 11px; background: white; }
.catalog-store-item.is-ready { border-color: #bbf7d0; background: #fbfffc; }
.catalog-store-item.is-limited { border-color: #fde68a; background: #fffdf6; }
.catalog-store-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #f1f5f9; font-size: 16px; }
.catalog-store-name strong { display: block; color: #334155; font-size: 10.8px; }
.catalog-store-name small { display: block; margin-top: 2px; color: var(--sc-amber); font-size: 8.8px; line-height: 1.35; }
.catalog-store-stock { text-align: right; }
.catalog-store-stock span { display: block; color: #94a3b8; font-size: 8.8px; }
.catalog-store-stock strong { color: #0f172a; font-size: 13px; }
.catalog-store-group-empty { display: flex; gap: 10px; align-items: center; padding: 14px; color: #64748b; }
.catalog-store-group-empty-icon { font-size: 22px; }
.catalog-store-group-empty strong { display: block; color: #475569; font-size: 11px; }
.catalog-store-group-empty span { display: block; margin-top: 2px; font-size: 9.5px; }

.catalog-footer { padding: 24px 0 30px; color: #94a3b8; font-size: 10px; text-align: center; }

.catalog-login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 0%, #eef2ff 0, #f8fafc 48%, #f6f8fc 100%); }
.catalog-login-card { width: min(420px,100%); padding: 24px; border: 1px solid #e0e5ef; border-radius: 22px; background: white; box-shadow: var(--sc-shadow); }
.catalog-login-brand { display: flex; gap: 11px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #eef2f7; }
.catalog-login-brand img { width: 88px; max-height: 45px; object-fit: contain; }
.catalog-login-brand strong { display: block; font-size: 12.5px; }
.catalog-login-brand span { display: block; color: #94a3b8; font-size: 10px; }
.catalog-login-header { padding: 17px 0 14px; }
.catalog-login-header h1 { margin: 0 0 5px; font-size: 21px; }
.catalog-login-header p { margin: 0; color: var(--sc-muted); font-size: 11px; }
.catalog-login-alert { margin-bottom: 12px; padding: 9px 10px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: var(--sc-red); font-size: 10.5px; font-weight: 700; }
.catalog-login-group label { display: block; margin-bottom: 6px; color: #475569; font-size: 10.5px; font-weight: 700; }
.catalog-login-group input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dce2eb; border-radius: 11px; outline: none; }
.catalog-login-group input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.catalog-login-submit { width: 100%; height: 44px; margin-top: 13px; border: 0; border-radius: 11px; background: var(--sc-primary); color: white; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.catalog-login-note { margin-top: 13px; color: #94a3b8; font-size: 9.8px; text-align: center; }

@media (max-width: 900px) {
    .catalog-hero-card { grid-template-columns: 1fr; padding: 20px; }
    .catalog-hero-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-product-grid, .catalog-search-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalog-search-layout { grid-template-columns: 1fr; }
    .catalog-filter-card { position: static; }
    .catalog-detail-info { grid-template-columns: 280px minmax(0,1fr); gap: 16px; }
}

@media (max-width: 680px) {
    .catalog-container { width: min(100% - 22px, 1180px); }
    .catalog-hero { padding-top: 12px; }
    .catalog-hero-card { border-radius: 19px; padding: 16px; }
    .catalog-hero-side { grid-template-columns: 1fr; }
    .catalog-search-wrap { gap: 6px; }
    .catalog-search-input { height: 44px; }
    .catalog-search-button { min-width: 70px; height: 44px; padding: 0 12px; }
    .catalog-autocomplete { right: 0; top: 51px; }
    .catalog-product-grid, .catalog-search-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .catalog-product-body, .catalog-product-info { padding: 9px; }
    .catalog-product-title { min-height: 34px; font-size: 10.8px; }
    .catalog-detail-header { align-items: flex-start; }
    .catalog-detail-header-actions { flex-wrap: wrap; justify-content: flex-end; }
    .catalog-detail-info { grid-template-columns: 1fr; padding: 14px; }
    .catalog-detail-image-wrap { max-width: 420px; margin: 0 auto; width: 100%; }
    .catalog-detail-wholesale, .catalog-store-section { padding: 0 14px 14px; }
    .catalog-wholesale-list { grid-template-columns: 1fr; }
    .catalog-store-list { grid-template-columns: 1fr; }
    .catalog-detail-meta-grid { grid-template-columns: 1fr 1fr; }
    .catalog-search-results { padding: 11px; }
}

@media (max-width: 390px) {
    .catalog-product-grid, .catalog-search-product-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .catalog-product-title { font-size: 10.2px; }
    .catalog-store-item { grid-template-columns: 30px minmax(0,1fr) auto; padding: 8px; }
}


/* =========================================================
   DETAIL PRODUCT UI REFINEMENT V1
   - fix product image visibility
   - refine typography (anti 'tinta bocor')
   - compact wholesale price one-line layout
   ========================================================= */
.catalog-detail-header {
    gap: 16px;
    padding: 15px 18px;
}

.catalog-detail-brand {
    gap: 12px;
    min-width: 0;
}

.catalog-detail-brand img {
    width: auto;
    max-width: 120px;
    height: 42px;
    max-height: 42px;
    object-fit: contain;
    display: block;
}

.catalog-detail-brand span {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.catalog-detail-header-btn,
.catalog-detail-header-wa,
.catalog-detail-search-btn,
.catalog-share-icon,
.catalog-detail-copy {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.catalog-detail-search-input {
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.catalog-detail-search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.catalog-detail-search-btn {
    min-width: 84px;
    font-size: 13px;
}

.catalog-detail-card {
    border-radius: 24px;
}

.catalog-detail-info {
    align-items: start;
    gap: 28px;
    padding: 24px;
}

.catalog-detail-image-wrap {
    max-width: 100%;
}

.catalog-detail-image {
    display: grid;
    place-items: center;
    min-height: 420px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 18px;
}

.catalog-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-detail-code {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.catalog-detail-code strong {
    color: #334155;
    font-weight: 700;
}

.catalog-detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #0f172a;
}

.catalog-detail-price {
    margin: 10px 0 18px;
    color: #dc2626;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.catalog-detail-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.72;
    font-weight: 500;
}

.catalog-detail-meta-grid {
    gap: 12px;
    margin-top: 16px;
}

.catalog-detail-meta-item {
    padding: 14px 15px;
    border-radius: 14px;
    background: #fbfcfe;
}

.catalog-detail-meta-item span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.catalog-detail-meta-item strong {
    margin-top: 8px;
    color: #334155;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.catalog-stock-status {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.catalog-detail-wholesale,
.catalog-store-section {
    padding: 0 24px 24px;
}

.catalog-wholesale-head,
.catalog-store-head {
    gap: 12px;
    padding-top: 22px;
    margin-bottom: 14px;
}

.catalog-wholesale-head strong,
.catalog-store-head strong {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.catalog-wholesale-head span,
.catalog-store-head span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.catalog-wholesale-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-wholesale-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.catalog-wholesale-qty {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}

.catalog-wholesale-price {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-wholesale-empty,
.catalog-store-empty {
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.55;
    font-weight: 500;
}

.catalog-store-summary {
    gap: 10px;
    margin-bottom: 14px;
}

.catalog-store-summary-item {
    padding: 12px 14px;
    border-radius: 12px;
}

.catalog-store-summary-item span {
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 600;
}

.catalog-store-summary-item strong {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.catalog-store-group {
    border-radius: 16px;
}

.catalog-store-group-title {
    padding: 13px 16px;
}

.catalog-store-group-title span {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.catalog-store-group-title strong {
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 600;
}

.catalog-store-list {
    gap: 10px;
    padding: 12px;
}

.catalog-store-item {
    grid-template-columns: 42px minmax(0,1fr) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
}

.catalog-store-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 18px;
}

.catalog-store-name strong {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.catalog-store-name small {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 500;
}

.catalog-store-stock span {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.catalog-store-stock strong {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 991px) {
    .catalog-detail-info {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .catalog-detail-image {
        min-height: 320px;
    }

    .catalog-detail-info h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .catalog-detail-price {
        font-size: 28px;
    }

    .catalog-detail-wholesale,
    .catalog-store-section {
        padding: 0 18px 18px;
    }
}

@media (max-width: 640px) {
    .catalog-detail-header {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .catalog-detail-search {
        padding: 12px 14px;
    }

    .catalog-detail-search-wrap {
        gap: 8px;
    }

    .catalog-detail-search-input {
        height: 44px;
        font-size: 13px;
    }

    .catalog-detail-search-btn {
        min-width: 78px;
        font-size: 12.5px;
    }

    .catalog-detail-image {
        min-height: 260px;
        padding: 14px;
    }

    .catalog-detail-code {
        font-size: 11px;
    }

    .catalog-detail-meta-grid,
    .catalog-store-summary,
    .catalog-store-list {
        grid-template-columns: 1fr;
    }

    .catalog-wholesale-item {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-store-item {
        grid-template-columns: 38px minmax(0,1fr);
    }

    .catalog-store-stock {
        grid-column: 2;
        text-align: left;
    }
}
