/* Product Page Styles */
#main.products {
	display:flex;
	gap:1rem;
	padding: 1rem 60px 0 60px;
    margin-bottom:2rem;
}
#main.products #sidebar {
    width: 20%;
    /* padding: 0 1rem; */
}
#main.products #posts {
	width:100%;
	padding: 0;
}
#filters {
	margin-top:10px;
}
#filters fieldset {
	border:none;
}
.filter-group {
	margin-bottom:1rem;
	padding-bottom:1rem;
	border-bottom:1px solid #f2f2f2
}
.filter-content {
    margin-top: .5rem;
}
li.filter-item {
	list-style:none;
	display:flex;
	gap:4px;
}
.filter-label {
	display:flex;
	align-items:center;
	justify-content:space-between;
	/* margin-bottom:0.5rem; */
	cursor: pointer;
}
#reset-filters {
    background: none;
    border: none;
    margin-bottom: 1rem;
    cursor: pointer;
	/* background:black;
	color:white;
	padding:5px; */
}
#product-filter-controls {
	border:none;
	padding-bottom:1rem;
	border-bottom:1px solid #f2f2f2;
	/* margin-top:1rem; */
	display:flex;
	justify-content:space-between;
    align-items:center;
}
.filter-pill {
    display: flex;
	align-items: center;
	gap: 5px;
    padding: 5px 10px;
    background-color: #000;
	color:#fff;
	cursor: pointer;
}
.filter-pill .dismiss-pill {
    /* margin-left: 10px; */
    border: none;
    background-color: transparent;
    cursor: pointer;
	color: #fff;
}
#active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}
p.filter-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: rgb(255 0 0 / 20%);
    border: 1px solid red;
    color: red;
}
/*  */

#product-search {
    border:none;
    background: #f2f2f2;
    /* border-bottom: 1px solid #f2f2f2; */
    /* width: 100%; */
    /* float: left; */
    /* height: 30px; */
    min-height:45px;
    padding:0 1rem;
    /* max-width: 100%; */
    width: -webkit-fill-available;
}
#search-submit {
	background: url(../svg/search.svg) no-repeat center;
	width: 20px;
	height: 30px;
	border:none;
	cursor: pointer;
	/* float:right; */
	position: absolute;
	right: 1rem;
	top:.5rem;
	z-index:999;
}
#search-submit:hover {
	opacity: 0.8;
}
#search-container {
    position: relative;
    margin-bottom: 1rem;
    /* width: 100%; */
}
#autocomplete-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1000;
	width: 97%;
    left:0;
    right:0;
	max-height: 300px;
	overflow-y: scroll;
	display: none;
    margin-left: auto;
    margin-right: auto;
}
.autocomplete-item {
    padding: 5px 10px;
    cursor: pointer;
}
.autocomplete-item:hover {
    background-color: #eee;
}
span.filter-pill.search-pill img {
    opacity: 0.8;
	filter: invert(1);
    margin-top: 2px;
}
/*  */
button#load-more {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
    border:1px solid #000;
	margin-bottom: 1rem;
    margin-top:1rem;
    border-radius:0px;
}
button#load-more:hover {
    background: white;
    color: black;
}
button#load-more.loading {
    background: transparent;
    color: #000;
}

/* DJ Specific Product Page Styles */

#main.product-filter .product.preview.box .image img {
    width: 100%;
    height: auto;
}
#main.product-filter #posts {
    border:none;
    font-size: unset;
    margin: 0; 
}
#main.product-filter .product.preview .new {
    position: relative;
    display: inline-flex;
    left: unset;
    transform: unset;
}
#main.product-filter .product.preview .header {
    float: unset;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
span.filter-pill p {
    margin:0;
    /* transform:translateY(2px); */
}
span.filter-pill.search-pill img {
    /* filter: brightness(100); */
    margin-top:0;
}
.filter-pill {
    background-color: #000;
    border-radius:0px
}
.product-filter {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    float: unset!important;
    padding-left:20px!important;
    padding-right:20px!important;
}
.filter-group label.filter-item-label {
    /* transform: translateY(2px); */
}
.filter-group ul.filter-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#product-search {
    border-radius:0px;
}
#product-search {
    border-radius: 0px;
}
fieldset#product-filter-controls label {
    /* margin-top: 5px; */
}
.product-filter span.soon,
.product-filter span.discontinued {
    width: auto;
    height: 30px;
    display: block;
    font-family: 'Helvetica LT Std', sans-serif;
    font-size: 18px;
    color: rgb(5 32 49 / 70%)!important;
    font-weight: bold;
    line-height: 30px;
    text-transform: uppercase;
    padding: 0 15px;
    border: 1.5px solid #f2f2f2;
    border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top:0;
    background: #f2f2f2
}
.product-filter span.discontinued {
    background: #052031;
    color:#f2f2f2!important;
}
span.market {
    font-size:1rem;
    opacity:0.8;
}
select#product-sort {
    appearance: none;
    border-radius: 0px;
    padding: 5px 25px 5px 10px;
    background: url(../svg/arrow_down.svg) no-repeat;
    background-position-x: 96%;
    background-size: 14px;
    background-position-y: center;
}
/* Hide ACF field for sorting meta */
/* Needs to be in admin specific stylesheet, not on frontend stylesheet */
div#acf-group_662fb7bd34ab9,
div#acf-group_662fc702d8b44,
div#acf-group_662fc702eac54,
div#acf-group_662fc703054ad {
    display: none!important;
}

ul.filter-list.has-children {
    padding-left: 10px;
    border-left: 3px solid #f2f2f2;
    display: none;
}

header.header.main.with_bg.box.fixtures h1,
header.header.main.with_bg.box.controllers h1,
header.header.main.with_bg.box.atmospherics h1,
header.header.main.with_bg.box.status h1,
header.header.main.with_bg.box.accessories h1 {
    font-family: 'chaletparisnineteensixty', sans-serif;
    font-size: 60px;
    font-weight: normal;
    text-transform: uppercase;
}
.fixture-section h2, 
.status-section h2, 
.accessory-section h2, 
.controller-section h2, 
.atmospheric-section h2, 
section#faqs h2 {
    font-family: 'chaletparisnineteensixty', sans-serif;
    font-size: 40px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom:1rem;
}
nav.status-navigation a:hover,
nav.fixture-navigation a:hover,
nav.controller-navigation a:hover,
nav.atmospheric-navigation a:hover,
nav.accessory-navigation a:hover {
    text-decoration: underline!important;;
}
#fixtures {
    /* background: white; */
}
.product.preview .image {
    width: 100%;
    float: left;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav.status-navigation ul,
nav.fixture-navigation ul,
nav.controller-navigation ul,
nav.atmospheric-navigation ul,
nav.accessory-navigation ul {
    list-style:none;
    line-height:2;
    /* text-transform: uppercase; */
}
.header.main.with_bg {
    background:#000!important;
    color: #fff;
    text-align: left;
    padding: 260px 60px 60px;
    background-position: center;
    background-size:cover;
    -moz-box-shadow: inset 0px -10px 10px -10px #000;
    -webkit-box-shadow: inset 0px -10px 10px -10px #000;
    box-shadow: inset 0px -10px 10px -10px #000;
}
header.header.main.with_bg.box.atmospherics a,
header.header.main.with_bg.box.controllers a,
header.header.main.with_bg.box.accessories a,
header.header.main.with_bg.box.fixtures a,
header.header.main.with_bg.box.status a {
    color: white;
    text-transform: uppercase;
}
.fixture-section,
.status-section,
.controller-section,
.atmospheric-section,
.accessory-section {
    padding:30px;
    margin-bottom:2rem;
    border-bottom:1px solid #f2f2f2;
}
nav.fixture-navigation,
nav.status-navigation,
nav.controller-navigation,
nav.atmospheric-navigation,
nav.accessory-navigation {
    margin-top: 30px;
}
#faqs {
    color: white;
    padding: 1rem 60px 0 60px;
}
.faq-card p {
    line-height: 2;
    margin-top: 1rem;
    margin-bottom: 0;
    display: none;
}

.faq-card {
    /* margin-bottom: 2rem; */
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 0;
}

section#faqs h2 {
    margin-bottom: 2rem;
}

section#faqs a {
    color:white;
    text-decoration:underline!important;
}

section#faqs a:hover {
    opacity:0.8;
}

.faq-card:hover {
    text-decoration:underline;
    cursor:pointer;
}

.faq-card.active p {
    display:block;
    text-decoration:none;
}

.faq-card.active {
    text-decoration:none;
}
a.more-btn {
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

a.more-btn:hover {
    opacity: 0.8;
    text-decoration: underline!important;
}

@media (max-width:992px) {
    #main.products #sidebar {
        width: 30%;
    }
    .product.preview {
        width:33%
    }
}

/* Mobile responsiveness for products */
@media (max-width:768px) {
    #main.products #sidebar {
        width: 100%;
    }
    
    #main.products {
        flex-direction: column;
        margin: 0;
        gap:0;
    }
    
    #product-filter-controls {
        justify-content: flex-end;
    }
    
    .product.preview {
        width: 50%;
    } 
    span.filter-item-name {
        margin-top: 5px;
        display: block;
    }    
    
    div#product-filter-group {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom:1rem;
    }
    
    fieldset#product-filter-toggles {
        background: white;
        position: absolute;
        z-index: 99999;
        right: 0;
        padding: 1rem;
        top: 0;
        box-shadow: 0 0 10rem rgba(0,0,0,0.5);
        min-width: 60%;
        font-size: 1.15rem;
        height: 100%;
        position: fixed;
        overflow-x: scroll;
        max-height: 100vh;
    }
    
    .filter-group-label {
        margin: 1rem 0 2rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    span.close-filter-toggle {
        opacity: 0.5;
        /* border: 1px solid rgba(0,0,0,0.5);
        padding: 1rem;
        border-radius: 100%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center; */
    }
    fieldset#product-filter-toggles.closed {
        right: -70%;
        visibility:hidden;
    }
    fieldset#product-filter-toggles {
        transition:1s;
    }
    #filters fieldset {
        display: block;
        padding-bottom:0;
    }

    a#mobile-filters {
        color: #000;
        font-weight: bold;
        text-transform: uppercase;
    }
    button#mobile-filter-reset,
    button#mobile-filter-close {
        display:block;
        width:100%;
        padding:1rem;
        border-radius:0px;
    }

    button#mobile-filter-reset {
        background:none;
        border: 1px solid black;
        margin-bottom:10px;
    }

    button#mobile-filter-close {
        background:#000;
        border:none;
        color:white;
        margin-bottom:2rem
    }
    .filter-label {
        margin:0;
    }
}