/* ==========================================================================
   Blume Produktbereich – Frontend Styles
   Scoped to .blume-pb-wrapper to avoid theme conflicts.
   ========================================================================== */

.blume-pb-wrapper *,
.blume-pb-wrapper *::before,
.blume-pb-wrapper *::after {
    box-sizing: border-box;
}

.blume-pb-wrapper {
    color: #3e3f3f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.blume-pb-wrapper a {
    text-decoration: none;
    color: inherit;
}

.blume-pb-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.blume-pb-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.blume-pb-sidebar {
    flex-shrink: 0;
    width: 354px;
}

.blume-pb-wrapper .sidebar-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: -1px 3px 20px -11px #3e3f3f;
    overflow: hidden;
}

.blume-pb-wrapper .sidebar-header {
    background: linear-gradient(to right, #e2017b, #b03587);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 45px;
    line-height: 1.3;
}

.blume-pb-wrapper .sidebar-body {
    padding: 30px 45px 40px;
}

.blume-pb-wrapper .sidebar-all-link {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #3e3f3f;
    text-decoration: underline;
    text-underline-offset: 0.1em;
    margin-bottom: 24px;
}

.blume-pb-wrapper .sidebar-all-link:hover {
    color: #e2017b;
}

.blume-pb-wrapper .category-list > li,
.blume-pb-wrapper .subcategory-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.blume-pb-wrapper .category-link {
    font-size: 16px;
    font-weight: 400;
    color: #3e3f3f;
    line-height: 30px;
    flex: 1;
}

.blume-pb-wrapper .category-link:hover {
    color: #e2017b;
}

.blume-pb-wrapper .category-link.active {
    font-weight: 700;
    color: #e2017b;
}

.blume-pb-wrapper .category-toggle {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.blume-pb-wrapper .category-toggle:focus-visible {
    outline: 2px solid #e2017b;
    outline-offset: 2px;
    border-radius: 3px;
}

.blume-pb-wrapper .toggle-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.blume-pb-wrapper .toggle-icon::before,
.blume-pb-wrapper .toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #e2017b;
    transform: translateY(-50%);
}

.blume-pb-wrapper .toggle-icon::after {
    transition: opacity 0.2s ease;
    transform: translateY(-50%) rotate(90deg);
}

.blume-pb-wrapper .category-toggle[aria-expanded="true"] .toggle-icon::after {
    opacity: 0;
}

.blume-pb-wrapper .subcategory-list {
    display: block;
    width: 100%;
    padding-left: 20px;
    margin-bottom: 8px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
    will-change: height, opacity;
}

.blume-pb-wrapper .subcategory-list.is-open {
    opacity: 1;
}

.blume-pb-wrapper .subcategory-list li a {
    font-size: 16px;
    font-weight: 400;
    color: #3e3f3f;
    line-height: 30px;
}

.blume-pb-wrapper .subcategory-list li a:hover {
    color: #e2017b;
}

.blume-pb-wrapper .subcategory-list li a.active {
    color: #e2017b;
    font-weight: 700;
}

/* ==========================================================================
   Product listing section
   ========================================================================== */

.blume-pb-listing {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Controls (search + per-page)
   ========================================================================== */

.blume-pb-wrapper .listing-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.blume-pb-wrapper .blume-pb-search-form {
    flex: 0 1 570px;
}

.blume-pb-wrapper .search-box {
    display: flex;
    height: 45px;
}

.blume-pb-wrapper .search-input {
    flex: 1;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0 20px;
    font-size: 16px;
    color: #3e3f3f;
    outline: none;
    background: #fff;
}

.blume-pb-wrapper .search-input::placeholder {
    color: #aaa;
}

.blume-pb-wrapper .search-input:focus {
    border-color: #e2017b;
}

.blume-pb-wrapper .search-clear-btn {
    height: 45px;
    min-width: 52px;
    padding: 0 18px;
    border: 2px solid #ddd;
    border-left: none;
    background: #fff;
    color: #3e3f3f;
    font-size: 22px;
    font-weight: 700;
    line-height: 41px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.blume-pb-wrapper .search-clear-btn:hover {
    background: #f6f6f6;
}

.blume-pb-wrapper .search-box-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(to right, #e2017b, #b03587);
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blume-pb-wrapper .search-box-btn:hover {
    opacity: 0.9;
}

.blume-pb-wrapper .per-page-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.blume-pb-wrapper .per-page-label {
    font-size: 16px;
    font-weight: 700;
    color: #3e3f3f;
    white-space: nowrap;
}

.blume-pb-wrapper .per-page-select {
    min-width: 78px;
    height: 38px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0 30px 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #3e3f3f;
    background: #fff;
    cursor: pointer;
}

.blume-pb-wrapper .per-page-select:focus {
    outline: none;
    border-color: #e2017b;
}

/* ==========================================================================
   Product items
   ========================================================================== */

.blume-pb-wrapper .product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blume-pb-wrapper .blume-pb-no-results {
    margin: 0;
    font-size: 16px;
    color: #3e3f3f;
}

.blume-pb-wrapper .product-item {
    background: #f8f8f8;
    border-radius: 30px;
    padding: 20px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 160px;
    overflow: hidden;
}

.blume-pb-wrapper .product-details {
    flex: 1;
    min-width: 0;
}

.blume-pb-wrapper .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #3e3f3f;
    line-height: 30px;
    margin: 0;
}

.blume-pb-wrapper .product-desc {
    font-size: 16px;
    font-weight: 400;
    color: #3e3f3f;
    line-height: 30px;
    margin: 0;
}

.blume-pb-wrapper .product-ref {
    font-size: 16px;
    font-weight: 400;
    color: #3e3f3f;
    line-height: 30px;
    margin: 0;
}

.blume-pb-wrapper .product-manufacturer {
    font-size: 16px;
    font-weight: 400;
    color: #3e3f3f;
    line-height: 30px;
    margin: 0;
}

.blume-pb-wrapper .product-ref span,
.blume-pb-wrapper .product-manufacturer span {
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.blume-pb-wrapper .product-manufacturer a {
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.blume-pb-wrapper .product-manufacturer a:hover {
    color: #e2017b;
}

.blume-pb-wrapper .product-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    flex-shrink: 0;
    align-self: stretch;
}

.blume-pb-wrapper .product-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 3D button */
.blume-pb-wrapper .btn-3d {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    text-decoration: none;
}

.blume-pb-wrapper .btn-3d-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 73px;
    height: 35px;
    background: linear-gradient(to right, #e2017b, #b03587);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.blume-pb-wrapper .btn-3d:hover .btn-3d-inner {
    opacity: 0.9;
}

/* Shared button base */
.blume-pb-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 35px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    width: 220px;
    text-decoration: none;
}

.blume-pb-wrapper .btn-outline {
    border: 2px solid #e2017b;
    color: #e2017b;
    background: transparent;
}

.blume-pb-wrapper .btn-outline:hover {
    background: #fce4f0;
}

.blume-pb-wrapper .btn-primary {
    background: linear-gradient(to right, #e2017b, #b03587);
    color: #fff;
    border: none;
}

.blume-pb-wrapper .btn-primary:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.blume-pb-wrapper .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    font-size: 16px;
}

.blume-pb-wrapper .pagination-label {
    font-weight: 700;
    margin-right: 4px;
}

.blume-pb-wrapper .page-link {
    font-weight: 400;
    color: #3e3f3f;
    padding: 2px 6px;
}

.blume-pb-wrapper .page-link:hover {
    color: #e2017b;
}

.blume-pb-wrapper .page-link.active {
    font-weight: 700;
    color: #e2017b;
}

.blume-pb-wrapper .page-dots {
    color: #3e3f3f;
}

.blume-pb-wrapper .page-next {
    display: flex;
    align-items: center;
    padding: 2px 4px;
}

.blume-pb-wrapper .page-next:hover svg path {
    fill: #b03587;
}

/* ==========================================================================
   Accessibility helper
   ========================================================================== */

.blume-pb-wrapper .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .blume-pb-inner {
        flex-direction: column;
        gap: 30px;
    }

    .blume-pb-sidebar,
    .blume-pb-listing {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blume-pb-wrapper .product-item {
        flex-direction: column;
        gap: 16px;
    }

    .blume-pb-wrapper .product-actions {
        align-items: stretch;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .blume-pb-wrapper .btn {
        width: 100%;
    }

    .blume-pb-wrapper .btn-3d {
        justify-content: center;
    }

    .blume-pb-wrapper .listing-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .blume-pb-wrapper .blume-pb-search-form {
        flex: 1;
    }

    .blume-pb-wrapper .per-page-form {
        justify-content: space-between;
    }
}
