
/* ### PRODUCT ### */
.product {
    padding-block: 2.5rem;
}

.product .container {
    max-width: 73.5rem;
}

.product .wrapper {
    display: grid;
    grid-template-columns: minmax(31.25rem, 40.625rem) minmax(25rem, 28.125rem);
    gap: 1.5rem;
}

.product .column:first-of-type {
    position: sticky;
    top: 1.25rem;
    height: fit-content;
}

.product .featured-img {
    margin-bottom: 0.75rem;
}

.product .gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.product ul {
    padding: 0;
}

.product .main > :first-child {
    display: block;
    font-family: var(--ff-tertiary-400);
    color: var(--_c-dark);
    margin-bottom: 0.5rem;
}

.product .main > :nth-child(2) {
    font-family: var(--ff-tertiary-700);
    font-size: var(---_fs-sm-alt-lg, 1.25rem);
    margin-bottom: 0.5rem;
}

.product .main .price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.product .main .price li {
    font-family: var(--ff-tertiary-400);
}

.product .main p {
    font-family: var(--ff-tertiary-400);
    line-height: 1;
    margin-bottom: 1rem;
}

.product .main p span {
    font-family: var(--ff-tertiary-700);
    color: var(--c-primary);
}

.product .main p a {
    color: var(--_c-dark-1);
}

.product .variant {
    margin-bottom: 1rem;
}

.product :where(.variant, .title) > :first-child {
    display: block;
    font-family: var(--ff-tertiary-700);
    color: #000;
    margin-bottom: 0.75rem;
}

.product :where(.finishes, .colors, .type) ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.product .finishes li {
    width: 100%;
    max-width: 6.25rem;
}

.product .finishes button {
    width: 100%;
    font-family: var(--ff-tertiary-700);
    font-size: var(--fs-xs, 0.875rem);
    line-height: 1;
    padding: 0.625rem;
    box-shadow: inset 0 0 0 2px #e9e9e9;
}

.product :is(.finishes, .sizes, .type) button.active {
    box-shadow: inset 0 0 0 1px #000;
}

.product .sizes li:not(:last-child) {
    margin-bottom: 0.625rem;
}

.product .sizes button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.125rem;
    text-align: left;
    padding: 0.375rem;
    box-shadow: inset 0 0 0 2px #e9e9e9;
}

.product .sizes button div * {
    display: block;
    font-size: var(--fs-xs, 0.875rem);
}

.product .sizes button div :first-child {
    font-family: var(--ff-tertiary-700);
    margin-bottom: 0.5rem;
}

.product .sizes button div :nth-child(2) {
    font-family: var(--ff-tertiary-400);
}

.product .type ul {
    flex-wrap: nowrap;
    margin-bottom: 1rem;
}

.product .type li {
    width: 100%;
}

.product .type button {
    width: 100%;
    font-family: var(--ff-tertiary-700);
    font-size: var(--fs-xs, 0.875rem);
    padding: 0.625rem;
    box-shadow: inset 0 0 0 2px #e9e9e9;
}

.product .type > :last-child {
    font-family: var(--ff-tertiary-400);
    font-size: var(--fs-xs, 0.875rem);
}

.product form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product form label {
    width: 100%;
    font-family: var(--ff-tertiary-400);
    color: var(--_c-dark);
}

.product form input:not([type="checkbox"]) {
    width: 100%;
    height: 2.5rem;
    font-family: var(--ff-tertiary-400);
    font-size: var(--fs-xs, 0.875rem);
    background-color: transparent;
}

.product form .group {
    width: calc(50% - 0.375rem);
    position: relative;
    background-color: var(--_c-fields);
}

.product form .group.span {
    width: 100%;
}

.product form .group span {
    width: fit-content;
    height: fit-content;
    position: absolute;
    inset: 0 1rem 0 auto;
    font-size: var(--_fs-base-alt, 0.938rem);
    color: var(--_c-dark-1);
    margin-block: auto;
}

.product form .group:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: transparent;
    margin-top: 0.75rem;
}

.product form .group:has(input[type="checkbox"]) label {
    font-size: var(--fs-xs, 0.875rem);
}

.product form input[type="checkbox"] {
    width: fit-content;
}

.product form .total-price {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--_c-lght-gray);
    margin-top: 0.75rem;
}


.product form .total-price > :first-child,
.product form .total-price .calcualted-price > :first-child {
    font-family: var(--ff-tertiary-700);
    font-size: var(--_fs-sm-alt-lg, 1.125rem);
}

.product form .total-price > :nth-child(2) {
    font-family: var(--ff-tertiary-400);
    color: var(--_c-gray);
}

.product form .total-price .calcualted-price * {
    display: block;
    text-align: end;
}

.product form .total-price .calcualted-price :nth-child(2) {
    font-size: var(--fs-xs, 0.875rem);
}

.product form .btn__primary {
    width: 100%;
    max-width: 15rem;
    font-family: var(--ff-tertiary-500);
    font-size: var(--fs-sm, 1.125rem);
    text-transform: inherit;
    line-height: 1.5;
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.875rem;
    border: 3px solid transparent;
    margin-top: 0.5rem;
}

.product form .btn__primary:disabled {
    background-color: var(--_c-lght-gray);
    color: var(--_c-lght-gray-2);
}

.product form .btn__primary:hover {
    background-color: transparent;
    color: var(--_c-dark);
    border-color: var(--_c-dark);
    border-radius: 0.5rem;
}

.product :where(.description, .disclaimers) {
    margin-bottom: 2.5rem;
}

.product :where(.description, .disclaimers) p {
    font-family: var(--ff-tertiary-400);
    font-size: var(--fs-xs, 0.875rem);
    margin-bottom: 0.75rem;
}

.product :is(.description, .disclaimers) > :last-child {
    margin-bottom: 0;
}

.product .disclaimers {
    margin: 0;
}

.product .disclaimers p {
    font-size: var(--fs-base, 1rem);
}

.product .bordered {
    border-bottom: 1px solid var(--_c-lght-gray);
}

.product .download > :first-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.product .download > :first-child:hover * {
    color: var(--c-primary-hvr);
}

.product .download > :first-child:hover img {
    filter: var(--fltr-primary);
}

.product .collapse-btn {
    position: relative;
    width: 100%;
    text-align: left;
    padding-block: 1.25rem;
    margin: 0;
    transition: var(--trans-4);
}

.product .collapse-btn:hover {
    color: var(--c-primary-hvr);
}

.product .collapse-btn::before {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    background: no-repeat center/cover url('../images/icons/plus.png');
    margin-block: auto;
    transition: var(--trans-4);
}

.product .collapse-btn:hover::before {
    filter: var(--fltr-primary);
}

.product .collapse-btn:has(+ .panel[aria-hidden="false"])::before {
    transform: rotate(-45deg);
}

.product .panel[aria-hidden="true"] {
    display: none;
}

.product .details .panel > * > :first-child {
    width: 100%;
    display: block;
    font-family: var(--ff-tertiary-400);
    color: var(--_c-dark);
    padding-inline: 1rem;
    margin-top: 1.5rem;
}

.product .details table {
    width: 100%;
}

.product .details th {
    font-family: var(--ff-tertiary-700);
}

.product .details :where(td, th) {
    font-family: var(--ff-tertiary-400);
    font-size: var(--_fs-base-alt, 0.938rem);
    color: var(--_c-dark);
    padding: 1rem;
}

.product .details tr:nth-of-type(even) {
    background-color: rgba(0,0,0,.05);
}

.product .details .legend {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    background-image: url('../images/icons/legend.png');
    background-repeat: no-repeat;
    background-size: 1.5rem;
    object-fit: cover;
    margin-inline: auto;
}

.product .details .legend.dot {
    background-position: 0 -1.5rem;
}

.product .details .legend.block {
    background-position: 0 0;
}

.product .details .legend.cross {
    background-position: 0 -6rem;
}

.product .details .legend.star {
    background-position: 0;
}

.product .instruction p:not(:last-of-type) {
    margin-bottom: 0.75rem;
}

.product .instruction p a {
    font-family: var(--ff-tertiary-400);
    font-size: var(--fs-base, 1rem);
}

.product .instruction p a:hover {
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
}

/* ### PRODUCT SLIDER ### */
.product-slider {
    padding-block: 5rem;
}

.product-slider .container {
    max-width: 1350px;
}

.product-slider .title {
    text-align: center;
    margin-bottom: 1.875rem;
}

.product-slider .title  * {
    font-family: var(--ff-tertiary-700);
    font-size: var(--_fs-xl-alt);
    color: #000;
}

.product-slider .item {
    width: 100%;
}

.product-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-slider .item > :nth-child(2) {
    display: block;
    font-family: var(--ff-tertiary-700);
    font-size: var(--fs-base, 1rem);
    color: #000;
    margin-block: 1rem;
}

.product-slider .item:hover > :nth-child(2) {
    color: var(--c-primary-hvr);
}

.product-slider .splide__pagination {
    bottom: -4rem;
    gap: .25rem;
}

.product-slider .splide__pagination__page {
    width: 1rem;
    height: 3px;
    background: var(--_c-gray);
    border-radius: 0;
    margin: 0;
}

.product-slider .splide__pagination__page.is-active {
    transform: scale(1);
    background: var(--_c-dark);
}

.product-slider .splide__arrow {
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 1px solid var(--_c-dark);
    opacity: 1;
    visibility: hidden;
}

.product-slider .splide__arrow:hover {
    background: var(--_c-dark);
}

.product-slider .splide__arrow:hover svg {
    fill: #ffff;
}

.product-slider .splide:has(.splide__slide:nth-of-type(5)):hover .splide__arrow {
    visibility: visible;
}

.product-slider .splide__arrow svg {
    width: 1rem;
    height: 1rem;
}

/* ###-# MEDIA QURIES #-### */
@media screen and (max-width: 1024px) {
    .product .wrapper {
        grid-template-columns: 1fr;
        place-items: center;
    }
    
    .product .column {
        max-width: 53.75rem;
    }
    
    .product .column:first-of-type {
        position: static;
    }
}

@media screen and (max-width: 360px) {
    .product form .group {
        width: 100%;
    }

    .product form .total-price {
        flex-wrap: wrap;
    }

    .product form .total-price .calcualted-price {
        width: 100%;
    }
}