/* ========================================
   PRODUCT DETAIL CONTAINER
   ======================================== */

.product-detail-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-detail-main {
    display: flex;
    gap: 30px;
}

/* ========================================
   PRODUCT IMAGE
   ======================================== */

.product-detail-image {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
}

.no-image-large {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #888;
    border-radius: 8px;
    font-size: 1rem;
}

/* ========================================
   PRODUCT INFO
   ======================================== */

.product-detail-info {
    flex: 1;
    display: flex;
    gap: 30px;
}

.product-detail-info-main {
    flex: 1;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.product-detail-manufacturer {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #373737;
}

/* ========================================
   PRICE BLOCK
   ======================================== */

.product-detail-price-block {
    margin-bottom: 20px;
}

.product-detail-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.product-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: #db0000;
}

.product-detail-price-sep {
    font-size: 14px;
    color: #db0000;
    margin-left: 14px;
}

.product-detail-offers-count {
    font-size: 0.95rem;
    color: #28a745;
    font-weight: 500;
}

.product-detail-no-offers {
    font-size: 1rem;
    color: #dc3545;
}

/* ========================================
   SPECS PREVIEW
   ======================================== */

.product-detail-specs-preview {
    margin-bottom: 15px;
}

.specs-list {
    list-style: disc;
    padding-left: 16px;
    margin: 0;
    columns: 2;
    column-gap: 20px;
}

.specs-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #373737;
}

.specs-list li::marker {
    color: #bbb;
}

/* ========================================
   DESCRIPTION PREVIEW
   ======================================== */

.product-detail-description-preview {
    font-size: 0.9rem;
    color: #373737;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-detail-more-link {
    color: #1565c0;
    text-decoration: none;
    font-size: 0.9rem;
}

.product-detail-more-link:hover {
    text-decoration: underline;
}

/* ========================================
   BRAND
   ======================================== */

.product-detail-brand {
    width: 120px;
    min-width: 120px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-self: flex-start;
}

.product-detail-brand .brand-name {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.product-detail-brand .brand-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ========================================
   BOTTOM SECTION - TWO COLUMNS
   ======================================== */

.product-detail-bottom {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.product-similar-column {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
}

.product-similar-column .section-title {
    padding: 17px 17px 10px 17px;
    margin-bottom: 0;
    border-bottom: none;
}

.product-offers-column {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========================================
   SIMILAR PRODUCTS
   ======================================== */

.similar-products-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

.similar-product-item {
    display: flex;
    gap: 12px;
    padding: 8px 17px;
    cursor: pointer;
    position: relative;
}

.similar-product-item:hover {
    background-color: #efefef;
}

.similar-product-image {
    width: 50px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #aaa;
    font-size: 0.65rem;
    text-align: center;
}

.similar-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.similar-product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #373737;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.similar-product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.similar-product-price .price-from {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-right: 3px;
}

/* ========================================
   OFFERS LIST
   ======================================== */

.offers-list {
    display: flex;
    flex-direction: column;
}

.offer-item-container {
    position: relative;
    padding: 0 17px;
    margin-left: -20px;
    margin-right: -20px;
}

.offer-item-container:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.offer-item {
    border-bottom: 1px solid #c2c2c2;
    padding: 14px 0;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.offer-item:hover {
    border-bottom: 1px solid #dfdfdf;
}

.offer-item.out-of-stock {
    opacity: 0.7;
}

.offer-item.out-of-stock .offer-title {
    color: #888;
}

.offer-logo-col {
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-eshop-logo {
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
}

.offer-eshop-name-only {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.offer-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #373737;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}

.offer-out-of-stock-label {
    font-size: 0.85rem;
    color: #999;
}

.offer-shops {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}
.offer-shops .shop-toggle {
    color: #1565c0;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.offer-shops .shop-toggle:hover {
    text-decoration: underline;
}

.offer-price-col {
    width: 170px;
    min-width: 170px;
    flex-shrink: 0;
}

.offer-price {
    font-size: 24px;
    font-weight: 700;
    color: #db0000;
}
.offer-price .price-prefix {
    font-size: 15px;
    color: #db0000;
    margin-right: 3px;
}
.offer-price .price-main {
    font-weight: 700;
    color: #db0000;
}
.offer-price .price-cents {
    font-size: 15px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 1px;
}
.offer-price .price-currency {
    font-weight: 700;
    margin-left: 2px;
}

.offer-eshop-name {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.offer-price-col .btn {
    position: relative;
    z-index: 2;
}

/* ========================================
   FULL DESCRIPTION
   ======================================== */

.product-full-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.product-full-description .section-title {
    border-bottom: none;
    padding-bottom: 5px;
}

.full-specs {
    margin-bottom: 30px;
}

.full-specs h4,
.full-description-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 10px 15px;
    text-align: left;
    font-size: 0.9rem;
}

.specs-table th {
    width: 200px;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
}

.specs-table td {
    color: #212529;
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #444;
}

.link-over-stretch {
    position: relative;
    z-index: 2;
}

.btn-produktas-full {
    background-color: #40c587;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-produktas-full:hover {
    background-color: #33a870;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   NO OFFERS
   ======================================== */

.no-offers-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ========================================
   RESPONSIVE - 991px
   ======================================== */

@media (max-width: 767px){
	
    .product-detail-main {
        flex-direction: column;
    }
    .product-detail-image {
        width: 100%;
        min-width: 100%;
        max-height: 300px;
    }
    .product-detail-info {
        flex-direction: column;
    }
    .product-detail-brand {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .product-detail-bottom {
        flex-direction: column;
    }
    .product-similar-column {
        width: 100%;
        min-width: 100%;
        order: 2;
    }
    .product-offers-column {
        order: 1;
    }
} 

/* ========================================
   RESPONSIVE - 767px MOBILE
   ======================================== */

@media (max-width: 767px) {

    /* border-radius: 0 for all blocks */
    .product-detail-container,
    .product-similar-column,
    .product-offers-column {
        border-radius: 0;
    }

    /* Offers column: no side padding — full width */
    .product-offers-column {
        padding: 12px;
    }

    /* Detail container: less padding */
    .product-detail-container {
        padding: 12px;
        margin-bottom: 8px;
    }

    /* Mobile product detail: image 135px, text right */
    .product-detail-container > .product-detail-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .product-detail-main {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .product-detail-image {
        width: 135px;
        min-width: 135px;
        max-height: none;
    }
    .product-detail-image img {
        max-height: 135px;
    }

    .product-detail-info {
        flex-direction: column;
        gap: 0;
    }

    .product-detail-price {
        font-size: 16px;
    }

    .product-detail-price-block {
        margin-bottom: 8px;
    }

    /* Specs: 1 column */
    .specs-list {
        columns: 1;
    }

    .specs-table th {
        width: 40%;
    }

    /* Bottom section: no gap */
    .product-detail-bottom {
        gap: 8px;
        margin-bottom: 0;
    }

    /* ---- MOBILE OFFER ITEM ---- */

    .offer-item-container {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
	.offer-item-container:hover {
        box-shadow: none;
        z-index: auto;
    }

    .offer-item {
        padding: 12px 0;
    }

    /* Line 1: title */
    .offer-mob-title {
        margin-bottom: 8px;
    }
    .offer-mob-title .offer-title {
        font-size: 0.88rem;
        font-weight: 600;
        display: block;
    }

    /* Line 2: logo | photo | price */
    .offer-mob-row2 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }

    .offer-mob-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    .offer-mob-logo-img {
        max-height: 30px;
        max-width: 80px;
        object-fit: contain;
    }
    .offer-mob-logo .offer-eshop-name-only {
        font-size: 0.78rem;
        max-width: 70px;
    }

    .offer-mob-photo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .offer-mob-photo img {
        max-height: 70px;
        max-width: 100%;
        object-fit: contain;
    }

    .offer-mob-price {
        flex: 0 0 auto;
        text-align: right;
    }
    .offer-mob-price .offer-price {
        font-size: 18px;
    }

    /* Line 3: texts */
    .offer-mob-texts {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 8px;
    }
    .offer-mob-texts .offer-delivery {
        font-size: 0.8rem;
        margin-top: 0;
    }
    .offer-mob-texts .offer-shops {
        font-size: 0.78rem;
        margin-top: 2px;
    }

    /* Line 4: full width button */
    .offer-mob-btn {
        margin-top: 4px;
    }
    .btn-produktas-full {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        font-weight: 600;
    }
}