/* Big Brands B2B — product detail page styles */
/* Файл сформирован из inline-стилей product_detail.html */

/* === base-product-detail-style === */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f4f6f8;
            color: #18202a;
        }

        .header {
            background: #111827;
            color: #fff;
            padding: 20px 18px;
        }

        .header-inner,
        .container {
            max-width: 1180px;
            margin: 0 auto;
        }

        .breadcrumbs {
            color: #d1d5db;
            font-size: 14px;
        }

        .breadcrumbs a {
            color: #fff;
            text-decoration: none;
        }

        .container {
            padding: 24px 18px 40px;
        }

        .product {
            background: #fff;
            border-radius: 22px;
            box-shadow: 0 8px 24px rgba(15,23,42,.06);
            padding: 22px;
            display: grid;
            grid-template-columns: 420px 1fr;
            gap: 30px;
        }

        .image {
            background: #fff;
            border: 1px solid #edf0f3;
            border-radius: 18px;
            min-height: 360px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image img {
            max-width: 95%;
            max-height: 340px;
            object-fit: contain;
        }

        h1 {
            margin: 0 0 12px;
            font-size: 32px;
            line-height: 1.15;
        }

        .brand {
            color: #6b7280;
            margin-bottom: 12px;
        }

        .brand a {
            color: #374151;
            text-decoration: none;
            font-weight: 700;
        }

        .price {
            font-size: 30px;
            font-weight: 800;
            margin: 18px 0;
        }

        .meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 18px 0;
        }

        .meta div {
            background: #f8fafc;
            padding: 12px;
            border-radius: 12px;
        }

        .btn {
            display: inline-block;
            background: #111827;
            color: #fff;
            text-decoration: none;
            padding: 14px 18px;
            border-radius: 12px;
            margin: 0 10px 10px 0;
        }

        .section {
            margin-top: 22px;
            background: #fff;
            border-radius: 22px;
            box-shadow: 0 8px 24px rgba(15,23,42,.06);
            padding: 22px;
            line-height: 1.55;
        }

        .section h2 {
            margin-top: 0;
        }

        .specs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .spec {
            background: #f8fafc;
            padding: 12px;
            border-radius: 12px;
        }

        .faq {
            display: grid;
            gap: 12px;
        }

        .faq-item {
            background: #f8fafc;
            padding: 14px;
            border-radius: 14px;
        }

        .faq-item strong {
            display: block;
            margin-bottom: 6px;
        }

        @media (max-width: 900px) {
            .product {
                grid-template-columns: 1fr;
            }

            .meta,
            .specs {
                grid-template-columns: 1fr;
            }

            h1 {
                font-size: 26px;
            }
        }

/* === bb-product-detail-upgrade === */
.bb-b2b-price-card {
        margin: 18px 0;
        padding: 18px;
        border-radius: 22px;
        background: linear-gradient(135deg, #111827, #0f172a);
        color: #fff;
        box-shadow: 0 14px 36px rgba(15,23,42,.16);
    }

    .bb-b2b-price-card__label {
        color: #cbd5e1;
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 6px;
    }

    .bb-b2b-price-card .price {
        color: #fff;
        margin: 0;
        font-size: 34px;
        line-height: 1.1;
        font-weight: 900;
    }

    .bb-b2b-price-card__old {
        margin-top: 8px;
        color: #fed7aa;
        font-size: 14px;
        font-weight: 900;
    }

    .bb-b2b-price-card__sale {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: #9a3412;
        font-weight: 900;
        line-height: 1.35;
    }

    .bb-b2b-price-card__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .bb-b2b-price-card__cell {
        padding: 12px;
        border-radius: 16px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.10);
        min-width: 0;
    }

    .bb-b2b-price-card__cell span {
        display: block;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 900;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .bb-b2b-price-card__cell strong {
        display: block;
        color: #fff;
        font-size: 15px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .bb-b2b-price-card__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
    }

    .bb-b2b-price-card__btn {
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        border-radius: 16px;
        background: #dc2626;
        color: #fff !important;
        text-decoration: none;
        font-weight: 900;
        box-shadow: 0 12px 24px rgba(220,38,38,.26);
    }

    .bb-b2b-price-card__btn--ghost {
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        box-shadow: none;
    }

    .bb-min-order-note {
        margin-top: 10px;
        color: #cbd5e1;
        font-size: 13px;
        line-height: 1.45;
    }

    @media (max-width: 820px) {
        .bb-b2b-price-card {
            padding: 16px;
            border-radius: 20px;
        }

        .bb-b2b-price-card__grid {
            grid-template-columns: 1fr 1fr;
        }

        .bb-b2b-price-card__actions {
            display: grid;
        }

        .bb-b2b-price-card__btn {
            width: 100%;
        }
    }

    @media (max-width: 520px) {
        .bb-b2b-price-card__grid {
            grid-template-columns: 1fr;
        }

        .bb-b2b-price-card .price {
            font-size: 30px;
        }
    }

/* === bb-product-detail-overflow-fix === */
html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .product,
    .section,
    .bb-b2b-price-card {
        box-sizing: border-box;
        max-width: 100%;
    }

    .product {
        overflow: hidden;
    }

    .product > *,
    .bb-b2b-price-card,
    .bb-b2b-price-card *,
    .bb-page-title,
    .bb-page-subtitle,
    h1,
    h2,
    p,
    a {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .bb-b2b-price-card {
        width: 100%;
        overflow: hidden;
    }

    .bb-b2b-price-card__grid {
        width: 100%;
        max-width: 100%;
    }

    .bb-b2b-price-card__cell {
        min-width: 0;
        overflow: hidden;
    }

    .bb-b2b-price-card__actions {
        display: grid;
        grid-template-columns: minmax(220px, 1.15fr) minmax(180px, .9fr) minmax(210px, 1fr);
        gap: 10px;
        width: 100%;
    }

    .bb-b2b-price-card__btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .bb-min-order-note {
        max-width: 100%;
        overflow: hidden;
        white-space: normal;
    }

    @media (max-width: 1100px) {
        .product {
            grid-template-columns: 1fr !important;
        }

        .bb-b2b-price-card__actions {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 640px) {
        .container {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }

        .product,
        .section {
            border-radius: 18px !important;
            padding: 16px !important;
        }

        .bb-commercial-hero,
        .bb-commercial-nav {
            padding-left: 16px !important;
            padding-right: 16px !important;
        }

        .bb-page-title,
        .product h1,
        h1 {
            font-size: 26px !important;
            line-height: 1.15 !important;
        }

        .bb-b2b-price-card {
            margin-left: 0;
            margin-right: 0;
            padding: 16px;
            border-radius: 18px;
        }

        .bb-b2b-price-card__grid {
            grid-template-columns: 1fr !important;
            gap: 8px;
        }

        .bb-b2b-price-card__actions {
            grid-template-columns: 1fr !important;
        }

        .bb-b2b-price-card__btn {
            min-height: 54px;
            padding: 0 14px;
            font-size: 15px;
        }

        .bb-b2b-price-card .price {
            font-size: 30px !important;
        }
    }

/* === bb-product-detail-polish-v2 === */
.product {
        align-items: stretch;
        overflow: hidden;
    }

    .product > div:first-child {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
        border-radius: 22px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
    }

    .product > div:first-child img {
        width: min(560px, 100%);
        max-width: 100%;
        max-height: 520px;
        object-fit: contain;
        display: block;
    }

    .product > div:last-child {
        min-width: 0;
        max-width: 100%;
    }

    .product h1 {
        max-width: 980px;
        margin-top: 14px;
        margin-bottom: 18px;
        font-size: clamp(30px, 2.2vw, 44px);
        line-height: 1.12;
        letter-spacing: -0.03em;
        overflow-wrap: anywhere;
    }

    .brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        color: #64748b;
        font-size: 16px;
    }

    .brand a {
        color: #0f172a;
        font-weight: 900;
        text-decoration: none;
    }

    .brand .quick-add,
    .brand .quick-add-btn,
    .brand .bb-quick-add,
    .brand a[href*="quick-order"],
    p a[href*="quick-order"]:not(.bb-b2b-price-card__btn),
    .product > div:last-child > a[href*="quick-order"]:not(.bb-b2b-price-card__btn) {
        display: none !important;
    }

    .bb-b2b-price-card {
        width: 100%;
        max-width: 100%;
        margin-top: 18px;
        border-radius: 24px;
        background:
            radial-gradient(circle at 12% 0%, rgba(220,38,38,.18), transparent 30%),
            linear-gradient(135deg, #111827, #0f172a);
    }

    .bb-b2b-price-card__label {
        color: #dbeafe;
        opacity: .95;
    }

    .bb-b2b-price-card .price {
        font-size: clamp(34px, 2.8vw, 48px);
        letter-spacing: -0.03em;
    }

    .bb-b2b-price-card__old {
        color: #fed7aa;
        opacity: .95;
        font-size: 15px;
    }

    .bb-b2b-price-card__sale {
        color: #9a3412;
        background: #fff7ed;
        border-color: #fed7aa;
        font-size: 15px;
    }

    .bb-b2b-price-card__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .bb-b2b-price-card__cell {
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.14);
    }

    .bb-b2b-price-card,
    .bb-b2b-price-card * {
        box-sizing: border-box;
        min-width: 0;
    }

    .bb-min-order-note {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        column-gap: 10px;
        align-items: start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(255,255,255,.94);
        color: #475569;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.4;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .bb-min-order-note::before {
        content: "📦";
        display: block;
        width: 18px;
        line-height: 1;
    }

    .bb-b2b-price-card__actions {
        margin-top: 18px;
        display: grid;
        grid-template-columns: 1.15fr .95fr 1fr;
        gap: 12px;
        align-items: stretch;
    }

    .bb-b2b-price-card__btn {
        min-height: 58px;
        border-radius: 18px;
        font-size: 16px;
        white-space: normal;
        text-align: center;
    }

    .bb-b2b-price-card__btn--ghost {
        background: rgba(255,255,255,.11);
        border-color: rgba(255,255,255,.20);
    }

    @media (min-width: 1200px) {
        .product {
            grid-template-columns: minmax(420px, .86fr) minmax(0, 1.35fr) !important;
            gap: 34px;
        }
    }

    @media (max-width: 1199px) {
        .product {
            grid-template-columns: 1fr !important;
        }

        .product > div:first-child img {
            max-height: 420px;
        }

        .bb-b2b-price-card__actions {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 640px) {
        .product > div:first-child {
            padding: 12px;
            min-height: 220px;
        }

        .product > div:first-child img {
            width: 100%;
            max-height: 300px;
        }

        .product h1 {
            font-size: 26px !important;
            line-height: 1.15 !important;
        }

        .bb-b2b-price-card {
            padding: 16px;
            border-radius: 20px;
        }

        .bb-b2b-price-card__grid {
            grid-template-columns: 1fr !important;
        }

        .bb-min-order-note {
            font-size: 13px;
        }

        .bb-b2b-price-card__btn {
            min-height: 56px;
        }
    }

/* === bb-product-h1-note-style === */
.bb-product-h1-note {
        margin: -6px 0 18px;
        color: #64748b;
        font-size: 16px;
        line-height: 1.45;
        font-weight: 650;
        max-width: 900px;
    }

    @media (max-width: 640px) {
        .bb-product-h1-note {
            margin-top: -2px;
            font-size: 14px;
        }
    }
