/**
 * Стили для страницы товара (views/product/view.php)
 */

.product-video-max-height {
    max-height: 400px;
}

.product-specs-label {
    width: 30%;
}

.review-rating-label {
    width: 60px;
}

.review-rating-bar {
    height: 20px;
}

.review-rating-count {
    width: 50px;
}

.product-quantity-input {
    width: 150px;
}

.product-badge-wrap {
    z-index: 2;
}

.review-thumb-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.input-group.product-quantity-input {
    width: auto;
}

.product-actions .buy-now-form {
    display: inline-flex
}

.product-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08)
}

.favorite-btn.active {
    background: #dc3545;
    color: #fff
}

.object-fit-cover {
    object-fit: cover
}

@media (max-width: 991px) {
    body {
        padding-bottom: 76px
    }

    .product-actions {
        align-items: stretch
    }

    .product-actions .add-to-cart-btn, .product-actions .buy-now-form, .product-actions .buy-now-form button {
        flex: 1
    }

    .product-quantity-input {
        width: 100% !important
    }
}
#questions article:last-of-type{border-bottom:0!important}.product-content-block{max-width:900px}.product-actions .btn{min-height:48px}
.product-helpful-articles .card{transition:transform .18s ease,box-shadow .18s ease}.product-helpful-articles .card:hover{transform:translateY(-2px);box-shadow:0 .75rem 1.5rem rgba(0,0,0,.09)!important}
.product-helpful-articles .card{transition:transform .18s ease,box-shadow .18s ease}.product-helpful-articles .card:hover{transform:translateY(-2px);box-shadow:0 .75rem 1.5rem rgba(0,0,0,.09)!important}

/* 2026 UI refresh */
.product-gallery { position: sticky; top: 96px; }
.product-gallery__main { overflow: hidden; border: 1px solid #e4e9e6; border-radius: 18px; background: #f8f9f8; }
.product-main-image-wrap { border-radius: 18px; background: #f8f9f8; }
.product-gallery__thumb-item { border-radius: 10px; border-color: #e1e7e3; }
.product-gallery__thumb-item.active { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(20,130,85,.09); }

.product-page-info h1 { letter-spacing: -.03em; }
.product-purchase-panel { padding: 20px; border: 1px solid #e1e8e4; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(28,55,39,.07); }
.product-actions .btn-lg { min-height: 48px; border-radius: 11px; font-size: .95rem; }
.product-actions .product-quantity-input .btn, .product-actions .product-quantity-input .form-control { min-height: 48px; }

.product-delivery-card { padding: 18px; border: 1px solid #e0e8e3; border-radius: 17px; background: #f8faf9; }
.product-delivery-card__header { display: flex; align-items: center; gap: 12px; }
.product-delivery-card__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 12px; color: var(--primary-color); background: #e8f5ed; font-size: 1.12rem; }
.product-delivery-card__change { padding: 0; border: 0; border-bottom: 1px dashed #8ca197; color: #66776d; background: transparent; font-size: .76rem; }
.product-delivery-card__change:hover { color: var(--primary-color); }
.product-delivery-card__result { min-height: 44px; display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 14px; border: 1px solid #dce5df; border-radius: 12px; color: #5b6a62; background: #fff; font-size: .85rem; }
.product-delivery-card__price { color: var(--primary-color); font-size: 1rem; font-weight: 750; }
.product-service-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dfe6e2; }
.product-service-points > div { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.product-service-points > div > i { color: var(--primary-color); font-size: 1rem; }
.product-service-points strong, .product-service-points small { display: block; }
.product-service-points strong { color: #35443b; font-size: .74rem; line-height: 1.25; }
.product-service-points small { margin-top: 2px; color: #7a867f; font-size: .65rem; line-height: 1.25; }

#productTabs { gap: 4px; border-bottom-color: #dee6e1; }
#productTabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #68766e; font-weight: 600; }
#productTabs .nav-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: transparent; }
#productTabsContent { border: 1px solid #e0e6e2 !important; border-top: 0 !important; border-radius: 0 0 16px 16px !important; line-height: 1.65; }

@media (max-width: 991.98px) {
    .product-gallery { position: static; }
    .product-actions { position: static !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
}
@media (max-width: 575.98px) {
    .product-service-points { grid-template-columns: 1fr; gap: 9px; }
    .product-service-points > div { align-items: center; }
    .product-service-points strong, .product-service-points small { display: inline; }
    .product-service-points small::before { content: ' · '; }
}
@media (max-width: 768px) {
    .product-mobile-sticky { bottom: 62px; }
}

/* 2026-09-03 UI/UX r3: mobile product purchase flow */
.product-mobile-heading{margin:0 0 14px}.product-mobile-heading__category{display:inline-block;margin-bottom:6px;color:var(--primary-color);font-size:.72rem;font-weight:700;text-decoration:none}.product-mobile-heading h1{margin:0;color:#21332a;font-size:1.48rem;font-weight:790;line-height:1.2;letter-spacing:-.035em}.product-mobile-heading__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:9px;color:#7b8780;font-size:.7rem}.product-mobile-heading__meta a{display:inline-flex;align-items:center;gap:4px;color:#6d6351;text-decoration:none}.product-mobile-heading__meta a i{color:#e3a325}.product-mobile-heading__meta a strong{color:#554d41}.product-mobile-sticky{min-height:68px;gap:10px;padding:9px max(12px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top-color:#dfe7e2;box-shadow:0 -8px 28px rgba(27,49,36,.12)}.product-mobile-sticky__price{min-width:0;display:flex;flex-direction:column}.product-mobile-sticky__price strong{color:#173a29;font-size:1.05rem;line-height:1.12}.product-mobile-sticky__price span{color:#89938d;font-size:.67rem;text-decoration:line-through}.product-mobile-sticky__favorite{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;padding:0;border:1px solid #dbe3de;border-radius:12px;color:#5c6962;background:#fff}.product-mobile-sticky__favorite.active{color:#d74755;border-color:#edbdc2;background:#fff}.product-mobile-sticky__cart{min-width:122px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;font-size:.8rem;font-weight:750}.product-gallery__counter{border-radius:999px;background:rgba(30,44,36,.72);font-size:.68rem}.product-gallery__thumbs{scrollbar-width:none}.product-gallery__thumbs::-webkit-scrollbar{display:none}
@media(max-width:991.98px){body{padding-bottom:138px}.product-main-row>.col-lg-5{margin-bottom:16px!important}.product-page-info{padding-top:0}.product-key-facts{margin-top:2px}.product-gallery__main{border-radius:15px}.product-main-image-wrap{border-radius:15px}.product-price-block{margin-top:10px}.product-actions{display:grid!important;grid-template-columns:1fr 1fr}.product-actions .product-quantity-input{grid-column:1/3}.product-actions .add-to-cart-btn,.product-actions .buy-now-form,.product-actions .buy-now-form button{width:100%}.product-actions>.favorite-btn{display:none}.product-delivery-card{margin-top:4px}.product-mobile-sticky{bottom:62px}}
@media(max-width:575.98px){.container:has(.product-mobile-heading){padding-left:14px;padding-right:14px}.breadcrumb{font-size:.72rem}.product-gallery__thumbs{gap:7px}.product-gallery__thumb-item{width:58px;height:72px}.product-actions{gap:8px!important}.product-actions .btn-lg{font-size:.82rem}.product-key-facts{grid-template-columns:1fr 1fr}.product-service-points{padding-top:13px}.product-mobile-sticky__price{flex:1}.product-mobile-sticky__cart{min-width:116px}}

/* Product mobile hierarchy — UI/UX r3 deep pass */
@media (max-width: 991.98px) {
    .product-page-info { display: flex; flex-direction: column; }
    .product-page-info .product-price-block { order: 1; }
    .product-page-info .product-stock-row { order: 2; }
    .product-page-info .product-key-facts { order: 3; }
    .product-page-info .product-actions { order: 4; }
    .product-page-info .product-delivery-card { order: 5; }
    .product-price-block { margin-top: 0; padding: 2px 0 4px; }
    .product-price-block__price { font-size: clamp(1.55rem, 7vw, 2rem); }
    .product-stock-row { margin: 5px 0 12px; }
    .product-key-facts { margin: 0 0 14px; }
    #productTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        margin-inline: -12px;
        padding-inline: 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    #productTabs::-webkit-scrollbar { display: none; }
    #productTabs .nav-item { flex: 0 0 auto; }
    #productTabs .nav-link { min-height: 43px; padding: 10px 12px; white-space: nowrap; font-size: .8rem; }
    #productTabsContent { margin-inline: -2px; padding: 16px !important; border-radius: 0 0 13px 13px !important; font-size: .9rem; }
    #productTabsContent .table { font-size: .83rem; }
    #productTabsContent .table td { padding: 9px 8px; }
}
@media (max-width: 575.98px) {
    .product-main-row > .col-lg-5 { padding-inline: 0; }
    .product-gallery__main { border-inline: 0; border-radius: 0; margin-inline: -14px; }
    .product-main-image-wrap { border-radius: 0; }
    .product-gallery__arrow { width: 38px; height: 38px; }
    .product-gallery__thumbs { margin-top: 9px; }
    .product-key-fact { min-height: 54px; padding: 10px; }
    .product-key-fact span { font-size: .67rem; }
    .product-key-fact strong { font-size: .78rem; }
    .product-delivery-card { padding: 14px; border-radius: 14px; }
}

/* UI/UX r15 — marketplace seller offers */
.product-marketplace-offers{margin:14px 0 18px;padding:16px;border:1px solid #dfe7e2;border-radius:16px;background:#fff}.product-marketplace-offers__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.product-marketplace-offers__heading small{display:block;color:#7b8880;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.product-marketplace-offers__heading h2{margin:2px 0 0;color:#25382d;font-size:1rem;font-weight:780}.product-marketplace-offers__heading>span{min-width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:#edf6f0;color:var(--primary-color);font-size:.78rem;font-weight:750}.product-marketplace-offers__list{display:grid;gap:8px}.marketplace-offer{display:grid;grid-template-columns:minmax(150px,1.45fr) minmax(120px,1fr) minmax(95px,.75fr) minmax(92px,.65fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #e3e9e5;border-radius:13px;background:#fafcfb}.marketplace-offer__seller a{display:block;color:#25382d;font-weight:760;text-decoration:none}.marketplace-offer__seller span{display:block;margin-top:3px;color:#7a867f;font-size:.72rem}.marketplace-offer__seller i{color:#e4a72c}.marketplace-offer__delivery,.marketplace-offer__stock{color:#67766e;font-size:.74rem}.marketplace-offer__stock.is-stock{color:#2f7d4e}.marketplace-offer__price{text-align:right}.marketplace-offer__price del{display:block;color:#909a94;font-size:.68rem}.marketplace-offer__price strong{color:#1f3c2c;font-size:.96rem}.marketplace-offer__action{text-align:right}.marketplace-offer__notice{display:inline-flex;align-items:center;min-height:30px;padding:6px 9px;border:1px solid #dfe6e1;border-radius:9px;color:#6b786f;background:#fff;font-size:.68rem}.product-marketplace-offers__hint{margin:11px 2px 0;color:#7a867f;font-size:.7rem;line-height:1.45}.product-marketplace-offers__hint i{margin-right:4px}
@media(max-width:767.98px){.product-marketplace-offers{margin-inline:-2px;padding:13px;border-radius:14px}.product-marketplace-offers__list{display:flex;overflow-x:auto;gap:9px;margin-inline:-13px;padding:0 13px 2px;scroll-snap-type:x proximity;scrollbar-width:none}.product-marketplace-offers__list::-webkit-scrollbar{display:none}.marketplace-offer{flex:0 0 min(82vw,310px);display:grid;grid-template-columns:1fr auto;grid-template-areas:'seller price' 'delivery stock' 'action action';gap:7px 12px;scroll-snap-align:start}.marketplace-offer__seller{grid-area:seller}.marketplace-offer__price{grid-area:price}.marketplace-offer__delivery{grid-area:delivery}.marketplace-offer__stock{grid-area:stock;text-align:right}.marketplace-offer__action{grid-area:action;text-align:left;padding-top:3px}.product-marketplace-offers__hint{font-size:.67rem}}
@media(max-width:991.98px){.product-page-info .product-variants{order:0}.product-page-info .product-price-block{order:1}.product-page-info .product-stock-row{order:2}.product-page-info .product-key-facts{order:3}.product-page-info .product-actions{order:4}.product-page-info .product-seller-card{order:5}.product-page-info .product-marketplace-offers{order:6}.product-page-info .product-secondary-actions{order:7}.product-page-info .product-delivery-card{order:8}}

/* UI/UX r17 — mobile purchase dock total */
.product-mobile-sticky__context { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; margin-top:2px; color:#7c8981; font-size:.64rem; line-height:1.15; }
.product-mobile-sticky__context del { color:#9aa39e; }
.product-mobile-sticky__context span { text-decoration:none; }
.product-mobile-sticky__qty button { min-width:34px; min-height:38px; }
@media (max-width: 420px) {
    .product-mobile-sticky { gap:8px; }
    .product-mobile-sticky__qty { flex:0 0 auto; }
    .product-mobile-sticky__cart { min-width:108px; }
}
