/* ENGROS — PDP & card skin (Redesign variant, tokens.css) */

/* Product highlight badge ("BESTSELGER", "NYHET" etc.) */
.engros-badge {
    display: inline-block;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FAF7F0;
    background: #1A2B26;
    padding: 5px 10px;
    border-radius: 2px;
    line-height: 1.4;
    margin: 0 0 12px;
}

/* On product cards: overlay on image, stacked below the -% bubble */
.woocommerce-image__wrapper .engros-badge {
    position: absolute;
    top: 45px;
    left: 10px;
    z-index: 3;
    margin: 0;
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 0.06em;
}

/* If product is NOT on sale, no bubble — pull badge up to the corner */
.woocommerce-image__wrapper:not(:has(.sale-item.product-label)) .engros-badge {
    top: 10px;
}

/* ── PDP stats line (stars + reviews + sold) ───────────────────── */
.single-product .summary .engros-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: #2A2520;
}

.single-product .summary .engros-stats__stars .star-rating {
    margin: 0;
    font-size: 14px;
    color: #C49A3D;
}

.single-product .summary .engros-stats__reviews {
    color: #2A2520;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-product .summary .engros-stats__reviews:hover {
    color: #1A2B26;
}

.single-product .summary .engros-stats__sep {
    color: #736B61;
}

.single-product .summary .engros-stats__sold {
    color: #2A2520;
}

.single-product .summary .engros-stats__sold strong {
    font-weight: 700;
}

/* ── Price block (Elkjøp/Power pattern) ───────────────────────── */
/* Big price | chip stacked over "Førpris:" anchor. One controlled group. */
.single-product .summary .engros-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 6px 0 18px;
}

.single-product .summary .engros-price__main {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #141210; /* --rd-ink — overrides Shoptimizer orange */
    white-space: nowrap;
}

.single-product .summary .engros-price__main .woocommerce-Price-amount {
    color: inherit;
}

.single-product .summary .engros-price__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-top: 3px;
}

.single-product .summary .engros-price__chip {
    display: inline-block;
    background: #B73024; /* --rd-sale, muted brick (not alarm red) */
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.single-product .summary .engros-price__forpris {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #9A9387;
    white-space: nowrap;
}

.single-product .summary .engros-price__forpris b,
.single-product .summary .engros-price__forpris .woocommerce-Price-amount {
    font-weight: 400;
    color: #9A9387;
}

/* ── Krok 4: warm Redesign skin ───────────────────────────────── */
body.single-product {
    background: #FAF7F0; /* --rd-bg warm paper */
}

.single-product .summary .product_title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #141210;
}

/* Primary CTA → forest ink (overrides Shoptimizer's strong button CSS) */
.single-product .summary form.cart .single_add_to_cart_button {
    background: #1A2B26 !important;
    border-color: #1A2B26 !important;
    color: #fff !important;
    border-radius: 6px !important;
}

.single-product .summary form.cart .single_add_to_cart_button:hover,
.single-product .summary form.cart .single_add_to_cart_button:focus {
    background: #243a33 !important;
    border-color: #243a33 !important;
}

/* ── Hide Shoptimizer's -% bubble inside PDP summary (cards keep it) ── */
.single-product .summary .sale-item.product-label {
    display: none !important;
}

/* ── Feature list (short description ul → green checkmarks) ──────── */
.single-product .summary .woocommerce-product-details__short-description ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.single-product .summary .woocommerce-product-details__short-description ul li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: #2A2520;
}

.single-product .summary .woocommerce-product-details__short-description ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    background-color: #2F7A4D; /* --rd-ok */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 15px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ── Benefits box (wraps the short description) ──────────────────── */
.single-product .summary .engros-benefits {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 6px;
}

.single-product .summary .engros-benefits__title {
    margin: 0 0 9px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A2B26;
}

/* Variant: warm tint, no border (recommended) */
.single-product .summary .engros-benefits--tinted {
    background: #F2ECDF;
}

/* Variant: hairline border, transparent bg */
.single-product .summary .engros-benefits--border {
    background: transparent;
    border: 1px solid #E5DFD3;
}

/* Variant: warm tint + left forest accent bar */
.single-product .summary .engros-benefits--accent {
    background: #F2ECDF;
    border-left: 4px solid #1A2B26;
    border-radius: 0 6px 6px 0;
}

/* Tighten the list now that it lives inside the box */
.single-product .summary .engros-benefits ul {
    margin: 0;
    gap: 5px;
}
