/* Placeholder file required so Magento static content deploy does not fail */

.bw-filter-toggle,
.bw-postcode-input button {
    background: #0188cc;
    color: #ffffff;
}

.bw-clear-all,
.bw-show-more,
.bw-postcode-change {
    color: #0188cc;
}

.filter-options-title::after {
    border-right-color: #0188cc;
    border-bottom-color: #0188cc;
}

.bw-postcode-input input:focus {
    border-color: #0188cc;
}

@media (min-width: 1200px) {
  .bw-sidebar-sticky {
    position: sticky;
    top: 160px;
    width: 25%;
  }
}
@media (min-width: 768px) {
  .page-layout-2columns-left .columns .column.main {
    width: 75%;
  }
}
.bw-header-cart {
    position: relative;
}

.bw-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;

    background: #e60023;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;           /* allows 2–3 digits */

    display: inline-flex;     /* key for centring */
    align-items: center;      /* vertical centre */
    justify-content: center;  /* horizontal centre */

    border-radius: 999px;     /* pill shape when wider */
    line-height: 1;

    box-sizing: border-box;
}
.bw-cart-count.bump {
    animation: cartBump 0.3s ease;
}

@keyframes cartBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}


/* =====================================================
   LAYOUT WRAPPER (BASE)
===================================================== */

.bw-layout-wrapper {
  
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.page-main,
.page-main > .columns,
.bw-layout-wrapper {
    overflow: visible;
}

/* =====================================================
   DESKTOP LAYOUT (>= 900px)
===================================================== */

@media (min-width: 1200px), print {

    .bw-layout-wrapper {
        flex-direction: row;
    }

    .bw-layout-wrapper .column.main {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .bw-layout-wrapper .sidebar.sidebar-main {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .bw-sidebar-sticky .block.filter {
    position: sticky;
    top: 20px;
    z-index: 5;
    overflow-y: auto;
    }
}


/* =====================================================
   MOBILE / TABLET LAYOUT (< 900px)
===================================================== */

@media (max-width: 1199px) {

      /* Close filter content by default when at top */
    .block.filter .filter-content {
        display: none;
    }

    /* Open only when user toggles */
    .block.filter.active .filter-content {
        display: block;
    }

    /* FILTER FIRST */
    .bw-layout-wrapper .sidebar.sidebar-main {
      
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* MAIN CONTENT FULL WIDTH */
    .bw-layout-wrapper .column.main {
     
        width: 100%;
        max-width: 100%;
    }

    /* Disable sticky on mobile */
    .bw-sidebar-sticky {
        position: static;
    }
}
@media (min-width: 1200px) {

    .block.filter .filter-content {
        display: block !important;
    }
}

/* =====================================================
   FILTER CARD STYLING
===================================================== */

.bw-sidebar-sticky .block.filter {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eef1f4;
}

/* =====================================================
   FILTER HEADER
===================================================== */

.bw-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e6ebf0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.bw-filter-header strong {
    font-size: 18px;
    font-weight: 700;
    color: #0b1f33;
}

.bw-clear-all {
    font-size: 14px;
    font-weight: 600;
    color: #0a5fd8;
    text-decoration: none;
}

.bw-clear-all:hover {
    text-decoration: underline;
}

/* =====================================================
   FILTER OPTIONS
===================================================== */

.filter-options-item {
    padding: 14px 0;
    border-bottom: 1px solid #eef1f4;
}

.filter-options-item:last-child {
    border-bottom: none;
}

.filter-options-title {
    font-size: 16px;
    font-weight: 700;
    color: #0b1f33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-options-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #0a5fd8;
    border-bottom: 2px solid #0a5fd8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.filter-options-item.active > .filter-options-title::after {
    transform: rotate(-135deg);
}

.filter-options-content {
    margin-top: 10px;
}

.filter-options-content li {
    padding: 6px 0;
}

.filter-options-content a,
.filter-options-content label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #0b1f33;
    line-height: 1.4;
}

.filter-options-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #0a5fd8;
}

.filter-count {
    font-size: 13px;
    color: #6b7280;
    margin-left: 6px;
}

/* =====================================================
   SHOW MORE BEHAVIOUR
===================================================== */

.bw-sidebar-sticky .filter-options-content .items > li:nth-child(n+7) {
    display: none;
}

.bw-sidebar-sticky .filter-options-content.is-expanded .items > li {
    display: list-item;
}

.bw-show-more {
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0a5fd8;
    cursor: pointer;
}

.bw-show-more:hover {
    text-decoration: underline;
}

/* =====================================================
   SCROLLABLE FILTER CONTENT (DESKTOP ONLY)
===================================================== */

@media (min-width: 900px) {

    .bw-sidebar-sticky .block.filter {

        display: flex;
        flex-direction: column;
    }

    .bw-sidebar-sticky .block.filter .filter-content {
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }

    .bw-sidebar-sticky .filter-content::-webkit-scrollbar {
        width: 6px;
    }

    .bw-sidebar-sticky .filter-content::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 6px;
    }
}

/* =====================================================
   MOBILE FILTER TOGGLE
===================================================== */

/* Hidden by default (desktop) */
.bw-filter-toggle-wrapper {
    display: none;
}

@media (max-width: 1199px) {

    .bw-filter-toggle-wrapper {
        display: block;
        margin-bottom: 10px;
    }

    .bw-filter-toggle {
        width: 100%;
        padding: 14px;
        border-radius: 10px;
        border: none;
        background: #ffd814;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
    }

    /* Hide filter content by default */
    .block.filter .filter-content {
        display: none;
        margin-top: 15px;
        padding: 15px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,.12);
    }

    /* Show when active */
    .block.filter.active .filter-content {
        display: block;
    }

    /* Hide desktop title */
    .filter-title {
        display: none;
    }
}
@media (max-width: 1199px) {

    /* FORCE Magento layout to stack */
    .page-layout-2columns-left .page-main > .columns {
        display: flex;
        flex-direction: column;
    }

    /* Sidebar first */
    .page-layout-2columns-left .sidebar.sidebar-main {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Main content second */
    .page-layout-2columns-left .column.main {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
}
@media (min-width:1200px){

.bw-sidebar-sticky{
    position: sticky;
    top:160px;
    width:25%;
}

}
.columns,
.page-main,
.page-main > .columns{
    overflow: visible !important;
}
@media (min-width:768px){

.page-layout-2columns-left .columns .column.main{
    width:75%;
}

}
.bw-postcode-filter {

    background:#fff;
    border-radius:14px;
    padding:16px;
    margin-bottom:18px;

    border:1px solid #eef1f4;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.bw-postcode-header{
    font-size:16px;
    font-weight:700;
    margin-bottom:10px;
}

.bw-postcode-input{
    display:flex;
    gap:8px;
}

.bw-postcode-input input{

    flex:1;

    padding:10px 12px;

    border-radius:8px;
    border:1px solid #d1d5db;

    font-size:14px;
}

.bw-postcode-input button{

    padding:10px 14px;

    background:#ffd814;
    border:none;

    border-radius:8px;
    font-weight:600;

    cursor:pointer;
}

.bw-postcode-result{

    margin-top:10px;
    font-size:14px;
}

.bw-postcode-change{

    margin-left:8px;
    border:none;
    background:none;

    color:#0a5fd8;
    cursor:pointer;
}

.bw-postcode-toggle{

    display:flex;
    align-items:center;

    gap:8px;
    margin-top:12px;

    font-size:14px;
}
.bw-postcode-filter{

    background:#fff;
    border-radius:12px;

    padding:15px;
    margin-bottom:15px;

    border:1px solid #eef1f4;
}

.bw-postcode-input{

    display:flex;
    gap:6px;
    margin-top:8px;
}

.bw-postcode-input input{

    flex:1;
    padding:8px;

    border:1px solid #ddd;
    border-radius:6px;
}

.bw-postcode-input button{

    background:#ffd814;
    border:none;

    padding:8px 12px;
    border-radius:6px;

    font-weight:600;
}

.bw-postcode-toggle{

    display:flex;
    gap:6px;

    margin-top:10px;
    font-size:14px;
}