/* =============================================================
   Single Product Page — clean mobile UX for the action block
   Covers stock label, Request a Quote, Quantity, Add to cart,
   Buy Now, wishlist + compare icons.
   ============================================================= */

/* -------- Sale percentage badge above the title -------- */
.ps-product--detail .ps-product__sale-pct {
    background: var(--primary-color, #b32b1c);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    padding: 6px 14px;
}

/* -------- Title -------- */
.ps-product--detail .ps-product__info h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

/* -------- Price -------- */
.ps-product--detail .ps-product__info .ps-product__price {
    align-items: baseline;
    color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    font-size: 24px;
    font-weight: 700;
    gap: 10px;
    margin: 0 0 14px;
}
.ps-product--detail .ps-product__info .ps-product__price del,
.ps-product--detail .ps-product__info .ps-product__price .original-price {
    color: #8a8a8a;
    font-weight: 500;
    text-decoration: line-through;
}

/* -------- SKU under the price -------- */
.ps-product--detail .ps-product__sku-line {
    color: #555;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 20px;
}
.ps-product--detail .ps-product__sku-line strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* -------- "Included Items" section header above the description list -------- */
.ps-product--detail .ps-product__section-title {
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    margin: 24px 0 8px !important;
    text-transform: none !important;
}

/* The theme's existing .ps-list--dot uses a custom ::before dot at
   `left: 0` and indents each li by `padding-left: 20px`. Don't fight it
   — just style the wrapper for typography and leave the bullet system
   intact (overriding li padding here pulled the text under the dot). */
.ps-product--detail .ps-product__desc .ps-list--dot {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
.ps-product--detail .ps-product__desc .ps-list--dot li {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* -------- "Sold by: Dealer" line near the bottom of the info column -------- */
.ps-product--detail .ps-product__sold-by {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 20px 0 0;
}
.ps-product--detail .ps-product__sold-by-label {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 6px;
}
.ps-product--detail .ps-product__sold-by-link {
    color: var(--primary-color, #b32b1c);
    font-weight: 700;
    text-decoration: none;
}
.ps-product--detail .ps-product__sold-by-link:hover {
    text-decoration: underline;
}

/* -------- Vendor tab — full vendor info card -------- */
.ps-vendor-card {
    background: #fff;
    border: 1px solid #e8e6e3;
    border-radius: 8px;
    color: #333;
    padding: 24px;
}
.ps-vendor-card__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.ps-vendor-card__logo {
    flex: 0 0 auto;
    height: 72px;
    overflow: hidden;
    width: 72px;
}
.ps-vendor-card__logo img {
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.ps-vendor-card__heading {
    flex: 1 1 200px;
    min-width: 0;
}
.ps-vendor-card__name {
    align-items: center;
    color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 700;
    gap: 8px;
    line-height: 1.25;
    margin: 0;
}
.ps-vendor-card__company {
    color: #666;
    font-size: 14px;
    margin: 4px 0 0;
}
.ps-vendor-card__description {
    color: #555;
    font-size: 15px;
    line-height: 1.55;
    margin: 16px 0;
}
.ps-vendor-card__details {
    display: grid;
    gap: 6px 16px;
    grid-template-columns: 90px 1fr;
    margin: 0 0 16px;
}
.ps-vendor-card__details dt {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.ps-vendor-card__details dd {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.ps-vendor-card__details dd a {
    color: var(--primary-color, #b32b1c);
    text-decoration: none;
}
.ps-vendor-card__details dd a:hover {
    text-decoration: underline;
}
.ps-vendor-card__content {
    border-top: 1px solid #f0eeec;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 16px;
    padding-top: 16px;
}
.ps-vendor-card__footer {
    align-items: center;
    border-top: 1px solid #f0eeec;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
}
.ps-vendor-card__visit-btn {
    background: var(--primary-color, #b32b1c);
    border: 1.5px solid var(--primary-color, #b32b1c);
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    text-decoration: none;
    transition: filter 0.15s ease;
}
.ps-vendor-card__visit-btn:hover {
    filter: brightness(0.95);
}
.ps-vendor-card__more-products {
    color: var(--primary-color, #b32b1c);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.ps-vendor-card__more-products:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .ps-vendor-card {
        padding: 18px;
    }
    .ps-vendor-card__details {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    .ps-vendor-card__details dt {
        margin-top: 8px;
    }
    .ps-vendor-card__details dt:first-child {
        margin-top: 0;
    }
}

/* -------- Hide variation swatches on inventory product pages -------- */
/* Each SHEDhub product has exactly one variation (one dealer / one width /
   one length), so the dropdown swatches show a single option each and add
   nothing. Hide the whole switch wrap and the in-stock badge wrapper that
   appears between them. */
.ps-product--detail .pr_switch_wrap {
    display: none !important;
}

/* -------- Specs list (Size / Building Type / Siding / colors / Door) -------- */
.ps-product--detail .ps-product__specs {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.ps-product--detail .ps-product__specs li {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
.ps-product--detail .ps-product__specs li strong {
    color: #1a1a1a;
    font-weight: 700;
    margin-right: 4px;
}

/* -------- Tag list (REPO / SALE shown as separate lines) -------- */
.ps-product--detail .ps-product__tag-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}
.ps-product--detail .ps-product__tag-list li {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    margin: 0;
    text-transform: uppercase;
}

/* Hide review stars on the single product page per design */
.ps-product--detail .ps-product__info .rating_wrap {
    display: none !important;
}


/* -------- Stock label ("X products available") -------- */
.ps-product--detail .number-items-available {
    align-items: center;
    color: #2d6a4f;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    margin-bottom: 16px;
}
.ps-product--detail .number-items-available .text-success {
    color: #2d6a4f;
}
.ps-product--detail .number-items-available .text-success::before {
    background-color: #2d6a4f;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 8px;
    vertical-align: middle;
    width: 8px;
}
.ps-product--detail .number-items-available .text-danger {
    color: #b32b1c;
}

/* -------- Request a Quote button (sits between stock label & shopping) -------- */
.ps-product--detail .request-quote-wrapper {
    margin: 0 0 16px;
}
.ps-product--detail .request-quote-btn {
    align-items: center;
    background-color: transparent !important;
    border: 1.5px solid var(--primary-color, #b32b1c) !important;
    border-radius: 6px !important;
    color: var(--primary-color, #b32b1c) !important;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700 !important;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    padding: 12px 22px !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ps-product--detail .request-quote-btn:hover,
.ps-product--detail .request-quote-btn:focus {
    background-color: var(--primary-color, #b32b1c) !important;
    color: #fff !important;
}

/* -------- Shopping block layout -------- */
.ps-product--detail .ps-product__shopping {
    align-items: stretch;
    border-bottom: 1px solid #e8e6e3;
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    row-gap: 14px;
}

/* Quantity (figure wraps figcaption + the +/- field) */
.ps-product--detail .ps-product__shopping figure {
    margin: 0;
    width: 140px;
}
.ps-product--detail .ps-product__shopping figure figcaption {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ps-product--detail .ps-product__shopping .form-group--number {
    align-items: center;
    border: 1px solid #d8d6d3;
    border-radius: 6px;
    display: flex;
    height: 48px;
    max-width: 140px;
    overflow: hidden;
}
.ps-product--detail .ps-product__shopping .form-group--number button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #1a1a1a;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 18px;
    height: 100%;
    justify-content: center;
    padding: 0;
}
.ps-product--detail .ps-product__shopping .form-group--number button:hover {
    color: var(--primary-color, #b32b1c);
}
.ps-product--detail .ps-product__shopping .form-group--number input {
    background: transparent;
    border: 0;
    color: #1a1a1a;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    height: 100%;
    padding: 0;
    text-align: center;
}

/* -------- Add to cart / Buy Now buttons -------- */
.ps-product--detail .ps-product__shopping .ps-btn.add-to-cart-button {
    align-items: center;
    background-color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    max-height: none;
    min-height: 48px;
    padding: 0 26px;
    transition: filter 0.15s ease;
    white-space: nowrap;
}
.ps-product--detail .ps-product__shopping .ps-btn.ps-btn--black.add-to-cart-button:hover,
.ps-product--detail .ps-product__shopping .ps-btn.ps-btn--black.add-to-cart-button:focus {
    background-color: #000;
    color: #fff;
    filter: none;
}
/* Buy Now = brand-color outline (secondary action) */
.ps-product--detail .ps-product__shopping .ps-btn.add-to-cart-button:not(.ps-btn--black) {
    background-color: transparent;
    border: 1.5px solid var(--primary-color, #b32b1c);
    color: var(--primary-color, #b32b1c);
}
.ps-product--detail .ps-product__shopping .ps-btn.add-to-cart-button:not(.ps-btn--black):hover,
.ps-product--detail .ps-product__shopping .ps-btn.add-to-cart-button:not(.ps-btn--black):focus {
    background-color: var(--primary-color, #b32b1c);
    color: #fff;
}

/* -------- Wishlist / Compare icons -------- */
.ps-product--detail .ps-product__shopping .ps-product__actions {
    align-items: center;
    border-left: 1px solid #e8e6e3;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    margin-left: auto;
    padding-left: 14px;
}
.ps-product--detail .ps-product__shopping .ps-product__actions a {
    align-items: center;
    border: 1px solid #d8d6d3;
    border-radius: 6px;
    color: #666;
    display: inline-flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    margin: 0;
    transition: color 0.15s ease, border-color 0.15s ease;
    width: 40px;
}
.ps-product--detail .ps-product__shopping .ps-product__actions a:hover {
    border-color: var(--primary-color, #b32b1c);
    color: var(--primary-color, #b32b1c);
}

/* =============================================================
   Mobile: full-width stack
   ============================================================= */
@media (max-width: 767px) {
    .ps-product--detail .request-quote-wrapper .request-quote-btn {
        display: flex;
        width: 100%;
    }

    .ps-product--detail .ps-product__shopping {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 18px;
    }

    .ps-product--detail .ps-product__shopping figure {
        width: 100%;
    }
    .ps-product--detail .ps-product__shopping .form-group--number {
        max-width: 160px;
    }

    .ps-product--detail .ps-product__shopping .ps-btn.add-to-cart-button {
        width: 100%;
        flex: none;
    }

    .ps-product--detail .ps-product__shopping .ps-product__actions {
        border-left: 0;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 0;
        padding-top: 6px;
        width: 100%;
    }
    .ps-product--detail .ps-product__shopping .ps-product__actions a {
        flex: 0 0 44px;
        height: 44px;
        width: 44px;
    }
}
