/* Products Page Custom Styles */

.products-content-sec {
    position: relative;
    width: 100%;
    z-index: 1;
    padding-top: 60px;
}

.products-content {
    text-align: center;
    display: block;
}

.products-content h2 {
    color: #FFF;
    text-align: center;
    font-family: "Open Sans";
    font-size: 35px;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 30px;
    letter-spacing: normal;
    word-break: break-word;
}

.products-content h3 {
    color: #FFF;
    text-align: center;
    font-family: "Open Sans";
    font-size: 20px;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 30px;
    word-break: break-word;
}

.products-content p {
    color: #FFF;
    text-align: center;
    font-family: "Open Sans";
    font-size: 18px;
    font-weight: 300;
    line-height: 26px;
    margin: 0 auto;
    width: 80%;
    word-break: break-word;
}

.product-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.product-item {
    margin-bottom: 30px;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: #eef2f5;
    width: 100%;
    aspect-ratio: 492 / 481;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
    /* Subtle zoom in on card hover */
}

.product-card-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 140px;
    justify-content: space-between;
}

.product-card-content h3 {
    font-size: 22px;
    font-weight: 400;
    color: #101010;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    word-break: break-word;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.product-short-desc {
    font-size: 16px;
    color: #101010;
    margin: 0 0 15px 0;
    font-weight: 400;
    line-height: 1.4;
    word-break: break-word;
    min-height: 45px;
    /* Reserved space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    color: #6E3F58;
    font-weight: 600;
}

.product-price del {
    color: gray;
    font-size: 15px;
    font-weight: 400;
    margin-right: 5px;
}

.product-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f6f6f6;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-arrow-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-arrow-link svg path {
    transition: stroke 0.4s ease;
}

/* Card Hover State triggers the arrow link style */
.product-card:hover .product-arrow-link,
.product-arrow-link:hover {
    background-color: #A6718A;
    transform: rotate(-45deg);
    /* Arrow points up-right */
}

.product-card:hover .product-arrow-link svg path,
.product-arrow-link:hover svg path {
    stroke: #ffffff;
}

.products-grid {
    position: relative;
    padding: 60px 0px;

}

.products-grid .no-results-message p {
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px;
}

.card-container {
    width: 95%;
}

/* Related Products Slider Arrows */
#related-products-slider .slick-prev,
#related-products-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#related-products-slider .slick-prev:hover,
#related-products-slider .slick-next:hover {
    opacity: 1;
}

#related-products-slider .slick-prev {
    left: -40px;
}

#related-products-slider .slick-next {
    right: -40px;
}


/* Single Product Page Styles */
.single-product-wrap {
    padding: 100px 0 20px 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.single-product-gallery {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.thumbnail-gallery-container {
    width: 174px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail-gallery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding-right: 5px;
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail-gallery .d-flex {
    height: 100%;
    gap: 20px !important;
}

.thumbnail-gallery .thumb-item {
    width: 174px;
    height: calc((100% - 60px) / 4);
    flex: 0 0 auto;
}

.main-image-wrap {
    background: #eef2f5;
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1;
}

.main-product-image {
    width: 100%;
    min-height: 750px;
    object-fit: cover;
    aspect-ratio: 24/25;
    display: block;
}

.thumb-image {
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 58/55;
}

.thumb-image:hover,
.thumb-image.active {
    border-color: #A6718A;
}

.single-product-info {
    padding-left: 20px;
}

.product-title {
    font-size: 35px;
    font-weight: 400;
    font-family: "Open Sans", sans-serif;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.product-tagline {
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 26px;
}

.product-accordion .accordion-body p,
.product-accordion .accordion-body li,
.product-description,
.product-description p {
    font-size: 18px;
    font-weight: 300;
    line-height: 26px;
    color: #fff;
    font-family: "Open Sans", sans-serif;
}

.product-accordion .accordion-body li {
    font-weight: 300;
    line-height: 28px;
}

.product-price-large {
    font-size: 30px;
    font-weight: 400;
    color: #fff;
}

.product-price-large del {
    font-size: 20px;
    color: gray;
}

.custom-btn {
    background-color: #A6718A;
    color: white;
    font-size: 18px;
    font-weight: 400;
    font-family: "Open Sans";
    text-transform: uppercase;
    letter-spacing: 6.11px;
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.custom-btn:hover {
    background-color: #8f5d75;
    color: white;
}

/* Accordion Specific Overrides */
.product-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    margin-bottom: -1px;
    /* collapse double borders */
}

.product-accordion .accordion-button {
    background-color: transparent;
    color: white;
    font-size: 18px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    box-shadow: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-accordion .accordion-button:not(.collapsed) {
    color: white;
    background-color: transparent;
    box-shadow: none;
}

.product-accordion .accordion-button::after {
    display: none;
}

.product-accordion .accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.product-accordion .accordion-button .icon-minus {
    display: none;
}

.product-accordion .accordion-button:not(.collapsed) .icon-minus {
    display: block;
}

.product-accordion .accordion-button:not(.collapsed) .icon-plus {
    display: none;
}

.product-accordion .accordion-body {
    padding: 0 0 20px 0;
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}



.related-title {
    font-size: 35px;
    font-weight: 400;
    color: #fff;
    text-transform: capitalize;
    margin-bottom: 40px;
}

/* Slick Slider Custom Dots Fix */
.slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    width: 100%;
}

.slick-dots li {
    margin: 0 6px;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #A6718A;
    width: 12px;
    height: 12px;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
    background: rgba(255, 255, 255, 0.6);
}


@media (min-width: 1500px) {
    .main-product-image {
        /* min-width: 720px; */
        min-height: 750px;
    }
}

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

    .product-title,
    .related-title {
        font-size: 22px;
    }

    .product-price-large {
        font-size: 24px;
    }

    .single-product-wrap {
        padding: 60px 0 0 0;
    }

    .products-content-sec {
        padding-top: 80px;
    }

    .products-content h2 {
        font-size: 24px;
        margin: 0 0 15px;
    }

    .products-content h3 {
        font-size: 18px;
        margin: 0 0 15px;
    }

    .products-content p {
        font-size: 16px;
        line-height: 24px;
        width: 100%;
        padding: 0 15px;
    }

    .product-item {
        margin-bottom: 20px;
    }

    .product-card-content {
        padding: 20px 15px;
        min-height: auto;
    }

    .product-card-content h3 {
        font-size: 18px;
        margin: 0 0 8px 0;
    }

    .product-short-desc {
        font-size: 15px;
        margin: 0 0 15px 0;
    }

    .product-price {
        font-size: 18px;
    }

    .product-price del {
        font-size: 14px;
    }

    .products-grid {
        padding: 40px 0;
    }

    .product-arrow-link {
        width: 36px;
        height: 36px;
    }

    .product-arrow-link svg {
        width: 18px;
        height: 18px;
    }

    .products-grid .no-results-message p {
        font-size: 16px;
        padding: 15px;
    }

    .product-description,
    .product-description p,
    .product-accordion .accordion-body li,
    .product-accordion .accordion-body p {
        font-size: 15px;
        line-height: 26px;
    }

    .product-tagline,
    .product-accordion .accordion-button {
        font-size: 15px;
    }
}

/* Responsive Adjustments */
/* Tablet & Desktop VW overrides (768px to 1599px) */
@media screen and (min-width: 768px) and (max-width: 1599px) {
    .products-content-sec {
        padding-top: 4.17vw;
    }

    @media screen and (max-width: 991px) {
        .products-content-sec {
            padding-top: 80px;
        }
    }

    .products-content h2 {
        font-size: 2.08vw;
        margin: 0 0 2.08vw;
    }

    .products-content h3 {
        font-size: 1.3vw;
        margin: 0 0 2.08vw;
    }

    .products-content p {
        font-size: 1.1vw;
        line-height: 1.6vw;
    }

    .product-description,
    .product-description p,
    .product-accordion .accordion-body li,
    .product-accordion .accordion-body p {
        font-size: 1.1vw;
        line-height: 1.6vw;
    }

    .product-tagline,
    .product-accordion .accordion-button {
        font-size: 1.2vw;
    }

    .product-item {
        margin-bottom: 2.08vw;
    }

    .product-card-content {
        padding: 1.67vw 1.39vw;
        min-height: 9.72vw;
    }

    .product-card-content h3 {
        font-size: 1.4vw;
        margin: 0 0 0.56vw 0;
    }

    .product-short-desc {
        font-size: 1.1vw;
        margin: 0 0 1.04vw 0;
    }

    .product-price {
        font-size: 1.11vw;
    }

    .product-price del {
        font-size: 1.1vw;
        margin-right: 0.35vw;
    }

    .product-arrow-link {
        width: 3.5vw;
        height: 3.5vw;
    }

    .product-arrow-link svg {
        width: 1.8vw;
        height: 1.8vw;
    }

    .thumbnail-gallery-container {
        width: 174px;
        /* Default max width */
        max-width: 15vw;
    }

    .thumbnail-gallery .thumb-item {
        width: 100%;
        flex: 0 0 auto;
    }

    .thumb-image {
        aspect-ratio: 58/55;
        height: 100%;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .products-grid {
        padding: 4.17vw 0;
    }

    .products-grid .no-results-message p {
        font-size: 1.39vw;
        padding: 1.39vw;
    }
}

/* Tablet & iPad Overrides (covers iPad Pro and smaller) */
@media screen and (max-width: 1199px) {
    .single-product-wrap {
        padding: 100px 0 20px 0;
    }

    .single-product-gallery {
        flex-direction: column-reverse !important;
        gap: 20px !important;
    }

    .thumbnail-gallery-container {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        max-width: none !important;
    }

    .thumbnail-gallery {
        position: static !important;
        overflow-y: hidden !important;
        overflow-x: auto !important;
        padding: 10px 0 !important;
        height: auto !important;
        scrollbar-width: none;
    }

    .thumbnail-gallery::-webkit-scrollbar {
        display: none;
    }

    .thumbnail-gallery .d-flex {
        flex-direction: row !important;
        width: 100% !important;
        height: auto !important;
        gap: 10px !important;
        justify-content: flex-start;
    }

    .thumbnail-gallery .thumb-item {
        width: calc(25% - 8px) !important;
        /* Exactly 4 fit with 10px gaps */
        height: auto !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    .thumb-image {
        aspect-ratio: 58/55 !important;
        height: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        display: block;
    }

    .main-product-image {
        min-width: 0 !important;
        min-height: 0 !important;
    }

    .single-product-info {
        padding-left: 0 !important;
        margin-top: 30px !important;
    }
}