/* ============================================================
   Full Catalog Page — Luxury Black/White/Gray
   ============================================================ */

body.full-catalog-page {
    background: var(--bg-primary);
}

/* ===== Catalog Hero ===== */
.catalog-hero {
    position: relative;
    padding: 140px 0 90px;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(110, 115, 122, 0.18), transparent 60%),
        linear-gradient(180deg, #0a0a0c 0%, #14161a 55%, #1c1f24 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.catalog-hero::before,
.catalog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.catalog-hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    opacity: 0.55;
}

.catalog-hero::after {
    background:
        radial-gradient(600px 240px at 20% 100%, rgba(191, 197, 204, 0.10), transparent 60%),
        radial-gradient(500px 220px at 85% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.catalog-hero .container {
    position: relative;
    z-index: 1;
}

.catalog-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.catalog-hero-eyebrow i {
    color: #d8dce1;
    font-size: 0.7rem;
}

.catalog-hero h1.catalog-hero-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.15;
    margin: 24px 0 18px;
    letter-spacing: -0.01em;
}

.catalog-hero-title-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    position: relative;
    padding: 0 0.15em;
}

.catalog-hero-title-line::before,
.catalog-hero-title-line::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(216, 220, 225, 0.55);
    pointer-events: none;
}

.catalog-hero-title-line::before {
    top: -8px;
    right: -10px;
    border-bottom: none;
    border-left: none;
}

.catalog-hero-title-line::after {
    bottom: -8px;
    left: -10px;
    border-top: none;
    border-right: none;
}

.catalog-hero-word-1 {
    font-weight: 300;
    background: linear-gradient(180deg, #e7eaee 0%, #9aa0a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.catalog-hero-word-2 {
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #cfd2d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.catalog-hero-sub {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.04rem;
    line-height: 1.8;
}

.catalog-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.catalog-hero-divider span {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.catalog-hero-divider i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.catalog-hero-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.catalog-hero-crumbs a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-hero-crumbs a:hover {
    color: #fff;
}

.catalog-hero-crumbs i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.catalog-hero-crumbs .current {
    color: #fff;
    font-weight: 500;
}

/* ===== Products section adjustments on full catalog page ===== */
body.full-catalog-page .products-section {
    padding-top: 60px;
    padding-bottom: 100px;
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

body.full-catalog-page .products-section .section-header {
    display: none;
}

body.full-catalog-page #show-more-container {
    margin-top: 50px;
}

/* Subtle inset highlight at the top of the catalog */
body.full-catalog-page .products-section .container::before {
    content: '';
    display: block;
    height: 1px;
    margin: 0 auto 30px;
    width: min(280px, 50%);
    background: linear-gradient(90deg, transparent, rgba(20, 22, 26, 0.18), transparent);
}

/* Refined catalog controls bar for the dedicated page — non-sticky on this page */
body.full-catalog-page .catalog-controls,
body.full-catalog-page .catalog-controls.is-stuck {
    position: static;
    top: auto;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(20, 22, 26, 0.06);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 10px 40px -20px rgba(20, 22, 26, 0.18);
}

.catalog-search-wrap {
    margin: 0 auto 14px;
    max-width: 560px;
}

.catalog-search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid rgba(20, 22, 26, 0.10);
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 16px -8px rgba(20, 22, 26, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search-label:focus-within {
    border-color: #14161a;
    box-shadow: 0 0 0 4px rgba(20, 22, 26, 0.08), 0 4px 16px -8px rgba(20, 22, 26, 0.18);
}

.catalog-search-label > i {
    color: #6b7078;
    font-size: 0.95rem;
}

.catalog-search-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: #14161a;
    min-width: 0;
}

.catalog-search-input::placeholder {
    color: #9aa0a8;
}

.catalog-search-clear {
    border: 0;
    background: rgba(20, 22, 26, 0.06);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #4a4d52;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-search-clear:hover {
    background: #14161a;
    color: #fff;
}

.catalog-search-clear[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .catalog-hero {
        padding: 110px 0 60px;
    }

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

    .catalog-search-label {
        padding: 10px 14px;
    }

    .catalog-hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.28em;
        padding: 7px 14px;
    }

    .catalog-hero-sub {
        font-size: 0.95rem;
    }
}
