/**
* Theme Name: COR
* Description: Another Syrus Child WordPress theme
* Author: Syrus
* Template: syrus
* Version: 0.0.1
*/

:root {
    /* --primary-color: #ec1c24; */
    --primary-color: #ffbf00;
    --secondary-color: #ec1b28;
    --header-height: 80px;
}

html, body {
    min-height: 100dvh;
}

header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 99999;
}

header > .container, 
header > .container > .row {
    height: 100%;
}

header .logo-container img {
    height: calc(var(--header-height) * .5);
}

header .search-container {
    position: absolute;
    height: 60px;
    bottom: -50px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 0 0 50px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 99998;
    box-shadow: 1px 1px 5px rgba(0,0,0, .6);
}

header .search-container::before {
    content: "";
    position: absolute;
    top: -5px;
    width: 110%;
    height: 15px;
    background: var(--secondary-color);
}

header .search-container .search-input {
    width: 83%;
    height: 100%;
    border-radius: 0 0 0 50px;
    margin-right: auto;
    text-align: center;
    background-color: var(--primary-color);
    color: #231f20;
    box-shadow: none;
    border: 0;
    outline: none;
}

header .search-container .search-button {
    width: 15%;
    height: 100%;
    border-radius: 0 0 50px 0;
    background-color: var(--primary-color);
    color: #231f20;
    outline: none;
    border: none;
}

header .search-results {
    display: none;
}

header .search-results.shown {
    display: block;
    position: absolute;
    padding-top: 60px;
    top: 65px;
    width: 100%;
    background-color: white;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}
  
header .search-results.shown .result {
    min-height: 60px;
    display: flex;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid lightgrey;
}

header .search-results.shown .result.ph {
    display: flex;
    justify-content: center;
    align-items: center;
    color: gray;
    font-style: italic;
}

header .search-results.shown .result img {
    height: 100%;
    max-height: 60px;
    width: auto;
    margin-right: 10px;
}

header .search-results.shown .result .res-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header .search-results.shown .result .res-info span {
    display: block;
    font-weight: 500;
}

header .search-results.shown .result .res-info .tit {
    color: black;
}

header .search-results.shown .result .res-info .code {
    color: grey;
}

main, #main-content {
    min-height: calc(100dvh - var(--header-height) - 150px);
    margin-top: calc(var(--header-height) + 10px);
    padding-bottom: 20px;
}

footer section.contact-section {
    background-color: var(--secondary-color);
}

footer section.copyright-section {
    background-color: black;
}

.text-cor-primary {
    color: var(--primary-color);
}

.fs-sm {
    font-size: .8rem;
}

.card-letter {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, .6) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.brand-letter {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 45px;
    color: white;
}

.letter-navigation a {
    text-decoration: none;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, .7);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    color: black;
    backdrop-filter: blur(2px);
    border: 1px solid transparent;
    transition: all .3s;
}

.letter-navigation a:hover,
.letter-navigation a.current {
    background-color: rgba(0, 0, 0, .8);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.card-brand {
    background-color: rgba(255, 255, 255, .6) !important;
    backdrop-filter: blur(5px) !important;
    transition: all .5s;
    overflow: hidden;
}

.card-brand:hover {
    transform: translateY(-5px);
}


.card-brand::before {
    content: '';
    background: #ffffff40;
    width: 60%;
    height: 100%;
    top: 0%;
    left: -125%;
    transform: skew(45deg);
    position: absolute;
    transition: left 500ms ease-out;
}

.card-brand:hover::before {
    left: 150%;
}

#breadcrumbs a:last-child {
    font-size: 35px !important;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 5px rgba(0,0,0, .4);
    text-decoration: none;
}

.filters-box {
    width: 100%;
    height: auto;
    background-color: white;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.filters-box .title {
    width: 100%;
    padding: 20px;
    color: white;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: bold;
}

.filters-box.categories .title {
    background-color: var(--primary-color);
}

.filters-box.brands .title {
    background-color: #0040FF;
}

.filters-box .filters-list {
    width: 100%;
    height: 100%;
    /* min-height: 150px; */
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
}


.filters-box .filters-list ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.filters-box .filters-list ul li {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filters-box .filters-list ul li.select-all {
    cursor: pointer;
}

.filters-box .filters-list ul li.select-all:hover .brand-title {
    text-decoration: underline;
}

.filters-box .filters-list ul li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}


.filters-box .filters-list ul li .brand-title {
    margin: 0;
}

.filters-box .filters-list ul li input[type="checkbox"] {
    margin-left: auto;
}

.filters-box .filters-list .accordion-item ul li .brand-title {
    font-size: 13px;
    padding-left: 15px;
}

.filters-box .filters-list .accordion-item ul li.select-all .brand-title {
    margin-right: auto;
    color: blue;
}

.filters-box .filters-list .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: black;
}

.filters-box .filters-list .accordion-button:focus {
    border: none;
    box-shadow: none;
}

.col-products-results {
    background-color: white;
    position: relative;
}

.woocommerce div.product .price,
.col-products-results .price {
    color: black !important;
    font-size: 35px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.woocommerce div.product .price.reserved,
.col-products-results .price.reserved {
    color: red !important;
}

.btn-group.view-type-switch {
    position: absolute;
    right: 0;
    top: -38px;
}

.btn-group.view-type-switch > label:hover,
.btn-group.view-type-switch > label {
    border-radius: 0;
    border-color: var(--primary-color);
    color: white;
}

.btn-group.view-type-switch .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.woocommerce div.product .price .currency,
.col-products-results .price .currency {
    font-size: 20px !important;
    margin-right: 5px !important;
    font-weight: normal !important;
}

.woocommerce div.product .price .decimals,
.col-products-results .price .decimals {
    font-size: 18px !important;
    margin-left: 3px !important;
    font-weight: normal !important;
    color: var(--bs-gray-700) !important;
}

.woocommerce div.product .price.reserved .decimals,
.col-products-results .price.reserved .decimals {
    color: red !important;
    opacity: .7 !important;
}

.product-row .image-container {
    position: relative;
    border: 1px solid rgba(0,0,0, .1);
    padding: 5px;
    border-radius: 5px;
    width: 18%;
}

.product-row.view-grid .image-container {
    width: 100%;
    margin-bottom: 10px;
}

.product-row .info-container {
    width: 80%;
    margin-left: auto;
}

.product-row.view-grid .info-container {
    width: 100%;
    margin: 0;
}


.cart .availability,
.product .availability,
.product-row .availability {
    /* position: absolute; */
    font-size: 14px;
    background-color: var(--bs-gray-300);
    padding: 2px 10px;
    border-radius: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    width: min-content;
}

.cart .availability > i,
.product .availability > i,
.product-row .availability > i {
    font-size: 8px;
    margin-right: 5px;
    color: #03b703;
    text-shadow: 0px 0px 3px #31b401;
}

.cart .availability > p,
.product .availability > p,
.product-row .availability > p {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
}

.cart .remove-product a {
    text-decoration: none;
}

.cart .remove-product a:hover {
    text-decoration: underline;
}

.col-products-results .row-pagination:not(.bottom) {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0, .2);
}

.col-products-results .row-pagination.bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0, .2);
}

.col-products-results .pagination {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 5px;
    height: 100%;
    overflow-x: scroll;
}

.col-products-results .pagination .page-number {
    padding: 5px 10px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, .2);
    font-weight: 900;
    background-color: transparent;
    transition: .3s all;
}

.col-products-results .pagination .page-number.current,
.col-products-results .pagination .page-number:hover {
    background-color: var(--primary-color);
}

.price-switcher {
    position: absolute;
    width: 200px;
    height: 35px;
    bottom: -35px;
    right: 0;
    padding: 5px;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.price-switcher .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.iti > input {
    padding-left: .5rem !important;
}

.iti__selected-flag {
    cursor: pointer !important;
    background: #212529;
    border: 1px solid #ffffff;
    color: white;
    height: 40px !important;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}

.profilo .iti__selected-flag,
.checkout .iti__selected-flag {
    background: #ffffff;
    color: #212529;
}

.iti__selected-flag:hover, .iti__selected-flag:focus {
    border-color: grey !important;
    outline: none;
}

#iti-0__country-listbox {
    left: -6.2em !important;
    font-size: 15px;
}

.iti__flag-container {
    top: 54px;
    left: 1.8em;
}

.iti__selected-dial-code {
    margin-left: .5em;
}

.iti__country {
    color: black;
}

.single-product .card-post {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem !important;
    border-radius: 0 !important;
}

.woocommerce-privacy-policy-text p {
    color: white !important;
}

.not-logged {
    background: lightgrey;
    padding: 10px;
    text-align: center;
    font-size: 15px !important;
    border-radius: 10px;
    display: inline-block;
}

a[name=add-to-cart],
button[name=add-to-cart] {
    background-color: var(--primary-color) !important;
    line-height: 1.1em !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 5px !important;
    padding: 10px !important;
    color: black !important;
    font-weight: 400 !important;
    font-size: 13px;
}

.quantity {
    margin-right: .5rem !important;
}

.quantity input {
    min-height: 2.5em;
}

.woocommerce-checkout .card-post,
.woocommerce-cart .card-post {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 5%;
    background-color: white !important;
    padding-top: 3% !important;
}

#payment-method,
.wp-block-woocommerce-empty-cart-block a,
.wp-block-separator.is-style-dots,
.wc-block-grid.wp-block-product-new.wc-block-product-new,
.wp-block-woocommerce-empty-cart-block > h2:not(:first-child) {
    display: none !important;
}

.row-cart-product:not(:last-child) {
    border-bottom: 1px solid lightgray;
}

.col-cart-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ffbf00;
}

.checkout .info {
    color: grey;
    font-size: 14px;
}

.profilo .intestazione-ordini > div {
    font-size: 14px;
    color: #ffbf00;
    margin: 10px 0;
    background: #231f20;
}