/*
 * Minifiguren-Welt – Collector Premium v0.1.0
 * Child of JTL-Shop NOVA. No external fonts/resources.
 */
:root {
    --mw-petrol: #103e46;
    --mw-petrol-2: #0b3037;
    --mw-orange: #f3a324;
    --mw-orange-dark: #d88a10;
    --mw-turquoise: #2e8b91;
    --mw-ink: #18272b;
    --mw-muted: #66777c;
    --mw-soft: #f6f8f8;
    --mw-line: #e3e9e9;
    --mw-white: #ffffff;
    --mw-radius: 18px;
    --mw-shadow: 0 16px 44px rgba(16, 62, 70, .10);
}

html { scroll-behavior: smooth; }
body {
    color: var(--mw-ink);
    background: var(--mw-white);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--mw-petrol); }
a:hover { color: var(--mw-turquoise); }

/* Header / navigation */
#header-top-bar {
    background: var(--mw-petrol) !important;
    color: rgba(255,255,255,.88) !important;
    border: 0 !important;
}
#jtl-nav-wrapper {
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 8px 30px rgba(16,62,70,.07);
    backdrop-filter: blur(10px);
}
#jtl-nav-wrapper .navbar { padding-top: .7rem; padding-bottom: .7rem; }
#jtl-nav-wrapper .nav-link { color: var(--mw-ink); font-weight: 650; }
#jtl-nav-wrapper .nav-link:hover { color: var(--mw-petrol); }
.main-search-wrapper { max-width: 780px !important; }
.main-search-wrapper .form-control,
.search-form-wrapper .form-control {
    min-height: 48px;
    border: 1px solid #cfdada;
    border-radius: 14px 0 0 14px;
    background: #fbfcfc;
    box-shadow: none;
}
.main-search-wrapper .btn,
.search-form-wrapper .btn {
    min-height: 48px;
    border-radius: 0 14px 14px 0;
}

.btn-primary,
.btn.btn-primary {
    background: var(--mw-orange);
    border-color: var(--mw-orange);
    color: #1b2528;
    font-weight: 750;
}
.btn-primary:hover,
.btn.btn-primary:hover {
    background: var(--mw-orange-dark);
    border-color: var(--mw-orange-dark);
    color: #111;
}

/* Keep the empty-shop homepage focused on the new visual */
body[data-page="18"] .breadcrumb-container { display: none; }
body[data-page="18"] #content-wrapper { padding-top: 0; }
body[data-page="18"] #content { overflow: visible; }

.mw-home-preview {
    width: min(1320px, calc(100% - 32px));
    margin: 18px auto 70px;
}
.mw-home-preview * { box-sizing: border-box; }

.mw-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 34px;
    align-items: center;
    padding: clamp(34px, 5vw, 70px);
    overflow: hidden;
    border: 1px solid var(--mw-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(46,139,145,.18), transparent 28%),
        radial-gradient(circle at 70% 80%, rgba(243,163,36,.16), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f7faf9 60%, #eef5f4 100%);
    box-shadow: var(--mw-shadow);
}
.mw-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -130px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 54px solid rgba(16,62,70,.045);
}
.mw-eyebrow,
.mw-kicker {
    display: inline-block;
    color: var(--mw-turquoise);
    font-size: .75rem;
    line-height: 1;
    letter-spacing: .13em;
    font-weight: 850;
    text-transform: uppercase;
}
.mw-hero h1 {
    max-width: 720px;
    margin: 13px 0 18px;
    color: var(--mw-petrol-2);
    font-size: clamp(2.2rem, 5vw, 4.55rem);
    line-height: .99;
    letter-spacing: -.045em;
    font-weight: 850;
}
.mw-hero__content > p {
    max-width: 650px;
    margin: 0 0 25px;
    color: var(--mw-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.65;
}
.mw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mw-btn-primary,
.mw-btn-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
}
.mw-btn-primary {
    background: var(--mw-orange);
    border: 1px solid var(--mw-orange);
    color: #1e282b !important;
}
.mw-btn-primary:hover { background: var(--mw-orange-dark); border-color: var(--mw-orange-dark); }
.mw-btn-secondary {
    background: rgba(255,255,255,.8);
    border: 1px solid #cbd8d8;
    color: var(--mw-petrol) !important;
}
.mw-btn-secondary:hover { background: #fff; border-color: var(--mw-petrol); }
.mw-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #566a6f;
    font-size: .88rem;
    font-weight: 650;
}
.mw-hero__trust i { color: var(--mw-turquoise); margin-right: 6px; }

.mw-hero__visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
}
.mw-display-card {
    position: absolute;
    width: 180px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 25px;
    color: #fff;
    box-shadow: 0 24px 55px rgba(15,54,61,.20);
    backdrop-filter: blur(6px);
}
.mw-display-card span { font-size: 3rem; line-height: 1; font-weight: 900; letter-spacing: -.08em; }
.mw-display-card small { margin-top: 12px; opacity: .76; letter-spacing: .18em; font-weight: 800; }
.mw-display-card--a { z-index: 3; transform: translate(-54px, 6px) rotate(-8deg); background: linear-gradient(145deg, #164f58, #0a2d33); }
.mw-display-card--b { z-index: 2; transform: translate(72px, -22px) rotate(8deg); background: linear-gradient(145deg, #2e8b91, #17676e); }
.mw-display-card--c { z-index: 1; width: 145px; height: 175px; transform: translate(94px, 95px) rotate(13deg); background: linear-gradient(145deg, #f3a324, #ce7d08); color: #243035; }
.mw-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(16,62,70,.12); }
.mw-orbit--1 { width: 330px; height: 330px; }
.mw-orbit--2 { width: 250px; height: 250px; border-style: dashed; }

.mw-section { padding: 68px 6px 0; }
.mw-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.mw-section-heading h2,
.mw-offer-strip h2,
.mw-collector h2,
.mw-newsletter h2 {
    margin: 7px 0 0;
    color: var(--mw-petrol-2);
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    letter-spacing: -.025em;
    font-weight: 840;
}
.mw-section-note { color: var(--mw-muted); font-size: .85rem; text-align: right; }

.mw-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.mw-topic-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid var(--mw-line);
    border-radius: var(--mw-radius);
    background: linear-gradient(155deg, #fff 30%, #f2f6f5 100%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mw-topic-card:hover { transform: translateY(-4px); border-color: #c9d9d9; box-shadow: 0 14px 34px rgba(16,62,70,.09); }
.mw-topic-icon {
    width: 52px;
    height: 52px;
    margin-bottom: auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--mw-petrol);
    color: #fff;
    font-weight: 900;
    letter-spacing: -.04em;
}
.mw-topic-card:nth-child(2) .mw-topic-icon { background: var(--mw-turquoise); }
.mw-topic-card:nth-child(3) .mw-topic-icon { background: #233b46; }
.mw-topic-card:nth-child(4) .mw-topic-icon { background: var(--mw-orange); color: #233036; }
.mw-topic-card strong { color: var(--mw-ink); font-size: 1.16rem; }
.mw-topic-card small { margin-top: 5px; color: var(--mw-muted); }

.mw-product-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.mw-product-preview {
    overflow: hidden;
    border: 1px solid var(--mw-line);
    border-radius: var(--mw-radius);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.mw-product-preview:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,62,70,.08); }
.mw-product-preview__image {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f4f7f7, #e9efef);
    color: #8b999c;
    font-size: .8rem;
    font-weight: 700;
}
.mw-product-preview__image::before {
    content: "";
    width: 38%;
    aspect-ratio: 1;
    border-radius: 22px;
    border: 2px dashed #becbcd;
    position: absolute;
}
.mw-product-preview__image button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid #dde5e5;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--mw-petrol);
    font-size: 1.2rem;
}
.mw-product-preview__body { padding: 16px; }
.mw-product-preview__body small { color: #879497; }
.mw-product-preview__body strong { min-height: 46px; display: block; margin: 4px 0 8px; font-size: .98rem; }
.mw-stock-dot { color: #23744c; font-size: .8rem; font-weight: 700; }
.mw-stock-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #38a868; }
.mw-product-preview__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.mw-product-preview__bottom b { font-size: 1.15rem; }
.mw-mini-cart { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--mw-orange); color: #1e282b; font-size: 1.3rem; font-weight: 900; }

.mw-offer-strip {
    margin-top: 68px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: var(--mw-radius);
    background: #fff8ea;
    border: 1px solid #f4dfb9;
}
.mw-offer-strip h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.mw-offer-strip p { max-width: 430px; margin: 0; color: #806742; }

.mw-collector {
    position: relative;
    margin-top: 24px;
    min-height: 285px;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 36px;
    align-items: center;
    padding: 42px;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(circle at 12% 20%, rgba(46,139,145,.25), transparent 30%), linear-gradient(135deg, #111c20, #18353a 64%, #102a30);
    color: #fff;
}
.mw-collector::after { content: ""; position: absolute; right: -50px; bottom: -100px; width: 280px; height: 280px; border: 38px solid rgba(243,163,36,.08); border-radius: 50%; }
.mw-collector h2 { color: #fff; }
.mw-collector p { max-width: 720px; margin: 10px 0 0; color: rgba(255,255,255,.68); }
.mw-collector__badge {
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: rgba(255,255,255,.06);
    font-weight: 900;
    letter-spacing: .06em;
}
.mw-collector__coming { position: relative; z-index: 2; padding: 10px 14px; border: 1px solid rgba(243,163,36,.55); border-radius: 999px; color: #ffd58c; font-size: .72rem; letter-spacing: .14em; font-weight: 850; }

.mw-newsletter {
    margin-top: 24px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid var(--mw-line);
    border-radius: 22px;
    background: #f7f9f9;
}
.mw-newsletter h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.mw-newsletter p { margin: 7px 0 0; color: var(--mw-muted); }

/* Native JTL product card polish for later Wawi content */
.productbox-inner,
.productbox .productbox-inner {
    border-radius: 16px;
}
.productbox .productbox-title a { color: var(--mw-ink); font-weight: 720; }
.productbox .price { color: var(--mw-petrol-2); font-weight: 850; }

/* Footer */
footer, #footer { background: var(--mw-petrol-2); }
footer a, #footer a { color: rgba(255,255,255,.82); }
footer a:hover, #footer a:hover { color: #fff; }

@media (max-width: 991.98px) {
    .mw-home-preview { width: min(100% - 20px, 900px); margin-top: 10px; }
    .mw-hero { grid-template-columns: 1fr; min-height: auto; padding: 38px 28px; }
    .mw-hero__visual { min-height: 250px; }
    .mw-display-card { width: 145px; height: 180px; }
    .mw-display-card--a { transform: translate(-48px, 2px) rotate(-8deg); }
    .mw-display-card--b { transform: translate(58px, -12px) rotate(8deg); }
    .mw-display-card--c { width: 118px; height: 140px; transform: translate(75px, 73px) rotate(13deg); }
    .mw-topic-grid, .mw-product-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mw-collector { grid-template-columns: 120px 1fr; }
    .mw-collector__badge { width: 110px; height: 110px; border-radius: 22px; font-size: .75rem; }
    .mw-collector__coming { grid-column: 2; justify-self: start; }
}

@media (max-width: 575.98px) {
    .mw-home-preview { width: calc(100% - 14px); margin-bottom: 44px; }
    .mw-hero { border-radius: 20px; padding: 30px 20px; gap: 20px; }
    .mw-hero h1 { font-size: clamp(2.05rem, 12vw, 3rem); }
    .mw-hero__trust { display: grid; gap: 8px; }
    .mw-hero__visual { min-height: 215px; }
    .mw-display-card { width: 120px; height: 150px; border-radius: 18px; }
    .mw-display-card span { font-size: 2.2rem; }
    .mw-display-card--a { transform: translate(-40px, 2px) rotate(-8deg); }
    .mw-display-card--b { transform: translate(48px, -8px) rotate(8deg); }
    .mw-display-card--c { width: 95px; height: 118px; transform: translate(63px, 58px) rotate(13deg); }
    .mw-section { padding-top: 48px; }
    .mw-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .mw-section-note { text-align: left; }
    .mw-topic-grid, .mw-product-preview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mw-topic-card { min-height: 165px; padding: 18px; }
    .mw-topic-icon { width: 44px; height: 44px; }
    .mw-product-preview__body { padding: 12px; }
    .mw-offer-strip, .mw-newsletter { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .mw-collector { grid-template-columns: 1fr; gap: 20px; padding: 30px 22px; }
    .mw-collector__coming { grid-column: auto; }
    .mw-collector__badge { width: 100px; height: 100px; }
}


/* v0.1.2 preview cleanup: the fresh JTL installation ships with an active OPC demo homepage.
   Hide that demo content while Collector Premium is active so the actual shop concept is visible. */
body[data-page="18"] #content > *:not(.mw-home-preview) { display: none !important; }
body[data-page="18"] #content > .mw-home-preview { display: block !important; }

/* Strong visual confirmation that the child stylesheet is loaded */
body.is-nova #jtl-nav-wrapper { border-bottom: 3px solid var(--mw-orange); }
body.is-nova header .navbar-brand { position: relative; }
body.is-nova header .navbar-brand::after {
    content: "MINIFIGUREN-WELT";
    display: inline-block;
    margin-left: 10px;
    color: var(--mw-petrol);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .06em;
    vertical-align: middle;
}
