/*your custom css goes here*/

/* Homepage advantage cards — align with theme primary / soft-primary */
.home-advantages-section .home-advantage-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.home-advantages-section .home-advantage-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
}

.home-advantages-section .home-advantage-lead {
    display: block;
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin-bottom: 0.4rem;
}

@media (min-width: 992px) {
    .home-advantages-section .home-advantage-lead {
        font-size: 1.5rem;
    }
}

.home-advantages-section .home-advantage-rest {
    font-size: 0.9375rem;
    line-height: 1.7;
    display: block;
}

/* Shop logo — size slot only; no grey “frame”, soft rounded corners */
:root {
    --shop-logo-slot-w: 220px;
    --shop-logo-slot-h: 110px;
    --shop-logo-radius: 10px;
}

.shop-logo-unified {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: var(--shop-logo-radius);
    box-sizing: border-box;
}

.shop-logo-unified img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: var(--shop-logo-radius);
}

.shop-logo-unified--header {
    width: var(--shop-logo-slot-w);
    height: var(--shop-logo-slot-h);
    flex-shrink: 0;
    max-width: 100%;
}

/* List / carousel shop cards — compact thumb only (shop homepage uses --header) */
.row.hov-shadow-md.align-items-center > .col-4 {
    min-width: 0;
}

.shop-logo-unified--list {
    --shop-logo-radius: 8px;
    width: 100%;
    max-width: 100%;
    height: clamp(52px, 18vw, 70px);
}

@media (max-width: 575.98px) {
    .shop-listing-card-row .btn.btn-soft-primary.btn-sm {
        padding: 0.25rem 0.55rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .shop-listing-card-row h2.h6 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
}

.shop-logo-unified--search {
    --shop-logo-radius: 6px;
    width: 80px;
    height: 40px;
}

.shop-logo-unified--sidenav {
    width: min(200px, 100%);
    height: 100px;
    max-width: 100%;
}

/* 产品详情 — 无品牌图时的统一占位（brand-placeholder.svg） */
.product-detail-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 商品详情 — 价格/数量等标签列：俄文短标签 + 避免与数值叠在一行 */
.product-detail-info .row.no-gutters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.product-detail-info .row.no-gutters > [class*="col-sm-2"] {
    flex: 0 0 auto;
    width: auto;
    max-width: 42%;
    padding-right: 0.65rem;
}
.product-detail-info .row.no-gutters > [class*="col-sm-2"] .opacity-50 {
    white-space: nowrap;
    line-height: 1.35;
}
.product-detail-info .row.no-gutters > [class*="col-sm-10"] {
    flex: 1 1 8rem;
    min-width: 0;
    max-width: 100%;
}
.product-detail-info #chosen_price_div.row.no-gutters {
    align-items: center;
}
.product-detail-info #chosen_price_div .product-price {
    line-height: 1.2;
}

/* 商品详情 — 主操作按钮对齐；窄屏全宽堆叠 */
.product-detail-actions-primary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}
.product-detail-actions-primary .btn {
    width: 100%;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
@media (min-width: 576px) {
    .product-detail-actions-primary {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .product-detail-actions-primary .btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 8.5rem;
    }
}
.product-detail-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}
.product-detail-actions-secondary .btn-link {
    white-space: nowrap;
}

/* 锚点直达底部询价：sticky 顶栏不遮挡首行；不依赖整页 load 后再跳 */
#footer-customer-inquiry {
    scroll-margin-top: 5.5rem;
}

/* 全站底部询价 — 区块醒目、主标题与字段标签更大 */
.footer-customer-inquiry {
    background: linear-gradient(180deg, #fff8f6 0%, #ffffff 55%);
    border-top: 3px solid var(--primary, #ff6a4d);
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.06);
}

.footer-customer-inquiry .footer-inquiry-inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary, #ff6a4d);
}

.footer-customer-inquiry .footer-inquiry-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .footer-customer-inquiry .footer-inquiry-title {
        font-size: 1.75rem;
    }
}

.footer-customer-inquiry .footer-inquiry-lead {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 42rem;
}

.footer-customer-inquiry .footer-inquiry-label {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.footer-customer-inquiry .footer-inquiry-form .form-control {
    font-size: 1rem;
    padding: 0.55rem 0.85rem;
    border-color: rgba(0, 0, 0, 0.12);
}

.footer-customer-inquiry .footer-inquiry-form textarea.form-control {
    min-height: 140px;
}

.footer-customer-inquiry .footer-inquiry-submit {
    font-size: 1.05rem;
    font-weight: 600;
}