/* Single Product Page Styles */

/* Container */
.single-product-wrapper {
    padding: 40px 0 90px;
}

/* Custom Breadcrumbs */
.custom-breadcrumb {
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 18px;
    color: var(--extra-color);
}

.custom-breadcrumb a {
    text-decoration: none;
    color: var(--extra-color);
    transition: color 0.3s linear;
}

.custom-breadcrumb a:hover {
    color: var(--primary-color);
}

.custom-breadcrumb span {
    color: var(--primary-color);
}

.custom-breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--extra-color);
}

/* Product Title */
.product-title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Product Content Layout */
.single-product-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
}

/* Left Column */
.product-left-column {
    display: flex;
    flex-direction: column;
    grid-row: 2/3;
    grid-column: 1/4;
}

.product-right-column {
    grid-row: 2/3;
    grid-column: 4/5;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: row;
    gap: 20px;
    grid-column: 1/5;
}

.product-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    max-height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0;
    cursor: pointer;
}

/* Product Thumbnails */
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 246px);
    grid-template-rows: repeat(2, 230px);
    gap: 19px;
}

.product-thumbnail {
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.3s;
}

.product-thumbnail:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.lightbox-close {
    position: absolute;
    top: -20px;
    right: 0;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 10px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s linear;
    z-index: 10001;
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background-color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s linear;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    overflow-x: auto;
    max-width: 100%;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.lightbox-thumb:hover {
    transform: scale(1.1);
}

.lightbox-thumb.active {
    border-color: var(--primary-color);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Description */
.product-description {
    font-weight: 400;
    font-size: 18px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right Column - Purchase Box */
.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

/* Price */
.product-price {
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.product-price del {
    color: #999;
}

.product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.product-right-column .single_add_to_cart_button {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-decoration: underline;
    border: 0;
    text-decoration-skip-ink: none;
    color: var(--primary-color);
    align-self: flex-end;
    background: none !important;
    cursor: pointer;
}

.added_to_cart {
    display: none !important;
}

/* Also Work section */
section.also {
    padding: 90px 0;
}

.also .container {
    align-items: center;
}

.also .also__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.also .also__title span {
    color: var(--primary-color);
}

.also .also__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: var(--text-color);
    max-width: 669px;
    margin-bottom: 40px;
}

.also .also__items {
    gap: 24px;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.also__item--link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.also__item--photo {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: block;
    margin-bottom: 21px;
}

.also__item--title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.also__item--desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 101px;
}

.also__item--bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.also__item--price {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.also__item--price del {
    font-size: 16px;
    color: #999;
    margin-right: 8px;
}

.also__item--price ins {
    text-decoration: none;
    color: var(--primary-color);
}

/* WooCommerce add to cart button styling */
.also__item--bottom .button,
.also__item--bottom .single_add_to_cart_button,
.also__item--bottom .product_type_simple {
    display: inline-block;
    background-color: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-decoration: underline !important;
    text-decoration-skip-ink: none;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.also__item--bottom .added_to_cart {
    display: none !important;
}

.also__no-products {
    text-align: center;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    color: var(--text-color);
    padding: 40px 0;
}

.back__btn {
    display: none;
    align-self: center;
    margin-bottom: 40px;
}

.back__btn a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    text-decoration-skip-ink: none;
    color: var(--primary-color) !important;
    border-bottom: 1px solid var(--primary-color);
}

.commissions {
    padding: 40px 20px;
    border: 1px solid #000;
}

.commissions__title {
    font-weight: 400;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.commissions__title span {
    color: var(--primary-color);
}

.commissions__text {
    font-weight: 400;
    font-size: 18px;
    color: var(--text-color);
}

.commissions ul {
    font-weight: 400;
    font-size: 18px;
    color: var(--text-color);
    padding-left: 30px;
    margin-bottom: 40px;
}

.commissions .commissions__button {
    height: 59px;
}

.quantity {
	display: none;
}

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

@media screen and (max-width: 1150px) {
    .product-thumbnails {
        grid-template-columns: repeat(2, 200px);
        grid-template-rows: repeat(2, 190px);
    }
}

@media screen and (max-width: 1023px) {
    .product-thumbnails {
        grid-template-columns: repeat(2, 150px);
        grid-template-rows: repeat(2, 180px);
        gap: 10px;
    }

    .product-images {
        gap: 10px;
    }

    .also__item--desc {
        min-height: 101px;
    }
}

@media screen and (max-width: 959px) {
    .single-product-wrapper {
        padding: 20px 0 50px;
    }

    section.also {
        padding: 50px 0;
    }

    .also .also__title,
    .product-title {
        font-size: 60px;
    }

    .product-left-column {
        padding-right: 30px;
    }

    .commissions__title {
        font-size: 44px;
    }
}

@media screen and (max-width: 767px) {
    .custom-breadcrumb {
        display: none;
    }

    .back__btn {
        display: inline-block;
    }

    .also .also__title,
    .product-title {
        text-align: center;
        font-size: 44px;
        margin-bottom: 20px;
    }

    .single-product-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .product-main-image {
        min-height: 480px;
    }

    .product-images {
        flex-direction: column;
        gap: 15px;
    }

    .product-thumbnails .product-thumbnail:nth-child(3),
    .product-thumbnails .product-thumbnail:nth-child(4) {
        display: none;
    }

    .product-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 230px;
        gap: 15px;
    }

    .product-images {
        order: 1;
    }

    .product-right-column {
        order: 2;
    }

    .product-left-column {
        order: 3;
    }

    .product-right-column {
        align-items: center;
    }

    .product-right-column .single_add_to_cart_button {
        align-self: center;
    }

    .product-description {
        text-align: center;
    }

    .product-left-column {
        padding-right: 0;
    }

    .single-product-wrapper {
        padding: 20px 0 40px;
    }

    section.also {
        padding: 40px 0 50px 0;
    }

    .also__item--title {
        font-size: 24px;
    }

    .commissions__title {
        font-size: 38px;
    }

    .commissions__text,
    .commissions ul {
        font-size: 16px;
    }
}

@media screen and (max-width: 550px) {
    .lightbox-prev {
        left: -9px;
    }

    .lightbox-next {
        right: -9px;
    }

    .also .also__items {
        margin-bottom: 0;
    }

    .commissions {
        padding: 20px;
    }
}

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

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

@media screen and (max-width: 374px) {
    .commissions .commissions__button {
        padding: 15px 20px;
    }
}