/* ============================================================
   CATALOGUE REDESIGN — 2026-08-04
   Modern shop page: matching home page card style,
   horizontal category tabs, clean toolbar, responsive grid.
   Target: ibu-ibu & wanita remaja — feminine, clean, intuitive.
   ============================================================ */

/* ---------- BASE ---------- */
.catalogue-page {
    background: var(--background, #ffffff);
    color: var(--foreground, #111111);
    font-family: var(--brand-font-body, 'Outfit', sans-serif);
    min-height: 100vh;
}
.catalogue-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}
@media (min-width: 768px) {
    .catalogue-container {
        width: min(1200px, calc(100% - 48px));
    }
}

/* ---------- HERO ---------- */
.catalogue-hero {
    position: relative;
    margin-top: 72px;
    height: 320px;
    overflow: hidden;
    background: var(--primary-pale, #f3e2eb);
}
.catalogue-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.02);
}
.catalogue-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary, #b23c7c) 85%, transparent) 0%, color-mix(in srgb, var(--primary, #b23c7c) 55%, transparent) 50%, transparent 100%),
        linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 50%, rgba(0,0,0,.1) 100%);
}
.catalogue-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    padding-top: 12px;
}
.catalogue-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.catalogue-breadcrumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.catalogue-breadcrumb a:hover {
    color: #ffffff;
}
.catalogue-breadcrumb-sep {
    color: rgba(255,255,255,.4);
}
.catalogue-breadcrumb-current {
    color: #ffffff;
}
.catalogue-hero h1 {
    margin: 0;
    font-size: 52px;
    line-height: .92;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.catalogue-hero-subtitle {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    letter-spacing: .02em;
}

/* ---------- TOOLBAR ---------- */
.catalogue-toolbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 72px;
    z-index: 30;
}
.catalogue-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    flex-wrap: wrap;
}
.catalogue-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 280px;
    max-width: 400px;
    background: var(--primary-pale, #f9f0f5);
    border: 1.5px solid color-mix(in srgb, var(--primary, #b23c7c) 18%, transparent);
    border-radius: 12px;
    padding: 0 14px;
    height: 44px;
    transition: border-color .2s, box-shadow .2s;
}
.catalogue-search:focus-within {
    border-color: var(--primary, #b23c7c);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #b23c7c) 12%, transparent);
}
.catalogue-search-icon {
    flex-shrink: 0;
    color: var(--primary, #b23c7c);
    opacity: .6;
    display: flex;
    align-items: center;
}
.catalogue-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--brand-font-body, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #111;
    outline: none;
    min-width: 0;
}
.catalogue-search-input::placeholder {
    color: rgba(0,0,0,.35);
    font-weight: 500;
}
.catalogue-search-clear {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,.08);
    border-radius: 50%;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.catalogue-search-clear:hover {
    background: rgba(0,0,0,.15);
}

.catalogue-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.catalogue-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.catalogue-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,0,0,.45);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.catalogue-filter-select {
    appearance: auto;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-family: var(--brand-font-body, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    transition: border-color .2s;
}
.catalogue-filter-select:focus {
    outline: none;
    border-color: var(--primary, #b23c7c);
}

/* ---------- CATEGORY TABS ---------- */
.catalogue-category-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 0;
}
.catalogue-category-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.catalogue-category-tabs::-webkit-scrollbar {
    display: none;
}
.catalogue-cat-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 999px;
    background: #ffffff;
    color: #555;
    font-family: var(--brand-font-body, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}
.catalogue-cat-tab:hover {
    border-color: color-mix(in srgb, var(--primary, #b23c7c) 40%, transparent);
    color: var(--primary, #b23c7c);
    background: color-mix(in srgb, var(--primary, #b23c7c) 6%, #ffffff);
}
.catalogue-cat-tab.active {
    background: var(--btn-primary-bg, var(--primary, #b23c7c));
    color: var(--btn-primary-text, #ffffff);
    border-color: var(--btn-primary-bg, var(--primary, #b23c7c));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary, #b23c7c) 25%, transparent);
}

/* ---------- COUNT BAR ---------- */
.catalogue-count-bar {
    padding: 18px 0 8px;
    font-size: 14px;
    color: rgba(0,0,0,.5);
    font-weight: 600;
}
.catalogue-count-bar strong {
    color: #111;
    font-weight: 800;
}

/* ---------- PRODUCTS SECTION ---------- */
.catalogue-products-section {
    padding-bottom: 80px;
    min-height: 400px;
}

/* ---------- PRODUCT GRID (match home page) ---------- */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .catalogue-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .catalogue-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ---------- EMPTY STATE ---------- */
.catalogue-empty-state,
.catalogue-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    min-height: 300px;
    background: var(--primary-pale, #f9f0f5);
    border-radius: 18px;
    margin-top: 20px;
}
.catalogue-search-empty[hidden] {
    display: none !important;
}
.catalogue-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #b23c7c);
    color: #ffffff;
    margin-bottom: 18px;
}
.catalogue-empty-icon.small {
    width: 56px;
    height: 56px;
}
.catalogue-empty-icon.small svg {
    width: 28px;
    height: 28px;
}
.catalogue-empty-state h2,
.catalogue-search-empty strong {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #111;
}
.catalogue-empty-state p,
.catalogue-search-empty span {
    font-size: 14px;
    color: rgba(0,0,0,.5);
    margin-bottom: 20px;
}
.catalogue-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    background: var(--btn-primary-bg, var(--primary, #b23c7c));
    color: var(--btn-primary-text, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
}
.catalogue-empty-btn:hover {
    background: var(--primary-dark, #8b2f61);
}

/* ---------- LOAD MORE ---------- */
.catalogue-load {
    text-align: center;
    padding: 40px 0 0;
}
.catalogue-load p {
    font-size: 13px;
    color: rgba(0,0,0,.45);
    font-weight: 600;
}

/* ---------- ANIMATIONS ---------- */
.catalogue-page .catalogue-hero {
    animation: catHeroIn .5s ease both;
}
.catalogue-page .catalogue-toolbar {
    opacity: 0;
}
.catalogue-page.is-page-ready .catalogue-toolbar {
    animation: catFadeUp .45s ease .05s both;
}
.catalogue-page .catalogue-category-bar {
    opacity: 0;
}
.catalogue-page.is-page-ready .catalogue-category-bar {
    animation: catFadeUp .45s ease .1s both;
}
.catalogue-page .catalogue-products-section {
    opacity: 0;
}
.catalogue-page.is-page-ready .catalogue-products-section {
    animation: catFadeUp .48s ease .15s both;
}

@keyframes catHeroIn {
    from { opacity: .3; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}
@keyframes catFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .catalogue-hero {
        height: 240px;
        margin-top: 60px;
    }
    .catalogue-hero h1 {
        font-size: 36px;
    }
    .catalogue-hero-subtitle {
        font-size: 13px;
    }
    .catalogue-breadcrumb {
        margin-bottom: 40px;
    }
    .catalogue-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 0;
    }
    .catalogue-search {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .catalogue-filters-bar {
        margin-left: 0;
        justify-content: flex-start;
    }
    .catalogue-filter-select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .catalogue-hero {
        height: 200px;
    }
    .catalogue-hero h1 {
        font-size: 28px;
    }
}

/* ============================================================
   OVERRIDE OLD CATALOGUE.CSS CONFLICTS
   ============================================================ */
.catalogue-page .catalogue-layout {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
}
.catalogue-page .catalogue-filter {
    display: none !important;
}
.catalogue-page .catalogue-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
.catalogue-page .catalogue-image-wrap {
    display: none !important;
}
.catalogue-page .catalogue-name {
    display: none !important;
}
.catalogue-page .catalogue-price {
    display: none !important;
}
.catalogue-page .catalogue-sale-price {
    display: none !important;
}
.catalogue-page .catalogue-actions {
    display: none !important;
}
.catalogue-page .catalogue-count {
    display: none !important;
}
.catalogue-page .catalogue-load button {
    display: none !important;
}
.catalogue-page .catalogue-wish {
    display: none !important;
}
