/**
 * File: msi-catalog.css
 * Path: /wp-content/themes/msi-theme/assets/css/msi-catalog.css
 * Version: 1.0.24-dev
 * Created: 2026-11-28
 * Last Updated: 2026-11-28
 * Author: Lucky Mahrus | https://geraisitus.co.id/
 * Description: Native GS Catalog archive/taxonomy skin. Product query, filters and pagination stay in GS Catalog.
 */
/* Opt in by native catalog route, never the homepage or a standalone shortcode. */
/* BeTheme renders its own Subheader before the native GS archive hero.
 * Hide only the duplicate, and only when the GS listing hero exists.
 * Preserve the native header, hero, and non-catalog/single-page subheaders. */
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search):has(.gs-catalog-hero:is(.gs-catalog-hero--archive,.gs-catalog-hero--category,.gs-catalog-hero--search)) #Subheader {
    display: none !important;
}

body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero {
    position: relative; isolation: isolate; display: grid; align-items: center;
    min-height: var(--msi-hero-min-height); padding: 48px max(24px, calc((100% - 1120px) / 2));
    box-sizing: border-box; color: #fff; background: var(--msi-red-dark);
    overflow: hidden;
}
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero__panel {
    position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg,rgba(89,6,12,.94),rgba(137,12,18,.65),rgba(89,6,12,.22)), var(--gs-hero-image, none);
    background-position: center, var(--gs-hero-image-position,center); background-size: cover;
}
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero__content { position: relative; max-width: 680px; min-width: 0; text-align: left; }
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero__content h1 { color:#fff !important; font:700 clamp(32px,4vw,52px)/1.12 var(--msi-title-font-family) !important; text-transform:uppercase; margin:0 0 12px; }
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero__content p { color:#fff; font:400 16px/1.65 Arial,sans-serif; margin:0; }
body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) main.gs-catalog-container { width:min(calc(100% - 80px),1200px); max-width:1200px; box-sizing:border-box; padding:40px 0 64px; margin-inline:auto; }
body.msi-theme main.gs-catalog-container .gs-design[data-gs-color-mode="theme"] { --ts-color-surface:var(--msi-surface); --ts-color-text:var(--msi-ink); --ts-color-muted:var(--msi-muted); --ts-color-accent:var(--msi-red); --ts-border-color:var(--msi-border); --ts-shadow-card:0 2px 10px rgba(26,37,43,.06); }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card { border:1px solid #e1e5e3; border-radius:4px; box-shadow:none; background:#fff; min-width:0; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card:hover,body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card:focus-within { border-color:var(--msi-red); }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__media { aspect-ratio:1/1; background:#f4f6f5; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__media img { object-fit:contain; width:100%; height:100%; box-sizing:border-box; padding:10px; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__body { padding:16px; gap:8px; text-align:left; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__eyebrow { color:var(--msi-red); font:700 11px/1.45 Arial,sans-serif; letter-spacing:.055em; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__title { color:var(--msi-ink); font:600 16px/1.45 Arial,sans-serif; overflow-wrap:anywhere; }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__title a:focus-visible { outline:2px solid var(--msi-green-dark); outline-offset:2px; }
body.msi-theme main.gs-catalog-container .gscfe { --gs-catalog-filter-accent:var(--msi-green-dark); --gs-catalog-filter-surface:#fff; --gs-catalog-filter-text:var(--msi-ink); --gs-catalog-filter-border:#e1e5e3; --gscfe-radius:4px; gap:24px; }
body.msi-theme main.gs-catalog-container .gscfe-filter-panel { border:1px solid #e1e5e3; }
body.msi-theme main.gs-catalog-container .gscfe-sidebar-title { font:700 19px/1.3 Arial,sans-serif; color:var(--msi-red-dark); }
body.msi-theme main.gs-catalog-container .gscfe-apply { background:var(--msi-green-dark); color:#fff; }
body.msi-theme main.gs-catalog-container .gscfe-result-count { color:var(--msi-muted); }
body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
body.msi-theme main.gs-catalog-container .gscfe-pagination [aria-current="page"] { background:var(--msi-red); border-color:var(--msi-red); color:#fff; }
@media(min-width:1025px) {
 body.msi-theme main.gs-catalog-container .gscfe--left { grid-template-columns:245px minmax(0,1fr); }
 body.msi-theme main.gs-catalog-container .gscfe--right { grid-template-columns:minmax(0,1fr) 245px; }
}
@media(max-width:1024px) {
 body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero { min-height:var(--msi-hero-min-height); padding:36px 28px; }
 body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) main.gs-catalog-container { width:calc(100% - 56px); padding-block:32px 48px; }
 body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}
@media(max-width:767px) {
 body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) .gs-catalog-hero { min-height:var(--msi-hero-min-height); padding:30px 20px; }
 body.msi-theme:is(.post-type-archive-gs_product,.tax-gs_product_cat,.tax-gs_product_tag,.tax-gs_product_brand,.tax-gs_product_collection,.gs-catalog-product-search) main.gs-catalog-container { width:calc(100% - 32px); padding-block:24px 40px; }
 body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-grid { gap:10px; }
 body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__body { padding:10px; }
 body.msi-theme main.gs-catalog-container .gs-design .gs-catalog-card .ts-card__title { font-size:14px; }
 body.msi-theme main.gs-catalog-container .gscfe-mobile-toggle { border:1px solid var(--msi-green-dark); color:var(--msi-green-dark); }
}

/* MSI catalog-only navigation: semantic links, native GET search, no JS dependency. */
body.msi-theme main.gs-catalog-container .msi-catalog-toolbar { margin:0 0 32px; min-width:0; font:400 16px/1.5 Arial,sans-serif; color:var(--msi-ink); }
body.msi-theme .msi-catalog-toolbar .msi-catalog-breadcrumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 24px; font-size:13px; color:var(--msi-muted); }
body.msi-theme .msi-catalog-toolbar .msi-catalog-breadcrumb a { color:var(--msi-green-dark); }
body.msi-theme .msi-catalog-toolbar .msi-catalog-intro { margin:0 0 22px; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-kicker { margin:0 0 8px; color:var(--msi-red); font:700 12px/1.45 Arial,sans-serif; letter-spacing:.1em; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-intro h2 { margin:0 0 8px; color:var(--msi-red-dark)!important; font:700 clamp(26px,3vw,38px)/1.15 var(--msi-title-font-family)!important; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-intro p:not(.msi-catalog-kicker) { margin:0; color:var(--msi-muted); }
body.msi-theme .msi-catalog-toolbar .msi-catalog-category-nav { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; min-height:70px; box-sizing:border-box; padding:16px 20px; border:1px solid var(--msi-border); border-radius:4px; color:var(--msi-red-dark); background:#fff; font:700 16px/1.35 Arial,sans-serif; text-decoration:none; overflow-wrap:anywhere; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link strong { flex-shrink:0; font-size:24px; color:inherit; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link.is-active { background:var(--msi-red); border-color:var(--msi-red); color:#fff; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link:hover:not(.is-active) { border-color:var(--msi-red); background:#fbf1f1; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-form { margin:0; padding:0; max-width:100%; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-form label { display:block; margin:0 0 6px; font:700 14px/1.4 Arial,sans-serif; color:var(--msi-ink); }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:stretch; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row input[type=search] { width:100%!important; min-width:0; box-sizing:border-box; margin:0!important; padding:12px 14px!important; min-height:46px; border:1px solid var(--msi-border); border-radius:4px; background:#fff; color:var(--msi-ink); font:400 15px/1.4 Arial,sans-serif; box-shadow:none; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row button { margin:0!important; min-height:46px; padding:12px 25px!important; border:1px solid var(--msi-green-dark); border-radius:4px; background:var(--msi-green-dark); color:#fff; font:700 14px/1.4 Arial,sans-serif; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row button:hover { background:var(--msi-green); }
body.msi-theme .msi-catalog-toolbar :is(a,input,button):focus-visible { outline:2px solid var(--msi-green-dark); outline-offset:3px; }
body.msi-theme .msi-catalog-toolbar .msi-catalog-clear-search { display:inline-block; margin-top:10px; font-size:14px; color:var(--msi-green-dark); }
@media(max-width:767px) {
 body.msi-theme main.gs-catalog-container .msi-catalog-toolbar { margin-bottom:24px; }
 body.msi-theme .msi-catalog-toolbar .msi-catalog-category-nav { gap:6px; margin-bottom:20px; }
 body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link { flex-direction:column; justify-content:center; text-align:center; padding:10px 5px; min-height:85px; font-size:12px; }
 body.msi-theme .msi-catalog-toolbar .msi-catalog-category-link strong { font-size:21px; }
 body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row { gap:6px; }
 body.msi-theme .msi-catalog-toolbar .msi-catalog-search-row button { padding-inline:14px!important; }
}
