/* Princess Lucy Site – Gsm en tablet (< 1000px), 05-11-2026.
   - compacte header: één rij met menu · logo · winkelmand
   - zoekveld + snelknoppen onder de header (includes/mobile.php)
   - Lowie's keuzes: 2 producten naast elkaar
   - Winter / Bad Tags: compacte balken */

/* Zoekbalk is enkel voor gsm/tablet */
.pl-mobile-bar { display: none; }

@media (max-width: 999.98px) {

    /* ---------- Compacte header ---------- */

    header [data-device="mobile"] [data-row="middle"],
    header [data-device="mobile"] [data-row="bottom"] {
        display: none !important;
    }

    header [data-device="mobile"] [data-row="top"] {
        background: var(--pl-bg, #f7f3ee) !important;
        border-bottom: 1px solid var(--pl-border-soft);
        --height: 64px !important;
        min-height: 64px;
    }

    header [data-device="mobile"] [data-row="top"] .ct-container {
        position: relative;
        min-height: 64px;
    }

    /* Logo in het midden van de bovenste rij */
    header [data-device="mobile"] [data-row="top"] .ct-container::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 118px;
        height: 38px;
        background: url("/wp-content/uploads/2026/07/lucyheader2.webp") center / contain no-repeat;
        pointer-events: none;
        z-index: 1;
    }

    header [data-device="mobile"] .ct-header-trigger {
        border: 1px solid var(--pl-border-soft);
        border-radius: 999px;
        background: #fff;
    }

    /* Winkelmand-knop: enkel het icoon (bedrag weg, anders botst het met het logo) */
    header [data-device="mobile"] .ct-header-cart {
        padding: 0 !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
    }

    header [data-device="mobile"] .ct-header-cart .ct-label {
        display: none !important;
    }

    /* ---------- Zoekveld + snelknoppen ---------- */

    .pl-mobile-bar {
        display: block;
        background: var(--pl-bg, #f7f3ee);
        padding: 10px 14px 12px;
        border-bottom: 1px solid var(--pl-border-soft);
    }

    .pl-mobile-search {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid var(--pl-border);
        border-radius: 999px;
        background: #fff;
        color: var(--pl-text-muted);
    }

    .pl-mobile-search input[type="search"] {
        flex: 1;
        min-width: 0;
        height: 42px;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-family: var(--pl-font-ui);
        font-size: 16px; /* 16px: iPhone zoomt dan niet in */
        color: var(--pl-text-strong);
        outline: none;
    }

    .pl-mobile-chips {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pl-mobile-chips::-webkit-scrollbar { display: none; }

    .pl-mobile-chips a {
        flex: none;
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 0 16px;
        border: 1px solid var(--pl-border);
        border-radius: 999px;
        background: #fff;
        color: var(--pl-text-strong);
        font-family: var(--pl-font-ui);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .pl-mobile-chips a.is-on {
        background: var(--pl-text-strong);
        border-color: var(--pl-text-strong);
        color: #fff;
    }

    /* ---------- Lowie's keuzes: 2 naast elkaar ---------- */

    body .pl-lowie-wrapper .pl-product-info h3 {
        font-size: 16px !important;
        line-height: 1.2 !important;
        min-height: 2.4em;
    }

    body .pl-lowie-wrapper .pl-price .woocommerce-Price-amount,
    body .pl-lowie-wrapper .pl-price .woocommerce-Price-amount bdi {
        font-size: 14px !important;
    }

    body .pl-lowie-wrapper .swiper-button-prev,
    body .pl-lowie-wrapper .swiper-button-next {
        display: none !important; /* vegen werkt; pijltjes overlapten de foto's */
    }

    /* ---------- Winter / Bad Tags: compacte balken ---------- */

    body #pl-home-promos.pl-promos-side .pl-promo-option {
        grid-template-columns: 110px minmax(0, 1fr) !important;
        align-items: center;
        gap: 14px !important;
        padding: 14px !important;
        border-radius: 22px !important;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-image {
        grid-row: 1 !important;
        grid-column: 1 !important;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
        width: 110px !important;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-content {
        grid-row: 1 !important;
        grid-column: 2 !important;
        width: auto !important;
        text-align: left !important;
        padding: 0 !important;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-content > *:not(.pl-featured-label):not(h2):not(.pl-featured-button) {
        display: none !important;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-content h2 {
        font-size: 24px !important;
        margin: 4px 0 10px !important;
        line-height: 1.1;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-label {
        font-size: 11px !important;
        letter-spacing: .12em;
    }

    body #pl-home-promos.pl-promos-side .pl-featured-button {
        min-height: 40px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
    }
}

/* ---------- Productoverzicht op gsm: 2 naast elkaar (05-11-2026) ---------- */

@media (max-width: 689.98px) {

    ul.products,
    [data-products] {
        --shop-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px !important;
    }

    ul.products li.product {
        padding: 10px 10px 14px !important;
        border-radius: 22px !important;
        min-width: 0;
    }

    ul.products li.product figure,
    ul.products li.product .ct-media-container,
    ul.products li.product img {
        border-radius: 16px !important;
    }

    ul.products li.product .pl-product-brand {
        font-size: 11px !important;
        letter-spacing: .08em;
        margin-top: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
        line-height: 1.2 !important;
        min-height: 2.4em;
        margin: 4px 0 6px !important;
        overflow-wrap: anywhere;
    }

    ul.products li.product .pl-price-cart-row {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding-top: 8px !important;
        margin-top: auto;
    }

    ul.products li.product .pl-price {
        min-width: 0;
        margin: 0 !important;
        padding: 0 0 0 4px !important;
        line-height: 1.25;
        text-align: left;
        overflow: visible;
    }

    ul.products li.product .pl-price-cart-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    ul.products li.product .pl-price .woocommerce-Price-amount,
    ul.products li.product .pl-price .woocommerce-Price-amount bdi {
        font-size: 14px !important;
    }

    /* "Prijsklasse" van–tot: onder elkaar */
    ul.products li.product .pl-price .woocommerce-Price-amount {
        display: inline-block;
    }

    ul.products li.product .pl-price-cart-row .button {
        flex: none;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    ul.products li.product .pl-price-cart-row .button svg {
        width: 20px;
        height: 20px;
    }
}

/* ---------- Logo in de header klikbaar (05-11-2026) ---------- */

.pl-logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 380px;   /* = grootte van het logo in header.css */
    height: 70px;
    z-index: 21;
    border-radius: 12px;
}

.pl-logo-link:focus-visible {
    outline: 2px solid var(--pl-accent-dark, #8a6a45);
    outline-offset: 4px;
}

@media (max-width: 999.98px) {
    .pl-logo-link {
        width: 118px;
        height: 38px;
    }
}

/* ---------- Hero op gsm en tablet: tekst en knoppen ONDER de foto ---------- */
/* De foto heeft de titel "Princess Lucy" en de hondjes erin; de tekst
   erover botste met beide. Nu: foto op ware grootte, tekst eronder.
   Tablet (769–1024px) gebruikt de brede foto, gsm (≤ 768px) de staande. */

@media (min-width: 769px) and (max-width: 1024px) {

    body .pl-home-hero {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        aspect-ratio: auto !important;
        background: #efe4d8 !important;
        overflow: hidden;
    }

    body .pl-home-hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 1536 / 1024;
        background: url("/wp-content/uploads/2026/07/princesslucy_desktop.webp") center / cover no-repeat;
    }

    body .pl-hero-content {
        width: auto !important;
        max-width: 640px;
        margin: 0 auto !important;
        padding: 28px 32px 34px !important;
        text-align: center;
    }

    body .pl-hero-content .pl-description,
    body .pl-hero-content .pl-quote {
        font-size: 18px !important;
        color: var(--pl-text-strong, #3f342b);
    }

    body .pl-hero-content .pl-quote {
        margin: 12px 0 22px !important;
    }
}

@media (max-width: 768px) {

    body .pl-home-hero {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        aspect-ratio: auto !important;
        background: #efe4d8 !important;   /* crème uit de foto */
        overflow: hidden;
    }

    body .pl-home-hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 750 / 1013;
        background: url("/wp-content/uploads/2026/07/princesslucy_mobile.webp") center top / cover no-repeat;
        /* onderste stuk van de foto (bloemen/vloer) weglaten */
        margin-bottom: -18%;
    }

    body .pl-hero-content {
        position: relative;
        width: auto !important;
        margin: 0 !important;
        padding: 26px 22px 30px !important;
        background: linear-gradient(to bottom, rgba(239, 228, 216, 0) 0, #efe4d8 22px);
        text-align: center;
    }

    body .pl-hero-content .pl-description {
        font-size: 17px !important;
        line-height: 1.45 !important;
        color: var(--pl-text-strong, #3f342b);
        margin: 0 0 10px !important;
    }

    body .pl-hero-content .pl-quote {
        font-size: 16px !important;
        margin: 0 0 20px !important;
        color: var(--pl-text-strong, #3f342b);
    }

    body .pl-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    body .pl-hero-buttons .pl-button {
        width: 100%;
    }
}

/* ---------- Gsm: knop Inloggen / Mijn account naast het menu-icoon ---------- */

.pl-mobile-account { display: none; }

@media (max-width: 999.98px) {
    .pl-mobile-account {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: 8px;
        border: 1px solid var(--pl-border-soft);
        border-radius: 999px;
        background: #fff;
        color: var(--pl-text-strong, #3f342b);
    }

    .pl-mobile-account:hover { color: var(--pl-accent-dark, #8a6a45); }

    header [data-device="mobile"] [data-row="top"] [data-column="start"] > [data-items] {
        display: flex;
        align-items: center;
    }
}

/* ---------- Productpagina: hint + bestelbalk onderaan (05-11-2026) ---------- */

.pl-choose-hint {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--pl-text-muted, #7a6656);
}

.pl-choose-hint[hidden] { display: none; }

.pl-sticky-buy[hidden] { display: none !important; }

.pl-sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--pl-border-soft);
    box-shadow: 0 -8px 24px rgba(94, 84, 75, .10);
    font-family: var(--pl-font-ui);
}

.pl-sticky-buy__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.pl-sticky-buy__name {
    font-size: 13px;
    color: var(--pl-text-strong, #3f342b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-sticky-buy__price,
.pl-sticky-buy__price .woocommerce-Price-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--pl-price, #7a5f48);
}

.pl-sticky-buy__price .screen-reader-text { display: none; }

.pl-sticky-buy__btn {
    flex: none;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--pl-accent-dark, #8a6a45);
    color: #fff;
    font-family: var(--pl-font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pl-sticky-buy__btn.is-choose {
    background: #fff;
    color: var(--pl-text-strong, #3f342b);
    border: 1.5px solid var(--pl-text-strong, #3f342b);
}

/* Ruimte onderaan zodat de balk niets bedekt (o.a. de footer) */
body.has-sticky-buy { padding-bottom: 76px; }

/* Instagram-meldingen e.d. rechtsonder niet achter de balk */
body.has-sticky-buy .sbi-notice,
body.has-sticky-buy #sbi-fr-notice { bottom: 86px !important; }

/* ---------- Computer: zoekveld naast het vergrootglas (06-11-2026) ---------- */

.pl-hsearch {
    display: inline-flex;
    align-items: center;
    margin: 0 4px 0 0;
}

.pl-hsearch input[type="search"] {
    width: 0;
    min-width: 0;
    height: 42px;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pl-text-strong, #3f342b);
    font-family: var(--pl-font-ui);
    font-size: 14px;
    opacity: 0;
    outline: none;
    transition: width .3s ease, opacity .2s ease, padding .3s ease, border-color .2s;
}

.pl-hsearch.is-open input[type="search"] {
    width: 260px;
    padding: 0 18px !important;
    border-color: var(--pl-border) !important;
    opacity: 1;
}

.pl-hsearch.is-open input[type="search"]:focus {
    border-color: var(--pl-accent-dark, #8a6a45) !important;
}

@media (max-width: 1200px) {
    .pl-hsearch.is-open input[type="search"] { width: 200px; }
}

/* ---------- Gsm-menu (offcanvas) in de huisstijl (06-11-2026) ---------- */

#offcanvas .ct-panel-inner {
    background: var(--pl-bg, #f7f3ee) !important;
    color: var(--pl-text-strong, #3f342b);
    box-shadow: -12px 0 40px rgba(63, 52, 43, .18);
}

#offcanvas .ct-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--pl-border-soft);
}

#offcanvas .pl-oc-logo {
    display: block;
    width: 140px;
    height: 44px;
    background: url("/wp-content/uploads/2026/07/lucyheader2.webp") left center / contain no-repeat;
}

#offcanvas .ct-toggle-close {
    width: 44px;
    height: 44px;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pl-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
    --theme-icon-color: var(--pl-text-strong, #3f342b);
    color: var(--pl-text-strong, #3f342b) !important;
}

#offcanvas .ct-toggle-close svg {
    fill: var(--pl-text-strong, #3f342b) !important;
    width: 12px;
    height: 12px;
}

#offcanvas .ct-panel-content {
    padding: 0 !important;
}

#offcanvas .ct-panel-content-inner {
    padding: 8px 20px 24px !important;
}

#offcanvas .mobile-menu > ul > li {
    border-bottom: 1px solid var(--pl-border-soft);
    margin: 0 !important;
}

#offcanvas .mobile-menu > ul > li > a,
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 !important;
    font-family: var(--pl-font-display) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    color: var(--pl-text-strong, #3f342b) !important;
}

#offcanvas .mobile-menu a:hover,
#offcanvas .mobile-menu [aria-current="page"] > a,
#offcanvas .mobile-menu .current-menu-item > a {
    color: var(--pl-accent-dark, #8a6a45) !important;
}

/* Pijltje om subcategorieën te openen: groter en beter te raken */
#offcanvas .ct-toggle-dropdown-mobile {
    width: 44px !important;
    height: 44px !important;
    margin-right: -10px;
    border-radius: 999px;
    --theme-icon-color: var(--pl-text-strong, #3f342b);
    color: var(--pl-text-strong, #3f342b) !important;
}

#offcanvas .ct-toggle-dropdown-mobile svg {
    fill: var(--pl-text-strong, #3f342b) !important;
}

#offcanvas .mobile-menu .sub-menu {
    margin: 0 0 12px !important;
    padding: 0 0 0 2px !important;
}

#offcanvas .mobile-menu .sub-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 !important;
    font-family: var(--pl-font-ui) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--pl-text-muted, #7a6656) !important;
}

#offcanvas .pl-oc-foot {
    margin-top: 24px;
    padding: 0 20px 28px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#offcanvas .pl-oc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pl-text-strong, #3f342b) !important;
    font-family: var(--pl-font-ui);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

#offcanvas .pl-oc-note {
    margin: 8px 4px 0;
    font-family: var(--pl-font-ui);
    font-size: 13px;
    line-height: 1.4;
    color: var(--pl-text-muted, #7a6656);
}
