.page-title {
    background-image: url("../web-img/page-title/about.webp");
    height: 100vh;
    max-height: 500px;
}

.product-title-image {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    position: relative;
}

.product-title-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom,
            rgba(21, 20, 23, 0.5),
            rgba(21, 20, 23, 1));
    z-index: 1;
}

.product-title-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    height: 600px;
}

.product-title-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    gap: 20px;
    height: 600px;
    margin-bottom: -600px;
    z-index: 10;
    padding-bottom: 100px;
}

.product-title-content h1 {
    font-size: 40px;
    font-weight: 500;
}

ul {
    margin: 0;
}

.single-product-grid {
    display: grid;
    grid-template-columns: 100%;
}

.single-sidebar {
    margin-left: 40px;
    border-left: 1px solid var(--lblack);
    padding-left: 40px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.single-sidebar ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 5px;
}

.single-sidebar li {
    list-style: none;
    margin-left: -30px;
}

.single-sidebar ul {
    margin-top: 10px;
}

.single-sidebar a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-sidebar a:hover,
.single-sidebar a.active {
    color: var(--tc1);
}

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

.product-content h4 {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
}

.grid-two-product {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.grid-ctn-txt {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-ctn-img {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-ctn-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--tc1);
}

.grid-ctn-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    width: 100%;
}

.grid-ctn-img-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--lblack);
    transition: all 0.3s ease;
}

.grid-ctn-img-grid img:hover,
.grid-ctn-img-grid img:active,
.grid-ctn-img-grid img:focus,
.grid-ctn-img-grid img:focus-visible {
    border: 1px solid var(--tc1);
}

.products-grid-four {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.products-grid-four a {
    border: 1px solid var(--lblack);
    transition: all 0.3s ease;
}

.products-grid-four a {
    border: 1px solid var(--lblack);
    transition: all 0.3s ease;
}

.products-grid-four a:hover,
.products-grid-four a:active {
    border: 1px solid var(--tc1);
}

.pdt-blk-ctn {
    display: flex;
    flex-direction: column;
}

.pdt-blk-img {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
    border-bottom: 1px solid var(--lblack);
}

.pdt-blk-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.pdt-blk-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 0px;
    padding: 20px;
}

.pdt-blk-content h4 {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
}

.pdt-blk-content p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.txt-ctn {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.pdt-sec-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 10px;
    max-width: 800px;
}

.grid-two-irreverse {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-irre-img {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 20px;
    width: 100%;
}

.grid-irre-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--lblack);
    transition: all 0.3s ease;
}

.grid-irre-img img:hover,
.grid-irre-img img:active,
.grid-irre-img img:focus,
.grid-irre-img img:focus-visible {
    border: 1px solid var(--tc1);
}

.grid-irre-txt {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 1200px) {
    .products-grid-four {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .products-grid-four {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    .product-title-image img {
        height: 650px;
    }

    .product-title-content {
        height: 650px;
        margin-bottom: -650px;
    }

    .product-title-content h1 {
        font-size: 30px;
        font-weight: 500;
    }

    .single-product-grid {
        display: grid;
        grid-template-columns: 100%;
    }

    .single-sidebar {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .grid-two-irreverse {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-irre-img {
        order: -1;
    }

    .grid-irre-txt {
        order: 1;
    }
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--tc1);
    transform: scale(1.1);
}

/* Loading Spinner */
.lightbox-loading {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Make images clickable */
.grid-ctn-img img[data-full-src],
.grid-irre-img img[data-full-src],
.product-title-image img[data-full-src] {
    cursor: pointer;
}
