/* Main fragrance archives only. The content marker also survives AJAX navigation. */
body:has(.cgr-fragrance-intro) .page-title {
    --cgr-fragrance-band: 160px;
    position: relative;
    padding: 0;
    margin: 0 0 22px;
    background: #fff !important;
    border-bottom: 1px solid #e1e7e4;
    text-align: left;
    overflow: visible;
}
body:has(.cgr-fragrance-intro) .page-title::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--cgr-fragrance-band);
    background: linear-gradient(to right, #22323b, transparent 35%) no-repeat right center / calc(var(--cgr-fragrance-band) * 3) 100%, url("https://candle.gr/wp-content/uploads/cgr-fragrance-atelier-v1.webp") no-repeat right center / auto 100%, #22323b;
    pointer-events: none;
}
body:has(.cgr-fragrance-intro) .page-title .wd-page-title-bg,
body:has(.cgr-fragrance-intro) .page-title .wd-back-btn { display: none; }
body:has(.cgr-fragrance-intro) .page-title > .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
}
body:has(.cgr-fragrance-intro) .page-title .wd-title-wrapp {
    display: flex;
    align-items: center;
    min-height: var(--cgr-fragrance-band);
    margin: 0;
    text-align: left;
}
body:has(.cgr-fragrance-intro) .page-title .entry-title {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.025em;
    text-shadow: 0 1px 3px rgba(0,0,0,.18);
}
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 4px 12px;
    margin: 0;
    padding: 10px 0;
    background: #fff !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li > a {
    min-height: 44px;
    padding: 8px 10px;
    color: #283b35 !important;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    opacity: 1;
}
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li > a:hover,
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li.current-cat > a {
    background: #edf3f0;
    color: #155f54 !important;
}
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat .nav-link-text,
body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat .nav-link-summary {
    color: inherit;
    opacity: 1;
}
body:has(.cgr-fragrance-intro) .page-title a:focus-visible {
    outline: 2px solid #238375;
    outline-offset: -3px;
}
body:has(.cgr-fragrance-intro) .page-title .nav-link-count { display: none; }
body:has(.cgr-fragrance-intro) .wd-content-layout { padding-top: 0; }
.cgr-fragrance-intro { margin: 0 0 14px; }
.cgr-fragrance-intro p { margin: 0; color: #454e4a; font-size: 16px; line-height: 1.5; }
.cgr-fragrance-about { margin: 28px 0 0; padding: 18px 0; border-top: 1px solid #e6ebe8; color: #59655e; }
.cgr-fragrance-about summary { cursor: pointer; min-height: 32px; font-size: 14px; font-weight: 500; }
.cgr-fragrance-about p { margin: 10px 0 0; max-width: 800px; font-size: 14px; line-height: 1.65; }
body:has(.cgr-fragrance-intro) .shop-loop-head { margin-bottom: 16px; }
body:has(.cgr-fragrance-intro) .wd-breadcrumbs,
body:has(.cgr-fragrance-intro) .woocommerce-breadcrumb { font-size: 13px; line-height: 1.5; }
@media (max-width: 1024px) {
    body:has(.cgr-fragrance-intro) .page-title { --cgr-fragrance-band: 88px; margin-bottom: 16px; }
    body:has(.cgr-fragrance-intro) .page-title::before {
        background-image: url("https://candle.gr/wp-content/uploads/cgr-fragrance-atelier-v1.webp");
        background-size: cover;
        background-position: center 58%;
    }
    body:has(.cgr-fragrance-intro) .page-title .entry-title { font-size: 30px; }
    body:has(.cgr-fragrance-intro) .page-title .wd-btn-show-cat { margin: 0; }
    body:has(.cgr-fragrance-intro) .page-title .wd-btn-show-cat a {
        min-height: 44px; padding: 10px 12px; border: 1px solid #e0e5e3; border-radius: 6px;
        color: #293c35 !important; background: #fff !important; font-size: 14px; font-weight: 500; line-height: 1.3;
        opacity: 1;
    }
    body:has(.cgr-fragrance-intro) .page-title .wd-btn-show-cat a:after { color: currentColor; }
    body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat {
        width: 100%;
        max-height: min(60vh, 380px);
        max-height: min(60dvh, 380px);
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #9dafaa #f4f7f5;
        margin: 0;
        padding: 4px 0;
        border-top: 1px solid #e1e7e4;
    }
    body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li { margin: 0; border: 0; }
    body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li + li { border-top: 1px solid #e9edeb; }
    body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li > a {
        display: flex; align-items: center; min-height: 48px; padding: 12px 10px;
        border: 0; font-size: 15px; text-transform: none;
    }
    body:has(.cgr-fragrance-intro) .page-title .wd-nav-product-cat > li > a::after { display: none; }
    .cgr-fragrance-intro p { font-size: 15px; }
    body:has(.cgr-fragrance-intro) .cgr-notes-mobile-toolbar { margin-bottom: 14px; }
    body:has(.cgr-fragrance-intro) .cgr-notes-mobile-toolbar .cgr-notes-trigger {
        min-height: 46px; padding: 10px 12px; gap: 9px; border: 1px solid #bccfca; border-radius: 6px;
        background: #e9f0ed; color: #1d5148; font-size: 14px; line-height: 1.35; font-weight: 500;
        animation: none; box-shadow: none;
    }
    body:has(.cgr-fragrance-intro) .cgr-notes-mobile-toolbar .cgr-notes-trigger:hover { background: #e2ece7; color: #17483f; }
    body:has(.cgr-fragrance-intro) .cgr-notes-trigger .cgr-notes-new {
        min-height: 18px; padding: 3px 6px; border-radius: 4px;
        background: #fae5df; color: #a13e34; font-size: 10px;
    }
    body:has(.cgr-fragrance-intro) .shop-loop-head .wd-show-sidebar-btn { display: none; }
    body:has(.cgr-fragrance-intro) .shop-loop-head .wd-breadcrumbs { margin: 0 0 12px; }
}
@media (max-width: 359px) {
    body:has(.cgr-fragrance-intro) .page-title .entry-title { font-size: 27px; }
    body:has(.cgr-fragrance-intro) .page-title .wd-btn-show-cat a { padding-inline: 9px; font-size: 13px; }
}

/* Keep the draft-only review notice usable on phones. Never appears on the live theme. */
@media (max-width: 1024px) {
    body:has(.cgr-fragrance-intro) #wpvibe-preview-banner {
        display: flex !important; justify-content: space-between !important; align-items: center !important;
        gap: 8px !important; padding: 7px 10px !important; min-height: 0 !important;
        flex-wrap: nowrap !important; font-size: 10px !important; line-height: 1.3 !important;
    }
    body:has(.cgr-fragrance-intro) #wpvibe-preview-banner .wpvibe-badge {
        flex: 1 1 auto !important; font-size: 10px !important; line-height: 1.3 !important;
    }
    body:has(.cgr-fragrance-intro) #wpvibe-preview-banner .wpvibe-info,
    body:has(.cgr-fragrance-intro) #wpvibe-preview-banner .wpvibe-btn-live { display: none !important; }
    body:has(.cgr-fragrance-intro) #wpvibe-preview-banner .wpvibe-btn-stop {
        flex: 0 0 auto !important; max-width: 118px; padding: 6px 8px !important;
        font-size: 10px !important; line-height: 1.3 !important; white-space: normal !important;
    }
}
