.product-page {
    padding-bottom: 32px;
}

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

.product-page__title-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #111;
}

.product-page-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #555;
    font-size: 14px;
}

.product-rating-stars .fa-star,
.product-rating .fa-star {
    color: #ddd;
}

.product-rating-stars .star_on,
.product-rating .star_on {
    color: #f5a623;
}

.product-page-rating .rating-text {
    color: #555;
}

.product-gallery-card__body {
    position: relative;
}

.product-media-stage {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image,
.product-media-frame {
    width: 100%;
    display: block;
    border: 0;
}

.product-media-frame {
    min-height: 420px;
}

.product-gallery-thumbs {
    margin-top: 16px;
}

.product-thumb-image,
.product-thumb {
    display: block;
    width: 100%;
    object-fit: contain;
    background: #fff;
}

.product-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

.product-thumb {
    min-width: 72px;
    max-width: 72px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 6px;
}

.thumb-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 20px;
    line-height: 1;
}

.product-details-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-meta-links {
    font-size: 14px;
    color: #333;
}

.product-meta-label {
    font-weight: 600;
    margin-right: 6px;
}

.product-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    margin: 0;
}

.product-facts li {
    margin: 0;
}

.product-facts__label {
    font-weight: 600;
    color: #111;
}

.product-facts__value {
    color: #444;
}

.product-section {
    margin-top: 32px;
}

.product-section__title {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.3;
    color: #111;
}

.product-section__content {
    color: #333;
}

.product-short-description .product-section__content,
.product-details-article {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 20px;
}

.product-important-message {
    margin-bottom: 0;
}

.product-page-message .alert,
#messageajax .alert,
[id^="messageajax_"] .alert {
    margin-top: 10px;
}

.product-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.collection-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    color: #111;
}

.collection-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.add-to-cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: #f6f6f6;
    color: #111;
    font-size: 24px;
    line-height: 1;
}

.qty-controls input {
    width: 72px;
    height: 44px;
    border: 0;
    text-align: center;
    font-weight: 600;
}

.btn-add-cart {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.btn-add-cart .plus {
    margin-right: 6px;
}

#product-price-box {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: stretch;
}

#product-price-box .price-col {
    flex: 1 1 0;
    max-width: calc(50% - 12px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

#product-price-box .price-col:only-child {
    flex-basis: 100%;
    max-width: 100%;
}

#product-price-box .price-main-box {
    background: #fff;
    border: 2px solid #e6e6e6;
    border-left: 6px solid #ccc;
    border-radius: 8px 8px 0 0;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    flex: 1;
}

#product-price-box .price-main-box.has-promo {
    border-left-color: #e11900;
}

#product-price-box .price-benefit-box {
    background: #f4faf6;
    border: 2px solid #cce6d8;
    border-left: 6px solid #198754;
    border-radius: 8px 8px 0 0;
    padding: 16px 20px;
    flex: 1;
}

#product-price-box .price-tva-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #f0f0f0;
    border: 2px solid #e6e6e6;
    border-top: none;
    border-left: 6px solid #ccc;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

#product-price-box .price-tva-line-green {
    background: #e6f4ec;
    border-color: #cce6d8;
    border-left-color: #198754;
}

#product-price-box .tva-old {
    text-decoration: line-through;
    color: #aaa;
    font-size: 13px;
}

#product-price-box .tva-current {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

#product-price-box .tva-current.tva-promo {
    color: #e11900;
}

#product-price-box .price-tva-line-green .tva-current {
    color: #198754;
}

#product-price-box .price-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

#product-price-box .price-old-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

#product-price-box .price-old {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
}

#product-price-box .price-discount-badge {
    background: #d91400;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

#product-price-box .price-main {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.4px;
    color: #111;
    display: inline-flex;
    align-items: flex-start;
}

#product-price-box .price-main.price-red {
    color: #e11900;
}

#product-price-box .price-main.price-green {
    color: #198754;
}

#product-price-box .price-main span {
    font-size: 18px;
    position: relative;
    top: -6px;
    margin-left: 2px;
}

#product-price-box .currency {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-left: 6px;
    align-self: flex-end;
}

#product-price-box .price-sub {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

#product-price-box .benefit-title {
    font-size: 15px;
    font-weight: 600;
}

#product-price-box .benefit-condition {
    font-size: 13px;
    margin-top: 4px;
}

#product-price-box .benefit-note {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.product-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 6px;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.product-badge--service {
    background: var(--campaign-badge-bg, #111);
    color: #fff;
}

.product-badge--volume {
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
}

.product-badge--volume span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

.product-badge--volume .volume-price {
    font-size: 12px;
    font-weight: 600;
}

.product-badge--volume sup {
    font-size: 0.7em;
    position: relative;
    top: -0.3em;
}

.volume-price-meta {
    font-size: 9px;
    opacity: 0.8;
    display: block;
}

.product-card--body {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #fff;
    position: relative;
    text-align: left;
    height: 100%;
}

.product-stock {
    font-size: 12px;
    font-weight: 500;
}

.product-stock--in {
    color: #198754;
}

.product-stock--low {
    color: #92400e;
}

.product-stock--out {
    color: #d91400;
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img,
.card-image iframe {
    max-height: 180px;
    width: auto;
    border: 0;
    display: block;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #111;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
}

.product-price-box {
    margin-top: 6px;
}

.price-old-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    margin-bottom: 2px;
}

.price-old-row--placeholder {
    visibility: hidden;
}

.price-old {
    font-size: 13px;
    color: #5f6368;
    text-decoration: line-through;
}

.price-discount {
    background: #d91400;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
}

.price-main {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.price-main sup {
    font-size: 0.6em;
}

.price-vat {
    font-size: 11px;
    color: #777;
}

.product-cta {
    margin-top: auto;
    padding-top: 8px;
}

.btn-altex {
    width: 100%;
    padding: 7px 0;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-altex:hover {
    color: #fff;
    opacity: 0.92;
}

.wishlist-wrapper {
    margin-top: 10px;
    width: 100%;
}

.btn-wishlist-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1.5px solid #007bff;
    background: #fff;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wishlist-modern:hover {
    background: #007bff;
    color: #fff;
}

.btn-wishlist-modern.in-wishlist {
    background: #f2f2f2;
    border-color: #ccc;
    color: #555;
}

.btn-wishlist-modern.in-wishlist:hover {
    background: #e6e6e6;
    color: #333;
}

.btn-wishlist-modern.wishlist-loading {
    opacity: 0.6;
    transform: scale(0.98);
}

.wishlist-helper {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    text-align: center;
    line-height: 1.4;
}

.wishlist-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.shop-contacts__header h2 {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .product-page-title {
        font-size: 26px;
    }

    .product-media-stage,
    .product-media-frame {
        min-height: 320px;
    }

    #product-price-box .price-col {
        max-width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    .product-page__header {
        margin-bottom: 16px;
    }

    .product-page-title {
        font-size: 23px;
    }

    .product-facts {
        grid-template-columns: 1fr;
    }

    .product-short-description .product-section__content,
    .product-details-article {
        padding: 16px;
    }

    .add-to-cart-row {
        align-items: stretch;
    }

    .qty-box,
    .add-cart-btn {
        width: 100%;
    }

    .btn-add-cart {
        width: 100%;
    }

    #product-price-box .price-main {
        font-size: 38px;
    }
}
