﻿/* =========================================================
   CUSTOMER COUPA / PUNCHOUT UI
   ========================================================= */

.customer-shell {
    min-height: 100vh;
    background: #eef2f6;
}

.customer-topbar {
    height: 58px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.customer-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: #111827;
}

    .customer-brand strong {
        font-size: 22px;
        letter-spacing: .08em;
    }

    .customer-brand span {
        font-size: 10px;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

.customer-secure {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.customer-content {
    padding: 0;
}

/* =========================================================
   PAGE / SHELL
   ========================================================= */

.coupa-page {
    min-height: calc(100vh - 58px);
    background: #f3f4f6;
    padding: 12px 22px;
}

.coupa-shell {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* =========================================================
   COMPACT HERO
   ========================================================= */

.coupa-hero {
    background: linear-gradient(135deg, #050505 0%, #1f2937 58%, #b00000 100%);
    color: white;
    border-radius: 14px;
    padding: 13px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.coupa-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #fecaca;
    font-weight: 800;
}

.coupa-hero h1 {
    font-size: 24px;
    margin: 3px 0;
    font-weight: 800;
}

.coupa-hero p {
    margin: 0;
    font-size: 13px;
    color: #e5e7eb;
}

.coupa-session-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    padding: 9px 14px;
    min-width: 210px;
}

    .coupa-session-card span {
        display: block;
        font-size: 10px;
        color: #d1d5db;
    }

    .coupa-session-card strong {
        font-size: 13px;
        color: #ffffff;
    }

/* =========================================================
   PANELS / BUTTONS / BADGES
   ========================================================= */

.coupa-panel {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.coupa-badge {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.coupa-btn-primary {
    background: #b00000;
    border-color: #b00000;
    color: white;
    font-weight: 800;
    border-radius: 9px;
    padding: 9px 22px;
}

    .coupa-btn-primary:hover {
        background: #8f0000;
        border-color: #8f0000;
        color: white;
    }

/* =========================================================
   MAIN SIDE-BY-SIDE LAYOUT / CONFIGURATOR PAGE
   ========================================================= */

.coupa-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 500px);
    gap: clamp(18px, 2vw, 32px);
    align-items: start;
    width: 100%;
}

/* =========================================================
   MEASUREMENT / MOUNT CARDS
   ========================================================= */

.measurement-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.measurement-card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 9px rgba(0,0,0,.055);
    cursor: pointer;
    transition: all .15s ease;
}

    .measurement-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 16px rgba(0,0,0,.09);
    }

    .measurement-card.active {
        border: 2px solid #b00000;
        box-shadow: 0 4px 13px rgba(176,0,0,.12);
    }

.measurement-card-header {
    background: #08264a;
    color: white;
    font-weight: 800;
    text-align: center;
    padding: 8px 10px;
    letter-spacing: .04em;
    font-size: 14px;
}

.measurement-card-image {
    height: clamp(210px, 18vw, 300px);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .measurement-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.measurement-info-box {
    margin: 10px;
    padding: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    color: #123b70;
    font-size: 12px;
    line-height: 1.35;
}

.deduction-box {
    padding: 0 10px 10px 10px;
    font-size: 12px;
}

.deduction-title {
    font-weight: 800;
    margin-bottom: 5px;
}

.how-measure-box {
    margin: 0 10px 10px 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 9px;
    padding: 10px;
    font-size: 12px;
}

.how-measure-title {
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
    font-size: 11px;
}

.measure-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.measure-user {
    color: #0b5ed7;
    font-weight: 800;
}

.measure-make {
    color: #047857;
    font-weight: 800;
}

/* =========================================================
   SUMMARY TILES
   ========================================================= */

.summary-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.summary-tile {
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    padding: 12px;
    background: #ffffff;
}

.summary-tile-label {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.summary-tile-value {
    font-size: 17px;
    font-weight: 800;
}

.summary-price {
    color: #b00000;
}

/* =========================================================
   CART / SIDE CARDS
   ========================================================= */

.sticky-cart {
    position: sticky;
    top: 72px;
    z-index: 5;
}

.coupa-side-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.coupa-steps {
    margin: 0;
    padding-left: 18px;
}

    .coupa-steps li {
        margin-bottom: 10px;
    }

/* =========================================================
   CATALOG PAGE CARDS
   ========================================================= */

.coupa-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
}

.coupa-product-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .coupa-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.11);
    }

.coupa-product-image {
    height: 110px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 16px;
}

.coupa-product-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.coupa-product-card p {
    color: #4b5563;
    font-size: 14px;
    min-height: 44px;
}

/* =========================================================
   FORM TIGHTENING
   ========================================================= */

.form-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-control,
.form-select {
    font-size: 14px;
    min-height: 36px;
}

/* =========================================================
   COUPA FAMILY / STOCK + CUSTOM PRODUCT PAGE
   ========================================================= */

.coupa-family-page {
    min-height: calc(100vh - 58px);
    width: 100%;
    background: #f4f6f8;
    padding: 16px 18px 40px 18px;
    box-sizing: border-box;
}

.family-header {
    width: 100%;
    min-height: 150px;
    border-radius: 22px;
    padding: 26px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #020617 0%, #020617 28%, #050b2a 48%, #2a0011 72%, #7f0015 100%);
    color: white;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
}

    .family-header h1 {
        margin: 0;
        font-size: 34px;
        font-weight: 900;
        align-items: stretch;
    }

/* Blazor's <FocusOnNavigate Selector="h1"> moves focus to the first heading
   after each navigation (an accessibility feature), which makes the browser
   draw a focus ring ("white box") around the header title on load. Headings
   aren't interactive, so suppress that ring entirely - screen readers still
   announce the heading via DOM focus; only the visual box is removed. */
h1:focus {
    outline: none;
}

    .family-header p {
        margin: 6px 0 0 0;
        opacity: .9;
        font-size: 14px;
    }

.family-session-card {
    width: 240px;
    justify-self: end;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    display: grid;
    gap: 3px;
}

    .family-session-card span {
        font-size: 12px;
        opacity: .75;
    }

    .family-session-card strong {
        font-size: 22px;
    }

.family-layout {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 18px;
    box-sizing: border-box;
}

.family-sidebar {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    height: fit-content;
    position: sticky;
    top: 76px;
}

    .family-sidebar h4 {
        font-size: 15px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 12px;
        letter-spacing: .02em;
    }

.side-link {
    width: 100%;
    border: 1px solid transparent;
    background: white;
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 800;
    text-align: left;
}

    .side-link:hover {
        background: #f8f8f8;
    }

    .side-link.active {
        border-color: #c80000;
        background: #fff2f2;
        color: #b00000;
    }

    .side-link small {
        color: #555;
        font-weight: 700;
    }

.family-sidebar label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.family-main {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    min-width: 0;
    box-sizing: border-box;
}

.shopping-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f8f8;
}

.tab-button {
    background: #f8f8f8;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 900;
    text-align: left;
    display: grid;
    gap: 4px;
}

    .tab-button small {
        font-size: 13px;
        font-weight: 500;
        color: #666;
    }

    .tab-button.active {
        background: white;
        border-bottom: 4px solid #c80000;
        color: #b00000;
    }

.results-toolbar {
    display: grid;
    grid-template-columns: 1fr 190px 170px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}

.toolbar-select {
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.stock-card {
    border: 1px solid #e1e1e1;
    border-radius: 16px;
    padding: 16px;
    background: white;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.stock-card {
    min-height: 505px;
    display: flex;
    flex-direction: column;
}

    .stock-card img {
        width: 100%;
        height: 210px;
        object-fit: contain;
        margin: 14px 0;
        background: #f9fafb;
        border-radius: 12px;
    }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

    .card-top label {
        font-size: 12px;
        color: #555;
        font-weight: 500;
    }

.badge-red {
    position: absolute;
    top: 48px;
    left: 16px;
    background: #15803d;
    color: white;
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(21,128,61,.22);
}

.quick-ship {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(22,101,52,.12);
}

.stock-card h3 {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
    min-height: 65px;
    margin-bottom: 8px;
}

/* Color • blind-type line on each stock card ("White • 2" Faux Wood Blind") -
   bold so the product description reads at a glance. */
.stock-spec-line {
    font-size: .85rem;
    font-weight: 800;
    color: #374151;
}

.stock-size {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #555;
    margin: 10px 0;
}

    .stock-size strong {
        color: #111;
        border: 1px solid #d8d8d8;
        border-radius: 999px;
        padding: 4px 10px;
        white-space: nowrap;
    }

.price {
    font-size: 28px;
    font-weight: 900;
    margin: 8px 0 12px 0;
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.qty-box {
    width: 70px;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    text-align: center;
    font-weight: 900;
}

.add-cart-btn {
    width: 100%;
    height: 42px;
    background: #c80000;
    color: white;
    border-radius: 10px;
    font-weight: 900;
}

    .add-cart-btn:hover {
        background: #9f0000;
        color: white;
    }


.custom-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #111827;
    border-radius: 18px;
    background: linear-gradient(135deg, #020617 0%, #111827 55%, #7f0015 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(2,6,23,.28);
    min-height: 505px;
}

.custom-card::before {
    content: "CUSTOM";
    position: absolute;
    top: 14px;
    right: -32px;
    background: #facc15;
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 6px 40px;
    transform: rotate(45deg);
}

.custom-card h3 {
    font-size: 25px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
}

.custom-card p {
    color: #e5e7eb;
    line-height: 1.5;
}

.custom-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 12px 0;
    background: rgba(255,255,255,.9);
    border-radius: 14px;
    padding: 10px;
}

.custom-card ul {
    padding-left: 18px;
    margin-bottom: 20px;
}

.custom-card li {
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

.custom-btn {
    width: 100%;
    height: 48px;
    background: #facc15;
    color: #111827;
    border-radius: 12px;
    font-weight: 900;
    margin-top: auto;
}

    .custom-btn:hover {
        background: #eab308;
        color: #111827;
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .family-layout {
        grid-template-columns: 1fr;
    }

    .family-sidebar {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 1100px) {
    .coupa-main-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .measurement-card-grid {
        gap: 10px;
    }

    .measurement-card-header {
        font-size: 12px;
    }

    .measurement-info-box,
    .deduction-box,
    .how-measure-box {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .coupa-main-grid {
        grid-template-columns: 1fr;
    }

    .sticky-cart {
        position: static;
    }

    .coupa-hero,
    .family-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .family-session-card {
        width: 100%;
    }

    .summary-tile-grid,
    .coupa-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .measurement-card-grid {
        grid-template-columns: 1fr;
    }

    .customer-topbar {
        height: auto;
        padding: 14px 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .shopping-tabs {
        grid-template-columns: 1fr;
    }

    .results-toolbar {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .coupa-page,
    .coupa-family-page {
        padding: 12px;
    }

    .coupa-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .summary-tile-grid,
    .coupa-product-grid {
        grid-template-columns: 1fr;
    }
}
/* FORCE COUPA FAMILY PAGE FULL WIDTH */
body:has(.coupa-family-page) {
    overflow-x: hidden;
}

    body:has(.coupa-family-page) .customer-content,
    body:has(.coupa-family-page) article,
    body:has(.coupa-family-page) main {
        width: 100%;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body:has(.coupa-family-page) .coupa-family-page {
        width: 100vw;
        max-width: none !important;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 24px;
        padding-right: 24px;
    }

    body:has(.coupa-family-page) .family-header,
    body:has(.coupa-family-page) .family-layout {
        width: 100%;
        max-width: none !important;
    }

    body:has(.coupa-family-page) .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
/* =========================================================
   FAMILY TOP TOOLBAR
   ========================================================= */

.family-toolbar {
    width: 100%;
    margin: 0 0 16px 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: center;
}

.family-category-button,
.family-cart-button {
    height: 54px;
    border: 1px solid #d7dce3;
    background: white;
    border-radius: 14px;
    padding: 0 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.family-search-wrapper {
    position: relative;
}

.family-search-box {
    width: 100%;
    height: 54px;
    border: 1px solid #d7dce3;
    border-radius: 14px;
    padding: 0 54px 0 18px;
    font-size: 16px;
    outline: none;
    background: white;
}

    .family-search-box:focus {
        border-color: #b00000;
        box-shadow: 0 0 0 3px rgba(176,0,0,.08);
    }

.family-search-icon {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 20px;
}

.family-cart-button {
    justify-content: center;
    gap: 12px;
}

.family-cart-icon {
    font-size: 26px;
}

.family-cart-button strong,
.family-cart-button small {
    display: block;
    line-height: 1.1;
}

.family-cart-button small {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 900px) {
    .family-toolbar {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CART REVIEW PAGE
   ========================================================= */

.cart-review-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.cart-review-main,
.cart-review-summary {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

.cart-review-line {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 130px 100px 130px 90px;
    gap: 16px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.cart-line-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-line-image img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

.cart-line-part {
    font-size: 12px;
    font-weight: 900;
    color: #b00000;
    margin-bottom: 4px;
}

.cart-review-line h3 {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 6px 0;
}

.cart-line-meta,
.cart-line-notes {
    font-size: 13px;
    color: #6b7280;
}

.cart-line-price span,
.cart-line-qty span,
.cart-line-total span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cart-line-price strong,
.cart-line-total strong {
    font-size: 18px;
    font-weight: 900;
}

.cart-line-qty input {
    width: 80px;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    text-align: center;
    font-weight: 900;
}

.cart-remove-button {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    height: 38px;
    font-weight: 900;
}

    .cart-remove-button:hover {
        background: #fecaca;
    }

.cart-review-summary {
    height: fit-content;
    position: sticky;
    top: 76px;
}

    .cart-review-summary h3 {
        font-size: 22px;
        font-weight: 900;
        margin-bottom: 18px;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
}

    .summary-row strong {
        font-size: 20px;
        font-weight: 900;
    }

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 18px 0;
}

.cart-submit-button {
    width: 100%;
    height: 48px;
    background: #f59e0b;
    color: #111827;
    border-radius: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

    .cart-submit-button:hover {
        background: #d97706;
        color: #111827;
    }

    .cart-submit-button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.cart-continue-button {
    width: 100%;
    height: 44px;
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-weight: 900;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

    .cart-empty h3 {
        font-size: 26px;
        font-weight: 900;
    }

    .cart-empty p {
        color: #6b7280;
        margin-bottom: 20px;
    }

@media (max-width: 1100px) {
    .cart-review-layout {
        grid-template-columns: 1fr;
    }

    .cart-review-summary {
        position: static;
    }

    .cart-review-line {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .cart-review-line {
        grid-template-columns: 1fr;
    }
}
.family-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .family-header-logo img {
        width: 520px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
/* CART THUMBNAIL FIX */
body:has(.coupa-family-page) .cart-line-image {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    overflow: hidden !important;
}

    body:has(.coupa-family-page) .cart-line-image img {
        width: 82px !important;
        height: 82px !important;
        max-width: 82px !important;
        max-height: 82px !important;
        object-fit: contain !important;
        display: block !important;
    }
.load-more-row {
    display: flex;
    justify-content: center;
    margin: 24px 0 40px 0;
    width: 100%;
}

.load-more-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}

    .load-more-btn:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }

    .load-more-btn span {
        margin-left: 8px;
        color: #6b7280;
        font-weight: 400;
    }
/* =========================================================
   ADDED TO CART OVERLAY
   ========================================================= */

.added-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    z-index: 999;
    font-size: 28px;
    font-weight: 900;
    animation: addedPopFade 1.1s ease forwards;
    pointer-events: none;
}

.added-check {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: white;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 12px;
}

@keyframes addedPopFade {
    0% {
        opacity: 0;
        transform: scale(.9);
    }

    15% {
        opacity: 1;
        transform: scale(1);
    }

    75% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(.98);
    }
}
.qty-picker {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    border: none;
    background: #f8fafc;
    height: 38px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

    .qty-btn:hover {
        background: #e5e7eb;
    }

.qty-input {
    border: none;
    height: 38px;
    text-align: center;
    font-weight: 900;
    outline: none;
    background: white;
    width: 100%;
}

    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
.stock-heading-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 55%, #fee2e2 100%);
    border: 1px solid #f3caca;
    border-left: 7px solid #c80000;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(176,0,0,.08);
}




    .stock-heading-panel h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 900;
        color: #9f0000;
    }

    .stock-heading-panel p {
        margin: 5px 0 0 0;
        font-size: 14px;
        color: #374151;
    }
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.58);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.custom-size-modal {
    position: relative;
    width: min(1500px, 98vw);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.custom-modal-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #020617, #111827, #7f0015);
    color: white;
}

    .custom-modal-header h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 900;
    }

    .custom-modal-header p {
        margin: 6px 0 0 0;
        color: #e5e7eb;
    }

.custom-modal-close {
    border: none;
    background: rgba(255,255,255,.16);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.custom-modal-body {
    padding: 24px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* Pinned action bar: error, allowed range, and Add to Cart stay visible
   without scrolling the modal. */
.custom-modal-footer {
    flex: 0 0 auto;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}

.custom-modal-placeholder {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    color: #6b7280;
    font-weight: 800;
}
.custom-builder-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.builder-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.builder-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.custom-rule-summary {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 14px;
}
.custom-size-modal {
    position: relative;
}

.custom-added-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
    z-index: 9999;
    font-size: 30px;
    font-weight: 900;
    animation: addedPopFade .9s ease forwards;
    pointer-events: none;
}
.custom-builder-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 32px;
}

.custom-builder-preview img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.custom-preview-meta {
    margin-top: 14px;
    border-bottom: 2px solid #111827;
    padding-bottom: 10px;
    display: grid;
    gap: 4px;
}

    .custom-preview-meta strong {
        font-size: 15px;
        font-weight: 900;
    }

    .custom-preview-meta span {
        font-size: 18px;
        font-weight: 800;
    }

.custom-dimensions-box {
    margin-top: 22px;
    font-size: 14px;
}

.dimension-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.dimension-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.builder-split-input {
    display: grid;
    grid-template-columns: 1fr 115px;
    gap: 10px;
}
.price-preview strong {
    font-size: 24px;
    color: #b00000;
}

.total-preview strong {
    font-size: 28px;
    color: #b00000;
}
.cart-review-line {
    grid-template-columns: 120px minmax(0, 1fr) 130px 100px 130px 90px;
    align-items: stretch;
}

.cart-line-details h3 {
    margin-bottom: 4px;
}

.cart-line-description {
    color: #4b5563;
    font-size: 13px;
    margin-bottom: 10px;
}

.cart-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

    .cart-spec-grid div {
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-left: 4px solid #c80000;
        border-radius: 10px;
        padding: 9px 11px;
    }

    .cart-spec-grid span {
        display: block;
        color: #6b7280;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .cart-spec-grid strong {
        display: block;
        color: #111827;
        font-size: 14px;
        font-weight: 900;
    }

.custom-cart-line {
    border-left: 6px solid #c80000;
}

.stock-cart-line {
    border-left: 6px solid #16a34a;
}

.stock-spec-grid div {
    border-left-color: #16a34a;
}

.cart-line-part {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 6px;
}

.stock-cart-line .cart-line-part {
    background: #dcfce7;
    color: #166534;
}
.vertical-builder-hero {
    background: linear-gradient(135deg, #141414, #2a2a2a);
    color: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

    .vertical-builder-hero h2 {
        margin: 0;
        font-size: 2rem;
    }

    .vertical-builder-hero p {
        margin: 8px 0 0;
        color: #ddd;
    }

.vertical-builder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

    .vertical-builder-badges span {
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: .85rem;
    }

.vertical-builder-shell {
    display: grid;
    grid-template-columns: 1.1fr 1.25fr .9fr;
    gap: 20px;
    align-items: stretch;
}

.vertical-preview-card,
.vertical-config-card,
.vertical-summary-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.vertical-preview-image-wrap {
    background: #f6f6f6;
    border-radius: 18px;
    padding: 18px;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .vertical-preview-image-wrap img {
        max-width: 100%;
        max-height: 310px;
        object-fit: contain;
    }

.vertical-preview-meta {
    margin-top: 18px;
}

    .vertical-preview-meta h3 {
        margin: 0;
    }

    .vertical-preview-meta p {
        margin: 4px 0 12px;
        color: #666;
    }

.vertical-size-pill {
    display: inline-block;
    background: #b40000;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.vertical-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vertical-choice {
    border: 2px solid #e2e2e2;
    background: #fafafa;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    transition: .15s ease;
}

    .vertical-choice strong {
        display: block;
        font-size: 1rem;
    }

    .vertical-choice span {
        color: #666;
        font-size: .85rem;
    }

    .vertical-choice.active {
        border-color: #b40000;
        background: #fff4f4;
    }

.vertical-size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

    .vertical-size-grid small {
        display: block;
        margin-top: 5px;
        color: #777;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

    .summary-row span {
        color: #666;
    }

.vertical-total {
    background: #111;
    color: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .vertical-total strong {
        font-size: 1.4rem;
    }

@media (max-width: 1100px) {
    .vertical-builder-shell {
        grid-template-columns: 1fr;
    }

    .vertical-builder-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .vertical-builder-badges {
        justify-content: flex-start;
    }
}
body:has(.coupa-family-page) .vertical-builder-shell {
    display: grid !important;
    grid-template-columns: 420px minmax(420px, 1fr) 360px !important;
    gap: 22px !important;
    align-items: stretch !important;
}

body:has(.coupa-family-page) .vertical-preview-card,
body:has(.coupa-family-page) .vertical-config-card,
body:has(.coupa-family-page) .vertical-summary-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 22px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.10) !important;
    border: 1px solid #e5e7eb !important;
}

body:has(.coupa-family-page) .vertical-preview-image-wrap {
    height: 390px !important;
    background: #f8fafc !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

    body:has(.coupa-family-page) .vertical-preview-image-wrap img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

body:has(.coupa-family-page) .vertical-choice-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

body:has(.coupa-family-page) .vertical-choice {
    border: 2px solid #e5e7eb !important;
    background: #fafafa !important;
    border-radius: 16px !important;
    padding: 14px !important;
    text-align: left !important;
    width: 100% !important;
}

    body:has(.coupa-family-page) .vertical-choice.active {
        border-color: #c80000 !important;
        background: #fff1f1 !important;
        color: #9f0000 !important;
    }

body:has(.coupa-family-page) .vertical-size-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

body:has(.coupa-family-page) .vertical-total {
    background: #111827 !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
}

@media (max-width: 1300px) {
    body:has(.coupa-family-page) .vertical-builder-shell {
        grid-template-columns: 1fr !important;
    }
}
.vertical-premium-page {
    background: #f5f7fa;
}

.vertical-premium-hero {
    background: linear-gradient(135deg, #111827, #020617);
    color: white;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.vertical-breadcrumb {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 10px;
}

.vertical-premium-hero h2 {
    font-size: 34px;
    font-weight: 900;
    margin: 0;
}

.vertical-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 20px;
    font-weight: 800;
}

    .vertical-hero-badges span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .vertical-hero-badges svg {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        opacity: .92;
    }

.vertical-session-box {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 16px;
    min-width: 220px;
    display: grid;
    gap: 4px;
}

    .vertical-session-box span {
        color: #cbd5e1;
        font-size: 12px;
    }

.vertical-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 380px;
    gap: 20px;
}

.vertical-premium-card {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}

    .vertical-premium-card h3 {
        font-size: 24px;
        font-weight: 900;
    }

.vertical-product-image {
    height: 430px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

    .vertical-product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.vertical-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.vertical-option {
    border: 2px solid #e5e7eb;
    background: #fafafa;
    border-radius: 14px;
    padding: 18px;
    text-align: left;
}

    .vertical-option.active {
        border-color: #c80000;
        background: #fff1f1;
        color: #b00000;
    }

    .vertical-option strong {
        display: block;
        font-size: 18px;
    }

    .vertical-option span {
        color: #4b5563;
    }

.vertical-step {
    font-weight: 900;
    margin: 20px 0 10px;
}

.vertical-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

    .vertical-input-grid label {
        font-weight: 900;
    }

    .vertical-input-grid small {
        color: #6b7280;
    }

.vertical-alert {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
    border-radius: 10px;
    padding: 12px;
    margin: 14px 0;
}

.vertical-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vertical-grand-total {
    background: #111827;
    color: white;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

    .vertical-grand-total strong {
        font-size: 30px;
        color: #ef4444;
    }

.vertical-tier-box {
    margin: 18px 0;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
    border-radius: 14px;
    padding: 14px;
    font-weight: 900;
}

    .vertical-tier-box small {
        display: block;
        font-weight: 500;
        margin-top: 4px;
    }

.vertical-add-btn {
    width: 100%;
    height: 52px;
    background: #c80000;
    color: white;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
}

    .vertical-add-btn:hover {
        background: #9f0000;
        color: white;
    }

@media (max-width: 1300px) {
    .vertical-premium-grid {
        grid-template-columns: 1fr;
    }

    .vertical-premium-hero {
        flex-direction: column;
    }
}
.vertical-preview-panel {
    position: relative;
    overflow: hidden;
}
/* ---- Solaris hero + project gallery ---------------------------------------- */
.solaris-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    align-items: flex-end;
    padding: 34px 38px;
    background-image: linear-gradient(105deg, rgba(3,7,18,.94) 0%, rgba(3,7,18,.86) 38%, rgba(3,7,18,.38) 70%, rgba(3,7,18,.18) 100%), url('/images/Solaris/solaris-lobby.jpg');
    background-size: cover;
    background-position: center 42%;
}

    .solaris-hero .solaris-hero-copy {
        position: relative;
        z-index: 1;
        max-width: 62ch;
    }

    .solaris-hero h2 {
        text-shadow: 0 2px 14px rgba(0,0,0,.45);
    }

    .solaris-hero p {
        text-shadow: 0 1px 10px rgba(0,0,0,.45);
    }

.solaris-gallery-head {
    margin: 30px 0 2px;
}

    .solaris-gallery-head h3 {
        margin: 0;
        font-size: 1.45rem;
        font-weight: 900;
        color: #111827;
    }

    .solaris-gallery-head p {
        margin: 4px 0 0;
        color: #6b7280;
    }

.solaris-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 16px 0 8px;
}

.solaris-shot {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transition: box-shadow .18s ease, transform .12s ease;
    cursor: zoom-in;
}

    .solaris-shot:focus-visible {
        outline: 3px solid #b00000;
        outline-offset: 3px;
    }

    .solaris-shot-zoom {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: rgba(3,7,18,.55);
        backdrop-filter: blur(2px);
        opacity: 0;
        transform: scale(.9);
        transition: opacity .16s ease, transform .16s ease;
        pointer-events: none;
    }

        .solaris-shot-zoom svg {
            width: 18px;
            height: 18px;
            display: block;
        }

    .solaris-shot:hover .solaris-shot-zoom,
    .solaris-shot:focus-visible .solaris-shot-zoom {
        opacity: 1;
        transform: scale(1);
    }

    .solaris-shot:hover {
        box-shadow: 0 14px 32px rgba(0,0,0,.20);
        transform: translateY(-2px);
    }

    .solaris-shot img {
        display: block;
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .solaris-shot figcaption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 34px 22px 18px;
        color: #ffffff;
        background: linear-gradient(to top, rgba(3,7,18,.90) 0%, rgba(3,7,18,.62) 45%, rgba(3,7,18,0) 100%);
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

        .solaris-shot figcaption strong {
            font-size: 1.08rem;
            font-weight: 800;
            letter-spacing: .01em;
        }

        .solaris-shot figcaption span {
            font-size: .88rem;
            color: #e5e7eb;
            line-height: 1.35;
        }

/* ---- Solaris gallery lightbox ---------------------------------------------- */
.solaris-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: rgba(3,7,18,.86);
    backdrop-filter: blur(3px);
    cursor: zoom-out;
    animation: solarisFade .16s ease-out;
}

@keyframes solarisFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.solaris-lightbox-inner {
    position: relative;
    cursor: default;
    max-width: min(1180px, 94vw);
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1120;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    animation: solarisPop .18s ease-out;
}

@keyframes solarisPop {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

    .solaris-lightbox-inner img {
        display: block;
        max-width: min(1180px, 94vw);
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.solaris-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 26px 20px;
    color: #ffffff;
    background: linear-gradient(to top, rgba(3,7,18,.92) 0%, rgba(3,7,18,.55) 55%, rgba(3,7,18,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

    .solaris-lightbox-caption strong {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .solaris-lightbox-caption span {
        font-size: .94rem;
        color: #e5e7eb;
    }

    .solaris-lightbox-caption em {
        margin-top: 4px;
        font-style: normal;
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .06em;
        color: #9ca3af;
    }

.solaris-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(3,7,18,.62);
    cursor: pointer;
    transition: background .15s ease, transform .12s ease;
}

    .solaris-lightbox-close:hover {
        background: #b00000;
        transform: scale(1.06);
    }

    .solaris-lightbox-close svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.solaris-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(3,7,18,.55);
    cursor: pointer;
    transition: background .15s ease;
}

    .solaris-lightbox-nav:hover {
        background: #b00000;
    }

    .solaris-lightbox-nav svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .solaris-lightbox-nav.prev {
        left: 14px;
    }

    .solaris-lightbox-nav.next {
        right: 14px;
    }

@media (max-width: 820px) {
    .solaris-gallery {
        grid-template-columns: 1fr;
    }

    .solaris-shot img {
        height: 220px;
    }

    .solaris-hero {
        min-height: 0;
        background-image: linear-gradient(160deg, rgba(3,7,18,.94) 0%, rgba(3,7,18,.80) 100%), url('/images/Solaris/solaris-lobby.jpg');
    }

    .solaris-lightbox {
        padding: 16px 10px;
    }

    .solaris-lightbox-nav {
        width: 38px;
        height: 38px;
    }

        .solaris-lightbox-nav.prev {
            left: 6px;
        }

        .solaris-lightbox-nav.next {
            right: 6px;
        }

    .solaris-lightbox-caption {
        padding: 40px 16px 14px;
    }

        .solaris-lightbox-caption strong {
            font-size: 1.02rem;
        }
}

/* ---- Solaris "contact your rep" directory ---------------------------------- */
.solaris-rep-callout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff, #fff5f5);
    border: 1px solid #f3c6c6;
    border-left: 6px solid #b00000;
    border-radius: 16px;
    padding: 22px 26px;
    margin: 26px 0 8px;
}

    .solaris-rep-callout-icon {
        flex: 0 0 auto;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #b00000;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(176,0,0,.25);
    }

        .solaris-rep-callout-icon svg {
            width: 28px;
            height: 28px;
            display: block;
        }

    .solaris-rep-callout h3 {
        margin: 0 0 8px;
        color: #111827;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .solaris-rep-callout p {
        margin: 0;
        color: #374151;
        font-size: .98rem;
        line-height: 1.55;
    }

.solaris-reps-head {
    margin: 28px 0 2px;
}

    .solaris-reps-head h3 {
        margin: 0;
        font-size: 1.45rem;
        font-weight: 900;
        color: #111827;
    }

    .solaris-reps-head p {
        margin: 4px 0 0;
        color: #6b7280;
    }

.solaris-reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
    margin: 14px 0 8px;
}

.solaris-rep-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}

    .solaris-rep-card:hover {
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
        border-color: #e7b9b9;
        transform: translateY(-2px);
    }

    .solaris-rep-card.service {
        background: #fbfdff;
        border-color: #cfe0f2;
    }

.solaris-rep-name {
    font-size: 1.18rem;
    font-weight: 900;
    color: #111827;
}

.solaris-rep-territory {
    flex: 1;
    margin-top: 5px;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.4;
}

.solaris-rep-contacts {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.solaris-rep-phone {
    color: #b00000;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
}

.solaris-rep-email {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .solaris-rep-phone svg {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        color: #b00000;
    }

    .solaris-rep-email svg {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        color: #9ca3af;
    }

    .solaris-rep-phone:hover span,
    .solaris-rep-email:hover span {
        text-decoration: underline;
    }

.solaris-about-head {
    margin: 32px 0 2px;
}

    .solaris-about-head h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 800;
        color: #111827;
    }

.solaris-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.solaris-info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.solaris-info-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #fff1f1 0%, #ffe3e3 100%);
    border: 1px solid #f6d2d2;
    color: #b00000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

    .solaris-info-icon svg {
        width: 30px;
        height: 30px;
        display: block;
    }

.solaris-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.solaris-info-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.solaris-cta-panel {
    background: linear-gradient(135deg, #050505 0%, #1a0000 100%);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
    color: white;
}

.solaris-cta-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.solaris-cta-content p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 8px;
}

.solaris-contact-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 280px;
}

.solaris-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-bottom: 8px;
}

.solaris-contact-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.solaris-contact-phone,
.solaris-contact-email {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .solaris-cta-panel {
        grid-template-columns: 1fr;
    }

    .solaris-contact-card {
        min-width: unset;
    }
}
.family-search-wrapper {
    position: relative;
}

.family-search-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 12px 14px;
    background: white;
    border: 2px solid #111827;
    border-top: 5px solid #d70000;
    border-radius: 12px;
    /* Heavy elevation so the dropdown clearly floats ABOVE the page
       instead of blending into the white panels behind it. */
    box-shadow: 0 30px 70px rgba(2, 6, 23, .45), 0 8px 22px rgba(2, 6, 23, .25);
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    z-index: 20;
}

/* Custom-size prompt inside the family search dropdown: when the search looks
   like a size (23x72, 23 x 72, ...), a mini version of the CUSTOM card offers
   to build it to exact measurements - one tap opens the custom modal
   pre-filled. (The full custom card in the product grid is separate and
   unchanged.) */
.family-search-custom {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #020617 0%, #111827 55%, #7f0015 100%);
    color: white;
    cursor: pointer;
}

    .family-search-custom::before {
        content: "CUSTOM";
        position: absolute;
        top: 10px;
        right: -34px;
        background: #facc15;
        color: #111827;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .08em;
        padding: 4px 38px;
        transform: rotate(45deg);
    }

    .family-search-custom:hover {
        box-shadow: 0 8px 20px rgba(2,6,23,.35);
    }

.family-search-custom-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.family-search-custom-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

    .family-search-custom-copy strong {
        font-size: 15px;
        font-weight: 900;
    }

    .family-search-custom-copy span {
        font-size: 12.5px;
        font-weight: 600;
        color: #e5e7eb;
    }

    .family-search-custom-copy em {
        font-style: normal;
        font-size: 12px;
        font-weight: 800;
        color: #facc15;
    }
/* =========================================================
   HEADING COLOR RESTORE (7/16/2026)
   nexus-theme.css sets a global dark color on h1-h6 for the
   main app. These punchout headings sit on DARK banners and
   previously inherited white from their containers - a global
   heading rule beats inheritance, so they went dark. Restore
   white explicitly. Keep this block at the end of the file.
   ========================================================= */
.coupa-hero h1,
.family-header h1,
.custom-modal-header h2,
.vertical-builder-hero h2,
.vertical-premium-hero h2,
.solaris-cta-content h3 {
    color: #ffffff;
}
