/* view-product.css - Extracted from inline styles in view-product.cshtml */
/* Updated with comprehensive fixes for desktop and mobile */

/* ============================================
   GENERAL STYLES
   ============================================ */

.lastname {
    overflow: hidden;
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================
   BREADCRUMBS - Fix truncation issue (#1)
   ============================================ */

.breadcrumbs {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

    .breadcrumbs a:last-child,
    .breadcrumbs span:last-child {
        display: inline-block;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

/* ============================================
   PRODUCT NAME SECTION - Remove white box, fix heart icon (#2, #3)
   ============================================ */

.product-description__header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.product__title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.product__title {
    flex: 1;
    margin-right: 10px;
    font-size: 30px;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    margin-bottom: 40px;
}

.wishlist-heart,
.product-description__wishlist,
.wishlist__image-wrapper {
    flex-shrink: 0;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}

/* Ensure wishlist doesn't overlap product title */
.product-description__wishlist {
    display: inline-block;
    margin-top: 10px;
}

.wishlist__image-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .wishlist__image-wrapper img {
        width: 28px;
        height: 28px;
    }

/* ============================================
   SIZE FIELD IN PRODUCT INFO
   ============================================ */

.product-size__text {
    margin-top: 5px;
    color: #333;
}

    .product-size__text .productSize {
        font-weight: 500;
    }

/* ============================================
   IN STOCK BADGE - Desktop positioning (#7)
   ============================================ */

.clearance-box,
.instock-box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.clearance-box {
    background-color: #e91e63;
    color: white;
}

.instock-box {
    background-color: #4CAF50;
    color: white;
}

/* Ensure product image container has relative positioning for badge */
.product__slider,
.product__photo,
.xzoom-container {
    position: relative;
}

    .product__slider .items_slider {
        position: relative;
    }

/* ============================================
   CLOCK/TIMER ICON SIZE - Desktop fix (#8)
   ============================================ */

.product-description__stock img,
.dispatch-info img,
.fa-clock,
i.fa-clock {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    font-size: 20px !important;
}

/* Generic clock icon constraints */
.ui-icon-clock {
    width: 16px !important;
    height: 16px !important;
}

/* ============================================
   Q&A SECTION - Remove white box, fix spacing (#4, #5)
   ============================================ */

.questions-answer {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 15px 0 !important;
    margin-bottom: 0 !important;
}

.questions-answer__top-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.questions-answer__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.questions-answer__ask-questin {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    margin-left: auto;
    display: inline-block;
}

.questions-answer__item {
    background: transparent;
    padding: 10px 0;
}

.no-questions-answers {
    color: #666;
    font-style: italic;
}

/* ============================================
   IN THE RANGE CAROUSEL - Fix styling (#5, #6, #9)
   ============================================ */

.product-list-section {
    padding: 30px 0;
    margin-top: 30px;
}

.product-list-section__wrapper {
    position: relative;
}

.product-list-section__title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .product-list-section__title span {
        font-size: 20px;
        font-weight: 600;
    }

.product-list__slider {
    display: flex !important;
    justify-content: center;
}

    /* Slick carousel styling */
    .product-list__slider.slick-initialized {
        display: block !important;
    }

    .product-list__slider .slick-slide {
        padding: 0 10px;
    }

    .product-list__slider .product__item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        text-align: center;
        transition: box-shadow 0.3s ease;
    }

        .product-list__slider .product__item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .product-list__slider .product__item img {
            max-width: 100%;
            height: auto;
        }

    .product-list__slider .product__title {
        font-size: 14px;
        margin: 10px 0;
        color: #333;
    }

    .product-list__slider .product__price {
        color: #e91e63;
        font-weight: bold;
    }

    /* Fix red box issue - ensure Add to Basket has text */
    .product-list__slider .product__item .btn,
    .product-list__slider .product__item .add-to-basket {
        min-width: 120px;
        padding: 8px 16px;
    }

    /* Slick arrows */
    .product-list__slider .slick-prev,
    .product-list__slider .slick-next {
        width: 40px;
        height: 40px;
        z-index: 10;
    }

    .product-list__slider .slick-prev {
        left: -45px;
    }

    .product-list__slider .slick-next {
        right: -45px;
    }

    /* Slick dots */
    .product-list__slider .slick-dots {
        bottom: -30px;
    }

        .product-list__slider .slick-dots li button:before {
            font-size: 12px;
            color: #1EA199;
        }

/* ============================================
   EXISTING STYLES (preserved from original)
   ============================================ */

.product__slider {
    display: flex !important;
    justify-content: center;
}


div.error:before {
    content: url(../img/checkout-images/error.png);
    right: -15px;
    position: absolute;
    transform: translate(100%,40%);
}

div.success:before {
    content: url(../img/checkout-images/success.png);
    right: -15px;
    position: absolute;
    transform: translate(100%,40%);
}

.popup__form .popup__form-item.error textarea,
.popup__form .popup__form-item.error input {
    border: 2px solid red;
}

.popup__form .popup__form-item .error-prompt {
    display: none;
}

.popup__form .popup__form-item.error .error-prompt {
    display: block;
    color: red;
    margin-left: 2%;
    right: 0;
    font-size: 16px;
    min-width: 333px;
}

.popup__form .popup__form-item.error:before {
    content: none;
}

.product__slider .items_slider .discount-wrapper {
    right: 85px;
}

.available__product {
    padding: 5px 10px;
}

    .available__product.available__product-mobile {
        display: none;
    }

    .available__product.available__product-desktop {
        display: block;
    }

.promise__title-mobile {
    display: none;
}

.product-description__price strike {
    font-size: x-large;
}

.product-description__counter .counter__input {
    color: #000;
}

.slick-slide.slick-active {
    opacity: 1 !important;
}

.product__nav-slider .slick-track {
    transform: translate3d(0px, 0px, 0px) !important;
}

.stars_background {
    background: #edd664 !important;
}

.stars .stars__wrapper img {
    height: 25px;
    width: 25px;
}

.trustpilot__text--big {
    margin-bottom: 0px;
}

    .trustpilot__text--big img {
        height: 67px;
        width: 67px;
    }

.stars-big-wrapper {
    margin-top: 0px;
    margin-bottom: 0px;
}

.stars .stars__wrapper {
    background: no-repeat;
    height: 29px;
    width: 28px;
}

.product__reviews-text {
    word-break: break-word;
}

.product-list-section-line {
    width: calc(100% - 210px);
    right: 0;
    left: inherit;
}

.mfp-wrap .mfp-content {
    width: 670px !important;
}

.available__product.modal-popup {
    padding: 0px !important;
}

.product__image--container {
    min-height: 266px;
    display: inline-block
}

    .product__image--container img {
        max-height: 266px
    }

.product__image {
    display: block;
    margin: 0 auto;
    width: unset;
}




.popup__form .popup__form-item.error textarea, .popup__form .popup__form-item.error input {
    border: 2px solid red;
}


.product-section-title {
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
    color: #1EA199;
    line-height: 1.2;
}

