.prebuilt-main-section .products{
    padding-top: 5px;
}
.prebuilt-main-section .deals-banner{
    padding: 10px 20px;
    background: linear-gradient(90deg, rgb(56 176 146) 0%, rgb(64 132 170) 47%, rgb(74 83 198) 100%);
}
.prebuilt_delivery_terms{
    margin: 0;
}
/* Container styling to line up the blocks and colons horizontally */
.prebuilt_countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Adjust spacing between blocks and colons */
    font-family: Arial, sans-serif; /* Adjust to match your site's font */
    color: #ffffff;
    padding-bottom: 10px;
}

/* Stacks the digit above the label */
.prebuilt-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The large numbers */
.prebuilt-digit {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
    padding: 10px 20px 10px 20px;
}

/* The smaller labels (Hours, Minutes, Seconds) */
.prebuilt-content {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.9; /* Softens the white text slightly like in the image */
}

.prebuilt-results-info .results-count{
    color: #6c6c6c;
    margin: 20px 0;
    font-family: montserrat-medium;
    text-transform: capitalize;
}

.filter-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #d7f0e9;
    color: #1e7c5f;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* The separator colons */
.prebuilt-colon {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    padding-bottom: 10px; /* Keeps the colons vertically aligned with the numbers */
}

.sidebar {
    background-color: #ebebeb;
    border: 1px solid #d1d1d1;
    color: #1a1a1a;
    width: 250px;
    height: max-content;
    position: sticky;
    top: 5px;
}

.prebuilt-container {
    display: flex;
    box-sizing: border-box;
    margin-left: max(0px, calc(50vw - 553px - 300px));
    margin-right: max(0px, calc(50vw - 295px - 300px));
    gap: 10px;
}
.prebuilt-main-section {
    background-color: #ffffff;
    flex: 1;
}
.prebuilt-mobile-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-prebuilt-options-container:not([hidden]) {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    border-bottom: 1px solid lightgrey;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}
.desktop-prebuilt-options-container:not([hidden]) {
    margin:10px 5px;
    display:flex;
    align-items:center;
    gap: 10px;
}

.mobile-prebuilt-options-button {
    width: 50%;
    font-family: 'Montserrat-Medium';
    font-variant-caps: all-petite-caps;
    min-height: 45px;
    min-width: 150px;
    border: none;
    cursor: pointer;
}
.savings-banner {
    position: absolute;
    left: 10px;
    background-color: #ff004c;
    font-size: 14px;
    padding: 6px 12px;
    color: white;
    text-transform: uppercase;
    font-family: 'Montserrat-Bold';
}
.sort-section {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-section h3{
    font-size: 14px;
    text-transform: none;
    color: #6c6c6c;
}
.sort-section select {
    cursor: pointer;
    border: 1px solid #cbcbcb;
    background: #ebebeb;
    border-radius: 5px;
    margin: 0;
}

.sort-section select:focus-visible{
    border-color: #37b48f;
}


@media all and (max-width: 1217px) {
    .system-builder-container>div {
        width: 50%;
    }
}

.scroll-area {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* Header Styling */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;;
    background-color: #f3f3f3;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'montserrat-bold';
    font-size: 0.9rem;
    line-height: 1;
}

.header-title svg {
    width: 16px;
    height: 16px;
}

.clear-btn {
    background: none;
    border: none;
    font-family: 'Montserrat-Medium', fallback-font;
    color: #065f46;
    text-decoration: underline;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Section Styling */
.scroll-area {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scroll-area::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-group {
    border-bottom: 1px solid #d1d1d1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.section-label {
    margin: 0;
    font-size: 15px;
    text-transform: capitalize;
}

.chevron {
    width: 14px;
    height: 14px;
    color: #666;
}

.options {
    display: flex;
    flex-direction: column;
    padding: 0 15px 15px;
}

/* Custom Input Styling */
.input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat';
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.input-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-input {
    min-height: 18px;
    min-width: 18px;
    background-color: #fff;
    border: 1px solid #71717a;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}


.custom-input.radio {
    border-radius: 50%;
}

/* Checked State logic */
.input-container input:checked + .custom-input {
    border-color: #10b981;
    background-color: #10b981;
}

/* The "Dot" for Radio */
.custom-input.radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.1s;
}

/* Accordion Styles */
.section-header {
    cursor: pointer;
    user-select: none;
}

.filter-group.collapsed:hover {
    background-color: #e0e0e0;
}

.section-header .fa-chevron-up,
.section-header .fa-chevron-down {
    transition: all 0.2s ease;
}

.filter-group.collapsed .fa-chevron-up {
    display: none;
}

.filter-group.collapsed .fa-chevron-down {
    display: inline-block;
}

.filter-group .fa-chevron-down {
    display: none;
}

.filter-group.collapsed .options {
    display: none;
}

.bottom-sheet-layout {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    z-index: 101; /* needs to be a silly number due to footer being set at 100  */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom); /* iOS dynamic spacing bar */
}

/* Unified Black Header Bar */
.bottom-sheet-layout .sheet-header,
.bottom-sheet-layout .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    height: 60px;
    min-height: 60px; /* Prevents compression on short screens */
}

/* Left side header wrappers */
.bottom-sheet-layout .header-title,
.bottom-sheet-layout .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: 1px;
    text-transform: capitalize;
}

/* Unified Teal Square Close Button */
.bottom-sheet-layout .close-btn {
    background-color: #37b48f;
    color: #ffffff;
    border: none;
    height: 100%;
    width: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sort Modal Variant (Auto height based on options) */
.bottom-sheet-sort {
    /* Dynamic height: fits only its content natively */
    height: auto;
}

/* Filter Sidebar Variant (Strictly locked to 60% view height) */
.bottom-sheet-filters {
    height: 60vh !important;
}

/* The scroll container logic dedicated exclusively to the Filters sheet */
.bottom-sheet-filters .scroll-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* Universal Row Selection Styles */
.bottom-sheet-layout .sort-options,
.bottom-sheet-layout .options {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.bottom-sheet-layout .input-container,
.bottom-sheet-layout .sort-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 15px;
    color: #111111;
    cursor: pointer;
}

.mobile-only-filters .scroll-area .filter-group .options > .input-container {
    justify-content: left;
}

.mobile-only-filters .scroll-area .filter-group .options .input-container{
    padding: 18px;
}

.input-container:has(.filter-checkbox:checked) .custom-input {
    background: #00bb95;
    padding: 3px;
    background-clip: content-box;
    border-color: #00bb95;
}


/* Target dividers between line items */
.bottom-sheet-filters .filter-group {
    border-bottom: 1px solid #f0f0f0;
}
.bottom-sheet-filters .input-container {
    border-top: 1px solid #f2f2f2
}
.bottom-sheet-sort .sort-options li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    backdrop-filter: blur(1px);
}

/* Completely hidden raw native elements */
.bottom-sheet-layout input[type="checkbox"].filter-checkbox,
.bottom-sheet-layout input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom Circular Selection Button UI element */
.bottom-sheet-layout .custom-input,
.bottom-sheet-layout .sort-custom-radio {
    height: 22px;
    width: 22px;
    min-height: 22px;
    min-width: 22px;
    border: 2px solid #b0b0b0;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Active checked state for both items across menus */
.bottom-sheet-layout input:checked ~ .custom-input,
.bottom-sheet-layout input:checked {
    border-color: #00bfa5;
    background-color: #00bfa5;
    box-shadow: inset 0 0 0 3px #ffffff; /* White doughnut core pattern */
}

.bottom-sheet-filters .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #eeeeee;
    cursor: pointer;
}
.bottom-sheet-filters .section-label {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.bottom-sheet-filters .filter-actions-row {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}
.bottom-sheet-filters .clear-btn {
    background: none;
    border: none;
    color: #37b48f;
    font-weight: 600;
    cursor: pointer;
}

#desktopOptionsContainer {
    padding: 0 25px; /* match below */
}

.mobile-results-count {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
    display: none;
}

.todays-deals-banner {
    display: flex;
    gap: 40px;
    background-color: #f6014d;
    padding: 20px 20px;
    align-items: center;
    background: linear-gradient(90deg, rgb(246 1 77) 0%, rgb(156 12 77) 47%, rgb(77 23 78) 100%);
    color: #fff;
    margin: 0 20px;
}
.todays-deals-banner>h4 {
    margin: 10px 0;
}
.todays-deals-banner>p {
    font-size: 0.9rem;
}
.todays-deals-banner .btn-deals {
    margin-left: auto;
    color: #fff;
    border: 1px solid #fff;
    padding: 7px 20px;
}

.todays-deals-banner .btn-deals:hover{
    background-color: #ffffff;
    color: #000000;
}

.why-choose-container {
    display:flex;
    gap: 20px;
    font-size: 0.9rem;
    margin: 40px 20px 20px;
}
.why-choose-section {
    gap: 15px;
    font-size: 0.9rem;
    padding: 20px;
    background-color: #ececec;
}
.why-choose-item {
    background: #ececec;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
}
.why-choose-section .why-choose-icon {
    background: #767676;
    padding: 15px;
    border-radius: 10px;
}
.why-choose-section .why-choose-icon img{
    width: 70px;
}
.headlines-container {
    display: flex;
    gap: 20px;
    padding: 0 20px
}

.headline {
    background-color: #ececec;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: 50%;
}

.headline .headline-content{
    padding-left: 25px;
}

.headline-desktop {
    background: #ececec url('https://www.pcspecialist.co.uk/images/landing/pcs/prebuilt-desktop-headline.png') no-repeat calc(100% - 10px) center;
}

.headline-laptop {
    background: #ececec url('https://www.pcspecialist.co.uk/images/landing/pcs/prebuilt-laptops-headline.png') no-repeat calc(100% - 10px) center;
}

.headline-title {
    max-width: 300px;
}

.headline-image-bg {
    display: none;
}

.headline-price {
    background: white;
    font-family: 'Montserrat', fallback-font;
    padding: 4px 15px;
    border-radius: 15px;
    margin: 30px 0px;
    width: fit-content;
}

.headline-price span{
    font-family: 'Montserrat-Bold', fallback-font;
    color: #37b48f;
}

.headline-button i{
    margin-left: 5px;
}

/* Container adjustments */
.bestsellers-carousel-wrapper {
    max-width: 100%;
    margin-bottom: 40px;
}


/* Card Row Layout */
.bestsellers-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Enables responsive swipe/scroll behavior if screen narrows */
    padding: 40px 20px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bestsellers-grid::-webkit-scrollbar {
    display: none;
}
/* Base Card Style */
.product-card {
    flex: 1;
    min-width: 310px;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Dark Header on Card */
.card-header {
    background: #232323;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-family: 'Montserrat-Bold';
    font-size: 14px;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: #ececec;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* Save Ribbon Badge */
.badge-save {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff004c;
    color: white;
    font-family: 'Montserrat-Bold';
    font-size: 14px;
    padding: 6px 12px;
    z-index: 2;
}

/* Centered Desktop/Laptop Previews */
.product-image {
    display: block;
    max-height: 160px;
    object-fit: contain;
    margin: 15px auto 25px auto;
}

/* Pricing Sections */
.price-container {
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.configurator-price {
    font-family: 'Montserrat', fallback-font;
    font-size: 14px;
    color: #444;
    margin-bottom: 3px;
}

.configurator-price del{
    color: #4c0000;
    font-family: 'Montserrat-Bold', fallback-font;
}

.current-price {
    font-family: 'Montserrat-Bold', fallback-font;
    font-size: 20px;
}

.current-price small {
    font-family: 'Montserrat', fallback-font;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    display: inline-block;
    margin-left: 3px;
}

.price-red { 
    color: #ff0055; 
}

.price-green { color: #00a88f; }

/* Specifications Bullet List */
.specs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px!important;
    flex-grow: 1; /* Pushes the buy button to the exact bottom uniformally */
}

.specs-list li {
    font-size: 12px;
    margin-bottom: 0 !important;
}

/* Green Action Button */
.card-body .btn{
    width: 100%;
}

/* Bottom Left Arrow Buttons */
.carousel-controls {
    display: flex;
    gap: 8px;
    padding-left: 20px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #37b48f;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.control-btn:hover {
    background: #1e7c5f;
}

.headlines-title{
    text-align: center;
    position: relative;
    margin: 40px 0 0; 
}
.headlines-title > div{
    max-width: 450px;
    margin: 0 auto;
    padding: 0 10px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}
.seperator-line {
    height: 3px;
    border: none;
    background: #ebebeb;
    position: absolute;
    top: 18%;
    left: 25px;
    right: 25px;
    z-index: 0;
}

.seperator-line .seperator-overlaid-header {
    background-color:white;
    position: absolute;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    width: fit-content;
    height: fit-content;
    padding: 0 20px;
    margin: 0;
}

.seperator-overlaid-subheader {
    position: relative;
    font-family: 'Montserrat-Light', fallback-font;
    font-size: 14px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    text-align: center;
}

.next-day-headline-container .headline {
    min-height: 250px;
}

@media screen and (max-width: 1217px) {

    #desktopOptionsContainer > .sort-section {
        display: none;
    }
    .fl {
        text-align: center;
    }
    .walk-through-header .fl:first-child {
        display:none;
    }

    #mobileOptionsContainer, .mobile-results-count {
        display: flex;
    }

    .prebuilt-container {
        margin-top: 0px;
    }

    .prebuilt-sidebar, #desktopOptionsContainer, .prebuilt_delivery_terms, .prebuilt_countdown  {
        display: none;
    }

    .deals-banner-inner, .deals-banner {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .prebuilt-main-section .deals-banner {
        padding: 30px;
    }

    .product-card {
        width: 100%;
    }

    /* Bestsellers carousel - show one card at a time */
    .bestsellers-carousel-wrapper {
        overflow: hidden;
        position: relative;
        margin-right: 0;
    }

    .bestsellers-grid {
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        pointer-events: none;
        touch-action: auto;
    }

    .bestsellers-grid::-webkit-scrollbar {
        display: none;
    }

    .bestsellers-grid .product-card {
        min-width: 49%;
        flex-shrink: 0;
        margin: 0;
        scroll-snap-align: center;
        pointer-events: auto;
    }

    .seperator-overlaid-subheader {
        margin-top: 35px;
    }

    .why-choose-container {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 80px;
    }

    .why-choose-section {
        width: 100%;
        border-radius: 10px;
    }
    .why-choose-section .why-choose-icon img{
        width: 40px;
    }
}


@media screen and (max-width: 450px) {
    .seperator-overlaid-subheader {
        margin-top: 60px;
    }

    .why-choose-container {
        margin-top: 100px;
    }

    .todays-deals-banner {
        flex-direction: column;
        align-items: center;
    }

    .todays-deals-banner .btn-deals {
        margin-left: 0;
    }
}

@media screen and (max-width: 980px) {

    .headlines-container {
        flex-wrap: wrap;
    }
    .next-day-headline-container .headline {
        width: 100%;
        background: #ececec !important;
        align-items: center;
        padding: 20px;
        gap: 15px;
    }

    .next-day-headline-container .headline-title {
        margin: 0 0 15px 0;
        text-align: center;
        max-width: 100%;
    }

    .next-day-headline-container .headline-image-bg {
        display: block;
        width: 100%;
        height: 200px;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .next-day-headline-container .headline-price {
        margin: 30px auto;
    }

    .headline .headline-content{
        padding-left: 0;
        width: 100%;
    }

.headline a button{
    width: 100%;
}

}
@media screen and (max-width: 820px) {
    .todays-deals-banner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .todays-deals-banner .btn-deals {
        margin-left: 0;
    }

    .bestsellers-grid .product-card{
        min-width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .next-day-headline-container .headline-title {
        margin: 0 0 15px 0;
        text-align: center;
    }
    .headline a {
        text-align: center;
    }
    .todays-deals-banner p {
        display: none;
    }
}

@media screen and (min-width: 1218px) {
    .fl {
        display:block;
    }
    .prebuilt-sidebar, .prebuilt_delivery_terms {
        display: block;
    }

    #desktopOptionsContainer, .prebuilt_countdown {
        display: flex;
    }
    #desktopOptionsContainer {
        position: relative;
        justify-content: space-between;
    }

    #mobileOptionsContainer {
        display: none;
    }

    .sidebar-header{
        border-bottom: 1px solid #d1d1d1;
        padding: 10px;
    }
    .options{
        gap: 16px;
    }

}



