/* General Page Styling */
.listings-header {
    display: flex;
    flex-direction: column;
    padding: 110px 30px 20px 30px;
    align-items: center;
    gap: 20px;
}
.product-header {
    font-size: 25px;
    color: var(--text);
    font-family: var(--head-font);
    font-weight: 700;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary);
    width: fit-content;
}
.listings-filter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    background-color: #ffffff;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.08);
    padding: 40px 20px;
    margin-bottom: 30px;
}
.listings-filter h2 {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 20px;
    color: var(--text);
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: fit-content;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 200px;
    text-transform: capitalize;
    font-family: var(--text-font);
}
#width,
#aspect_ratio,
#rim_size {
    width: 150px;
}

.filter-form a {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: var(--head-font);
}

.filter-form a:hover {
    background-color: var(--primary-dull);
}
.product-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
}

.product-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 40px;
}

.product-bracket {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.product-item {
    padding: 30px;
    background: var(--bg-dull);
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(80deg, var(--bg) 70%, var(--bg-dull) 30%);
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.1);
    cursor: default;
    position: relative;
}

.product-item-timer {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 11px;
    padding: 3px 7px 3px 7px;
    border-radius: 0 0 10px 0px;
    font-weight: 500;
    background: black;
    color: white;
    font-family: var(--head-font);
    letter-spacing: 1px;
}

.product-item-timer span {
    color: rgb(200, 200, 200);
    letter-spacing: auto;
}

.product-item-tag {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 11px;
    padding: 3px 14px 3px 7px;
    border-radius: 0 0 10px 0;
    font-weight: 600;
}
.product-item-tag i {
    font-weight: lighter;
}

.product-item-tag.one {
    background: blueviolet;
    color: white;
}

.product-item-tag.two {
    background: rgb(0, 153, 255);
    color: white;
}

.product-item-tag.three {
    background: gold;
    color: black;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.2);
}

.product-item-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-items: flex-start;
    gap: 10px;
}

.product-item-img {
    position: relative;
    width: 200px;
    height: 100%;
}

.product-item-img img {
    position: absolute;
    top: 0px;
    left: 0%;
    width: 220px;
    -webkit-user-drag: none;
    user-select: none;
    mix-blend-mode: multiply;
}

.product-item-text h3 {
    font-size: 20px;
    font-family: var(--head-font);
    margin-top: 5px;
}

.product-item-text h4 {
    font-size: 16px;
    font-weight: 500;
}

.product-item-text h5 {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-faded);
}

.product-item-text h5 span {
    color: var(--text);
}

.product-item-text p {
    color: var(--text-faded);
    margin-top: 10px;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--extra-font);
}

.product-item-text p span {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.product-item-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.product-item-action a,
.product-item-action button {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: fit-content;
    border: none;
    font-family: var(--head-font);
}

.product-item-action a.primary,
.product-item-action button.primary {
    background: var(--primary);
    color: var(--light);
}

.product-item-action a.secondary,
.product-item-action button.secondary {
    background: var(--text);
    color: var(--bg);
}

.product-item-action a.primary:hover,
.product-item-action button.primary:hover {
    background: var(--primary-dull);
    cursor: pointer;
}
.product-item-action a.secondary:hover,
.product-item-action button.secondary:hover {
    background: var(--text-dull);
    cursor: pointer;
}
.product-view {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.product-view-all {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--primary);
}

.product-view-all i {
    font-size: 28px;
}

.product-view-all:hover {
    opacity: 0.5;
}

@media (max-width: 1350px) {
    .product-bracket {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-item {
        padding: 25px;
    }
    .product-item-action {
        gap: 10px;
    }
}

@media (max-width: 850px) {
    .product-container {
        width: 93%;
    }
    .product-header {
        font-size: 25px;
    }

    .product-item-text h3 {
        font-size: 16px;
    }
    .product-item-text h4 {
        font-size: 13px;
    }
    .product-item-text p {
        font-size: 14px;
    }
    .product-item-text p span {
        font-size: 17px;
    }
    .product-item-text h5 {
        font-size: 13px;
    }
    .product-bracket {
        grid-template-columns: repeat(1, 1fr);
    }
    .product-item-action {
        width: 80%;
    }
}

@media (max-width: 550px) {
    .listings-header {
        padding: 0;
        padding-top: 100px;
    }
    .filter-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .filter-form select,
    #width,
    #aspect_ratio,
    #rim_size {
        width: 100%;
    }
    .filter-form a {
        text-align: center;
    }
}

@media (max-width: 500px) {
    .product-wrapper {
        padding: 50px 0;
    }
    .product-header {
        text-align: center;
        width: 100%;
        border-bottom: 1px solid var(--bg-dark);
        color: var(--primary);
    }
    .product-bracket {
        gap: 20px;
    }
    .product-item-action {
        width: 100%;
    }
    .product-item-action a {
        padding: 7px 8px;
    }

    .product-view {
        justify-content: center;
    }
    .product-view-all {
        font-size: 18px;
    }
    .product-view-all i {
        font-size: 22px;
    }
}
